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

Transfer control back to calling program from infotype screen

Former Member
0 Likes
1,121

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
Read only

sridharreddy_kondam
Active Contributor
0 Likes
1,025

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

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??

6 REPLIES 6
Read only

sridharreddy_kondam
Active Contributor
0 Likes
1,026

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

Read only

0 Likes
1,025

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

Read only

0 Likes
1,025

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

Read only

0 Likes
1,025

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

Read only

0 Likes
1,025

thats good learning for me as well...

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

Read only

0 Likes
1,025

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