‎2008 Jul 21 4:12 PM
Hi,
I want to place a field with a contant value.
For Eg: Reimbursement type = Tuition. The value tuition should be displayed in disable mode and not able to change the value.
Regards,
Srik.
‎2008 Jul 21 4:21 PM
HI,
If u want to parmanently make that field input disabled the In attributes of that field select output only check box and activate.
If it is dynamic then in PBO of that screen put below logic.
If ur conditions satisfied like when some check box is selected etc.
LOOP AT screen.
CHECK-SCREEN-name = 'ur screen field name'.
screen-input = 0.
MODIFY screen.
EXIT.
ENDLOOP.
Thanks,
Vinod.
‎2008 Jul 21 4:35 PM
Hi,
Thank you for your response. the values are not dynamic and so I tried the output only option but the fields are disabled but values are not appearing when I execute Please help me.
Regards,
Srik
‎2008 Jul 21 4:47 PM
Hi,
Did you get the values before changing the field from change mode to display mode? If it is not comming then check whether you assinged to correct field.
Thanks,
Phani Diwakar.
‎2008 Jul 22 5:32 AM
Hi Sri,
Its simple. Just assign ur hard coded value to the screen field in the PBO of that screen.
In the PBO Module put this code.
screen field name = 'UR hard coded value'.
Your work done. Check this and get back in case of any help.
Thanks,
Vinod.
‎2008 Jul 21 4:23 PM
In PBO..modify the screen table...
LOOP AT SCREEN.
IF screen-name = 'Your field name' .
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Regards,
joy.
‎2008 Jul 22 5:42 AM
Hi,
In PBO, you need to assign ur value to the varaible.
i.e Reimbursement type = Tuition :
MODULE init OUTPUT.
p_reimbursementtype = 'Tuition'.
ENDMODULE..
hope this helps.
plz reward if useful.
thanks,
dhanashri.