Ansicht
Dokumentation
/SEHS/DGCAPI_CHECK_FRAME - EHS: Framework Program: Dangerous Goods Checks in Shipping Documents
BAL_S_LOG - Application Log: Log header data BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
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_TABE_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_ERRORPARAMETER_ERROR
Function Group
S/SAPLDGCAPIRFUMSV00 - Advance Return for Tax on Sales/Purchases ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 7277 Date: 20240329 Time: 154552 sap01-206 ( 74 ms )