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

Conversion problem when spiting files from application server?

I have a file in application server since when i read file from application server it will be encoded with # instead of tabspace.so i have to split it at # or con_tab.

but what if the one of the field in file is of type I.its showing it can be only of type c or string.

Here is it WA_ITEM-KWMENG. field

wa1 is of type string.

file1 is of string.

how can i split that field .how to proceed what to do??

*OPEN DATASET ITEM1 FOR INPUT IN TEXT MODE ENCODING NON-UNICODE.

*DO.

*    IF SY-SUBRC <> 0.

*      EXIT.

*    ENDIF.

*    READ DATASET ITEM1 INTO WA1.

*    IF sy-subrc = 0.

*      SPLIT wa1 AT con_tab  INTO WA_ITEM-key

*                                 WA_ITEM-KUNNR

*                                 WA_ITEM-KUNNR2

*                                 WA_ITEM-BNDDT

*                                 WA_ITEM-MATNR

*                                 WA_ITEM-KWMENG.

*

*

*    APPEND WA_ITEM to it_ITEM.

*    ENDIF.

*

*ENDDO.

*CLOSE DATASET ITEM1.

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