Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

/SEHS/DGCAPI_CHECK_FRAME - EHS: Framework Program: Dangerous Goods Checks in Shipping Documents

/SEHS/DGCAPI_CHECK_FRAME - EHS: Framework Program: Dangerous Goods Checks in Shipping Documents

CPI1466 during Backup   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

EHS: Framework Program for Dangerous Goods Checks Depending on Call Context

Description

This function module controls the processing of the dangerous goods checks and the determination of dangerous goods data for delivery documents. The routing guide calls this function module within the scope of the route checks.

The I_BUSI_CONTEXT (business context) import parameter defines in which context the check framework is called. The check framework is called with the following business contexts for the route check and data determination for the delivery documents:

  • DLVPR = Output of delivery note in WME
  • RGE = Dangerous goods route checks for routing guide

Depending on the business context, different or additional data is read in the read module for the dangerous goods check schema.

The I_FLG_FULL_CHECKimport parameter can overwrite response type 'A' = Cancel dangerous goods checks for the documentand 'X' = No further dangerous goods checks for the document item so that the checks are not canceled if the check result is negative.

The check framework can raise the following exceptions:

  • PARAMETER_ERROR
One of the mandatory import parameters is empty.
The following import parameters are required to execute the check framework:
  • i_busi_context

  • i_req_head_tab

  • i_req_item_tab

  • i_req_stage_tab

  • INTERNAL_ERROR
An unforeseen problem occurred. In this case, the checks currently being run are canceled. The check result is not complete because it is possible that not alll documents or checks were processed.

The remaining interface parameters of the check framework have the following meaning:

  • Import parameters
  • I_ADD_PARAM

Call mode (currently not used)
  • I_REQ_HEAD_TAB

Request header, list of document headers to be checked
  • I_REQ_ITEM_TAB

Request items, list of document items to be checked
  • I_REQ_STAGE_TAB

Route stages to be checked with reference to the documents
  • IT_DG_MASTER

Non persistent dangerous goods data to be checked with reference to document items
  • IT_DG_MASTER_CARR

Non persistent regulations for transport data in addition to non persistent dangerous goods data
  • IT_DG_MASTER_TRAPPR

Non persistent release for transport data in addition to non persistent dangerous goods data
  • Export parameters
  • E_RETURN_TAB

Check framework messages in BAPIRET2 format
  • E_CHKFMSG_TAB

Check framework messages relating to request header, items, and route stages. The table creates the reference between the messages and the individual check results.
  • E_RESULT

Complete result of dangerous goods checks for all requests
  • E_REQHRES_TAB

Check result at request header (document header) level
  • E_REQIRES_TAB

Check result at request item (document item) level
  • E_DGMASTER_TAB

List of dangerous goods master records determined for check
  • E_REQDATA_TAB

Additional data read while determining data
  • E_IREQSEQ_TAB

List of route stages to be checked with reference to the respective request items, route stages, and dangerous goods master records affected





Parameters

E_CHKFMSG_TAB
E_DGMASTER_TAB
E_IREGSEQ_TAB
E_REQDATA_TAB
E_REQHRES_TAB
E_REQIRES_TAB
E_RESULT
E_RETURN_TAB
IT_DG_MASTER
IT_DG_MASTER_CARR
IT_DG_MASTER_TRAPPR
IV_CALLED_BY_PRINT_FRAME
I_ADD_PARAM
I_BUSI_CONTEXT
I_FLG_FULL_CHECK
I_REQ_HEAD_TAB
I_REQ_ITEM_TAB
I_REQ_STAGE_TAB

Exceptions

INTERNAL_ERROR
PARAMETER_ERROR

Function Group

S/SAPLDGCAPI

Vendor Master (General Section)   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 7277 Date: 20211129 Time: 101637     sap01-206 ( 69 ms )