10-06-2007 9:13 AM
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
10-06-2007 9:48 AM
Hi,
Try your code in PBO event instead of PAI event.
Regards
Rengaraj
10-06-2007 10:23 AM
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.
10-06-2007 10:53 AM
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...
10-06-2007 10:58 AM
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.