SAP ME_SIMULATE_SCHEDULE_DOC Function Module for NOTRANSL: fixieren des auszugebenden Lieferplanabrufs









ME_SIMULATE_SCHEDULE_DOC is a standard me simulate schedule doc 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: fixieren des auszugebenden Lieferplanabrufs 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 me simulate schedule doc FM, simply by entering the name ME_SIMULATE_SCHEDULE_DOC into the relevant SAP transaction such as SE37 or SE38.

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



Function ME_SIMULATE_SCHEDULE_DOC 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 'ME_SIMULATE_SCHEDULE_DOC'"NOTRANSL: fixieren des auszugebenden Lieferplanabrufs
EXPORTING
I_EBELN = "Purchasing Document Number
* I_EBELP = "Item Number of Purchasing Document
* I_EKKO = "Purchasing Document Header
* I_ABART = 1 "Scheduling agreement release type
I_SIMDT = "ABAP System Field: Local Date of Current User
* I_BYPASSING_BUFFER_EKEK = "Generic Type

TABLES
* I_EKET = "Scheduling Agreement Schedule Lines
I_EKEK = "Change Structure for EKEK
I_EKEH = "Change Structure for EKEH
* ERRORS = "Item with Reason for Error
* YEKEK = "Change Document Structure; Generated by RSSCD000
* YEKEH = "Change Structure for EKEH
* I_POT = "Transfer Structure Items for Purchasing Documents

EXCEPTIONS
NO_OUTPUTMESSAGE_FOUND = 1 ERROR_NO_LPHIS = 2 ERROR_NO_FABKZ = 3 ERROR_WITH_CALENDAR = 4
.




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_SAPLEINL_001 Customer Enhancement: SA Releases: Determ. Sched. Line Type (E.g. Backlog)

IMPORTING Parameters details for ME_SIMULATE_SCHEDULE_DOC

I_EBELN - Purchasing Document Number

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

I_EBELP - Item Number of Purchasing Document

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

I_EKKO - Purchasing Document Header

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

I_ABART - Scheduling agreement release type

Data type: EKEK-ABART
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SIMDT - ABAP System Field: Local Date of Current User

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

I_BYPASSING_BUFFER_EKEK - Generic Type

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

TABLES Parameters details for ME_SIMULATE_SCHEDULE_DOC

I_EKET - Scheduling Agreement Schedule Lines

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

I_EKEK - Change Structure for EKEK

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

I_EKEH - Change Structure for EKEH

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

ERRORS - Item with Reason for Error

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

YEKEK - Change Document Structure; Generated by RSSCD000

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

YEKEH - Change Structure for EKEH

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

I_POT - Transfer Structure Items for Purchasing Documents

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

EXCEPTIONS details

NO_OUTPUTMESSAGE_FOUND -

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

ERROR_NO_LPHIS -

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

ERROR_NO_FABKZ -

Data type:
Optional: No
Call by Reference: Yes

ERROR_WITH_CALENDAR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ME_SIMULATE_SCHEDULE_DOC 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_i_eket  TYPE STANDARD TABLE OF EKET, "   
lv_i_ebeln  TYPE EKPO-EBELN, "   
lv_no_outputmessage_found  TYPE EKPO, "   
lt_i_ekek  TYPE STANDARD TABLE OF IEKEK, "   
lv_i_ebelp  TYPE EKPO-EBELP, "   
lv_error_no_lphis  TYPE EKPO, "   
lt_i_ekeh  TYPE STANDARD TABLE OF IEKEH, "   
lv_i_ekko  TYPE EKKO, "   
lv_error_no_fabkz  TYPE EKKO, "   
lt_errors  TYPE STANDARD TABLE OF WUEBS, "   
lv_i_abart  TYPE EKEK-ABART, "   1
lv_error_with_calendar  TYPE EKEK, "   
lt_yekek  TYPE STANDARD TABLE OF UEKEK, "   
lv_i_simdt  TYPE SY-DATLO, "   
lt_yekeh  TYPE STANDARD TABLE OF IEKEH, "   
lv_i_bypassing_buffer_ekek  TYPE C, "   
lt_i_pot  TYPE STANDARD TABLE OF BEKPO. "   

  CALL FUNCTION 'ME_SIMULATE_SCHEDULE_DOC'  "NOTRANSL: fixieren des auszugebenden Lieferplanabrufs
    EXPORTING
         I_EBELN = lv_i_ebeln
         I_EBELP = lv_i_ebelp
         I_EKKO = lv_i_ekko
         I_ABART = lv_i_abart
         I_SIMDT = lv_i_simdt
         I_BYPASSING_BUFFER_EKEK = lv_i_bypassing_buffer_ekek
    TABLES
         I_EKET = lt_i_eket
         I_EKEK = lt_i_ekek
         I_EKEH = lt_i_ekeh
         ERRORS = lt_errors
         YEKEK = lt_yekek
         YEKEH = lt_yekeh
         I_POT = lt_i_pot
    EXCEPTIONS
        NO_OUTPUTMESSAGE_FOUND = 1
        ERROR_NO_LPHIS = 2
        ERROR_NO_FABKZ = 3
        ERROR_WITH_CALENDAR = 4
. " ME_SIMULATE_SCHEDULE_DOC




ABAP code using 7.40 inline data declarations to call FM ME_SIMULATE_SCHEDULE_DOC

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 EBELN FROM EKPO INTO @DATA(ld_i_ebeln).
 
 
 
"SELECT single EBELP FROM EKPO INTO @DATA(ld_i_ebelp).
 
 
 
 
 
 
"SELECT single ABART FROM EKEK INTO @DATA(ld_i_abart).
DATA(ld_i_abart) = 1.
 
 
 
"SELECT single DATLO FROM SY INTO @DATA(ld_i_simdt).
 
 
 
 


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!