SAP MASTERIDOC_CREATE_ARTMAS Function Module for NOTRANSL: Erzeugen Masteridoc ARTMAS (Retail)









MASTERIDOC_CREATE_ARTMAS is a standard masteridoc create artmas 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: Erzeugen Masteridoc ARTMAS (Retail) 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 masteridoc create artmas FM, simply by entering the name MASTERIDOC_CREATE_ARTMAS into the relevant SAP transaction such as SE37 or SE38.

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



Function MASTERIDOC_CREATE_ARTMAS 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 'MASTERIDOC_CREATE_ARTMAS'"NOTRANSL: Erzeugen Masteridoc ARTMAS (Retail)
EXPORTING
HEAD_MATNR = "Material Number
* DXWB_CALL = ' ' "ABAP System Field: Highlighted Input in Dynpro Field
RCVPFC = "Partner Function of Receiver
RCVPRN = "Partner Number of Receiver
RCVPRT = "Partner Type of Receiver
SNDPFC = "Partner Function of Sender
SNDPRN = "Partner Number of Sender
SNDPRT = "Partner type of sender
MESSAGE_TYPE = "Message Type
* FLAG_TESTMODE = ' ' "ABAP System Field: Highlighted Input in Dynpro Field

IMPORTING
CREATED_COMM_IDOCS = "ABAP System Field: Row Index of Internal Tables

TABLES
VAR_TAB = "Structure: Material - Preliminary Step
MEANKEY = "Transfer structure: MEAN key fields
MLEAKEY = "Transfer Structure: MLEA Key Fields
MALGKEY = "Transfer Structure: MALG Key Fields
MVKEKEY = "Transfer structure: MVKE key fields
WLK2KEY = "Transfer Structure: WLK2 Key Fields
MLANKEY = "Transfer structure: MLAN key fields
MBEWKEY = "Transfer structure: MBEW key fields
MLGNKEY = "Transfer structure: MLGN key fields
MLGTKEY = "Transfer Structure: MLGT Key Fields
STXHKEY = "Transfer structure: STXH key fields
MARAKEY = "Transfer structure: MARA key fields
* MFHMKEY = "Transfer structure: Production resources/tools key fields
* MPGDKEY = "Transfer structure: Product group info key fields
* MPOPKEY = "Transfer structure: Forecast values key fields
* MPRWKEY = "Transfer structure: Forecast values per period, key fields
* MVEGKEY = "Transfer structure: Total consumption
* MVEUKEY = "Transfer structure: Non-planned consumption
* MKALKEY = "Transfer structure: Production versions
AUSPKEY = "Transfer Structure: AUSP Key Fields
MAW1KEY = "Transfer Structure: MAW1 Key Fields
MAKTKEY = "Transfer structure: MAKT key fields
MARCKEY = "Transfer structure: MARC key fields
MARDKEY = "Transfer structure: MARD key fields
MARMKEY = "Transfer structure: MARM key fields
MAMTKEY = "Transfer Structure: MAMT Key Fields
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLMV01_001 No Longer Used as of Rel. 3.0B
EXIT_SAPLMV01_002 Enhancements in Material Master: IDoc - Create
EXIT_SAPLMV01_003 Enhancements in Material Master: IDoc - Create (Retail)

IMPORTING Parameters details for MASTERIDOC_CREATE_ARTMAS

HEAD_MATNR - Material Number

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

DXWB_CALL - ABAP System Field: Highlighted Input in Dynpro Field

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

RCVPFC - Partner Function of Receiver

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

RCVPRN - Partner Number of Receiver

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

RCVPRT - Partner Type of Receiver

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

SNDPFC - Partner Function of Sender

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

SNDPRN - Partner Number of Sender

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

SNDPRT - Partner type of sender

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

MESSAGE_TYPE - Message Type

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

FLAG_TESTMODE - ABAP System Field: Highlighted Input in Dynpro Field

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

EXPORTING Parameters details for MASTERIDOC_CREATE_ARTMAS

CREATED_COMM_IDOCS - ABAP System Field: Row Index of Internal Tables

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

TABLES Parameters details for MASTERIDOC_CREATE_ARTMAS

