Application Development and Automation 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: 
Read only

user exit is not called

Former Member
0 Likes
1,388

hi,

In MV45AFZZ, under

FORM USEREXIT_SAVE_DOCUMENT

I implemented an implicit enhancement as follows

ENHANCEMENT 316 Zxxx_SAVE. "active version

INCLUDE ZXXX_SAVEDATA.

ENDENHANCEMENT.

when i save the So thru VA01, this is not triggered, why ??

where as the same code if i place in

FORM USEREXIT_SAVE_DOCUMENT_PREPARE.

it is triggered. But I dont get the sales order number there !!

so i thought i will try in FORM USEREXIT_SAVE_DOCUMENT .

I need my code to get access to VBELN ..pl help..thks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,252

Hi,

Try using VBAK-VBELN to get the sales order number...in the save_document user exit..

Thanks

Naren

hi,

In MV45AFZZ, under

FORM USEREXIT_SAVE_DOCUMENT

I implemented an implicit enhancement as follows

ENHANCEMENT 316 Zxxx_SAVE. "active version

INCLUDE ZXXX_SAVEDATA.

ENDENHANCEMENT.

when i save the So thru VA01, this is not triggered, why ??

where as the same code if i place in

FORM USEREXIT_SAVE_DOCUMENT_PREPARE.

it is triggered. But I dont get the sales order number there !!

so i thought i will try in FORM USEREXIT_SAVE_DOCUMENT .

I need my code to get access to VBELN ..pl help..thks

6 REPLIES 6
Read only

Former Member
0 Likes
1,252

Hi,

I dont know why. But try this:

Comment out your existsing code.

In include MV45AF0B_BELEG_SICHERN, there is an enhancement point "beleg_sichern_13".

Here create your new enhancement point and activate.

Regards,

Subramanian

Read only

0 Likes
1,252

hey, I tried ur suggestion, but still sales order number VBELN is not got at that location ?? any other suggestion ?

Read only

Former Member
0 Likes
1,252

Hi,

Try this..

double click on the form user exit save document...put a break-point in the "perform userexit_save_document."

Now step through in the debugging and check whether your code is hit.

Check whether your enhancement is active..

Thanks

Naren

Read only

0 Likes
1,252

Naren, my code is executed when it is placed in save document prepare or save document in MV45AFZZ and in MV45AF0B_BELEG_SICHERN, enh point 13..

but at all these locations i am not getting any value for xvbak-vbeln or xvbap-vbeln...am i referring the wrong field ?? if so whats the correct one ??

thks

Read only

Former Member
0 Likes
1,253

Hi,

Try using VBAK-VBELN to get the sales order number...in the save_document user exit..

Thanks

Naren

Read only

0 Likes
1,252

Thanks Naren, i got it as u said...