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: 

Transfer control back to calling program from infotype screen

Former Member
0 Kudos

i've developed a module pool program that uses 'call transaction pa30'BDC to an custom infotype screen... after the 'save' button is pressed the control goes to the infotypes initial screen.

but i want the control to come back to the calling module pool program.. how do i do that??

1 ACCEPTED SOLUTION

sridharreddy_kondam
Active Contributor
0 Kudos

Hi Joseph,

Yes u can goto the the calling program,

Just in PAI when user presses SAVE u just give

LEAVE SCREEN or LEAVE to SCREEN no.

But since u r calling PA30, u cannot come back to initial screen until all the corresponding screens have been processed for PA30.

Regards,

Sridhar

6 REPLIES 6

sridharreddy_kondam
Active Contributor
0 Kudos

Hi Joseph,

Yes u can goto the the calling program,

Just in PAI when user presses SAVE u just give

LEAVE SCREEN or LEAVE to SCREEN no.

But since u r calling PA30, u cannot come back to initial screen until all the corresponding screens have been processed for PA30.

Regards,

Sridhar

0 Kudos

write the part of pa30 calling in one z program and then say

SUBMIT prog AND RETURN:

Return from the called program prog. Processing continues after the call to "SUBMIT prog ...".

reward points if it helps

regards

Gunjan

0 Kudos

hi gunjan

i found out the answer..

there is a structure called pspar.. just set the rcode in it to 'leave' and the control is automatically transferred to the calling prog..

thanks

vimal

0 Kudos

hi gunjan

i found out the answer..

there is a structure called pspar.. just set the rcode in it to 'leave' and the control is automatically transferred to the calling prog..

thanks

vimal

0 Kudos

thats good learning for me as well...

but anywaz if u say submit and return control will come back to ur program!!

0 Kudos

ya thanks..i'll try that as well...