Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhancement for VA01 transaction

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

Met knowledgeable people and helpful ones too.

Cheers!!!!