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: 

LOOP AT SCREEN --- ***URGENT***

former_member2382
Active Participant
0 Kudos

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

Former Member
0 Kudos

Hi,

Try your code in PBO event instead of PAI event.

Regards

Rengaraj

Former Member
0 Kudos

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.

Former Member
0 Kudos

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...

0 Kudos

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.