Ansicht
Dokumentation

EXIT_SAPLV50E_003 - SD documents - Item: User exit for export item data default

EXIT_SAPLV50E_003 - SD documents - Item: User exit for export item data default

TXBHW - Original Tax Base Amount in Local Currency   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Using this function module, you can determine individual export item data that is to be assigned to a sales and distribution document item (delivery or billing document), if the routines proposed by the system are not sufficient or if you want to overwrite the data determined by the system.

For this reason, you can use the following IMPORT parameters:

  • Indicator that shows whether the system calls from the delivery (I_DOCUMENT = '2') or the billing document (I_DOCUMENT = '3')
  • Batch number (I_BATCH_NUMBER), only when batches exist
  • Material master view "Sales 2" (I_MAT_MASTER_VIEW)
  • Batch data (I_BATCHES), only when batches exist
  • Sales organization (I_SALES_ORG)
  • Distribution channel (I_DISTR_CHANNEL)
  • Home country of the shipping point (I_COUNTRY)
  • All data of the underlying delivery item (I_DELIVERY_ITEM), only when the system calls from the delivery
  • All data of the underlying billing header (I_INVOICE_ITEM), only when the system calls from the billing document

You can use export header data determined until now by the system as CHANGING parameters, such as:

  • Commodity code (C_STAWN)
  • Export procedure (C_EXPRF)
  • Business transaction type (C_EXART)
  • Country of origin of material (C_HERKL)
  • Region of origin of material (C_HERKR)
  • Structure of ALL export item data (C_EXPORT_LINE_ITEM_DATA)

The export item data determined in this function module - all C_* fields and C_* field strings - are copied in the calling program.

Example

If you want final purchase/sales (value: '11') always to be assigned to the business transaction type (field C_EXART) for exports from departure country Germany ('DE'), you must add the following statement to the user exit:

...
IF I_COUNTRY EQ 'DE'.
C_EXART = '11'.
ENDIF.
...

Note

The system does NOT call up this function module UNTIL the standard proposal routines for export item data have been processed. This means that any data changes in the user exit will not overwritten by the system.

Note

The field string that has been copied (C_EXPORT_LINE_ITEM_DATA) contains all foreign trade item data. This may even include data that is only relevant for import processing in Materials Management.
These fields can be filled in the user exit. However, they can neither be displayed nor used otherwise in sales and distribution documents.
Make sure that you fill only those fields in the user exit that are relevant for export processing.

Note

The following fields CANNOT be overwritten in the user exit or are reset to their original values after the system has called up the user exit.

  • Client (C_EXPORT_LINE_ITEM_DATA-MANDT)
  • Number of foreign trade data (C_EXPORT_LINE_ITEM_DATA-EXNUM)
  • Number of foreign trade item data (C_EXPORT_LINE_ITEM_DATA-EXPOS)
  • Statistical value (C_EXPORT_LINE_ITEM_DATA-GRWRT)
  • Customs value (C_EXPORT_LINE_ITEM_DATA-WZOLL)
  • Status: Document data complete (system) (C_EXPORT_LINE_ITEM_DATA-AUSOK)




Parameters

C_EXART
C_EXPORT_LINE_ITEM_DATA
C_EXPRF
C_HERKL
C_HERKR
C_STAWN
I_BATCHES
I_BATCH_NUMBER
I_COUNTRY
I_DELIVERY_ITEM
I_DISTR_CHANNEL
I_DOCUMENT
I_INVOICE_ITEM
I_MAT_MASTER_VIEW
I_SALES_ORG

Exceptions

Function Group

XV50

Fill RESBD Structure from EBP Component Structure   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 4294 Date: 20240523 Time: 053559     sap01-206 ( 60 ms )