VAR_TAB - Structure: Material - Preliminary Step

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

MEANKEY - Transfer structure: MEAN key fields

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

MLEAKEY - Transfer Structure: MLEA Key Fields

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

MALGKEY - Transfer Structure: MALG Key Fields

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

MVKEKEY - Transfer structure: MVKE key fields

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

WLK2KEY - Transfer Structure: WLK2 Key Fields

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

MLANKEY - Transfer structure: MLAN key fields

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

MBEWKEY - Transfer structure: MBEW key fields

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

MLGNKEY - Transfer structure: MLGN key fields

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

MLGTKEY - Transfer Structure: MLGT Key Fields

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

STXHKEY - Transfer structure: STXH key fields

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

MARAKEY - Transfer structure: MARA key fields

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

MFHMKEY - Transfer structure: Production resources/tools key fields

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

MPGDKEY - Transfer structure: Product group info key fields

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

MPOPKEY - Transfer structure: Forecast values key fields

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

MPRWKEY - Transfer structure: Forecast values per period, key fields

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

MVEGKEY - Transfer structure: Total consumption

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

MVEUKEY - Transfer structure: Non-planned consumption

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

MKALKEY - Transfer structure: Production versions

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

AUSPKEY - Transfer Structure: AUSP Key Fields

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

MAW1KEY - Transfer Structure: MAW1 Key Fields

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

MAKTKEY - Transfer structure: MAKT key fields

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

MARCKEY - Transfer structure: MARC key fields

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

MARDKEY - Transfer structure: MARD key fields

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

MARMKEY - Transfer structure: MARM key fields

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

MAMTKEY - Transfer Structure: MAMT Key Fields

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

