SAP RSAQ_CHECK_EXTERNAL_PROGRAM Function Module for









RSAQ_CHECK_EXTERNAL_PROGRAM is a standard rsaq check external program SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rsaq check external program FM, simply by entering the name RSAQ_CHECK_EXTERNAL_PROGRAM into the relevant SAP transaction such as SE37 or SE38.

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



Function RSAQ_CHECK_EXTERNAL_PROGRAM 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 'RSAQ_CHECK_EXTERNAL_PROGRAM'"
IMPORTING
ERROR_COUNT = "
ERROR_FOUND = "
ERROR_MESS = "Error Text
ERROR_LINE = "
ERROR_WORD = "

CHANGING
HEADSG_INPUT = "

TABLES
DBDP_INPUT = "
ERROR = "Error Text

EXCEPTIONS
PROGRAM_NOT_FOUND = 1 KEYWORDS_NOT_FOUND = 2 FIXPOINT_WRONG = 3
.



EXPORTING Parameters details for RSAQ_CHECK_EXTERNAL_PROGRAM

ERROR_COUNT -

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

ERROR_FOUND -

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

ERROR_MESS - Error Text

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

ERROR_LINE -

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

ERROR_WORD -

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

CHANGING Parameters details for RSAQ_CHECK_EXTERNAL_PROGRAM

HEADSG_INPUT -

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

TABLES Parameters details for RSAQ_CHECK_EXTERNAL_PROGRAM

DBDP_INPUT -

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

ERROR - Error Text

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

EXCEPTIONS details

PROGRAM_NOT_FOUND -

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

KEYWORDS_NOT_FOUND -

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

FIXPOINT_WRONG -

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

Copy and paste ABAP code example for RSAQ_CHECK_EXTERNAL_PROGRAM 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_dbdp_input  TYPE STANDARD TABLE OF AQDBDP, "   
lv_error_count  TYPE AQADEF-ERROR_CNT, "   
lv_headsg_input  TYPE AQHDSG, "   
lv_program_not_found  TYPE AQHDSG, "   
lt_error  TYPE STANDARD TABLE OF AQERROR, "   
lv_error_found  TYPE AQS_FLAG, "   
lv_keywords_not_found  TYPE AQS_FLAG, "   
lv_error_mess  TYPE C, "   
lv_fixpoint_wrong  TYPE C, "   
lv_error_line  TYPE AQADEF-ERR_LINE, "   
lv_error_word  TYPE AQADEF-ERR_WORD. "   

  CALL FUNCTION 'RSAQ_CHECK_EXTERNAL_PROGRAM'  "
    IMPORTING
         ERROR_COUNT = lv_error_count
         ERROR_FOUND = lv_error_found
         ERROR_MESS = lv_error_mess
         ERROR_LINE = lv_error_line
         ERROR_WORD = lv_error_word
    CHANGING
         HEADSG_INPUT = lv_headsg_input
    TABLES
         DBDP_INPUT = lt_dbdp_input
         ERROR = lt_error
    EXCEPTIONS
        PROGRAM_NOT_FOUND = 1
        KEYWORDS_NOT_FOUND = 2
        FIXPOINT_WRONG = 3
. " RSAQ_CHECK_EXTERNAL_PROGRAM




ABAP code using 7.40 inline data declarations to call FM RSAQ_CHECK_EXTERNAL_PROGRAM

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 ERROR_CNT FROM AQADEF INTO @DATA(ld_error_count).
 
 
 
 
 
 
 
 
"SELECT single ERR_LINE FROM AQADEF INTO @DATA(ld_error_line).
 
"SELECT single ERR_WORD FROM AQADEF INTO @DATA(ld_error_word).
 


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!