SAP AD23_OUTPUT_STRCOM_GET Function Module for BPP: get structure settings for output









AD23_OUTPUT_STRCOM_GET is a standard ad23 output strcom get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BPP: get structure settings for output 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 ad23 output strcom get FM, simply by entering the name AD23_OUTPUT_STRCOM_GET into the relevant SAP transaction such as SE37 or SE38.

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



Function AD23_OUTPUT_STRCOM_GET 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 'AD23_OUTPUT_STRCOM_GET'"BPP: get structure settings for output
EXPORTING
* I_VBAP_SD = "Sales Document: Item Data
* I_AUFK_SM = "Order master data
I_PROFNR = "Dynamic item processor profile
I_DPUS = "Usage of the DI profile
I_LAYTYPE = "BPP: alternative layout type (may be initial)

TABLES
ET_STRCOM = "Information about structuring fields and field name

EXCEPTIONS
INPUT_ERROR = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLAD23_001 BPP: filter out invoice items
EXIT_SAPLAD23_002 BPP: filter out DMR/quotation items
EXIT_SAPLAD23_003 BPP: modify structuring settings for output
EXIT_SAPLAD23_004 BPP: determine/modify information for output leaf item
EXIT_SAPLAD23_005 BPP: determine/modify information for hierarchy node
EXIT_SAPLAD23_006 BPP: sort/filter output leaf items under one hierarchy node
EXIT_SAPLAD23_007 BPP: determine long texts for output
EXIT_SAPLAD23_008 BPP: determine text element type for attachment leaf

IMPORTING Parameters details for AD23_OUTPUT_STRCOM_GET

I_VBAP_SD - Sales Document: Item Data

Data type: VBAP
Optional: Yes
Call by Reference: Yes

I_AUFK_SM - Order master data

Data type: AUFK
Optional: Yes
Call by Reference: Yes

I_PROFNR - Dynamic item processor profile

Data type: VBKD-FFPRF
Optional: No
Call by Reference: Yes

I_DPUS - Usage of the DI profile

Data type: AD01C_PROF-DPUS
Optional: No
Call by Reference: Yes

I_LAYTYPE - BPP: alternative layout type (may be initial)

Data type: AD23_OUTD-LAYTYPE
Optional: No
Call by Reference: Yes

TABLES Parameters details for AD23_OUTPUT_STRCOM_GET

ET_STRCOM - Information about structuring fields and field name

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

EXCEPTIONS details

INPUT_ERROR - Incorrect values in input parameters

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for AD23_OUTPUT_STRCOM_GET 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_et_strcom  TYPE STANDARD TABLE OF AD01STRCOM, "   
lv_i_vbap_sd  TYPE VBAP, "   
lv_input_error  TYPE VBAP, "   
lv_i_aufk_sm  TYPE AUFK, "   
lv_i_profnr  TYPE VBKD-FFPRF, "   
lv_i_dpus  TYPE AD01C_PROF-DPUS, "   
lv_i_laytype  TYPE AD23_OUTD-LAYTYPE. "   

  CALL FUNCTION 'AD23_OUTPUT_STRCOM_GET'  "BPP: get structure settings for output
    EXPORTING
         I_VBAP_SD = lv_i_vbap_sd
         I_AUFK_SM = lv_i_aufk_sm
         I_PROFNR = lv_i_profnr
         I_DPUS = lv_i_dpus
         I_LAYTYPE = lv_i_laytype
    TABLES
         ET_STRCOM = lt_et_strcom
    EXCEPTIONS
        INPUT_ERROR = 1
. " AD23_OUTPUT_STRCOM_GET




ABAP code using 7.40 inline data declarations to call FM AD23_OUTPUT_STRCOM_GET

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 FFPRF FROM VBKD INTO @DATA(ld_i_profnr).
 
"SELECT single DPUS FROM AD01C_PROF INTO @DATA(ld_i_dpus).
 
"SELECT single LAYTYPE FROM AD23_OUTD INTO @DATA(ld_i_laytype).
 


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!