2009 Aug 26 6:24 AM
Hello All,
I am downloading some data into xls sheet. In that sheet first row is heading. I have some 140 fields structure to be downloaded. How can I get filednames of fields in structure? I cant hard code it, program has to retrive it dynamically.
regards,
abhijeet mOre
Hello All,
I am downloading some data into xls sheet. In that sheet first row is heading. I have some 140 fields structure to be downloaded. How can I get filednames of fields in structure? I cant hard code it, program has to retrive it dynamically.
regards,
abhijeet mOre
2009 Aug 26 6:28 AM
Hello,
Check the FM : DDIF_FIELDINFO_GET
dfiestab-fieldname_ will have the list of fields.
You will have to loop this table and use your logic.
Cheers,
Remi
2009 Aug 26 6:35 AM
Hi Remi,
str is defined in program,
e.g.
TYPES : BEGIN OF t_wa_data,
lifnr TYPE lfa1-lifnr, "Vendor Account Number
bukrs TYPE lfc1-bukrs, "Company Code
ekorg TYPE lfm1-ekorg, "Purchasing Organisation
ktokk TYPE lfa1-ktokk, "Vendor account group
end OF t_wa_data.
in above str I want to get field text for lifnr bukrs, ekorg, ktokk at runtime in some internal table in same sequence, so that if tomorrow a field get added it should get name of that field too into the internal table.
ur FM give output of std str defined in system.
2009 Aug 26 6:34 AM
2009 Aug 26 6:48 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |