SAP /SAPAPO/DM_GET_COLS Function Module for Get Cols









/SAPAPO/DM_GET_COLS is a standard /sapapo/dm get cols SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Cols 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 /sapapo/dm get cols FM, simply by entering the name /SAPAPO/DM_GET_COLS into the relevant SAP transaction such as SE37 or SE38.

Function Group: /SAPAPO/DM_DEMAND_PLANNING
Program Name: /SAPAPO/SAPLDM_DEMAND_PLANNING
Main Program: /SAPAPO/SAPLDM_DEMAND_PLANNING
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function /SAPAPO/DM_GET_COLS 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 '/SAPAPO/DM_GET_COLS'"Get Cols
EXPORTING
I_DATE = "
* I_CALENDAR = "Schlüssel des Fabrikkalenders
I_F_FLG_NEW_BUCKETS = "
I_DIRECTION = "
* I_PERLY = "Single-Character Flag
* I_TSTREAMID = "
* I_DATE_EXACT = "

TABLES
T_INT_T445Z1 = "
T_T_COLS = "
.



IMPORTING Parameters details for /SAPAPO/DM_GET_COLS

I_DATE -

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

I_CALENDAR - Schlüssel des Fabrikkalenders

Data type: /SAPAPO/FABKL
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_F_FLG_NEW_BUCKETS -

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

I_DIRECTION -

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

I_PERLY - Single-Character Flag

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

I_TSTREAMID -

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

I_DATE_EXACT -

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

TABLES Parameters details for /SAPAPO/DM_GET_COLS

T_INT_T445Z1 -

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

T_T_COLS -

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

Copy and paste ABAP code example for /SAPAPO/DM_GET_COLS 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_i_date  TYPE SCAL-DATE, "   
lt_t_int_t445z1  TYPE STANDARD TABLE OF /SAPAPO/T445Z1, "   
lt_t_t_cols  TYPE STANDARD TABLE OF /SAPAPO/PGCOLS, "   
lv_i_calendar  TYPE /SAPAPO/FABKL, "   
lv_i_f_flg_new_buckets  TYPE /SAPAPO/FABKL, "   
lv_i_direction  TYPE /SAPAPO/FABKL, "   
lv_i_perly  TYPE CHAR1, "   
lv_i_tstreamid  TYPE TSTRID, "   
lv_i_date_exact  TYPE TSTRID. "   

  CALL FUNCTION '/SAPAPO/DM_GET_COLS'  "Get Cols
    EXPORTING
         I_DATE = lv_i_date
         I_CALENDAR = lv_i_calendar
         I_F_FLG_NEW_BUCKETS = lv_i_f_flg_new_buckets
         I_DIRECTION = lv_i_direction
         I_PERLY = lv_i_perly
         I_TSTREAMID = lv_i_tstreamid
         I_DATE_EXACT = lv_i_date_exact
    TABLES
         T_INT_T445Z1 = lt_t_int_t445z1
         T_T_COLS = lt_t_t_cols
. " /SAPAPO/DM_GET_COLS




ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_GET_COLS

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 DATE FROM SCAL INTO @DATA(ld_i_date).
 
 
 
 
 
 
 
 
 


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!