SAP MASTERIDOC_CREATE_PALMAT Function Module for NOTRANSL: ALE Ausgangsverarbeitung Werkszuordnungen für Materialstückliste









MASTERIDOC_CREATE_PALMAT is a standard masteridoc create palmat 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 Werkszuordnungen für Materialstü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 masteridoc create palmat FM, simply by entering the name MASTERIDOC_CREATE_PALMAT 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 MASTERIDOC_CREATE_PALMAT 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_PALMAT'"NOTRANSL: ALE Ausgangsverarbeitung Werkszuordnungen für Materialstückliste
EXPORTING
* RCVPRN = "Target System
* MESCOD = "Message Variant
* SMD_TOOL = ' ' "
* MESSAGE_TYPE = C_MESTYP_PALMAT "Message Type

IMPORTING
CREATED_COMM_IDOCS = "Number of Generated IDocs

TABLES
PLANT_ALLOCS = "Plant Assignments

EXCEPTIONS
GENERAL_BOM_FAILURE = 1 NO_BOM_FOUND = 2 DIFFERENT_BOMS = 3 GENERAL_ALE_FAILURE = 4 CUSTOMER_ERROR = 5
.



IMPORTING Parameters details for MASTERIDOC_CREATE_PALMAT

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)

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_PALMAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for MASTERIDOC_CREATE_PALMAT

CREATED_COMM_IDOCS - Number of Generated IDocs

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

TABLES Parameters details for MASTERIDOC_CREATE_PALMAT

PLANT_ALLOCS - Plant Assignments

Data type: MAST_APICN
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)

DIFFERENT_BOMS -

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)

CUSTOMER_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for MASTERIDOC_CREATE_PALMAT 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_rcvprn  TYPE BDALEDC-RCVPRN, "   
lt_plant_allocs  TYPE STANDARD TABLE OF MAST_APICN, "   
lv_created_comm_idocs  TYPE SY-TABIX, "   
lv_general_bom_failure  TYPE SY, "   
lv_mescod  TYPE EDIDC-MESCOD, "   
lv_no_bom_found  TYPE EDIDC, "   
lv_smd_tool  TYPE CHAR0001, "   SPACE
lv_different_boms  TYPE CHAR0001, "   
lv_message_type  TYPE TBDME-MESTYP, "   C_MESTYP_PALMAT
lv_general_ale_failure  TYPE TBDME, "   
lv_customer_error  TYPE TBDME. "   

  CALL FUNCTION 'MASTERIDOC_CREATE_PALMAT'  "NOTRANSL: ALE Ausgangsverarbeitung Werkszuordnungen für Materialstückliste
    EXPORTING
         RCVPRN = lv_rcvprn
         MESCOD = lv_mescod
         SMD_TOOL = lv_smd_tool
         MESSAGE_TYPE = lv_message_type
    IMPORTING
         CREATED_COMM_IDOCS = lv_created_comm_idocs
    TABLES
         PLANT_ALLOCS = lt_plant_allocs
    EXCEPTIONS
        GENERAL_BOM_FAILURE = 1
        NO_BOM_FOUND = 2
        DIFFERENT_BOMS = 3
        GENERAL_ALE_FAILURE = 4
        CUSTOMER_ERROR = 5
. " MASTERIDOC_CREATE_PALMAT




ABAP code using 7.40 inline data declarations to call FM MASTERIDOC_CREATE_PALMAT

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 RCVPRN FROM BDALEDC INTO @DATA(ld_rcvprn).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_created_comm_idocs).
 
 
"SELECT single MESCOD FROM EDIDC INTO @DATA(ld_mescod).
 
 
DATA(ld_smd_tool) = ' '.
 
 
"SELECT single MESTYP FROM TBDME INTO @DATA(ld_message_type).
DATA(ld_message_type) = C_MESTYP_PALMAT.
 
 
 


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!