DOCU_READ sap function module
The below ABAP code shows how function module DOCU_READ is used to retieve documentation for any SAP repository object where any exists.
Retieve documentation for any SAP repository object REPORT ZOBJECT_DOCU. DATA: it_lines type STANDARD TABLE OF TLINE INITIAL SIZE 0. DATA: ld_THEAD LIKE THEAD, ld_title type DSYST-DOKTITLE. DATA: it_dokil TYPE STANDARD TABLE OF dokil INITIAL SIZE 0, wa_dokil like LINE OF it_dokil. *SAP User parameter SAP repository object (FM, Prog, TCODE etc) PARAMETERS: p_object type string default 'POPUP_TO_CONFIRM'. * Get documentation for entered SAP object SELECT single * FROM DOKIL into wa_dokil WHERE OBJECT = p_object AND LANGU = SY-LANGU. *Return documentation for SAP object CALL FUNCTION 'DOCU_READ' EXPORTING ID = wa_DOKIL-ID LANGU = wa_DOKIL-LANGU OBJECT = wa_DOKIL-OBJECT TYP = wa_DOKIL-TYP VERSION = wa_DOKIL-VERSION * SUPPRESS_TEMPLATE = ' ' * USE_NOTE_TEMPLATE = ' ' IMPORTING DOKTITLE = ld_title HEAD = ld_THEAD TABLES LINE = it_lines. BREAK-POINT. "Any available SAP documentation is contained in it_lines
Related Articles
BAPI_ALM_ORDER_MAINTAIN sap BAPI / Function Module to create a work order
Function module BAPI_EMPLCOMM_CREATE to maintain the SAP HR communication infotype 0105
CLPB_EXPORT sap function module
CLPB_IMPORT sap function module
CONVERT_DATE_TO_EXTERNAL sap function module
CREATE_TEXT sap function module
CURRENCY_AMOUNT_DISPLAY_TO_SAP sap function module to Convert currency value from display to SAP
CURRENCY_AMOUNT_SAP_TO_DISPLAY FM to Convert currency value from SAP to display
DATE_COMPUTE_DAY sap function module
DATE_TO_DAY sap function module
ENQUEUE_READ sap function module
F4IF_INT_TABLE_VALUE_REQUEST sap function module
FILE_GET_NAME sap function module
SAP Application specific function modules
SAP Custom function modules
SAP field conversion function modules
SAP HR specific function modules
SAP development function modules
Retrieve employees address details (own data)
Function Module DYNP_VALUES_UPDATE to Change screen field contents
sxpg_command_execute FM to Execute external commands (FTP Scripts)
DETERMINE_PERIOD FM to Retrieve fiscal year and period
Function module HR_INFOTYPE_OPERATION to maintain SAP HR infotypes
RH_PM_GET_STRUCTURE FM to retrieve HR Organisation Structure
Validate WBS (code used in ME21)
HR_READ_INFOTYPE SAP FM to Read infotype data
READ_TEXT FM to Read SAP texts
ADDR_PERS_COMP_COMM_MAINTAIN to Update sap users email address plus other details (own data)
HR_PERSONAL_WORK_SCHEDULE to Retrieve employees work schedule
NUMBER_GET_NEXT to get next number in number range sap function module
Generate random number using QF05_RANDOM_INTEGER SAP function module within your ABAP code
RSEC_GENERATE_PASSWORD SAP FM to generate user password
The SAP internet user functionality and Password BAPIs
SAPGUI_SET_FUNCTIONCODE sap function module to execute function code
SX_INTERNET_ADDRESS_TO_NORMAL SAP function module to check email format is correct