on 06-20-2015 4:11 PM
Hi Experts,
I am generating a .txt file to my client work station from a DSO through APD daily. I need to put few more fields in the file with constant values while generation. My doubts is in this case, we need to write any abap programme for this or any other solutions are there?
Thanks in advance.
Anil
Hi Anil,
Just do as like below.
DATA: LS_SOURCE TYPE Y_SOURCE_FIELDS,
LS_TARGET TYPE Y_TARGET_FIELDS.
LOOP AT IT_SOURCE INTO LS_SOURCE.
LS_TARGET-field1 = LS_SOURCE-field1.
LS_TARGET-field2 = LS_SOURCE-field2.
LS_TARGET-field3 = LS_SOURCE-field3.
LS_TARGET-field4 = "Value1" "Constant
LS_TARGET-field5 = "Value2" "Constant
ENDLOOP.
Hope it will some idea.
Thank you,
Nanda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nanda,
Thx for the inputs and it is working.
I am using APD to generate a file from DSO on daily basis. Now, i want to split the DSO records in to 2 parts and want to generate 2 files instead of 1 file.
I tried to map DSO to filters parallel, but it is not working. any ideas to how to achieve this like we have to use any transormation type or anything?
Thanks
What is the source of the APD ..? if it is a query - then add additional key figures with formulae in them to get the constants - and then if you need some specific text in those columns - modify it using ABAP in the APD.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anil,
I think you can write a piece of code in Routine in transformation , try with help of abaper.
Regards,
Vengal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.