cancel
Showing results for 
Search instead for 
Did you mean: 

APD: How to avoid quotation marks in file export?

08-04-2021 10:50 AM
pvschu Explorer
681 views 2 comments
0 Likes
SAP Managed Tags
Subscribe

Hi, after I created an APD using CSV-file export the generated file contains quotation marks:

"""Z_PLANUNGSRUNDE"""/BIC/YSDPLRND-YSDPLRND;"""Z_PLANUNGSVERSION"""/BIC/YSDVERS-YSDVERS;"""Z_PARTNERROLLEKAM"""/BIC/ZT_ZKSAL

I need the description of the fields in the mapping rules of course. But why were the quotation marks generated?

Unfortunatly I do not not how I could avoid this while exporting the data.

Do you know how to do?

Regards,

Peter

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

pvschu
Explorer
0 Likes

Hi Hermant,

here is the coding:

FORM compute_data_transformation
USING it_source TYPE yt_source_fields
ir_context TYPE REF TO if_rsan_rt_routine_context
EXPORTING et_target TYPE yt_target_fields .


*--------- Begin of transformation code -----------------------------

DATA: LS_SOURCE TYPE y_source_fields,
LS_TARGET TYPE y_target_fields.

LOOP AT IT_SOURCE INTO LS_SOURCE.

MOVE-CORRESPONDING LS_SOURCE TO LS_TARGET.
* Autor: Peter von Schubert, DIR
* Datum: 29.07.2021

* Währungsfeld für 0COST_VAL_S
LS_TARGET-COST_CURR = 'EUR'.
* Währungsfeld für ZTPRICE
LS_TARGET-/BIC/ZTPRICE_CURR = 'EUR'.

APPEND LS_TARGET TO ET_TARGET.

ENDLOOP.


*---------- End of transformation code ------------------------------
ENDFORM.

As you see: there is no chance to get the description of the fields... Or could it be that the target (CSV-file) has to be defined in a different way? I used transaction FILE to define the logical file name and logical destination. And I tried different data formats (ASC, BIN, DAT,...) - but w/o any effect.

Regards,

Peter