Ansicht
Dokumentation

EXIT_SAPLV50G_002 -

EXIT_SAPLV50G_002 -

General Material Data   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this function module to control the creation of the following declaration types:

To do this, use the following IMPORT parameters:

  • Country where declaration is created (I_COUNTRY)
  • Type of declaration to be created (I_REPORTING_TYPE)
----------------------------------------------------
| I | INTRASTAT |
----------------------------------------------------
| E | EXTRASTAT |
----------------------------------------------------
| K | KOBRA |
----------------------------------------------------
| C | VAR (Simplified Export Control, Switzerland) |
----------------------------------------------------
| S | SED/AERP (USA) |

----------------------------------------------------

  • Goods direction (I_DIRECTION)
------------------------------
| 1 | Receipt / Import |
------------------------------
| 2 | Dispatch / Export |

------------------------------

  • Year in which declaration is created (I_REPORTING_YEAR)
  • Month in which declaration is created (I_REPORTING_MONTH)
  • Currency in which declaration is to be created (I_REPORTING_CURRENCY)
  • Goods direction 'receipt / import' (I_DIRECTION = '1')
  • Document header structure in materials management purchase order (I_MM_PURCH_ORDER_HEADER)

  • Document item structure in materials management purchase order (I_MM_PURCH_ORDER_LINE_ITEM)

  • Document header structure of import data in materials management purchase order (I_FOREIGN_TRADE_HEADER)

  • Document item structure of import data in materials management purchase order (I_FOREIGN_TRADE_LINE_ITEM)

  • Goods direction 'dispatch / export' (I_DIRECTION = '2')
  • Document header structure in sales and distribution billing document (I_SD_INVOICE_HEADER)

  • Document item structure in sales and distribution billing document (I_SD_INVOICE_LINE_ITEM)

  • Document header structure of export data in sales and distribution billing document (I_FOREIGN_TRADE_HEADER)

  • Document item structure of export data in sales and distribution billing document (I_FOREIGN_TRADE_LINE_ITEM)

In addition, you can use the following EXPORT parameters:

  • Indicator (E_EXCLUDE_FROM_SELECTION) that controls whether the data record that has just been processed is to be used for the declaration type (I_REPORTING_TYPE):
  • ' ' - Data record is copied into data set

  • 'X' - Data record is excluded from selection, that is, this data is not declared

You can use the following CHANGING parameters, depending on the declaration type (I_REPORTING_TYPE):

  • Declaration type 'I' - INTRASTAT: Structure of data record INTRASTAT (C_RECORD_INTRASTAT)
  • Declaration type 'E' - EXTRASTAT: Structure of data record EXTRASTAT (C_RECORD_EXTRASTAT)
  • Declaration type 'K' - KOBRA: Structure of data record KOBRA
  • Structure for A record (C_RECORD_KOBRA_A)

  • Structure for B record (C_RECORD_KOBRA_B)

  • Structure for C record (C_RECORD_KOBRA_C)

  • Declaration type 'C' - VAR (Simplified Export Control, Switzerland): Structure of data record VAR (C_RECORD_VAR)
  • Declaration type 'S' - SED/AERP (USA): Structure of data record SED/AERP (C_RECORD_VESED)

The system copies all data copied into this function module to the calling program as CHANGING parameters (all C_* structures).

Note

The system calls this function module in the database table that corresponds to the declaration type (I_REPORTING_TYPE). It calls the function module directly before it updates the data record that has just been processed.

For this reason, the system copies the changes to data records as they are to the database.

Declaration type Database table
--------------------------------------------------------------------
| I | INTRASTAT VEIAV |
--------------------------------------------------------------------
| E | EXTRASTAT VEXAV |
--------------------------------------------------------------------
| K | KOBRA VEKAA, VEKAB, VEKAC |
--------------------------------------------------------------------
| C | VAR (Simplified Export Control,
Switzerland) VEXAV |
--------------------------------------------------------------------
| S | SED/AERP (USA) VESED |

--------------------------------------------------------------------






Fill RESBD Structure from EBP Component Structure   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 6897 Date: 20240423 Time: 085944     sap01-206 ( 48 ms )