2008 Nov 20 8:27 AM
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
2008 Nov 21 6:18 AM
2008 Nov 21 6:25 AM
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
2008 Nov 21 6:30 AM
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 .
2008 Nov 21 6:32 AM
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 .
2008 Nov 21 6:37 AM
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