Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Output format CURR, QUAN, DATS for extract

Hey,

i have a problem with the output format from database to a textfile.

I need the original format without the user settings.

Is it possible to deactivate the user settings for extract data?

I need datatype CURR, QUAN, DATS in original-format like YYYYMMDD for DATS.

I use this syntax for extract :

TYPES: 
BEGIN OF type_BKPF,
BLDAT          LIKE BKPF-BLDAT
END OF type_BKPF,
...
BEGIN OF type_file0,
BLDAT(8)
END OF type_file0,
...
DATA: gs_BKPF      TYPE type_BKPF,
T_BKPF      TYPE TABLE OF type_BKPF,
gs_file0    TYPE type_file0,
p_file0    TYPE String,
...
START-OF-SELECTION.
MOVE 'BKPF_p_file0.txt' TO p_file0.
CONCATENATE p_file p_file0 INTO p_file0.
OPEN DATASET p_file0 FOR OUTPUT IN TEXT MODE.
SELECT  BLDAT INTO gs_BKPF FROM BKPF.
CLEAR gs_file0.
MOVE-CORRESPONDING gs_BKPF to gs_file0.
CLEAR: gs_file0-BLDAT.
WRITE gs_BKPF-BLDAT TO gs_file0-BLDAT.
TRANSFER gs_file0 TO p_file0.
ENDSELECT.
CLEAR gs_BKPF.
free: gs_BKPF,
      gs_file0.

Thanks in advance.

Best regards.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question