SAP CBGL_TG01_TRIGGER_PP Function Module for NOTRANSL: EHS: Druckauftrag aus PP Auftrag erstellen









CBGL_TG01_TRIGGER_PP is a standard cbgl tg01 trigger pp 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: EHS: Druckauftrag aus PP Auftrag erstellen 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 cbgl tg01 trigger pp FM, simply by entering the name CBGL_TG01_TRIGGER_PP into the relevant SAP transaction such as SE37 or SE38.

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



Function CBGL_TG01_TRIGGER_PP 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 'CBGL_TG01_TRIGGER_PP'"NOTRANSL: EHS: Druckauftrag aus PP Auftrag erstellen
EXPORTING
IT_HEADER = "EHS: Order Headers
IT_COMPONENT = "Order Components
IT_COMPONENT_OLD = "EHS: Reservation/Dependent Requirement - Old
IT_RELATION = "EHS: Network - Relationships
IT_RELATION_OLD = "EHS: Network - Relationships - Old
IT_PSTEXT = "EHS: PS Texts (Network)
IT_PSTEXT_OLD = "EHS: PS Texts (Network) - Old
IT_MILESTONE = "EHS: Milestone
IT_MILESTONE_OLD = "EHS: Milestone - Old
IT_PLANNED_ORDER = "EHS: Planned Order
IT_STATUS = "EHS: Status
IT_HEADER_OLD = "EHS: Order Headers
IT_STATUS_OLD = "EHS: Status
IT_OPERATION_RELATIONS = "EHS: Operation Predecessor
IT_OPERATION_RELATIONS_OLD = "EHS: Operation Predecessor
IT_OPERATION_RELATIONS_OLD_AFV = "EHS: Operation User-Fields - Old
IT_DOCLINK = "EHS: Document Link
IT_DOCLINK_OLD = "EHS: Document Link
IT_POSITION = "Order Items
IT_POSITION_OLD = "EHS: Order Items - Old
IT_SEQUENCE = "EHS: Plant Order Sequences
IT_SEQUENCE_OLD = "EHS: Plant Order Sequence - Old
IT_OPERATION = "Order Operations
IT_OPERATION_OLD_AFVC = "EHS: General Operation Data - Old
IT_OPERATION_OLD_AFVV = "EHS: Operation Quantities/Dates/Values - Old

IMPORTING
EV_FLG_ERROR = "Flag (X or Blank)
EV_FLG_WARNING = "Flag (X or Blank)
ET_MESSAGES = "Application Log: Table with Messages
.



IMPORTING Parameters details for CBGL_TG01_TRIGGER_PP

IT_HEADER - EHS: Order Headers

Data type: CCGLD_CAUFVDB
Optional: No
Call by Reference: Yes

IT_COMPONENT - Order Components

Data type: CCGLD_RESBB
Optional: No
Call by Reference: Yes

IT_COMPONENT_OLD - EHS: Reservation/Dependent Requirement - Old

Data type: CCGLD_ARESB
Optional: No
Call by Reference: Yes

IT_RELATION - EHS: Network - Relationships

Data type: CCGLD_AFABB
Optional: No
Call by Reference: Yes

IT_RELATION_OLD - EHS: Network - Relationships - Old

Data type: CCGLD_AAFAB
Optional: No
Call by Reference: Yes

IT_PSTEXT - EHS: PS Texts (Network)

Data type: CCGLD_NPTXB
Optional: No
Call by Reference: Yes

IT_PSTEXT_OLD - EHS: PS Texts (Network) - Old

Data type: CCGLD_ANPTX
Optional: No
Call by Reference: Yes

IT_MILESTONE - EHS: Milestone

Data type: CCGLD_MLSTB
Optional: No
Call by Reference: Yes

IT_MILESTONE_OLD - EHS: Milestone - Old

Data type: CCGLD_AMLST
Optional: No
Call by Reference: Yes

IT_PLANNED_ORDER - EHS: Planned Order

Data type: CCGLD_PLAF
Optional: No
Call by Reference: Yes

IT_STATUS - EHS: Status

Data type: CCGLD_JEST
Optional: No
Call by Reference: Yes

IT_HEADER_OLD - EHS: Order Headers

Data type: CCGLD_CAUFVDB
Optional: No
Call by Reference: Yes

IT_STATUS_OLD - EHS: Status

Data type: CCGLD_JEST
Optional: No
Call by Reference: Yes

IT_OPERATION_RELATIONS - EHS: Operation Predecessor

Data type: CCGLD_PRE_DEC
Optional: No
Call by Reference: Yes

IT_OPERATION_RELATIONS_OLD - EHS: Operation Predecessor

Data type: CCGLD_PRE_DEC
Optional: No
Call by Reference: Yes

IT_OPERATION_RELATIONS_OLD_AFV - EHS: Operation User-Fields - Old

Data type: CCGLD_AAFVU
Optional: No
Call by Reference: Yes

IT_DOCLINK - EHS: Document Link

Data type: CCGLD_AFDLD
Optional: No
Call by Reference: Yes

IT_DOCLINK_OLD - EHS: Document Link

Data type: CCGLD_AFDLD
Optional: No
Call by Reference: Yes

IT_POSITION - Order Items

Data type: CCGLD_AFPOB
Optional: No
Call by Reference: Yes

IT_POSITION_OLD - EHS: Order Items - Old

