Ansicht
Dokumentation

EXIT_SAPLV50G_002 - Periodic declarations: User exit data selection: DB update

EXIT_SAPLV50G_002 - Periodic declarations: User exit data selection: DB update

General Data in Customer Master   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

If you use this function module, you can control the creation of the

  • INTRASTAT
  • EXTRASTAT
  • KOBRA
  • Simplified export control (Switzerland)
  • SED/AERP (USA)

declaration types.

For this reason,

  • the declaring country (I_COUNTRY),
  • the type of declaration to be created (I_REPORTING_TYPE)
  • 'I' - INTRASTAT

  • 'E' - EXTRASTAT

  • 'K' - KOBRA

  • 'C' - Simplified export control (Switzerland)

  • 'S' - SED/AERP (USA),

  • the goods direction (I_DIRECTION)
  • '1' - Receipt / Import

  • '2' - Dispatch / Export,

  • the year of the declaration´s creation (I_REPORTING_YEAR),
  • the month of the declaration´s creation (I_REPORTING_MONTH),
  • the declaration currency (I_REPORTING_CURRENCY),
  • for goods direction 'Receipt / Import' (I_DIRECTION = '1')
  • the field string of the document header of the MM purchase order (I_MM_PURCH_ORDER_HEADER),

  • the field string of the document item of the MM purchase order (I_MM_PURCH_ORDER_LINE_ITEM),

  • the field string of the document header of import data for the MM purchase order (I_FOREIGN_TRADE_HEADER) and

  • the field string of the document item of import data for MM purchase order (I_FOREIGN_TRADE_LINE_ITEM) and

  • for goods direction 'Dispatch / Export' (I_DIRECTION = '2')
  • the field string of the document header of the SD billing document (I_SD_INVOICE_HEADER),

  • the field string of the document item of the SD billing document (I_SD_INVOICE_LINE_ITEM),

  • the field string of the document header of export data for the SD billing document (I_FOREIGN_TRADE_HEADER) and

  • the field string of the document item of export data for the SD billing document (C_FOREIGN_TRADE_LINE_ITEM)

are available as IMPORT parameters.

In addition,

  • the indicator (E_EXCLUDE_FROM_SELECTION ), which controls whether the data record that has just been processed is to be used for the declaration type (I_REPORTING_TYPE):
  • ' ' - Data record is transferred to the data pool

  • 'X' - Data record is excluded from selection, i.e. not declared,

is existing as EXPORT parameter.

Depending on the declaration type (I_REPORTING_TYPE), the following field strings are available as CHANGING parameters:

  • for declaration type 'I' - INTRASTAT the field string of the INTRASTAT data record (C_RECORD_INTRASTAT),
  • for declaration type 'E' - EXTRASTAT the field string of the EXTRASTAT data record (C_RECORD_EXTRASTAT),
  • for declaration type 'K' - KOBRA the field strings of the KOBRA data records
  • field string for the A record (C_RECORD_KOBRA_A)

  • field string for the B record (C_RECORD_KOBRA_B)

  • field string for the C record (C_RECORD_KOBRA_C),

  • for declaration type 'C' - Simplified export control (Switzerland) the field string of the VAR data record (C_RECORD_VAR) and
  • for declaration type 'S' - SED/AERP (USA) the field string of the SED/AERP data record (C_RECORD_VESED).

The data transferred to this function module as CHANGING parameters - all C_* field strings - are copied to the calling program.

Note

This function module is called up in the database table that corresponds with the declaration type (I_REPORTING_TYPE) immediately before the data record that has just been processed is updated.

For this reason, changes in the data records are copied into the database.

Declaration type: Database table:
================ =================
'I' - INTRASTAT VEIAV
'E' - EXTRASTAT VEXAV
'K' - KOBRA VEKAA, VEKAB, VEKAC
'C' - Simplified export control (Switzerland) VEXAV
'S' - SED/AERP (USA) VESED





Parameters

C_RECORD_EXTRASTAT
C_RECORD_INTRASTAT
C_RECORD_KOBRA_A
C_RECORD_KOBRA_B
C_RECORD_KOBRA_C
C_RECORD_VAR
C_RECORD_VESED
E_EXCLUDE_FROM_SELECTION
I_COUNTRY
I_DIRECTION
I_FOREIGN_TRADE_HEADER
I_FOREIGN_TRADE_LINE_ITEM
I_MM_PURCH_ORDER_HEADER
I_MM_PURCH_ORDER_LINE_ITEM
I_REPORTING_CURRENCY
I_REPORTING_MONTH
I_REPORTING_TYPE
I_REPORTING_YEAR
I_SD_INVOICE_HEADER
I_SD_INVOICE_LINE_ITEM

Exceptions

Function Group

X50G

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 6331 Date: 20240523 Time: 041303     sap01-206 ( 56 ms )