‎2006 Jul 26 6:57 AM
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
‎2006 Jul 26 7:15 AM
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