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

How to backout my Function module?

Former Member
0 Likes
1,001

Hi All, if I have transported my inbound function module to production system, but when my code has influence on data in the production system, I want to backout my inbound function module and I don't what to delete my code, what should I do? Many thanks in advance!! It is an urgency.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
969

Hi,

Correct..Make the changes in a CR and move the CR to production system...The function module will still be there...it will not execute your code..As it will exit out of the function module..

FUNCTION z_test..

  • Exit out of the function module

EXIT.

  • Other code.

....

...

ENDFUNCTION.

Thanks,

Naren

7 REPLIES 7
Read only

Former Member
0 Likes
969

Hi,

In the first line of of the function module..Give EXIT...to exit out of the function module..

So that you don't have to remove your code..

Thanks,

Naren

Read only

Former Member
0 Likes
969

Just comment all the code. No need to delete it. Create a transport of the commented code and move to production.

Reward points if useful.

Regards,

Atish

Read only

Former Member
0 Likes
969

Hi,

Once you put the EXIT statement...Als move the code to production

Thanks

Naren

Read only

0 Likes
969

You mean I should create a new transport with the EXIT statement and when my function module has influence on the data in the production system, I will move the new transport to the production system?

FUNCTION z_###.

EXIT.

Write the statement like this?

Many many thanks! I am a new ABAPer, so I have many questions. Thank for all of your help.

Read only

0 Likes
969

Yes.

The statement is correct.

But we are still not clear what is your requirement. Why do you want to comment keep your code if it is not used.

Regards,

Atish

Read only

Former Member
0 Likes
970

Hi,

Correct..Make the changes in a CR and move the CR to production system...The function module will still be there...it will not execute your code..As it will exit out of the function module..

FUNCTION z_test..

  • Exit out of the function module

EXIT.

  • Other code.

....

...

ENDFUNCTION.

Thanks,

Naren

Read only

0 Likes
969

Many thanks for your help!

Message was edited by:

yu huali