Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

fileds attributes of input or ont in table contorl

HI,experts

in the program there is one parameter p_recount.

in my table control ,there are 5 columns, f1 f2 f3 f4 f5

f1 f2 f3 is display only, and if p_recount = 00.,f4 f5 may input but if p_recount != 00.

f4 f5 also display only.

and when i push the "new" button,all the 5 fileds are input fields.

now i have group them,but i can not put follows code into PBO .how to do this??

  • LOOP AT gt_tc WITH CONTROL item_info.

  • MODULE modify.

  • if ok_code = 'NEW'.

  • LOOP AT screen .

  • if screen-group2 = 'ALL'.

  • screen-input = '1'.

  • MODIFY screen.

  • endif.

  • ENDLOOP.

  • endif.

  • IF gw_header-ivnum = 00.

  • LOOP AT screen .

  • if screen-group1 = 'CHAGNE'.

  • screen-input = '1'.

  • MODIFY screen.

  • endif.

  • ENDLOOP.

  • endif.

  • endloop.

thank you very much!

Tags:
Not what you were looking for? View more on this topic or Ask a question