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: 

Screen Exit

Former Member
0 Kudos
104

Hi, I have iomplemented a screen exit to iw21 tcode, it is working fine but when i go for iw23( display) it is still in change mode, i have tried with loop at screen but its not working.

Thanks and Regards,

V

5 REPLIES 5

Former Member
0 Kudos
65

Hi,

Any Inputs ?

Mohamed_Mukhtar
Active Contributor
0 Kudos
65

hi ,

Copy the same screen and input disable all the filelds.

And try like this, might be helpful.

Case sy-tcode.

When 'Tcode for display'.
sy-dynnr = copied screen number.
Endcase.

Thanks & Regards

0 Kudos
65

Hi, this is what i have written in the Function module of screen exit.

data: tcode like sy-tcode.

TCODE = SY-TCODE.

IF save_ok = '10\TAB19'.

IF TCODE = 'IW23'.

LOOP AT SCREEN.

IF screen-name = 'RIQS0_10-TAB21'.

IF screen-group4 = 'TAB'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDLOOP.

ENDIF.

ENDIF.

As soon as it is comming to Loop at Screen it is getting off from the exit, i also tried by removing the loop at screen, then it is entering the loop and updating the screen struture for that screen but still the result is same .

0 Kudos
65

I have written the above code in the Function modules given for the screen, i also tried by writing in the PBO of the screen but still it is not gettin updated.

Thanks .

0 Kudos
65

Hi ,

Write the above case statements in the PAI include.


case sy-tcode.

When 'create'.
ur code.
when 'Change Tcode'
ur code.
when ' Display'.
" here you copy the screen (with different screen number) of the change tcode.
Set the screen number 
endcase.

Thanks & REgards