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

loop at screen

Former Member
0 Likes
734

please help on this it's not working.

-


IF p_ml = 'X'.

LOOP AT SCREEN.

IF screen-name = 'P_UNIX'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

IF screen-name = 'P_NTFILE'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

IF p_bl = 'X'.

LOOP AT SCREEN.

IF screen-name = 'P_UNIX'.

screen-input = 1.

MODIFY SCREEN.

ENDIF.

IF screen-name = 'P_NTFILE'.

screen-input = 1.

MODIFY SCREEN.

ENDIF.

IF screen-name = 'P_PCFILE'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

7 REPLIES 7
Read only

dani_mn
Active Contributor
0 Likes
626

HI,

Use the Event, like this.

try this code now.

<b>AT selection-screen output.</b>

IF p_ml = 'X'.

LOOP AT SCREEN.

IF screen-name = 'P_UNIX' OR

screen-name = 'P_NTFILE'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

IF p_bl = 'X'.

LOOP AT SCREEN.

IF screen-name = 'P_UNIX' OR

screen-name = 'P_NTFILE'.

screen-input = 1.

MODIFY SCREEN.

ENDIF.

IF screen-name = 'P_PCFILE'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

Regards,

Read only

Former Member
0 Likes
626

Hi,

The code looks fine, it has to work unless it is a table control screen.

Now, have the code in the <b>PBO Module</b> if it is a dialog module.

If it is a selection-screen program, have the same code at the <b>AT SELECTION-SCREEN OUTPUT</b> event.

Reward if helpful.

Rgds

Read only

Former Member
0 Likes
626

Hai Vijay,

What is the necessity of LOOP AT SCREEN twice, Try to combine into one and check the condition inside it. If you are in Selection screen, use the event AT SELECTION-SCREEN OUTPUT or if you are using Dialog Programming use the code in Process Before Output.

Read only

0 Likes
626

Guys,

This is code is working when i choose 2nd radiobutton and enter. But i need when ever i choose immeditaly related fields should activate.

regards,

vijay

Read only

0 Likes
626

HI,

Use 'USER-COMMAND' addition with radion button declaration.

<b>parameter: ab RADIOBUTTON GROUP radi USER-COMMAND cd.

parameter: ac RADIOBUTTON GROUP radi.</b>

Regards,

Read only

Former Member
0 Likes
626

Hi,

If you`re working on selection screen it is possible, since in dialog programming you cannot assign func. code for a radio button.

Consider the following code :

AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD2.

IF R1 = 'X'.

p_ml = 'X'.

endif.

AT SELECTION-SCREEN OUTPUT.

        • Use ur code..

This should work, if yes reward points.

Else revert back.

Regards

Read only

Former Member
0 Likes
626

HI,

Kindly remember that in the selection screen the belowsaid

event gets triggerred based on the radio button group.

AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD2.

Rgds