SAP MATERIAL_POST_OTHER_DATA Function Module for Post Integrated Material Data









MATERIAL_POST_OTHER_DATA is a standard material post other data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Post Integrated Material Data 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 material post other data FM, simply by entering the name MATERIAL_POST_OTHER_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function MATERIAL_POST_OTHER_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 'MATERIAL_POST_OTHER_DATA'"Post Integrated Material Data
EXPORTING
P_FLG_RETAIL = "
* P_POST_AFTER_MATERIAL = ' ' "

TABLES
* TI_MARA_INS = "
* TI_MBEW_INS = "Material Valuation
* TI_MBEW_UPD = "Material Valuation
* TI_OMBEW = "Material Valuation
* TI_MARA_UPD = "
* TI_OMARA = "
* TI_MARC_INS = "
* TI_MARC_UPD = "
* TI_OMARC = "
* TI_MPOP_INS = "
* TI_MPOP_UPD = "
* TI_OMPOP = "

EXCEPTIONS
POST_ERROR = 1
.



IMPORTING Parameters details for MATERIAL_POST_OTHER_DATA

P_FLG_RETAIL -

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

P_POST_AFTER_MATERIAL -

Data type: T130F-KZREF
Default: SPACE
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for MATERIAL_POST_OTHER_DATA

TI_MARA_INS -

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

TI_MBEW_INS - Material Valuation

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

TI_MBEW_UPD - Material Valuation

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

TI_OMBEW - Material Valuation

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

TI_MARA_UPD -

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

TI_OMARA -

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

TI_MARC_INS -

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

TI_MARC_UPD -

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

TI_OMARC -

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

TI_MPOP_INS -

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

TI_MPOP_UPD -

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

TI_OMPOP -

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

EXCEPTIONS details

POST_ERROR -

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

Copy and paste ABAP code example for MATERIAL_POST_OTHER_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_post_error  TYPE STRING, "   
lt_ti_mara_ins  TYPE STANDARD TABLE OF MARA, "   
lv_p_flg_retail  TYPE T130F-KZREF, "   
lt_ti_mbew_ins  TYPE STANDARD TABLE OF MBEW, "   
lt_ti_mbew_upd  TYPE STANDARD TABLE OF MBEW, "   
lt_ti_ombew  TYPE STANDARD TABLE OF MBEW, "   
lt_ti_mara_upd  TYPE STANDARD TABLE OF MARA, "   
lv_p_post_after_material  TYPE T130F-KZREF, "   SPACE
lt_ti_omara  TYPE STANDARD TABLE OF MARA, "   
lt_ti_marc_ins  TYPE STANDARD TABLE OF MARC, "   
lt_ti_marc_upd  TYPE STANDARD TABLE OF MARC, "   
lt_ti_omarc  TYPE STANDARD TABLE OF MARC, "   
lt_ti_mpop_ins  TYPE STANDARD TABLE OF MPOP, "   
lt_ti_mpop_upd  TYPE STANDARD TABLE OF MPOP, "   
lt_ti_ompop  TYPE STANDARD TABLE OF MPOP. "   

  CALL FUNCTION 'MATERIAL_POST_OTHER_DATA'  "Post Integrated Material Data
    EXPORTING
         P_FLG_RETAIL = lv_p_flg_retail
         P_POST_AFTER_MATERIAL = lv_p_post_after_material
    TABLES
         TI_MARA_INS = lt_ti_mara_ins
         TI_MBEW_INS = lt_ti_mbew_ins
         TI_MBEW_UPD = lt_ti_mbew_upd
         TI_OMBEW = lt_ti_ombew
         TI_MARA_UPD = lt_ti_mara_upd
         TI_OMARA = lt_ti_omara
         TI_MARC_INS = lt_ti_marc_ins
         TI_MARC_UPD = lt_ti_marc_upd
         TI_OMARC = lt_ti_omarc
         TI_MPOP_INS = lt_ti_mpop_ins
         TI_MPOP_UPD = lt_ti_mpop_upd
         TI_OMPOP = lt_ti_ompop
    EXCEPTIONS
        POST_ERROR = 1
. " MATERIAL_POST_OTHER_DATA




ABAP code using 7.40 inline data declarations to call FM MATERIAL_POST_OTHER_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 KZREF FROM T130F INTO @DATA(ld_p_flg_retail).
 
 
 
 
 
"SELECT single KZREF FROM T130F INTO @DATA(ld_p_post_after_material).
DATA(ld_p_post_after_material) = ' '.
 
 
 
 
 
 
 
 


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!