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: 

Back to main screen from subscreen

Former Member
0 Kudos
1,024

I have a requiement ,I have done one subscreen in standard transaction iw31 .I want designed two buttons in it .When i click one button it goes to some transaction and when i press back buttton it returns back but it gives some error and again if i press its not going .How to solve this.Set screen is not allowed in subscreen is error message when we come back to main screen.

9 REPLIES 9

0 Kudos
318

Hi,

In the subscreen try LEAVE TO SCREEN 0. this will take you to the calling screen, but if it is possible use SUBMIT and RETURN.

CALL TRANSACTION starts a new external session, where as submit starts an internal session in the current external session.

Regards,

Sesh

0 Kudos
318

its not working it come back showing a message which i wrote before .Since it is dialog program u cannot use submit.

0 Kudos
318

Hi,

Can you show the code of subscreen with CALL TRANSACTION.

Regards,

Sesh

0 Kudos
318

I have written code in user exit EXIT_SAPLCOIH_019 and button in screen exit.

IF SY-UCOMM = 'IK34'.

call transaction 'IK34'.

ELSEIF SY-UCOMM = 'ZRIK34'.

CALL TRANSACTION 'ZRIK34'.

ENDIF.

0 Kudos
318

its giving error as Requested function IK34 is not available here how to avoid it

0 Kudos
318

HI,

Before calling the trx clear sy-ucomm.

with regards,

Vamsi

0 Kudos
318

even now error messge requested function is not available is giving after coming back to main screen and i cannot click the button again

0 Kudos
318

hello is there any solution to avoid that error

0 Kudos
318

Hi,

Clear the sy-ucomm before calling the trx. and also OK-CODE.

Hope this shud solve your problem.

plz let me know the position in the abap program where you are getting this error.

ie. program name and line no.

with regards,

Vamsi