‎2006 Aug 31 10:09 AM
I need to display the fields of a table which will be taken as a input. how to use MC_POPUP_TO_SELECT_FIELDS function module.
‎2006 Aug 31 10:16 AM
use FM REUSE_ALV_FIELDCATALOG_MERGE to get all the fields for a table
or
u can wrie select on DD03L table
select fieldname into table it_fields from dd03l where tabname = 'MARA'.
Message was edited by: Chandrasekhar Jagarlamudi
‎2006 Aug 31 10:20 AM
HI,
use function module 'NAMETAB_GET' to get filed names
of table
Regards
Amole
‎2006 Aug 31 10:22 AM
U can use the below logic
SELECT fieldname into table ltab
from DD03L where tabname = ptable.
DESCRIBE TABLE LTAB LINES LREC.
IF LREC > 0.
LSR = LSC = 15.
LER = LSR + 1 + LREC.
LEC = LSC + 50.
call function 'POPUP_WITH_TABLE'
exporting
endpos_col = LEC
endpos_row = LER
startpos_col = LSC
startpos_row = LSR
titletext = TEXT-027
importing
choice = lchoice
tables
valuetab = ltab.
ENDIF.
---Here lchoice would have your selection.
Please assign points for helpful answers !!
Message was edited by: Anurag Bankley
‎2006 Aug 31 12:22 PM
‎2006 Aug 31 12:32 PM
HI,
use function module <b>'NAMETAB_GET'</b> to get filed names
of the particular table....