I am stuck with a complex issue. The requirement is if payment term (VBKD-ZTERM) in sales order header found as 'U000 - Per
forma'. Then Pro forma invoice will be generated in background using BAPI (BAPI is executed for invoice creation).Delivery Block (VBAK-LIFSK) and Invoice Block (VBAK-FAKSK) will be updated after creation of pro forma invoice.
But now the issue is that in order to create a performa invoice, i need sales document number. And this will b generated only after i will click on save button. But the user wants to block sales order in this case.
How to achieve this? Any suggestions will be appreciated.
Sales order number is being generate before this Include MV45AF0B_BELEG_SICHERN so now you can implement implicit/explicit enhancement or *customer exit *EXIT_SAPMV45A_003. ** .
If you require anything at this point from ur previous code so you can use System/ ABAP memory.