Skip to Content
0
May 09, 2012 at 09:16 AM

Regarding dynamic file download in application server

116 Views

Hi Experts,

I need an urgent help,

How can we download a dynamic table as a file with tab/ any separator in application server.

In case of defined structred internal table, we can use the fieldname and can separate them with tab , for exp..

CONCATENATE

lwa_final2-version
lwa_final2-period
lwa_final2-respcenter
lwa_final2-cost1
lwa_final2-cost
lwa_final2-activity
lwa_final2-target
lwa_final2-receiver1
INTO lv_string SEPARATED BY ','.
TRANSFER lv_string TO

lv_dsn.

As we know the defined structure so we can use separator to create kama separated file , but in case of dynamic table the field name will not be different so how can we download the content with separator?

For exp , If we have MATNR,MATKL and MTRAT where mtart will vary dynamically then how can we download the matnr , matkl and n no of mtart with header description?

Thanks in advance.

Moderator Message: Urgency downgraded.

Message was edited by: Suhas Saha