SAP /SAPAPO/CTM_PPM_BUFFER_WRITE Function Module for CTM: Write PPMs to Buffer









/SAPAPO/CTM_PPM_BUFFER_WRITE is a standard /sapapo/ctm ppm buffer write SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CTM: Write PPMs to Buffer 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 /sapapo/ctm ppm buffer write FM, simply by entering the name /SAPAPO/CTM_PPM_BUFFER_WRITE into the relevant SAP transaction such as SE37 or SE38.

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



Function /SAPAPO/CTM_PPM_BUFFER_WRITE 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 '/SAPAPO/CTM_PPM_BUFFER_WRITE'"CTM: Write PPMs to Buffer
EXPORTING
IT_PRODVER = "CTM: Zuordnung Material<-->Plan im PPM
IT_COMPALTLOC = "CTM: Alternativkomponenten mit Lokation
IT_MODE = "CTM: Modus im PPM
IT_REQCAP = "CTM: Ressourcen im PPM
IT_TDPP = "Zeitabhängige Prozessparameter
IT_PPMIDPULL = "Tabelle mit PPM-Guids
IT_PLAN = "CTM: Plan im PPM
IT_PLANOPR = "CTM: Vorgänge im PPM
* IT_PLANOPRT = "CTM-Struktur für Vorgangstexte
IT_PLANACT = "CTM: Planaktivitäten im PPM
* IT_MAP_ACTID = "Mapping zwischen Auftragsaktivitäts ID und Stammdaten ID
IT_ACTREL = "CTM: Aktivitätsbeziehungen im PPM
IT_COMP = "CTM: Komponenten im PPM
IT_COMPALT = "CTM: MaterialKomponenten mit Zeit-Effectivity im PPM
.



IMPORTING Parameters details for /SAPAPO/CTM_PPM_BUFFER_WRITE

IT_PRODVER - CTM: Zuordnung Material<-->Plan im PPM

Data type: /SAPAPO/CTM_PPM_PRODVER_TAB
Optional: No
Call by Reference: Yes

IT_COMPALTLOC - CTM: Alternativkomponenten mit Lokation

Data type: /SAPAPO/CTM_COMPALTLOC_TAB
Optional: No
Call by Reference: Yes

IT_MODE - CTM: Modus im PPM

Data type: /SAPAPO/CTM_PPM_MODE_TAB
Optional: No
Call by Reference: Yes

IT_REQCAP - CTM: Ressourcen im PPM

Data type: /SAPAPO/CTM_PPM_REQCAP_TAB
Optional: No
Call by Reference: Yes

IT_TDPP - Zeitabhängige Prozessparameter

Data type: /SAPAPO/CTM_PPM_TDPP_TAB
Optional: No
Call by Reference: Yes

IT_PPMIDPULL - Tabelle mit PPM-Guids

Data type: /SAPAPO/OM_PPM_ID_TAB
Optional: No
Call by Reference: Yes

IT_PLAN - CTM: Plan im PPM

Data type: /SAPAPO/CTM_PPM_PLAN_TAB
Optional: No
Call by Reference: Yes

IT_PLANOPR - CTM: Vorgänge im PPM

Data type: /SAPAPO/CTM_PPM_PLANOPR_TAB
Optional: No
Call by Reference: Yes

IT_PLANOPRT - CTM-Struktur für Vorgangstexte

Data type: /SAPAPO/CTM_SOS_PLANOPRT_TAB
Optional: Yes
Call by Reference: Yes

IT_PLANACT - CTM: Planaktivitäten im PPM

Data type: /SAPAPO/CTM_PPM_PLANACT_TAB
Optional: No
Call by Reference: Yes

IT_MAP_ACTID - Mapping zwischen Auftragsaktivitäts ID und Stammdaten ID

Data type: /SAPAPO/CULL_SNPRTO_ACTMAP_T
Optional: Yes
Call by Reference: Yes

IT_ACTREL - CTM: Aktivitätsbeziehungen im PPM

Data type: /SAPAPO/CTM_PPM_ACTREL_TAB
Optional: No
Call by Reference: Yes

IT_COMP - CTM: Komponenten im PPM

Data type: /SAPAPO/CTM_PPM_COMP_TAB
Optional: No
Call by Reference: Yes

IT_COMPALT - CTM: MaterialKomponenten mit Zeit-Effectivity im PPM

Data type: /SAPAPO/CTM_PPM_COMPALT_TAB
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for /SAPAPO/CTM_PPM_BUFFER_WRITE 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_it_prodver  TYPE /SAPAPO/CTM_PPM_PRODVER_TAB, "   
lv_it_compaltloc  TYPE /SAPAPO/CTM_COMPALTLOC_TAB, "   
lv_it_mode  TYPE /SAPAPO/CTM_PPM_MODE_TAB, "   
lv_it_reqcap  TYPE /SAPAPO/CTM_PPM_REQCAP_TAB, "   
lv_it_tdpp  TYPE /SAPAPO/CTM_PPM_TDPP_TAB, "   
lv_it_ppmidpull  TYPE /SAPAPO/OM_PPM_ID_TAB, "   
lv_it_plan  TYPE /SAPAPO/CTM_PPM_PLAN_TAB, "   
lv_it_planopr  TYPE /SAPAPO/CTM_PPM_PLANOPR_TAB, "   
lv_it_planoprt  TYPE /SAPAPO/CTM_SOS_PLANOPRT_TAB, "   
lv_it_planact  TYPE /SAPAPO/CTM_PPM_PLANACT_TAB, "   
lv_it_map_actid  TYPE /SAPAPO/CULL_SNPRTO_ACTMAP_T, "   
lv_it_actrel  TYPE /SAPAPO/CTM_PPM_ACTREL_TAB, "   
lv_it_comp  TYPE /SAPAPO/CTM_PPM_COMP_TAB, "   
lv_it_compalt  TYPE /SAPAPO/CTM_PPM_COMPALT_TAB. "   

  CALL FUNCTION '/SAPAPO/CTM_PPM_BUFFER_WRITE'  "CTM: Write PPMs to Buffer
    EXPORTING
         IT_PRODVER = lv_it_prodver
         IT_COMPALTLOC = lv_it_compaltloc
         IT_MODE = lv_it_mode
         IT_REQCAP = lv_it_reqcap
         IT_TDPP = lv_it_tdpp
         IT_PPMIDPULL = lv_it_ppmidpull
         IT_PLAN = lv_it_plan
         IT_PLANOPR = lv_it_planopr
         IT_PLANOPRT = lv_it_planoprt
         IT_PLANACT = lv_it_planact
         IT_MAP_ACTID = lv_it_map_actid
         IT_ACTREL = lv_it_actrel
         IT_COMP = lv_it_comp
         IT_COMPALT = lv_it_compalt
. " /SAPAPO/CTM_PPM_BUFFER_WRITE




ABAP code using 7.40 inline data declarations to call FM /SAPAPO/CTM_PPM_BUFFER_WRITE

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!