SAP C136_IMPORT_EXEC Function Module for NOTRANSL: EHS: Import von EH&S-Objekten mit Parametern in der Schnittstell









C136_IMPORT_EXEC is a standard c136 import exec 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: EHS: Import von EH&S-Objekten mit Parametern in der Schnittstell 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 c136 import exec FM, simply by entering the name C136_IMPORT_EXEC into the relevant SAP transaction such as SE37 or SE38.

Function Group: C136
Program Name: SAPLC136
Main Program: SAPLC136
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function C136_IMPORT_EXEC 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 'C136_IMPORT_EXEC'"NOTRANSL: EHS: Import von EH&S-Objekten mit Parametern in der Schnittstell
EXPORTING
I_RCGIEPARS = "
* I_RCGIEFILE = "
* I_RCGIEDIAL = "
* I_STARTNUM = 0 "

CHANGING
X_NUMERROR = "Number of Errors
X_NUMWARNING = "Number of Warnings

TABLES
* I_ID_TAB = "
* I_LINE_TAB = "
* I_RI_TAB = "
* I_PHRLANGU_TAB = "
* I_IBDREP_TAB = "

EXCEPTIONS
INTERNAL_ERROR = 1 PARSER_ERROR = 2
.



IMPORTING Parameters details for C136_IMPORT_EXEC

I_RCGIEPARS -

Data type: RCGIEPARS
Optional: No
Call by Reference: No ( called with pass by value option)

I_RCGIEFILE -

Data type: RCGIEFILE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RCGIEDIAL -

Data type: RCGIEDIAL
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STARTNUM -

Data type: TBIST-AKTNUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for C136_IMPORT_EXEC

X_NUMERROR - Number of Errors

Data type: TBIST-NUMERROR
Optional: No
Call by Reference: No ( called with pass by value option)

X_NUMWARNING - Number of Warnings

Data type: TBIST-NUMERROR
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for C136_IMPORT_EXEC

I_ID_TAB -

Data type: RCGIEID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LINE_TAB -

Data type: RCGIELINE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RI_TAB -

Data type: ESTRI
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PHRLANGU_TAB -

Data type: RCGLGSEL
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_IBDREP_TAB -

Data type: RCGIBDDAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INTERNAL_ERROR - Internal error

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PARSER_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for C136_IMPORT_EXEC 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_i_id_tab  TYPE STANDARD TABLE OF RCGIEID, "   
lv_x_numerror  TYPE TBIST-NUMERROR, "   
lv_i_rcgiepars  TYPE RCGIEPARS, "   
lv_internal_error  TYPE RCGIEPARS, "   
lt_i_line_tab  TYPE STANDARD TABLE OF RCGIELINE, "   
lv_i_rcgiefile  TYPE RCGIEFILE, "   
lv_parser_error  TYPE RCGIEFILE, "   
lv_x_numwarning  TYPE TBIST-NUMERROR, "   
lt_i_ri_tab  TYPE STANDARD TABLE OF ESTRI, "   
lv_i_rcgiedial  TYPE RCGIEDIAL, "   
lv_i_startnum  TYPE TBIST-AKTNUM, "   0
lt_i_phrlangu_tab  TYPE STANDARD TABLE OF RCGLGSEL, "   
lt_i_ibdrep_tab  TYPE STANDARD TABLE OF RCGIBDDAT. "   

  CALL FUNCTION 'C136_IMPORT_EXEC'  "NOTRANSL: EHS: Import von EH&S-Objekten mit Parametern in der Schnittstell
    EXPORTING
         I_RCGIEPARS = lv_i_rcgiepars
         I_RCGIEFILE = lv_i_rcgiefile
         I_RCGIEDIAL = lv_i_rcgiedial
         I_STARTNUM = lv_i_startnum
    CHANGING
         X_NUMERROR = lv_x_numerror
         X_NUMWARNING = lv_x_numwarning
    TABLES
         I_ID_TAB = lt_i_id_tab
         I_LINE_TAB = lt_i_line_tab
         I_RI_TAB = lt_i_ri_tab
         I_PHRLANGU_TAB = lt_i_phrlangu_tab
         I_IBDREP_TAB = lt_i_ibdrep_tab
    EXCEPTIONS
        INTERNAL_ERROR = 1
        PARSER_ERROR = 2
. " C136_IMPORT_EXEC




ABAP code using 7.40 inline data declarations to call FM C136_IMPORT_EXEC

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 NUMERROR FROM TBIST INTO @DATA(ld_x_numerror).
 
 
 
 
 
 
"SELECT single NUMERROR FROM TBIST INTO @DATA(ld_x_numwarning).
 
 
 
"SELECT single AKTNUM FROM TBIST INTO @DATA(ld_i_startnum).
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!