SAP CBGL_PRAPI_PRTREQBODY_PROCESS Function Module for NOTRANSL: EHS: Aufruf PRINTREQUESTBODY_PROCESS









CBGL_PRAPI_PRTREQBODY_PROCESS is a standard cbgl prapi prtreqbody process 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: Aufruf PRINTREQUESTBODY_PROCESS 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 prapi prtreqbody process FM, simply by entering the name CBGL_PRAPI_PRTREQBODY_PROCESS into the relevant SAP transaction such as SE37 or SE38.

Function Group: CBGL_PRINT_REQUEST_API
Program Name: SAPLCBGL_PRINT_REQUEST_API
Main Program: SAPLCBGL_PRINT_REQUEST_API
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CBGL_PRAPI_PRTREQBODY_PROCESS 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_PRAPI_PRTREQBODY_PROCESS'"NOTRANSL: EHS: Aufruf PRINTREQUESTBODY_PROCESS
EXPORTING
IT_PRTREQ_HDR = "EHS: Print Request Header Table
IT_PRTREQ_PAR = "EHS: Print Request Parameters
IT_PRTREQ_SNO = "EHS: Print Request Sequence Numbers
IT_PRTREQ_SLS = "EHS: Print Request Sequential Data
* IV_FLG_BCKGRND = 'X' "Flag (X or Blank)
* IV_FLG_APPL_LOG = 'X' "Flag (X or Blank)

IMPORTING
ET_PRTREQ_HDR = "EHS: Print Request Header Table
ET_PRTREQ_PAR = "EHS: Print Request Parameters
ET_PRTREQ_SNO = "EHS: Print Request Sequence Numbers
ET_PRTREQ_SLS = "EHS: Print Request Sequential Data

CHANGING
CV_FLG_WARNING = "Flag (X or Blank)
CV_FLG_ERROR = "Flag (X or Blank)
CT_MESSAGES = "Application Log: Table with Messages

EXCEPTIONS
OBJECT_CREATION_FAILED = 1
.



IMPORTING Parameters details for CBGL_PRAPI_PRTREQBODY_PROCESS

IT_PRTREQ_HDR - EHS: Print Request Header Table

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

IT_PRTREQ_PAR - EHS: Print Request Parameters

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

IT_PRTREQ_SNO - EHS: Print Request Sequence Numbers

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

IT_PRTREQ_SLS - EHS: Print Request Sequential Data

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

IV_FLG_BCKGRND - Flag (X or Blank)

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

IV_FLG_APPL_LOG - Flag (X or Blank)

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

EXPORTING Parameters details for CBGL_PRAPI_PRTREQBODY_PROCESS

ET_PRTREQ_HDR - EHS: Print Request Header Table

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

ET_PRTREQ_PAR - EHS: Print Request Parameters

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

ET_PRTREQ_SNO - EHS: Print Request Sequence Numbers

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

ET_PRTREQ_SLS - EHS: Print Request Sequential Data

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

CHANGING Parameters details for CBGL_PRAPI_PRTREQBODY_PROCESS

CV_FLG_WARNING - Flag (X or Blank)

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

CV_FLG_ERROR - Flag (X or Blank)

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

CT_MESSAGES - Application Log: Table with Messages

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

EXCEPTIONS details

OBJECT_CREATION_FAILED - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for CBGL_PRAPI_PRTREQBODY_PROCESS 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_et_prtreq_hdr  TYPE CCGLD_PRTREQ_HDR, "   
lv_it_prtreq_hdr  TYPE CCGLD_PRTREQ_HDR, "   
lv_cv_flg_warning  TYPE AS4FLAG, "   
lv_object_creation_failed  TYPE AS4FLAG, "   
lv_cv_flg_error  TYPE AS4FLAG, "   
lv_et_prtreq_par  TYPE CCGLD_PRTREQ_PAR, "   
lv_it_prtreq_par  TYPE CCGLD_PRTREQ_PAR, "   
lv_ct_messages  TYPE BAL_T_MSG, "   
lv_et_prtreq_sno  TYPE CCGLD_PRTREQ_SNO, "   
lv_it_prtreq_sno  TYPE CCGLD_PRTREQ_SNO, "   
lv_et_prtreq_sls  TYPE CCGLD_PRTREQ_SLS, "   
lv_it_prtreq_sls  TYPE CCGLD_PRTREQ_SLS, "   
lv_iv_flg_bckgrnd  TYPE AS4FLAG, "   'X'
lv_iv_flg_appl_log  TYPE AS4FLAG. "   'X'

  CALL FUNCTION 'CBGL_PRAPI_PRTREQBODY_PROCESS'  "NOTRANSL: EHS: Aufruf PRINTREQUESTBODY_PROCESS
    EXPORTING
         IT_PRTREQ_HDR = lv_it_prtreq_hdr
         IT_PRTREQ_PAR = lv_it_prtreq_par
         IT_PRTREQ_SNO = lv_it_prtreq_sno
         IT_PRTREQ_SLS = lv_it_prtreq_sls
         IV_FLG_BCKGRND = lv_iv_flg_bckgrnd
         IV_FLG_APPL_LOG = lv_iv_flg_appl_log
    IMPORTING
         ET_PRTREQ_HDR = lv_et_prtreq_hdr
         ET_PRTREQ_PAR = lv_et_prtreq_par
         ET_PRTREQ_SNO = lv_et_prtreq_sno
         ET_PRTREQ_SLS = lv_et_prtreq_sls
    CHANGING
         CV_FLG_WARNING = lv_cv_flg_warning
         CV_FLG_ERROR = lv_cv_flg_error
         CT_MESSAGES = lv_ct_messages
    EXCEPTIONS
        OBJECT_CREATION_FAILED = 1
. " CBGL_PRAPI_PRTREQBODY_PROCESS




ABAP code using 7.40 inline data declarations to call FM CBGL_PRAPI_PRTREQBODY_PROCESS

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.

 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_iv_flg_bckgrnd) = 'X'.
 
DATA(ld_iv_flg_appl_log) = 'X'.
 


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!