Symptom
The net value in the Pro Forma Invoice (F5) doesn't equal to 0 when:
- it's created for a free of charge delivery order (CBFD)
- Or is created for free of charge item (TANN or CBXN)
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- In app "Create billing documents", create a Pro forma Invoice (F5) for a order with type CBFD.
- Check its net value.
Cause
Check the pricing procedure of the billing document. If condition type D100 (100% discount) is used, go to SSCUI 101117 "Set pricing procedures" to check the field "Alternative condition base value". If it is set to 28, the net value of pro forma invoice won't be zero. In the coding of this routine, condition type D100 is deactivated for F5 billing type.
As a reference, here is the coding of the routine:
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.
Resolution
Go to SSCUI 101117 "Set pricing procedures". It is possible to copy the SAP delivered pricing procedure to the custom pricing procedure using the "Copy As..." button, and then change the condition base value formula assigned on D100 from 028 to a custom routine as desired. Or create a new pricing procedure using the "New entries" button.
After adjustment of the 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 adjusted pricing procedure thoroughly to check that there is no side effect caused.
For more information please check the SAP Help Portal documentation: Custom Logic: Condition Amount
See Also
Keywords
S4, HANA, D100, 100% discount, zero, pro forma invoice, F5, 28, alternative condition base value , KBA , SD-BIL-IV , Processing Billing Documents , SD-BF-PR , Pricing , Problem