SAP STU3_ADMIN_LINKEDIT_SAPCL Function Module for Link-edits the SAP Collector









STU3_ADMIN_LINKEDIT_SAPCL is a standard stu3 admin linkedit sapcl SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Link-edits the SAP Collector 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 stu3 admin linkedit sapcl FM, simply by entering the name STU3_ADMIN_LINKEDIT_SAPCL into the relevant SAP transaction such as SE37 or SE38.

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



Function STU3_ADMIN_LINKEDIT_SAPCL 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 'STU3_ADMIN_LINKEDIT_SAPCL'"Link-edits the SAP Collector
EXPORTING
* REMOTE_DBCON = "
* DB2_MEMB = "

IMPORTING
JCL_RC = "Return Value, Return Value After ABAP Statements
MESSAGE = "Area of the CC stored procedures output values

TABLES
RESULT = "Structure of global temp input table DSNACC.JFRECORDS

EXCEPTIONS
COULD_NOT_READ_JOB = 1 ERROR_IN_JCL_SS = 2
.



IMPORTING Parameters details for STU3_ADMIN_LINKEDIT_SAPCL

REMOTE_DBCON -

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

DB2_MEMB -

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

EXPORTING Parameters details for STU3_ADMIN_LINKEDIT_SAPCL

JCL_RC - Return Value, Return Value After ABAP Statements

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

MESSAGE - Area of the CC stored procedures output values

Data type: DB2CCMTXT
Optional: No
Call by Reference: Yes

TABLES Parameters details for STU3_ADMIN_LINKEDIT_SAPCL

RESULT - Structure of global temp input table DSNACC.JFRECORDS

Data type: DB2CCJFOUT
Optional: No
Call by Reference: Yes

EXCEPTIONS details

COULD_NOT_READ_JOB -

Data type:
Optional: No
Call by Reference: Yes

ERROR_IN_JCL_SS -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for STU3_ADMIN_LINKEDIT_SAPCL 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:
lv_jcl_rc  TYPE SY-SUBRC, "   
lt_result  TYPE STANDARD TABLE OF DB2CCJFOUT, "   
lv_remote_dbcon  TYPE DBCON-CON_NAME, "   
lv_could_not_read_job  TYPE DBCON, "   
lv_message  TYPE DB2CCMTXT, "   
lv_db2_memb  TYPE DB2MISC-THEKEY, "   
lv_error_in_jcl_ss  TYPE DB2MISC. "   

  CALL FUNCTION 'STU3_ADMIN_LINKEDIT_SAPCL'  "Link-edits the SAP Collector
    EXPORTING
         REMOTE_DBCON = lv_remote_dbcon
         DB2_MEMB = lv_db2_memb
    IMPORTING
         JCL_RC = lv_jcl_rc
         MESSAGE = lv_message
    TABLES
         RESULT = lt_result
    EXCEPTIONS
        COULD_NOT_READ_JOB = 1
        ERROR_IN_JCL_SS = 2
. " STU3_ADMIN_LINKEDIT_SAPCL




ABAP code using 7.40 inline data declarations to call FM STU3_ADMIN_LINKEDIT_SAPCL

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 SUBRC FROM SY INTO @DATA(ld_jcl_rc).
 
 
"SELECT single CON_NAME FROM DBCON INTO @DATA(ld_remote_dbcon).
 
 
 
"SELECT single THEKEY FROM DB2MISC INTO @DATA(ld_db2_memb).
 
 


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!