10-20-2010 2:15 PM
Hi Techies,
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.
Regards,
Vinit
10-21-2010 10:26 AM
Hi!
In USEREXIT_SAVE_DOCUMENT document number is already known.
However, without knowing exact requirements, I would guess that easier will be to create output type that creates invoice (if you must use BAPI)
WBR -
Pauls
10-21-2010 11:50 AM
Hi Vinit,
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.
Regards,
Anurag
10-21-2010 12:22 PM
Thanks All for responding quickly. Now i am able to meet the requirement.
Thanks,
Vinit
Edited by: vinit005 on Oct 21, 2010 1:23 PM
10-21-2010 12:25 PM