cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT!!!!!!!!! rollback in BADI

Former Member
0 Kudos

Hi,

I wanted to know how can we perform ROLLBACK in BAdi's.

I am using the BAdi defination - MB_DOCUMENT_BADI and I want to roll back after i click on POST button in MIGO.

The functionality is like -

- First I m checking for the tcode eq MIGO.

- Second for the document category(likp-vbtyp) and delivery type(likp-lfart).

- Third check is on the movement type, my requirment is tht if while posting a GR for outbound delivery the movement type should be 861.

IF the movemnt type is not eq to 861 then we throw a popup message using -

CALL FUNCTION 'POPUP_TO_CONFIRM' ,

Now there are 2 buttons -

1. Change - the program shloud retain the screen and allow the user to change the movement type there and then post again.

2. Exit - the program will terminate the current action and will

LEAVE TO TRANSACTION MIGO.

I want to rollback the work after the user clicks on CHANGE and then to leave to the current screen where the user can change the movement type.

I hope i have made myself clr. If not plz come back to me for any further details.

Accepted Solutions (0)

Answers (2)

Answers (2)

krishnendu_laha
Active Contributor
0 Kudos

Hi Friend,

When user press change button, try to fire an error message with some information...

It is a odd way..but if you fire an error message SAP stop processing further and it will remain in the screen

and press enter it will open for change...

Hope it will help to get the solution

Regards

Krishnendu

Former Member
0 Kudos

u can deactivate the badi....

i think this will help uu....

if it is usefull plz Reward

regards

Anbu

Former Member
0 Kudos

Wht do you mean by Deactivate the BADI....??

Wht will it do?

And how can we do it?