SAP READ_MDFA_FOR_SO Function Module for NOTRANSL: Selektion von Fertigungsaufträgen zu einer Serienauftragsnummer









READ_MDFA_FOR_SO is a standard read mdfa for so 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: Selektion von Fertigungsaufträgen zu einer Serienauftragsnummer 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 read mdfa for so FM, simply by entering the name READ_MDFA_FOR_SO into the relevant SAP transaction such as SE37 or SE38.

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



Function READ_MDFA_FOR_SO 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 'READ_MDFA_FOR_SO'"NOTRANSL: Selektion von Fertigungsaufträgen zu einer Serienauftragsnummer
EXPORTING
ENDAY = "
STDAY = "

IMPORTING
FA_COUNT = "Number of found production orders

TABLES
* AUFNR_RANGE = "
* MATNR_RANGE = "Selected area: material number
* SAFNR_RANGE = "Selected area: run schedule number
* SEL_FA = "Table of the found production orders
* VERID_RANGE = "Selected area: version
* WERK_RANGE = "Selected area: plant

EXCEPTIONS
DATA_INCOMPLETE = 1
.



IMPORTING Parameters details for READ_MDFA_FOR_SO

ENDAY -

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

STDAY -

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

EXPORTING Parameters details for READ_MDFA_FOR_SO

FA_COUNT - Number of found production orders

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

TABLES Parameters details for READ_MDFA_FOR_SO

AUFNR_RANGE -

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

MATNR_RANGE - Selected area: material number

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

SAFNR_RANGE - Selected area: run schedule number

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

SEL_FA - Table of the found production orders

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

VERID_RANGE - Selected area: version

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

WERK_RANGE - Selected area: plant

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

EXCEPTIONS details

DATA_INCOMPLETE -

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

Copy and paste ABAP code example for READ_MDFA_FOR_SO 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_enday  TYPE MDFA-SEDTR, "   
lv_fa_count  TYPE MDFA, "   
lt_aufnr_range  TYPE STANDARD TABLE OF MDFA, "   
lv_data_incomplete  TYPE MDFA, "   
lv_stday  TYPE MDFA-SEDTR, "   
lt_matnr_range  TYPE STANDARD TABLE OF MDFA, "   
lt_safnr_range  TYPE STANDARD TABLE OF MDFA, "   
lt_sel_fa  TYPE STANDARD TABLE OF MDFA, "   
lt_verid_range  TYPE STANDARD TABLE OF MDFA, "   
lt_werk_range  TYPE STANDARD TABLE OF MDFA. "   

  CALL FUNCTION 'READ_MDFA_FOR_SO'  "NOTRANSL: Selektion von Fertigungsaufträgen zu einer Serienauftragsnummer
    EXPORTING
         ENDAY = lv_enday
         STDAY = lv_stday
    IMPORTING
         FA_COUNT = lv_fa_count
    TABLES
         AUFNR_RANGE = lt_aufnr_range
         MATNR_RANGE = lt_matnr_range
         SAFNR_RANGE = lt_safnr_range
         SEL_FA = lt_sel_fa
         VERID_RANGE = lt_verid_range
         WERK_RANGE = lt_werk_range
    EXCEPTIONS
        DATA_INCOMPLETE = 1
. " READ_MDFA_FOR_SO




ABAP code using 7.40 inline data declarations to call FM READ_MDFA_FOR_SO

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 SEDTR FROM MDFA INTO @DATA(ld_enday).
 
 
 
 
"SELECT single SEDTR FROM MDFA INTO @DATA(ld_stday).
 
 
 
 
 
 


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!