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

Dynamic selection for fields

Former Member
0 Likes
328

Hi all,

I need to have dynamic selections for Company code field, Controling area field.

Can anyone help me in dynamic selections.

Thanks in advance

Regards

Neha Kapoor

1 REPLY 1
Read only

Former Member
0 Likes
297

hi,

try this function modules 'RS_TABLE_LIST_CREATE'

pass the table name now u can select the fields of that table according to u .

parameters itab(20).

CALL FUNCTION 'RS_TABLE_LIST_CREATE'

EXPORTING

table_name = itab

  • ACTION = 'ANZE'

  • WITHOUT_SUBMIT = ' '

  • GENERATION_FORCED =

  • NEW_SEL =

  • NO_STRUCTURE_CHECK = ' '

  • DATA_EXIT = ' '

  • IMPORTING

  • PROGNAME =

  • TABLES

  • SELTAB =

  • EXCEPTIONS

  • TABLE_IS_STRUCTURE = 1

  • TABLE_NOT_EXISTS = 2

  • DB_NOT_EXISTS = 3

  • NO_PERMISSION = 4

  • NO_CHANGE_ALLOWED = 5

  • OTHERS = 6

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

execute this than pass 'MARA' execute and go to

setting > list format > choose fiels

settinf > field of selections

hope it will help u

with regards

chetan vishnoi