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

selection screen

Former Member
0 Likes
778

i need to

if sy-tcode = display tcode

Parameters:

p_xxx

if sy-tcode = update code

select-options:

s_xxx

please advise

8 REPLIES 8
Read only

Former Member
0 Likes
753

Hi,

Use initialization event.

initialization.

if sy-tcode = dsipalu_tcode.

p_xx = '''.

endif.

regards,

Santosh Thorat

Read only

0 Likes
753

could you please give an example

Read only

Former Member
0 Likes
753

hi,

Check the CALL TRANSACTION syntax and the documentation by pressing F1 u will get the solution.

regards,

Prabhu

Read only

Former Member
0 Likes
753

Hi,

Check this standard report.... and execute and see this will help you...

REPORT <b>demo_sel_screen_as_subscreen.</b>

SELECTION-SCREEN BEGIN OF SCREEN 1100 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-010.

PARAMETERS: p1(10) TYPE c,

p2(10) TYPE c,

p3(10) TYPE c.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN END OF SCREEN 1100.

SELECTION-SCREEN BEGIN OF SCREEN 1200 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-020.

PARAMETERS: q1(10) TYPE c OBLIGATORY,

q2(10) TYPE c OBLIGATORY,

q3(10) TYPE c OBLIGATORY.

SELECTION-SCREEN END OF BLOCK b2.

SELECTION-SCREEN END OF SCREEN 1200.

DATA: ok_code TYPE sy-ucomm,

save_ok TYPE sy-ucomm.

DATA: number(4) TYPE n VALUE '1100'.

START-OF-SELECTION.

CALL SCREEN 100.

MODULE status_0100 OUTPUT.

SET PF-STATUS 'SCREEN_100'.

ENDMODULE.

MODULE cancel INPUT.

LEAVE PROGRAM.

ENDMODULE.

MODULE user_command_0100 INPUT.

save_ok = ok_code.

CLEAR ok_code.

CASE save_ok.

WHEN 'BUTTON1'.

number = 1100.

WHEN 'BUTTON2'.

number = 1200.

ENDCASE.

ENDMODULE.

AT SELECTION-SCREEN.

MESSAGE S888(sabapdocu) WITH text-030 sy-dynnr.

<b>reward if useful</b>

regards,

sunil kairam.

Read only

Former Member
0 Likes
753

Hi,

First create customized 2 selection screens.

SELECTION-SCREEN BEGIN OF SCREEN 500 .

PARAMETERS: p_xxxxxx

SELECTION-SCREEN END OF SCREEN 500.

SELECTION-SCREEN BEGIN OF SCREEN 600 .

SELECT_OPTIONS : S_xxxxxx

SELECTION-SCREEN END OF SCREEN 600.

INITIALIZATION.

if sy-tcode = display tcode .

CALL SELECTION-SCREEN 500 .

ELSEIF sy-tcode = update code.

CALL SELECTION-SCREEN 600 .

ENDIF.

Don't forgot to reward if useful...

if sy-tcode = update code

Read only

Former Member
0 Likes
753

use modify screen

Parameters:

p_xxx MODIF ID GP1

select-options:

s_xxx MODIF ID GP2

AT SELECTION-SCREEN OUTPUT.

loop at screen.

if sy-tcode = display tcode .

if screen-group1 = 'GP1'.

screen-input = 0.

modify screen.

endif.

elseif sy-tcode = update code .

if screen-group1 = 'GP2'.

screen-input = 0.

modify screen.

endif.

endif.

clear ok_code.

endloop.

Edited by: Sumesh Nair on Jan 29, 2008 12:15 PM

Read only

0 Likes
753

i don't want to grey out part

what i is if user enter tcode display the select options s_xx appear

and when user enter tcode updated the parameter p_xx appear

Read only

Former Member
0 Likes
753

LOOP AT SCREEN.

IF screen-group1 = 'GPU'.

screen-active = 1.

screen-input = 0.

screen-invisible = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.