SAP MARC_SAUFT Function Module for NOTRANSL: Prüfung KZ Serienauftrag









MARC_SAUFT is a standard marc sauft 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: Prüfung KZ Serienauftrag 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 marc sauft FM, simply by entering the name MARC_SAUFT into the relevant SAP transaction such as SE37 or SE38.

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



Function MARC_SAUFT 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 'MARC_SAUFT'"NOTRANSL: Prüfung KZ Serienauftrag
EXPORTING
P_SAUFT = "
P_LSAUFT = "
P_NEUFLAG = "
P_FLGMKALVERARB = "
P_RMMG1_MATNR = "
P_RMMG1_WERKS = "
* P_KZ_NO_WARN = ' ' "

EXCEPTIONS
P_ERR_MARC_SAUFT = 1
.



IMPORTING Parameters details for MARC_SAUFT

P_SAUFT -

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

P_LSAUFT -

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

P_NEUFLAG -

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

P_FLGMKALVERARB -

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

P_RMMG1_MATNR -

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

P_RMMG1_WERKS -

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

P_KZ_NO_WARN -

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

EXCEPTIONS details

P_ERR_MARC_SAUFT - Check Error

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

Copy and paste ABAP code example for MARC_SAUFT 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_p_sauft  TYPE MARC-SAUFT, "   
lv_p_err_marc_sauft  TYPE MARC, "   
lv_p_lsauft  TYPE MARC-SAUFT, "   
lv_p_neuflag  TYPE T130F-KZREF, "   
lv_p_flgmkalverarb  TYPE T130F-KZREF, "   
lv_p_rmmg1_matnr  TYPE RMMG1-MATNR, "   
lv_p_rmmg1_werks  TYPE RMMG1-WERKS, "   
lv_p_kz_no_warn  TYPE RMMG08_012-MSGTYP. "   SPACE

  CALL FUNCTION 'MARC_SAUFT'  "NOTRANSL: Prüfung KZ Serienauftrag
    EXPORTING
         P_SAUFT = lv_p_sauft
         P_LSAUFT = lv_p_lsauft
         P_NEUFLAG = lv_p_neuflag
         P_FLGMKALVERARB = lv_p_flgmkalverarb
         P_RMMG1_MATNR = lv_p_rmmg1_matnr
         P_RMMG1_WERKS = lv_p_rmmg1_werks
         P_KZ_NO_WARN = lv_p_kz_no_warn
    EXCEPTIONS
        P_ERR_MARC_SAUFT = 1
. " MARC_SAUFT




ABAP code using 7.40 inline data declarations to call FM MARC_SAUFT

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 SAUFT FROM MARC INTO @DATA(ld_p_sauft).
 
 
"SELECT single SAUFT FROM MARC INTO @DATA(ld_p_lsauft).
 
"SELECT single KZREF FROM T130F INTO @DATA(ld_p_neuflag).
 
"SELECT single KZREF FROM T130F INTO @DATA(ld_p_flgmkalverarb).
 
"SELECT single MATNR FROM RMMG1 INTO @DATA(ld_p_rmmg1_matnr).
 
"SELECT single WERKS FROM RMMG1 INTO @DATA(ld_p_rmmg1_werks).
 
"SELECT single MSGTYP FROM RMMG08_012 INTO @DATA(ld_p_kz_no_warn).
DATA(ld_p_kz_no_warn) = ' '.
 


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!