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

Regarding table Control

Former Member
0 Likes
696

Hello

I have a Table control with some fields in it and i want to provide another column with domain values for that corresponding feild as F4 help

any help regarding this matter

Points for sure

5 REPLIES 5
Read only

Former Member
0 Likes
654

Dear Prashanth,

Please check if this demo program is useful...

RSDEMO_TABLE_CONTROL

See also below 2 links

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2165e990-0201-0010-5cbb-b5c2ad43...

Regards,

ABY

Read only

Former Member
0 Likes
654

Hi Prashanth,

Can you make your question more clear? If needed you can send me an email also.

Read only

Former Member
0 Likes
654

Hi,

I guess you want to add F4 help for the field which are there in table control, If this is what you want then I will gelp you. Make your question more clear.

Thanks,

Madhura.

Read only

Former Member
0 Likes
654

Hi Prashanth,

<b>Descriptive Solution is given below...

</b>

Regards,

ABY

Read only

Former Member
0 Likes
654

Hi,

Use option of dropdown on the field in table control which you want to create F4 help. This you will do in screen painter.

In program generate an internal table i_drop for the fields on which you want to have dropdown.

Then in program use funtion



select * into corresponding fields of TABLE IT_drop from z_table_ekko.

sort  it_drop by Z_EKKO_EBELN.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
  EXPORTING
    retfield               =  'Z_EKKO_EBELN'

*   DDIC_STRUCTURE         = ' '
   VALUE_ORG              = 'S'
* IMPORTING
*   USER_RESET             =
  tables
    value_tab              =  I_DROP
*   FIELD_TAB              =
*   RETURN_TAB             =
*   DYNPFLD_MAPPING        =
 EXCEPTIONS
   PARAMETER_ERROR        = 1
   NO_VALUES_FOUND        = 2
   OTHERS                 = 3
          .
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.


this will genrate F4 help on that field in table control.