SAP MASTER_IDOC_CREATE_BOMORD Function Module for NOTRANSL: ALE Ausgangsverarbeitung Kundenauftragstückliste









MASTER_IDOC_CREATE_BOMORD is a standard master idoc create bomord 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: ALE Ausgangsverarbeitung Kundenauftragstückliste 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 master idoc create bomord FM, simply by entering the name MASTER_IDOC_CREATE_BOMORD into the relevant SAP transaction such as SE37 or SE38.

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



Function MASTER_IDOC_CREATE_BOMORD 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 'MASTER_IDOC_CREATE_BOMORD'"NOTRANSL: ALE Ausgangsverarbeitung Kundenauftragstückliste
EXPORTING
VBELN = "Sales Order
* RCVPRN = "Target System
* MESCOD = "Message Variant
* DLOCK_IGNORE = ' ' "Ignore Distribution Lock
* SMD_TOOL = ' ' "
* MESSAGE_TYPE = C_MESTYP_BOMORD "Message Type
VBPOSI = "Sales Order Item
MATNR = "Material
* WERK = "Plant
STLAN = "Usage
* STLAL = "Alternative
* DATUV = SY-DATUM "
* ALE_DATUV = "
* ALE_AENNR = "

IMPORTING
CREATED_COMM_IDOCS = "Number of Generated IDocs

EXCEPTIONS
GENERAL_BOM_FAILURE = 1 NO_BOM_FOUND = 2 GENERAL_ALE_FAILURE = 3 DISTRIBUTION_LOCK = 4 WRONG_EOASL = 5 BOM_CONFIGURABLE = 6 CUSTOMER_ERROR = 7
.



IMPORTING Parameters details for MASTER_IDOC_CREATE_BOMORD

VBELN - Sales Order

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

RCVPRN - Target System

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

MESCOD - Message Variant

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

DLOCK_IGNORE - Ignore Distribution Lock

Data type: MCDOK-DLOCK_IGNORE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SMD_TOOL -

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

MESSAGE_TYPE - Message Type

Data type: TBDME-MESTYP
Default: C_MESTYP_BOMORD
Optional: Yes
Call by Reference: No ( called with pass by value option)

VBPOSI - Sales Order Item

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

MATNR - Material

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

WERK - Plant

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

STLAN - Usage

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

STLAL - Alternative

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

DATUV -

Data type: STKOB-DATUV
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

ALE_DATUV -

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

ALE_AENNR -

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

EXPORTING Parameters details for MASTER_IDOC_CREATE_BOMORD

CREATED_COMM_IDOCS - Number of Generated IDocs

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

EXCEPTIONS details

GENERAL_BOM_FAILURE -

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

NO_BOM_FOUND -

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

GENERAL_ALE_FAILURE -

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

DISTRIBUTION_LOCK -

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

WRONG_EOASL -

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

BOM_CONFIGURABLE -

Data type:
Optional: No
Call by Reference: Yes

CUSTOMER_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for MASTER_IDOC_CREATE_BOMORD 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_vbeln  TYPE KDST-VBELN, "   
lv_created_comm_idocs  TYPE SY-TABIX, "   
lv_general_bom_failure  TYPE SY, "   
lv_rcvprn  TYPE BDALEDC-RCVPRN, "   
lv_mescod  TYPE EDIDC-MESCOD, "   
lv_dlock_ignore  TYPE MCDOK-DLOCK_IGNORE, "   SPACE
lv_smd_tool  TYPE CHAR0001, "   SPACE
lv_message_type  TYPE TBDME-MESTYP, "   C_MESTYP_BOMORD
lv_vbposi  TYPE KDST-VBPOS, "   
lv_no_bom_found  TYPE KDST, "   
lv_matnr  TYPE MAST-MATNR, "   
lv_general_ale_failure  TYPE MAST, "   
lv_werk  TYPE MAST-WERKS, "   
lv_distribution_lock  TYPE MAST, "   
lv_stlan  TYPE MAST-STLAN, "   
lv_wrong_eoasl  TYPE MAST, "   
lv_stlal  TYPE MAST-STLAL, "   
lv_bom_configurable  TYPE MAST, "   
lv_datuv  TYPE STKOB-DATUV, "   SY-DATUM
lv_customer_error  TYPE STKOB, "   
lv_ale_datuv  TYPE STKOB-DATUV, "   
lv_ale_aennr  TYPE AENR-AENNR. "   

  CALL FUNCTION 'MASTER_IDOC_CREATE_BOMORD'  "NOTRANSL: ALE Ausgangsverarbeitung Kundenauftragstückliste
    EXPORTING
         VBELN = lv_vbeln
         RCVPRN = lv_rcvprn
         MESCOD = lv_mescod
         DLOCK_IGNORE = lv_dlock_ignore
         SMD_TOOL = lv_smd_tool
         MESSAGE_TYPE = lv_message_type
         VBPOSI = lv_vbposi
         MATNR = lv_matnr
         WERK = lv_werk
         STLAN = lv_stlan
         STLAL = lv_stlal
         DATUV = lv_datuv
         ALE_DATUV = lv_ale_datuv
         ALE_AENNR = lv_ale_aennr
    IMPORTING
         CREATED_COMM_IDOCS = lv_created_comm_idocs
    EXCEPTIONS
        GENERAL_BOM_FAILURE = 1
        NO_BOM_FOUND = 2
        GENERAL_ALE_FAILURE = 3
        DISTRIBUTION_LOCK = 4
        WRONG_EOASL = 5
        BOM_CONFIGURABLE = 6
        CUSTOMER_ERROR = 7
. " MASTER_IDOC_CREATE_BOMORD




ABAP code using 7.40 inline data declarations to call FM MASTER_IDOC_CREATE_BOMORD

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 VBELN FROM KDST INTO @DATA(ld_vbeln).
 
"SELECT single TABIX FROM SY INTO @DATA(ld_created_comm_idocs).
 
 
"SELECT single RCVPRN FROM BDALEDC INTO @DATA(ld_rcvprn).
 
"SELECT single MESCOD FROM EDIDC INTO @DATA(ld_mescod).
 
"SELECT single DLOCK_IGNORE FROM MCDOK INTO @DATA(ld_dlock_ignore).
DATA(ld_dlock_ignore) = ' '.
 
DATA(ld_smd_tool) = ' '.
 
"SELECT single MESTYP FROM TBDME INTO @DATA(ld_message_type).
DATA(ld_message_type) = C_MESTYP_BOMORD.
 
"SELECT single VBPOS FROM KDST INTO @DATA(ld_vbposi).
 
 
"SELECT single MATNR FROM MAST INTO @DATA(ld_matnr).
 
 
"SELECT single WERKS FROM MAST INTO @DATA(ld_werk).
 
 
"SELECT single STLAN FROM MAST INTO @DATA(ld_stlan).
 
 
"SELECT single STLAL FROM MAST INTO @DATA(ld_stlal).
 
 
"SELECT single DATUV FROM STKOB INTO @DATA(ld_datuv).
DATA(ld_datuv) = SY-DATUM.
 
 
"SELECT single DATUV FROM STKOB INTO @DATA(ld_ale_datuv).
 
"SELECT single AENNR FROM AENR INTO @DATA(ld_ale_aennr).
 


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!