Data type: CCGLD_AAFPO
Optional: No
Call by Reference: Yes

IT_SEQUENCE - EHS: Plant Order Sequences

Data type: CCGLD_AFFLB
Optional: No
Call by Reference: Yes

IT_SEQUENCE_OLD - EHS: Plant Order Sequence - Old

Data type: CCGLD_AAFFL
Optional: No
Call by Reference: Yes

IT_OPERATION - Order Operations

Data type: CCGLD_AFVGB
Optional: No
Call by Reference: Yes

IT_OPERATION_OLD_AFVC - EHS: General Operation Data - Old

Data type: CCGLD_AAFVC
Optional: No
Call by Reference: Yes

IT_OPERATION_OLD_AFVV - EHS: Operation Quantities/Dates/Values - Old

Data type: CCGLD_AAFVV
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for CBGL_TG01_TRIGGER_PP

EV_FLG_ERROR - Flag (X or Blank)

Data type: AS4FLAG
Optional: No
Call by Reference: Yes

EV_FLG_WARNING - Flag (X or Blank)

Data type: AS4FLAG
Optional: No
Call by Reference: Yes

ET_MESSAGES - Application Log: Table with Messages

Data type: BAL_T_MSG
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CBGL_TG01_TRIGGER_PP 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_header  TYPE CCGLD_CAUFVDB, "   
lv_ev_flg_error  TYPE AS4FLAG, "   
lv_it_component  TYPE CCGLD_RESBB, "   
lv_it_component_old  TYPE CCGLD_ARESB, "   
lv_it_relation  TYPE CCGLD_AFABB, "   
lv_it_relation_old  TYPE CCGLD_AAFAB, "   
lv_it_pstext  TYPE CCGLD_NPTXB, "   
lv_it_pstext_old  TYPE CCGLD_ANPTX, "   
lv_it_milestone  TYPE CCGLD_MLSTB, "   
lv_it_milestone_old  TYPE CCGLD_AMLST, "   
lv_it_planned_order  TYPE CCGLD_PLAF, "   
lv_it_status  TYPE CCGLD_JEST, "   
lv_it_header_old  TYPE CCGLD_CAUFVDB, "   
lv_ev_flg_warning  TYPE AS4FLAG, "   
lv_it_status_old  TYPE CCGLD_JEST, "   
lv_it_operation_relations  TYPE CCGLD_PRE_DEC, "   
lv_it_operation_relations_old  TYPE CCGLD_PRE_DEC, "   
lv_it_operation_relations_old_afv  TYPE CCGLD_AAFVU, "   
lv_it_doclink  TYPE CCGLD_AFDLD, "   
lv_it_doclink_old  TYPE CCGLD_AFDLD, "   
lv_et_messages  TYPE BAL_T_MSG, "   
lv_it_position  TYPE CCGLD_AFPOB, "   
lv_it_position_old  TYPE CCGLD_AAFPO, "   
lv_it_sequence  TYPE CCGLD_AFFLB, "   
lv_it_sequence_old  TYPE CCGLD_AAFFL, "   
lv_it_operation  TYPE CCGLD_AFVGB, "   
lv_it_operation_old_afvc  TYPE CCGLD_AAFVC, "   
lv_it_operation_old_afvv  TYPE CCGLD_AAFVV. "   

  CALL FUNCTION 'CBGL_TG01_TRIGGER_PP'  "NOTRANSL: EHS: Druckauftrag aus PP Auftrag erstellen
    EXPORTING
         IT_HEADER = lv_it_header
         IT_COMPONENT = lv_it_component
         IT_COMPONENT_OLD = lv_it_component_old
         IT_RELATION = lv_it_relation
         IT_RELATION_OLD = lv_it_relation_old
         IT_PSTEXT = lv_it_pstext
         IT_PSTEXT_OLD = lv_it_pstext_old
         IT_MILESTONE = lv_it_milestone
         IT_MILESTONE_OLD = lv_it_milestone_old
         IT_PLANNED_ORDER = lv_it_planned_order
         IT_STATUS = lv_it_status
         IT_HEADER_OLD = lv_it_header_old
         IT_STATUS_OLD = lv_it_status_old
         IT_OPERATION_RELATIONS = lv_it_operation_relations
         IT_OPERATION_RELATIONS_OLD = lv_it_operation_relations_old
         IT_OPERATION_RELATIONS_OLD_AFV = lv_it_operation_relations_old_afv
         IT_DOCLINK = lv_it_doclink
         IT_DOCLINK_OLD = lv_it_doclink_old
         IT_POSITION = lv_it_position
         IT_POSITION_OLD = lv_it_position_old
         IT_SEQUENCE = lv_it_sequence
         IT_SEQUENCE_OLD = lv_it_sequence_old
         IT_OPERATION = lv_it_operation
         IT_OPERATION_OLD_AFVC = lv_it_operation_old_afvc
         IT_OPERATION_OLD_AFVV = lv_it_operation_old_afvv
    IMPORTING
         EV_FLG_ERROR = lv_ev_flg_error
         EV_FLG_WARNING = lv_ev_flg_warning
         ET_MESSAGES = lv_et_messages
. " CBGL_TG01_TRIGGER_PP




ABAP code using 7.40 inline data declarations to call FM CBGL_TG01_TRIGGER_PP

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!