SAP QC07_BATCH_CERT_DISPLAY_PDF Function Module for NOTRANSL: Qualitätszeugnis zur Charge im PDF-Format für World Wide Web









QC07_BATCH_CERT_DISPLAY_PDF is a standard qc07 batch cert display pdf 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: Qualitätszeugnis zur Charge im PDF-Format für World Wide Web 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 qc07 batch cert display pdf FM, simply by entering the name QC07_BATCH_CERT_DISPLAY_PDF into the relevant SAP transaction such as SE37 or SE38.

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



Function QC07_BATCH_CERT_DISPLAY_PDF 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 'QC07_BATCH_CERT_DISPLAY_PDF'"NOTRANSL: Qualitätszeugnis zur Charge im PDF-Format für World Wide Web
EXPORTING
* I_PLANT = "Plant of batch / sender plant
I_MATERIAL = "Material number
I_BATCH = "Batch number
I_CUSTOMER = "Customer number
* I_APPLICATION = 'application/pdf' "Presentation of the certificate from the browser

IMPORTING
E_CONTENT_LENGTH = "Length of MIME data

TABLES
* T_MESSAGE_LINE_TAB = "Table of program messages
T_MIME_TAB = "Table of data in MIME format
.




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_SAPLQC07_001 Customer Function Reports: New Fields for Cert. Profile Determination
EXIT_SAPLQC07_002 Cust. Fn Reps: Evaluate Criteria for Limiting Insp./Partial Lot Selection
EXIT_SAPLQC07_003 Quality Certs on the World Wide Web: Authorization mats for Customers
EXIT_SAPLQC07_004 Quality Certificates on the World Wide Web: Customer Finds Materials
EXIT_SAPLQC07_005 Quality Certificates on the World Wide Web: Limit Materials for Customer

IMPORTING Parameters details for QC07_BATCH_CERT_DISPLAY_PDF

I_PLANT - Plant of batch / sender plant

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

I_MATERIAL - Material number

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

I_BATCH - Batch number

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

I_CUSTOMER - Customer number

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

I_APPLICATION - Presentation of the certificate from the browser

Data type: W3PARAM-CONT_TYPE
Default: 'application/pdf'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for QC07_BATCH_CERT_DISPLAY_PDF

E_CONTENT_LENGTH - Length of MIME data

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

TABLES Parameters details for QC07_BATCH_CERT_DISPLAY_PDF

T_MESSAGE_LINE_TAB - Table of program messages

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

T_MIME_TAB - Table of data in MIME format

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

Copy and paste ABAP code example for QC07_BATCH_CERT_DISPLAY_PDF 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_i_plant  TYPE T001W-WERKS, "   
lv_e_content_length  TYPE W3PARAM-CONT_LEN, "   
lt_t_message_line_tab  TYPE STANDARD TABLE OF BAPIRETURN, "   
lv_i_material  TYPE MARA-MATNR, "   
lt_t_mime_tab  TYPE STANDARD TABLE OF BAPIQCMIME, "   
lv_i_batch  TYPE MCHA-CHARG, "   
lv_i_customer  TYPE KNA1-KUNNR, "   
lv_i_application  TYPE W3PARAM-CONT_TYPE. "   'application/pdf'

  CALL FUNCTION 'QC07_BATCH_CERT_DISPLAY_PDF'  "NOTRANSL: Qualitätszeugnis zur Charge im PDF-Format für World Wide Web
    EXPORTING
         I_PLANT = lv_i_plant
         I_MATERIAL = lv_i_material
         I_BATCH = lv_i_batch
         I_CUSTOMER = lv_i_customer
         I_APPLICATION = lv_i_application
    IMPORTING
         E_CONTENT_LENGTH = lv_e_content_length
    TABLES
         T_MESSAGE_LINE_TAB = lt_t_message_line_tab
         T_MIME_TAB = lt_t_mime_tab
. " QC07_BATCH_CERT_DISPLAY_PDF




ABAP code using 7.40 inline data declarations to call FM QC07_BATCH_CERT_DISPLAY_PDF

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 WERKS FROM T001W INTO @DATA(ld_i_plant).
 
"SELECT single CONT_LEN FROM W3PARAM INTO @DATA(ld_e_content_length).
 
 
"SELECT single MATNR FROM MARA INTO @DATA(ld_i_material).
 
 
"SELECT single CHARG FROM MCHA INTO @DATA(ld_i_batch).
 
"SELECT single KUNNR FROM KNA1 INTO @DATA(ld_i_customer).
 
"SELECT single CONT_TYPE FROM W3PARAM INTO @DATA(ld_i_application).
DATA(ld_i_application) = 'application/pdf'.
 


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!