SAP ABAP Data Element WLF_ADD_HEADER_READ (Include Document Header Data at Item Level Also)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   LO-AB (Application Component) Agency Business (Global Trade)
     WZRE (Package) Agency Business
Basic Data
Data Element WLF_ADD_HEADER_READ
Short Description Include Document Header Data at Item Level Also  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type WLF_ADD_HEADER_READ    
Data Type CHAR   Character String 
Length 1    
Decimal Places 0    
Output Length 1    
Value Table      
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short 10 Extra Data 
Medium 15 Extra Item Data 
Long 20 Extra Item Data 
Heading Data 
Documentation

Definition

Indicates if the document header data for the referenced document items is to be included in pricing during customer settlement.

Note

Note that when you set this indicator, considerable document header data must be read from the database and this may influence system runtimes considerably.

If you have entered conditions in the pricing schema, in particular conditions for subsequent settlement, and these conditions contain access to the vendor or the purchasing organization, it is essential that this indicator be selected and thereby avoid creating inconsistent data.

Details:

Item 1 in settlement request 1 is sent to customer settlement 2, item 2. The customer settlement does not have fields called "Sales organization" or "Vendor" at item level. The information is only stored at header level in settlement request 1. By selecting this indicator, the system reads the header data for document 1 during pricing for customer settlement 2, item 2. Communication structure KOMK for pricing customer settlement Kundenabrechnung 2, item 2 is extended to include the following fields:

  • MOVE KOMLFK-LIFRE TO KOMK-LIFRE.
  • MOVE KOMLFK-EKORG TO KOMK-EKORG.
  • MOVE KOMLFK-LIFRE TO KOMK-LIFNR.

If the indicator is not flagged, these three fields remain empty. Condition records that relate to these fields are removed when the sales settlement is created.

If you feel it is necessary to copy additional fields, this is possible in customer exit LWZRE001, component EXIT_SAPLWLF0_001 or in BAdI WLF_ADDITIONAL_DATA2, method change_pricing_header.

Coding Example:

data: L_KOMLFK LIKE KOMLFK.
if i_komlfk-wdtyp = 'G' and i_tmfk-headdata = '1'.
* wdtyp = 'G' bedeutet Kundenabrechnung
if not i_komlfp-wbeln_v is initial.
call function 'WLF_WBRK_SINGLE_READ'
exporting
i_wbeln = i_komlfp-wbeln_v
importing
e_komlfk = l_komlfk
exceptions
no_records_found = 1
others = 2.
if sy-subrc = 0.
move l_komlfk-xxxxx to e_komk-xxxxx.
endif.
endif.
endif.

History
Last changed by/on SAP  20011002 
SAP Release Created in 470