SAP CP_MA_SCHEDULING_UPDATE Function Module for Scheduling update task list -> material master









CP_MA_SCHEDULING_UPDATE is a standard cp ma scheduling update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Scheduling update task list -> material master 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 cp ma scheduling update FM, simply by entering the name CP_MA_SCHEDULING_UPDATE into the relevant SAP transaction such as SE37 or SE38.

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



Function CP_MA_SCHEDULING_UPDATE 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 'CP_MA_SCHEDULING_UPDATE'"Scheduling update task list -> material master
EXPORTING
* FLG_PLSR_DEL = 'X' "Delete PLSR record in DB
* FLG_AUSSS = '' "

TABLES
PLSR_IMP = "Future change records
.



IMPORTING Parameters details for CP_MA_SCHEDULING_UPDATE

FLG_PLSR_DEL - Delete PLSR record in DB

Data type: TCA11-FLG_ALT
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_AUSSS -

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

TABLES Parameters details for CP_MA_SCHEDULING_UPDATE

PLSR_IMP - Future change records

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

Copy and paste ABAP code example for CP_MA_SCHEDULING_UPDATE 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_plsr_imp  TYPE STANDARD TABLE OF PLSR, "   
lv_flg_plsr_del  TYPE TCA11-FLG_ALT, "   'X'
lv_flg_ausss  TYPE RC27C-FLG_AUSSS. "   ''

  CALL FUNCTION 'CP_MA_SCHEDULING_UPDATE'  "Scheduling update task list -> material master
    EXPORTING
         FLG_PLSR_DEL = lv_flg_plsr_del
         FLG_AUSSS = lv_flg_ausss
    TABLES
         PLSR_IMP = lt_plsr_imp
. " CP_MA_SCHEDULING_UPDATE




ABAP code using 7.40 inline data declarations to call FM CP_MA_SCHEDULING_UPDATE

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 FLG_ALT FROM TCA11 INTO @DATA(ld_flg_plsr_del).
DATA(ld_flg_plsr_del) = 'X'.
 
"SELECT single FLG_AUSSS FROM RC27C INTO @DATA(ld_flg_ausss).
DATA(ld_flg_ausss) = ''.
 


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!