Ansicht
Dokumentation

EXIT_SAPLV50G_001 -

EXIT_SAPLV50G_001 -

TXBHW - Original Tax Base Amount in Local Currency   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this function module to control and influence the creation of the following declaration types.

To do this, use the follwing 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 | Vereinfachte Ausfuhrregelung
(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)

In addition, you can use the following EXPORT parameter:

  • 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 goods direction (I_DIRECTION):

  • Goods direction 'Receipt / Import' (I_DIRECTION = '1')
  • Document header structure in materials management purchase order (C_MM_PURCH_ORDER_HEADER)

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

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

  • Document item structure of import data in materials managment purchase order (C_FOREIGN_TRADE_LINE_ITEM)

  • Goods direction 'Dispatch / Export' (I_DIRECTION = '2')
  • Document header structure in sales and distribution billing document (C_SD_INVOICE_HEADER)

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

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

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

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

The system uses the data in these structures to create the data set for the declaration type (I_REPORTING_TYPE).

Note

The system calls this function module directly after it has processed the logical databases and before it determines the necessary data for the relevant declaration type.
The system cannot select documents without Foreign Trade data because they are already separated in the logical database.

Example

When you create the INTRASTAT declaration (I_REPORTING_TYPE = 'I' field) for the goods direction "dispatch" (I_DIRECTION = '2' field) in the declaration country Great Britain (I_COUNTRY = 'GB' field) and you do not want to declare the data records with export procedure '404020' (C_FOREIGN_TRADE_LINE_ITEM-EXPRF = '404020' field), you have to add the following statement to the user exit:

...
CLEAR: E_EXCLUDE_FROM_SELECTION.
IF I_COUNTRY EQ 'GB'.
IF I_REPORTING_TYPE EQ 'I' AND
I_DIRECTION EQ '2'.
IF C_FOREIGN_TRADE_LINE_ITEM-EXPRF EQ '404020'.
E_EXCLUDE_FROM_SELECTION = 'X'.
ENDIF.
ENDIF.
ENDIF.
...






General Material Data   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 5931 Date: 20240424 Time: 032407     sap01-206 ( 55 ms )