SAP P_APP_GET_SELECTION_DATA Function Module for









P_APP_GET_SELECTION_DATA is a standard p app get selection data 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 p app get selection data FM, simply by entering the name P_APP_GET_SELECTION_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function P_APP_GET_SELECTION_DATA 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 'P_APP_GET_SELECTION_DATA'"
EXPORTING
LAND1 = "

TABLES
VIEW_ANRED = "
VIEW_MONTH = "
VIEW_YEAR = "
VIEW_NATIO = "
VIEW_REGIO = "
VIEW_AUSPR = "
VIEW_FAART = "
VIEW_QUALI = "
VIEW_SLABS = "
VIEW_SLART = "
VIEW_TAETE = "
.



IMPORTING Parameters details for P_APP_GET_SELECTION_DATA

LAND1 -

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

TABLES Parameters details for P_APP_GET_SELECTION_DATA

VIEW_ANRED -

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

VIEW_MONTH -

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

VIEW_YEAR -

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

VIEW_NATIO -

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

VIEW_REGIO -

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

VIEW_AUSPR -

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

VIEW_FAART -

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

VIEW_QUALI -

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

VIEW_SLABS -

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

VIEW_SLART -

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

VIEW_TAETE -

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

Copy and paste ABAP code example for P_APP_GET_SELECTION_DATA 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_land1  TYPE T005U-LAND1, "   
lt_view_anred  TYPE STANDARD TABLE OF PANRED, "   
lt_view_month  TYPE STANDARD TABLE OF PMONTH, "   
lt_view_year  TYPE STANDARD TABLE OF PYEAR, "   
lt_view_natio  TYPE STANDARD TABLE OF PNATIO, "   
lt_view_regio  TYPE STANDARD TABLE OF PREGIO, "   
lt_view_auspr  TYPE STANDARD TABLE OF PAUSPR, "   
lt_view_faart  TYPE STANDARD TABLE OF PFAART, "   
lt_view_quali  TYPE STANDARD TABLE OF PQUALI, "   
lt_view_slabs  TYPE STANDARD TABLE OF PSLABS, "   
lt_view_slart  TYPE STANDARD TABLE OF PSLART, "   
lt_view_taete  TYPE STANDARD TABLE OF PTAETE. "   

  CALL FUNCTION 'P_APP_GET_SELECTION_DATA'  "
    EXPORTING
         LAND1 = lv_land1
    TABLES
         VIEW_ANRED = lt_view_anred
         VIEW_MONTH = lt_view_month
         VIEW_YEAR = lt_view_year
         VIEW_NATIO = lt_view_natio
         VIEW_REGIO = lt_view_regio
         VIEW_AUSPR = lt_view_auspr
         VIEW_FAART = lt_view_faart
         VIEW_QUALI = lt_view_quali
         VIEW_SLABS = lt_view_slabs
         VIEW_SLART = lt_view_slart
         VIEW_TAETE = lt_view_taete
. " P_APP_GET_SELECTION_DATA




ABAP code using 7.40 inline data declarations to call FM P_APP_GET_SELECTION_DATA

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 LAND1 FROM T005U INTO @DATA(ld_land1).
 
 
 
 
 
 
 
 
 
 
 
 


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!