Menu

SAP Function Module WB2_MD_CREATE_FROM_PO

Create Material Document from Purchase Order items: MIGO

The Function Module WB2_MD_CREATE_FROM_PO (Create Material Document from Purchase Order items: MIGO) is a standard Function Module in SAP ERP and is part of the function group WB2_BATCH_INPUT within the package WB2B_ACTION.

Technical Information

Function Module WB2_MD_CREATE_FROM_PO
Short Text Create Material Document from Purchase Order items: MIGO
Function Group WB2_BATCH_INPUT
Package WB2B_ACTION
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
CTU TYPE APQI-PUTACTIVE 'X' Queue Putq Active Flag
GOODSMVT_CODE TYPE BAPI2017_GM_CODE '01' MMIM: New Key Assignment GM_CODE to Transaction of Inv. Mgmt
GROUP TYPE APQI-GROUPID Group Name: Name einer Batch-Input-Mappe
HEADER_MD_CONTROL TYPE SAPI_MD_HEADER_CTRL Step API: Material Doc. Header Control
HEADER_MD_DATA TYPE SAPI_MD_HEADER Step API: Material Doc. Header Data
HOLDDATE TYPE APQI-STARTDATE Queue Startdatum
ITEM_MD_CONTROL TYPE SAPI_MD_ITEM_CTRL_TAB Step API: Material Doc. Item Control
ITEM_MD_DATA TYPE SAPI_MD_ITEM_TAB Step API: Material Doc. Item Data
I_MODE TYPE WB2_MODE Mode of the steps of a business process
I_PRE_STEP TYPE WB2_STEP Step of the business process
I_STEP TYPE WB2_STEP Step of the business process
I_TEW_TYPE TYPE WB2_TEW_TYPE Trading Execution Workbench Type
KEEP TYPE APQI-QERASE Queue-Löschkennzeichen fuer verarbeitete Mappen
MODE TYPE APQI-PUTACTIVE 'E' Queue Putq Active Flag
NODATA TYPE APQI-PUTACTIVE ' ' Queue Putq Active Flag
TCODE TYPE SY-TCODE ABAP-Programm, aktueller Transaktionscode
UPDATE TYPE APQI-PUTACTIVE 'L' Queue Putq Active Flag
USER TYPE APQI-USERID Queue Userid / Historisch bedingt

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
E_MBLNR TYPE MBLNR Number of material document
E_MJAHR TYPE MJAHR Material doc. year
SUBRC TYPE SYSUBRC Return value, return value after ABAP statements

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

This function module does not define any TABLE parameters.

Exceptions

This function module does not define any Exceptions.