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

Module pool

Former Member
0 Likes
599

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.

6 REPLIES 6
Read only

vinod_vemuru2
Active Contributor
0 Likes
574

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.

Read only

0 Likes
574

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

Read only

0 Likes
574

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.

Read only

0 Likes
574

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.

Read only

Former Member
0 Likes
574

In PBO..modify the screen table...

LOOP AT SCREEN.

IF screen-name = 'Your field name' .

screen-input = 0.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

Regards,

joy.

Read only

Former Member
0 Likes
574

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.