Copy and paste ABAP code example for MASTERIDOC_CREATE_ARTMAS 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:
lt_var_tab  TYPE STANDARD TABLE OF PRE03, "   
lv_head_matnr  TYPE PRE03-MATNR, "   
lv_created_comm_idocs  TYPE SY-TABIX, "   
lt_meankey  TYPE STANDARD TABLE OF BDIMEANKEY, "   
lv_dxwb_call  TYPE SY-DATAR, "   ' '
lt_mleakey  TYPE STANDARD TABLE OF BDIMLEAKEY, "   
lt_malgkey  TYPE STANDARD TABLE OF BDIMALGKEY, "   
lt_mvkekey  TYPE STANDARD TABLE OF BDIMVKEKEY, "   
lt_wlk2key  TYPE STANDARD TABLE OF BDIWLK2KEY, "   
lt_mlankey  TYPE STANDARD TABLE OF BDIMLANKEY, "   
lt_mbewkey  TYPE STANDARD TABLE OF BDIMBEWKEY, "   
lt_mlgnkey  TYPE STANDARD TABLE OF BDIMLGNKEY, "   
lt_mlgtkey  TYPE STANDARD TABLE OF BDIMLGTKEY, "   
lt_stxhkey  TYPE STANDARD TABLE OF BDISTXHKEY, "   
lv_rcvpfc  TYPE BDALEDC-RCVPFC, "   
lt_marakey  TYPE STANDARD TABLE OF BDIMARAKEY, "   
lt_mfhmkey  TYPE STANDARD TABLE OF BDIMFHMKEY, "   
lt_mpgdkey  TYPE STANDARD TABLE OF BDIMPGDKEY, "   
lt_mpopkey  TYPE STANDARD TABLE OF BDIMPOPKEY, "   
lt_mprwkey  TYPE STANDARD TABLE OF BDIMPRWKEY, "   
lt_mvegkey  TYPE STANDARD TABLE OF BDIMVEGKEY, "   
lt_mveukey  TYPE STANDARD TABLE OF BDIMVEUKEY, "   
lt_mkalkey  TYPE STANDARD TABLE OF BDIMKALKEY, "   
lv_rcvprn  TYPE BDALEDC-RCVPRN, "   
lt_auspkey  TYPE STANDARD TABLE OF BDIAUSPKEY, "   
lv_rcvprt  TYPE BDALEDC-RCVPRT, "   
lt_maw1key  TYPE STANDARD TABLE OF BDIMAW1KEY, "   
lv_sndpfc  TYPE BDALEDC-SNDPFC, "   
lt_maktkey  TYPE STANDARD TABLE OF BDIMAKTKEY, "   
lv_sndprn  TYPE BDALEDC-SNDPRN, "   
lt_marckey  TYPE STANDARD TABLE OF BDIMARCKEY, "   
lv_sndprt  TYPE BDALEDC-SNDPRT, "   
lt_mardkey  TYPE STANDARD TABLE OF BDIMARDKEY, "   
lt_marmkey  TYPE STANDARD TABLE OF BDIMARMKEY, "   
lv_message_type  TYPE TBDME-MESTYP, "   
lt_mamtkey  TYPE STANDARD TABLE OF BDIMAMTKEY, "   
lv_flag_testmode  TYPE SY-DATAR. "   ' '

  CALL FUNCTION 'MASTERIDOC_CREATE_ARTMAS'  "NOTRANSL: Erzeugen Masteridoc ARTMAS (Retail)
    EXPORTING
         HEAD_MATNR = lv_head_matnr
         DXWB_CALL = lv_dxwb_call
         RCVPFC = lv_rcvpfc
         RCVPRN = lv_rcvprn
         RCVPRT = lv_rcvprt
         SNDPFC = lv_sndpfc
         SNDPRN = lv_sndprn
         SNDPRT = lv_sndprt
         MESSAGE_TYPE = lv_message_type
         FLAG_TESTMODE = lv_flag_testmode
    IMPORTING
         CREATED_COMM_IDOCS = lv_created_comm_idocs
    TABLES
         VAR_TAB = lt_var_tab
         MEANKEY = lt_meankey
         MLEAKEY = lt_mleakey
         MALGKEY = lt_malgkey
         MVKEKEY = lt_mvkekey
         WLK2KEY = lt_wlk2key
         MLANKEY = lt_mlankey
         MBEWKEY = lt_mbewkey
         MLGNKEY = lt_mlgnkey
         MLGTKEY = lt_mlgtkey
         STXHKEY = lt_stxhkey
         MARAKEY = lt_marakey
         MFHMKEY = lt_mfhmkey
         MPGDKEY = lt_mpgdkey
         MPOPKEY = lt_mpopkey
         MPRWKEY = lt_mprwkey
         MVEGKEY = lt_mvegkey
         MVEUKEY = lt_mveukey
         MKALKEY = lt_mkalkey
         AUSPKEY = lt_auspkey
         MAW1KEY = lt_maw1key
         MAKTKEY = lt_maktkey
         MARCKEY = lt_marckey
         MARDKEY = lt_mardkey
         MARMKEY = lt_marmkey
         MAMTKEY = lt_mamtkey
. " MASTERIDOC_CREATE_ARTMAS




ABAP code using 7.40 inline data declarations to call FM MASTERIDOC_CREATE_ARTMAS

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 PRE03 INTO @DATA(ld_head_matnr).
 
"SELECT single TABIX FROM SY INTO @DATA(ld_created_comm_idocs).
 
 
"SELECT single DATAR FROM SY INTO @DATA(ld_dxwb_call).
DATA(ld_dxwb_call) = ' '.
 
 
 
 
 
 
 
 
 
 
"SELECT single RCVPFC FROM BDALEDC INTO @DATA(ld_rcvpfc).
 
 
 
 
 
 
 
 
 
"SELECT single RCVPRN FROM BDALEDC INTO @DATA(ld_rcvprn).
 
 
"SELECT single RCVPRT FROM BDALEDC INTO @DATA(ld_rcvprt).
 
 
"SELECT single SNDPFC FROM BDALEDC INTO @DATA(ld_sndpfc).
 
 
"SELECT single SNDPRN FROM BDALEDC INTO @DATA(ld_sndprn).
 
 
"SELECT single SNDPRT FROM BDALEDC INTO @DATA(ld_sndprt).
 
 
 
"SELECT single MESTYP FROM TBDME INTO @DATA(ld_message_type).
 
 
"SELECT single DATAR FROM SY INTO @DATA(ld_flag_testmode).
DATA(ld_flag_testmode) = ' '.
 


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!