SAP STRUCTURE_CONDITION_ASK_PARAM Function Module for









STRUCTURE_CONDITION_ASK_PARAM is a standard structure condition ask param 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 structure condition ask param FM, simply by entering the name STRUCTURE_CONDITION_ASK_PARAM into the relevant SAP transaction such as SE37 or SE38.

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



Function STRUCTURE_CONDITION_ASK_PARAM 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 'STRUCTURE_CONDITION_ASK_PARAM'"
EXPORTING
* OPERA = 'A' "
* CUTTREE = 'O' "
* INPUT_SFLAG = ' ' "
* INPUT_RECURS = ' ' "
PLVAR = "

IMPORTING
OPERA = "
CUTTREE = "

TABLES
SEL_OPT_SETGD = "Transfer parameter for structure condition
.



IMPORTING Parameters details for STRUCTURE_CONDITION_ASK_PARAM

OPERA -

Data type: GDSET-OPERA
Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CUTTREE -

Data type: GDSET-CUTTREE
Default: 'O'
Optional: Yes
Call by Reference: No ( called with pass by value option)

INPUT_SFLAG -

Data type: SETGD-SFLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

INPUT_RECURS -

Data type: SETGD-RECURS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLVAR -

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

EXPORTING Parameters details for STRUCTURE_CONDITION_ASK_PARAM

OPERA -

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

CUTTREE -

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

TABLES Parameters details for STRUCTURE_CONDITION_ASK_PARAM

SEL_OPT_SETGD - Transfer parameter for structure condition

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

Copy and paste ABAP code example for STRUCTURE_CONDITION_ASK_PARAM 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_opera  TYPE GDSET-OPERA, "   
lv_opera  TYPE GDSET-OPERA, "   'A'
lt_sel_opt_setgd  TYPE STANDARD TABLE OF GDSET, "   
lv_cuttree  TYPE GDSET-CUTTREE, "   
lv_cuttree  TYPE GDSET-CUTTREE, "   'O'
lv_input_sflag  TYPE SETGD-SFLAG, "   SPACE
lv_input_recurs  TYPE SETGD-RECURS, "   SPACE
lv_plvar  TYPE SETGD-PLVAR. "   

  CALL FUNCTION 'STRUCTURE_CONDITION_ASK_PARAM'  "
    EXPORTING
         OPERA = lv_opera
         CUTTREE = lv_cuttree
         INPUT_SFLAG = lv_input_sflag
         INPUT_RECURS = lv_input_recurs
         PLVAR = lv_plvar
    IMPORTING
         OPERA = lv_opera
         CUTTREE = lv_cuttree
    TABLES
         SEL_OPT_SETGD = lt_sel_opt_setgd
. " STRUCTURE_CONDITION_ASK_PARAM




ABAP code using 7.40 inline data declarations to call FM STRUCTURE_CONDITION_ASK_PARAM

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 OPERA FROM GDSET INTO @DATA(ld_opera).
 
"SELECT single OPERA FROM GDSET INTO @DATA(ld_opera).
DATA(ld_opera) = 'A'.
 
 
"SELECT single CUTTREE FROM GDSET INTO @DATA(ld_cuttree).
 
"SELECT single CUTTREE FROM GDSET INTO @DATA(ld_cuttree).
DATA(ld_cuttree) = 'O'.
 
"SELECT single SFLAG FROM SETGD INTO @DATA(ld_input_sflag).
DATA(ld_input_sflag) = ' '.
 
"SELECT single RECURS FROM SETGD INTO @DATA(ld_input_recurs).
DATA(ld_input_recurs) = ' '.
 
"SELECT single PLVAR FROM SETGD INTO @DATA(ld_plvar).
 


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!