Ansicht
Dokumentation

J_3RFGTD_EXT - Create Import Customs Declarations from External Systems

J_3RFGTD_EXT - Create Import Customs Declarations from External Systems

Addresses (Business Address Services)   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module allows you to create import customs declarations based on customs declarations data from external systems using remote function call (RFC).

The function module performs a number of data consistency checks. If errors or warnings occur during these checks, the corresponding messages are collected in the table ET_MESSAGES. If at least one error message is returned during the consistency checks, the import customs declaration is not created, and the E_ERRORparameter is set to "X" (not initial).

The function module checks the following:

  • The user is authorized to create an import customs declaration.
The authorization object used is J_3RF_GTD. If the user does not have authorization, the standard exception for RFC modules (SYSTEM_FAILURE) is raised.
  • The input data is consistent, for example:
  • All mandatory fields (BUKRS, CUSTOMS, GTDDATE, GTDNUMBER, GTDTYPE, LIFNR, ISSUEDAT, HERKL, MATNR, MENGE, and MEINS) are filled.

  • Dates (GTDDATE and ISSUEDAT) are entered in the correct format.

  • Company code, vendor, country of origin, and the material fields contain the correct values. (These values are in the corresponding check tables.)

  • The base unit of measure is correct and appropriate for the material specified.

  • The type of the import customs declaration is correct. (The value is in the value range available for the domain J_3RF_GTDTYPE.)

  • The import customs declaration refers to only one reference document (purchase order, inbound delivery, or goods receipt).

  • The reference document is handled correctly:
  • A purchase order item, inbound delivery item, or goods receipt item is not already used in the same import customs declaration. If one is used in the same declaration, a warning message is added to ET_MESSAGES.

  • If reference is made to a purchase order, inbound delivery, or goods receipt, a check is made to ensure that the document material and its base unit of measure correspond to those specified in the import customs declaration item. If they are not the same, an error message is added to ET_MESSAGES.

  • If reference is made to a purchase order, inbound delivery, or goods receipt, a check is made to ensure that the company code and vendor for the document are the same as specified in the import customs declaration item. If this is not the case, a warning message is added to ET_MESSAGES.

  • If reference is made to a purchase order, inbound delivery, or goods receipt, a check is made to ensure that its quantity and country of origin correspond to those specified in the import customs declaration item. If this is not the case, a warning message is added to ET_MESSAGES.

  • A reference to a purchase order, inbound delivery, or goods receipt contains both the document number and the item number. In the case of a goods receipt, the year field must also be filled. If these are not correct, the corresponding error message is added to ET_MESSAGES..

The standard exception for RFC modules (SYSTEM_FAILURE) is raised in the following cases:

  • There are problems storing import customs declarations in the database (for example, locking errors)
  • The user does not have authorization to create an import customs declaration.

Example

Notes

Further information

SAP NetWeaver Library under SAP NetWeaver by Key Capability -> Application Platform by Key Capability -> Platform-Wide Services -> Connectivity -> Components of SAP Communication Technology -> Classical SAP Technologies (ABAP) -> RFC





Parameters

ET_MESSAGES
E_ERROR
IT_GTD

Exceptions

Function Group

J3RFGTDINT

CL_GUI_FRONTEND_SERVICES - Frontend Services   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 5894 Date: 20240523 Time: 101818     sap01-206 ( 88 ms )