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

function module for displaying the fieldnames when a table is given

Former Member
0 Likes
878

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.

5 REPLIES 5
Read only

Former Member
0 Likes
764

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

Read only

Former Member
0 Likes
764

HI,

use function module 'NAMETAB_GET' to get filed names

of table

Regards

Amole

Read only

Former Member
0 Likes
764

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

Read only

Former Member
0 Likes
764

Hi,

Check the Program

Include         <b> L0C15F01   </b>              

Regards,

AS

Read only

Former Member
0 Likes
764

HI,

use function module <b>'NAMETAB_GET'</b> to get filed names

of the particular table....