Symptom
A pro forma invoice (F5 and F8) is created for a free of charge delivery (CBFD) or a free of charge item (TADN or CBXN), but the net value of the pro forma invoice doesn't equal to 0.
Environment
SAP S/4HANA Cloud Public Edition
Cause
Check the pricing procedure of the pro forma invoice. If the condition type D100 (100% discount) is used, go to the configuration step Set Pricing Procedures (ID 101117) to check the field Alternative Condition Base Value. If the Routine for Alternative Calculation of Condition Base Value is set to 28, the net value of the pro forma invoice won't be zero.
In the coding of this routine, the condition type D100 is deactivated for pro forma invoices:
Include FV63A028
* The condition D100 will be deactivated in the pro forma invoice.
* For example, export papers.
form frm_kond_basis_028.
if komk-vbtyp eq if_sd_doc_category=>pro_forma_invoice.
xkomv-kinak = 'Z'.
endif.
xkomv-kbetr = -100000.
endform.
As the alternative condition base value formula 28 states, a pro forma invoice is often used as export / import paper and to document the actual value of the items. No matter what the product is, the realistic value on the export / import document should be listed. For this use-case, the 100% discount must not be applied. Usually, the best way to do this is to use the retail value of a product as if it were sold / purchased.
Resolution
Go to the configuration activity Set Pricing Procedures (ID 101117).
It is possible to copy the SAP delivered pricing procedure to a custom pricing procedure using the Copy As... button, and then change the condition base value formula (assigned to the condition type D100) from 028 to a custom routine as desired.
Alternatively, it can be considered to create a new custom pricing procedure using the New Entries button.
After creating a custom pricing procedure, it is necessary to adjust the pricing procedure determination for the affected business processes to pick up the custom pricing procedure.
Please retest the custom pricing procedure thoroughly to ensure that no side effect is caused.
For more information please check the SAP Help Portal documentation:Custom Logic: Condition Base Value | SAP Help Portal .
See Also
SAP Help Portal -Custom Logic: Condition Base Value | SAP Help Portal
KBA 2809760 - Missing sales document item condition - SAP S/4HANA Cloud Public Edition
Keywords
S/4HANA, S4, Public Cloud, D100, 100% discount, free of charge, free goods, free items, gift, zero, pro forma invoice, pro_forma_invoice, document category, F5, F8, 28, alternative condition base value, frm_cond_basis_028, Create Billing Documents, PRICING, KOMV-KOFRA, KINAK, KSCHL = D100, xkomv-kinak = 'Z', declaration, declared value, custom, no value, discounted product , KBA , SD-BF-PR-2CL , Pricing (Public Cloud) , SD-BIL-IV-2CL , Processing Billing Documents (Public Cloud) , Problem
SAP Knowledge Base Article - Public