SAP RFC_APP_MAIN Function Module for NOTRANSL: APP/1 Remote Prozessierung und Syntax-Check
RFC_APP_MAIN is a standard rfc app main 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: APP/1 Remote Prozessierung und Syntax-Check 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 rfc app main FM, simply by entering the name RFC_APP_MAIN into the relevant SAP transaction such as SE37 or SE38.
Function Group: APP1_REMOTE
Program Name: SAPLAPP1_REMOTE
Main Program: SAPLAPP1_REMOTE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function RFC_APP_MAIN 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 'RFC_APP_MAIN'"NOTRANSL: APP/1 Remote Prozessierung und Syntax-Check.
EXPORTING
IS_CONTROL = "APP/1: Control Data
TABLES
IT_CODE = "APP/1: Code Transfer if Remote Check
IT_GROUP = "APP/1: Groups To Process
IT_RELEASE = "APP/1: Component Release Groups
IT_SUBSTITUTION = "APP/1: Substitutions
ET_CODE = "APP/1: Code Transfer if Remote Check
ET_STATUS = "APP/1: Data Return (Messages, Status)
EXCEPTIONS
NO_AUTHORIZATION = 1
IMPORTING Parameters details for RFC_APP_MAIN
IS_CONTROL - APP/1: Control Data
Data type: APP_CTRL_SOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RFC_APP_MAIN
IT_CODE - APP/1: Code Transfer if Remote Check
Data type: APP_CODE_SOptional: No
Call by Reference: Yes
IT_GROUP - APP/1: Groups To Process
Data type: APP_GROUP_SOptional: No
Call by Reference: Yes
IT_RELEASE - APP/1: Component Release Groups
Data type: APP_REL_SOptional: No
Call by Reference: Yes
IT_SUBSTITUTION - APP/1: Substitutions
Data type: APP_SUB_SOptional: No
Call by Reference: Yes
ET_CODE - APP/1: Code Transfer if Remote Check
Data type: APP_CODE_SOptional: No
Call by Reference: Yes
ET_STATUS - APP/1: Data Return (Messages, Status)
Data type: APP_RET_SOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_AUTHORIZATION - No Authorization
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RFC_APP_MAIN 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_it_code | TYPE STANDARD TABLE OF APP_CODE_S, " | |||
| lv_is_control | TYPE APP_CTRL_S, " | |||
| lv_no_authorization | TYPE APP_CTRL_S, " | |||
| lt_it_group | TYPE STANDARD TABLE OF APP_GROUP_S, " | |||
| lt_it_release | TYPE STANDARD TABLE OF APP_REL_S, " | |||
| lt_it_substitution | TYPE STANDARD TABLE OF APP_SUB_S, " | |||
| lt_et_code | TYPE STANDARD TABLE OF APP_CODE_S, " | |||
| lt_et_status | TYPE STANDARD TABLE OF APP_RET_S. " |
|   CALL FUNCTION 'RFC_APP_MAIN' "NOTRANSL: APP/1 Remote Prozessierung und Syntax-Check |
| EXPORTING | ||
| IS_CONTROL | = lv_is_control | |
| TABLES | ||
| IT_CODE | = lt_it_code | |
| IT_GROUP | = lt_it_group | |
| IT_RELEASE | = lt_it_release | |
| IT_SUBSTITUTION | = lt_it_substitution | |
| ET_CODE | = lt_et_code | |
| ET_STATUS | = lt_et_status | |
| EXCEPTIONS | ||
| NO_AUTHORIZATION = 1 | ||
| . " RFC_APP_MAIN | ||
ABAP code using 7.40 inline data declarations to call FM RFC_APP_MAIN
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.Search for further information about these or an SAP related objects