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 --- ***URGENT***

former_member2382
Active Participant
0 Likes
647

Dear All,

I have an EXIT which is in PAI. I am writing a code for 4 fields in the exit. When a user enters some number in field1 and selects H from the dropdown in field2. The Field 3 and Field 4 should get disabled. I have tried writing Loop at screen below the code in same exit. But its not working. Do any one know how to tackle this?

Regards,

Md

4 REPLIES 4
Read only

Former Member
0 Likes
615

Hi,

Try your code in PBO event instead of PAI event.

Regards

Rengaraj

Read only

Former Member
0 Likes
615

hi,

try to write in PBO. Made one module in PBO like <b>init_screen</b>.

<b>MODULE init_screen OUTPUT.</b>

LOOP AT SCREEN.

IF screen-group1 = 111 AND ( save_ok = 'DIS' OR save_ok = 'NT' OR

save_ok = 'PR' OR save_ok = 'FI' OR save_ok = 'LT' ).

screen-input = 0.

MODIFY SCREEN.

ELSEIF screen-group1 = 111 AND ( save_ok = 'CL' OR save_ok = 'CHG' ).

screen-input = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

<b>ENDMODULE. " init_screen OUTPUT</b>

REward if useful.

Read only

Former Member
0 Likes
615

My Dear,

in SAP we cannot trigger dialog step [PBOa dn PAI] on change of list..

so it will not happen as soon as u change the selection in the list..

What u can try is either push button (have to be click for fields to be deactivated)

or try radio button or check box.. (thy can trigger PBO and PAI when a Function code is assign to them)..

No Rewards Plz...

Read only

0 Likes
615

Bhai Viraani,

I just can't change the functional requirement. It has been design by some top level guys. We just need to implement this functionality. Anyways, I have solved half the problem. Will let you know, once I finish this.

Regards,

Parvez.