SAP NSDM_MTDCSA_POST Function Module for Material transaction data posting
NSDM_MTDCSA_POST is a standard nsdm mtdcsa post SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Material transaction data posting 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 nsdm mtdcsa post FM, simply by entering the name NSDM_MTDCSA_POST into the relevant SAP transaction such as SE37 or SE38.
Function Group: NSDM_STOCK_POST
Program Name: SAPLNSDM_STOCK_POST
Main Program: SAPLNSDM_STOCK_POST
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 3

Function NSDM_MTDCSA_POST 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 'NSDM_MTDCSA_POST'"Material transaction data posting.
EXPORTING
* IT_MATDOC = "Material transaction data
* IT_MATDOC_EXTRACT = "Material Transaction Data - Extract
* IT_MATDOC_CANCELLED = "Cancelled material doccument items
* IT_DAC_D_MATDOC = "Tabletype of metering Material document Items
* IV_ACCESS_COLD_STORE = "Checkbox
IMPORTING Parameters details for NSDM_MTDCSA_POST
IT_MATDOC - Material transaction data
Data type: NSDM_T_MATDOCOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_MATDOC_EXTRACT - Material Transaction Data - Extract
Data type: NSDM_T_MATDOC_EXTRACTOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_MATDOC_CANCELLED - Cancelled material doccument items
Data type: NSDM_T_CANCELLED_DATAOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_DAC_D_MATDOC - Tabletype of metering Material document Items
Data type: DAC_TT_D_MATDOCOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_ACCESS_COLD_STORE - Checkbox
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for NSDM_MTDCSA_POST 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_it_matdoc | TYPE NSDM_T_MATDOC, " | |||
| lv_it_matdoc_extract | TYPE NSDM_T_MATDOC_EXTRACT, " | |||
| lv_it_matdoc_cancelled | TYPE NSDM_T_CANCELLED_DATA, " | |||
| lv_it_dac_d_matdoc | TYPE DAC_TT_D_MATDOC, " | |||
| lv_iv_access_cold_store | TYPE XFELD. " |
|   CALL FUNCTION 'NSDM_MTDCSA_POST' "Material transaction data posting |
| EXPORTING | ||
| IT_MATDOC | = lv_it_matdoc | |
| IT_MATDOC_EXTRACT | = lv_it_matdoc_extract | |
| IT_MATDOC_CANCELLED | = lv_it_matdoc_cancelled | |
| IT_DAC_D_MATDOC | = lv_it_dac_d_matdoc | |
| IV_ACCESS_COLD_STORE | = lv_iv_access_cold_store | |
| . " NSDM_MTDCSA_POST | ||
ABAP code using 7.40 inline data declarations to call FM NSDM_MTDCSA_POST
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.Search for further information about these or an SAP related objects