2009 Sep 18 1:49 PM
Hiiii Experts,
LOOP AT fp_i_wwcmp INTO fp_wa_wwcmp.
CONCATENATE fp_wa_wwcmp-pernr
fp_wa_wwcmp-etype
fp_wa_wwcmp-maxbt
fp_wa_wwcmp-epayperiod
fp_wa_wwcmp-currencyid
INTO l_v_data SEPARATED BY l_v_char_tab.
i need to insert header names for etype,maxbt,epayperiod,currencyid which are needed to be transfer to application server.
regards,
kasyap
Edited by: Harish Kasyap on Sep 18, 2009 2:49 PM
Hiiii Experts,
LOOP AT fp_i_wwcmp INTO fp_wa_wwcmp.
CONCATENATE fp_wa_wwcmp-pernr
fp_wa_wwcmp-etype
fp_wa_wwcmp-maxbt
fp_wa_wwcmp-epayperiod
fp_wa_wwcmp-currencyid
INTO l_v_data SEPARATED BY l_v_char_tab.
i need to insert header names for etype,maxbt,epayperiod,currencyid which are needed to be transfer to application server.
regards,
kasyap
Edited by: Harish Kasyap on Sep 18, 2009 2:49 PM
2009 Sep 18 2:10 PM
Hi Harish,
before outputting the tables contents, you can build a header line.
If your table is based on a dictionary structure, then it is easy: There are lots of DDIC function modules to retrieve this information. If your Data is displayed in ALV (always best solution before file creation), you can get all you need from the field catalog.
Concatenate this separated by CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB as you do with the data.
Append to output table first.
Regards,
Clemens
2009 Sep 18 2:17 PM
hiiiii clemens thanks a lot for ur reply,
this is not an alv report,the output is directly transfered into application server AL11.
and i have used this statement
CONCATENATE 'ID'
'EpayType'
'EpayAmount'
'EpayPeriod'
'CurrencyID'
INTO l_v_data SEPARATED BY l_v_char_tab.
transfer l_V_data.
is this the rite one
regards,
kasyap
2009 Sep 18 2:44 PM
Hai Harish,
I hope you are using OPEN dataset, TRANSFER and CLOSE DATASET to transfer data to application server.
after open data set statement Prepare the header you want to send and then transfer it using transfer statement.
once after transfering the header loop at the internal table whose contents are to be sent to file and then use the transfer statement.
I think the code you have given serves the purpose.
Regards,
Sravan
2009 Sep 18 3:09 PM
hiii thanks for ur reply sravan,anyway i sorry ,i want in the format which i mentioned above ok
regards,
harish
2009 Sep 18 3:41 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |