SAP POST_LISTUNG Function Module for NOTRANSL: Sichern Listung in integrierter Artikelpflege









POST_LISTUNG is a standard post listung SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Sichern Listung in integrierter Artikelpflege 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 post listung FM, simply by entering the name POST_LISTUNG into the relevant SAP transaction such as SE37 or SE38.

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



Function POST_LISTUNG 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 'POST_LISTUNG'"NOTRANSL: Sichern Listung in integrierter Artikelpflege
EXPORTING
P_SATNR = "
* P_KZ_NO_WARN = ' ' "
P_MATNR = "
P_MATNR_OLD = "
* P_FLGNUMINT = "
P_AKTYP = "
P_NEUFLAG = "
* SPERRMODUS = ' ' "
* KZRFB = ' ' "
* MAXTZ = 0 "

EXCEPTIONS
ERROR_LST = 1
.



IMPORTING Parameters details for POST_LISTUNG

P_SATNR -

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

P_KZ_NO_WARN -

Data type: RMMG08_012-MSGTYP
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_MATNR -

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

P_MATNR_OLD -

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

P_FLGNUMINT -

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

P_AKTYP -

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

P_NEUFLAG -

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

SPERRMODUS -

Data type: TVGVI-SPERA
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

KZRFB -

Data type: MTCOM-KZRFB
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAXTZ -

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

EXCEPTIONS details

ERROR_LST -

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

Copy and paste ABAP code example for POST_LISTUNG 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_p_satnr  TYPE MARA-MATNR, "   
lv_error_lst  TYPE MARA, "   
lv_p_kz_no_warn  TYPE RMMG08_012-MSGTYP, "   ' '
lv_p_matnr  TYPE MARA-MATNR, "   
lv_p_matnr_old  TYPE MARA-MATNR, "   
lv_p_flgnumint  TYPE SY-DATAR, "   
lv_p_aktyp  TYPE T130M-AKTYP, "   
lv_p_neuflag  TYPE T130F-KZREF, "   
lv_sperrmodus  TYPE TVGVI-SPERA, "   ' '
lv_kzrfb  TYPE MTCOM-KZRFB, "   ' '
lv_maxtz  TYPE MTCOM-MAXTZ. "   0

  CALL FUNCTION 'POST_LISTUNG'  "NOTRANSL: Sichern Listung in integrierter Artikelpflege
    EXPORTING
         P_SATNR = lv_p_satnr
         P_KZ_NO_WARN = lv_p_kz_no_warn
         P_MATNR = lv_p_matnr
         P_MATNR_OLD = lv_p_matnr_old
         P_FLGNUMINT = lv_p_flgnumint
         P_AKTYP = lv_p_aktyp
         P_NEUFLAG = lv_p_neuflag
         SPERRMODUS = lv_sperrmodus
         KZRFB = lv_kzrfb
         MAXTZ = lv_maxtz
    EXCEPTIONS
        ERROR_LST = 1
. " POST_LISTUNG




ABAP code using 7.40 inline data declarations to call FM POST_LISTUNG

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 MATNR FROM MARA INTO @DATA(ld_p_satnr).
 
 
"SELECT single MSGTYP FROM RMMG08_012 INTO @DATA(ld_p_kz_no_warn).
DATA(ld_p_kz_no_warn) = ' '.
 
"SELECT single MATNR FROM MARA INTO @DATA(ld_p_matnr).
 
"SELECT single MATNR FROM MARA INTO @DATA(ld_p_matnr_old).
 
"SELECT single DATAR FROM SY INTO @DATA(ld_p_flgnumint).
 
"SELECT single AKTYP FROM T130M INTO @DATA(ld_p_aktyp).
 
"SELECT single KZREF FROM T130F INTO @DATA(ld_p_neuflag).
 
"SELECT single SPERA FROM TVGVI INTO @DATA(ld_sperrmodus).
DATA(ld_sperrmodus) = ' '.
 
"SELECT single KZRFB FROM MTCOM INTO @DATA(ld_kzrfb).
DATA(ld_kzrfb) = ' '.
 
"SELECT single MAXTZ FROM MTCOM INTO @DATA(ld_maxtz).
 


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!