SAP SAMPLE_PROCESS_01010003 Function Module for NOTRANSL: Hilfe: Anzeige eines Nachrichten Textes in einem Popup.
SAMPLE_PROCESS_01010003 is a standard sample process 01010003 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Hilfe: Anzeige eines Nachrichten Textes in einem Popup. processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for sample process 01010003 FM, simply by entering the name SAMPLE_PROCESS_01010003 into the relevant SAP transaction such as SE37 or SE38.
Function Group: BTSP
Program Name: SAPLBTSP
Main Program:
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SAMPLE_PROCESS_01010003 pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'SAMPLE_PROCESS_01010003'"NOTRANSL: Hilfe: Anzeige eines Nachrichten Textes in einem Popup..
EXPORTING
RFCDEST = "RFC Destination
* CALLED_FOR_TAB_FLD_BTCH_INPUT = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* MSG_VAR_1 = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* MSG_VAR_2 = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* MSG_VAR_3 = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* MSG_VAR_4 = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* CALLED_BY_CUAPROG = ' ' "
* CALLED_BY_CUASTAT = "
* SHORT_TEXT = ' ' "
DOKCLASS = "Document Class
* DOKLANGU = SY-LANGU "DE-EN-LANG-SWITCH-NO-TRANSLATION
DOKNAME = "Document name
* DOKTITLE = ' ' "Window Title
* CALLED_BY_PROGRAM = ' ' "Calling Program
* CALLED_BY_DYNP = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* CALLED_FOR_TAB = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* CALLED_FOR_FIELD = ' ' "Field Name
TABLES
LINKS = "Not Used
EXCEPTIONS
OBJECT_NOT_FOUND = 1 SAPSCRIPT_ERROR = 2
IMPORTING Parameters details for SAMPLE_PROCESS_01010003
RFCDEST - RFC Destination
Data type: RFCDESTOptional: No
Call by Reference: No ( called with pass by value option)
CALLED_FOR_TAB_FLD_BTCH_INPUT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: HELP_INFO-DYNPROFLDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MSG_VAR_1 - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MSG_VAR_2 - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MSG_VAR_3 - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MSG_VAR_4 - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLED_BY_CUAPROG -
Data type: HELP_INFO-PROGRAMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLED_BY_CUASTAT -
Data type: HELP_INFO-PFKEYOptional: Yes
Call by Reference: No ( called with pass by value option)
SHORT_TEXT -
Data type: SY-BATCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DOKCLASS - Document Class
Data type: DSYSH-DOKCLASSOptional: No
Call by Reference: No ( called with pass by value option)
DOKLANGU - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: DSYSH-DOKLANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
DOKNAME - Document name
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DOKTITLE - Window Title
Data type: DSYST-DOKTITLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLED_BY_PROGRAM - Calling Program
Data type: HELP_INFO-PROGRAMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLED_BY_DYNP - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: HELP_INFO-DYNPRODefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLED_FOR_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: HELP_INFO-TABNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLED_FOR_FIELD - Field Name
Data type: HELP_INFO-FIELDNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SAMPLE_PROCESS_01010003
LINKS - Not Used
Data type: TLINEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
OBJECT_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SAPSCRIPT_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SAMPLE_PROCESS_01010003 Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_links | TYPE STANDARD TABLE OF TLINE, " | |||
| lv_rfcdest | TYPE RFCDEST, " | |||
| lv_object_not_found | TYPE RFCDEST, " | |||
| lv_called_for_tab_fld_btch_input | TYPE HELP_INFO-DYNPROFLD, " SPACE | |||
| lv_msg_var_1 | TYPE HELP_INFO, " SPACE | |||
| lv_msg_var_2 | TYPE HELP_INFO, " SPACE | |||
| lv_msg_var_3 | TYPE HELP_INFO, " SPACE | |||
| lv_msg_var_4 | TYPE HELP_INFO, " SPACE | |||
| lv_called_by_cuaprog | TYPE HELP_INFO-PROGRAM, " SPACE | |||
| lv_called_by_cuastat | TYPE HELP_INFO-PFKEY, " | |||
| lv_short_text | TYPE SY-BATCH, " SPACE | |||
| lv_dokclass | TYPE DSYSH-DOKCLASS, " | |||
| lv_sapscript_error | TYPE DSYSH, " | |||
| lv_doklangu | TYPE DSYSH-DOKLANGU, " SY-LANGU | |||
| lv_dokname | TYPE DSYSH, " | |||
| lv_doktitle | TYPE DSYST-DOKTITLE, " SPACE | |||
| lv_called_by_program | TYPE HELP_INFO-PROGRAM, " SPACE | |||
| lv_called_by_dynp | TYPE HELP_INFO-DYNPRO, " SPACE | |||
| lv_called_for_tab | TYPE HELP_INFO-TABNAME, " SPACE | |||
| lv_called_for_field | TYPE HELP_INFO-FIELDNAME. " SPACE |
|   CALL FUNCTION 'SAMPLE_PROCESS_01010003' "NOTRANSL: Hilfe: Anzeige eines Nachrichten Textes in einem Popup. |
| EXPORTING | ||
| RFCDEST | = lv_rfcdest | |
| CALLED_FOR_TAB_FLD_BTCH_INPUT | = lv_called_for_tab_fld_btch_input | |
| MSG_VAR_1 | = lv_msg_var_1 | |
| MSG_VAR_2 | = lv_msg_var_2 | |
| MSG_VAR_3 | = lv_msg_var_3 | |
| MSG_VAR_4 | = lv_msg_var_4 | |
| CALLED_BY_CUAPROG | = lv_called_by_cuaprog | |
| CALLED_BY_CUASTAT | = lv_called_by_cuastat | |
| SHORT_TEXT | = lv_short_text | |
| DOKCLASS | = lv_dokclass | |
| DOKLANGU | = lv_doklangu | |
| DOKNAME | = lv_dokname | |
| DOKTITLE | = lv_doktitle | |
| CALLED_BY_PROGRAM | = lv_called_by_program | |
| CALLED_BY_DYNP | = lv_called_by_dynp | |
| CALLED_FOR_TAB | = lv_called_for_tab | |
| CALLED_FOR_FIELD | = lv_called_for_field | |
| TABLES | ||
| LINKS | = lt_links | |
| EXCEPTIONS | ||
| OBJECT_NOT_FOUND = 1 | ||
| SAPSCRIPT_ERROR = 2 | ||
| . " SAMPLE_PROCESS_01010003 | ||
ABAP code using 7.40 inline data declarations to call FM SAMPLE_PROCESS_01010003
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single DYNPROFLD FROM HELP_INFO INTO @DATA(ld_called_for_tab_fld_btch_input). | ||||
| DATA(ld_called_for_tab_fld_btch_input) | = ' '. | |||
| DATA(ld_msg_var_1) | = ' '. | |||
| DATA(ld_msg_var_2) | = ' '. | |||
| DATA(ld_msg_var_3) | = ' '. | |||
| DATA(ld_msg_var_4) | = ' '. | |||
| "SELECT single PROGRAM FROM HELP_INFO INTO @DATA(ld_called_by_cuaprog). | ||||
| DATA(ld_called_by_cuaprog) | = ' '. | |||
| "SELECT single PFKEY FROM HELP_INFO INTO @DATA(ld_called_by_cuastat). | ||||
| "SELECT single BATCH FROM SY INTO @DATA(ld_short_text). | ||||
| DATA(ld_short_text) | = ' '. | |||
| "SELECT single DOKCLASS FROM DSYSH INTO @DATA(ld_dokclass). | ||||
| "SELECT single DOKLANGU FROM DSYSH INTO @DATA(ld_doklangu). | ||||
| DATA(ld_doklangu) | = SY-LANGU. | |||
| "SELECT single DOKTITLE FROM DSYST INTO @DATA(ld_doktitle). | ||||
| DATA(ld_doktitle) | = ' '. | |||
| "SELECT single PROGRAM FROM HELP_INFO INTO @DATA(ld_called_by_program). | ||||
| DATA(ld_called_by_program) | = ' '. | |||
| "SELECT single DYNPRO FROM HELP_INFO INTO @DATA(ld_called_by_dynp). | ||||
| DATA(ld_called_by_dynp) | = ' '. | |||
| "SELECT single TABNAME FROM HELP_INFO INTO @DATA(ld_called_for_tab). | ||||
| DATA(ld_called_for_tab) | = ' '. | |||
| "SELECT single FIELDNAME FROM HELP_INFO INTO @DATA(ld_called_for_field). | ||||
| DATA(ld_called_for_field) | = ' '. | |||
Search for further information about these or an SAP related objects