Skip to Content

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


Hi everybody .

In my program, I use the fm GUI_UPLOAD to upload the flat file which separator is the pipe(|).

Exemple of line : AAA|BBB|CCC|DDD

HAS_FIELD_SEPARATOR='|' not working, so how can i use this fm and define SEPARATOR as pipe .

thank in advance

Former Member


The t_tab and V_STRING are string type only.


object_id TYPE string,

version_series_id TYPE string,

version_number TYPE string,

revision TYPE string,

doc_number TYPE string,

doctitle TYPE string,

filesize TYPE string,

mime_type TYPE string,

plantunit TYPE string,

END OF it_tab.

the t_tab should contains only character format or string format.

DATA: t_tab TYPE TABLE OF string,

v_string TYPE string.

if you have the Quantity field in you internal table you can change the type like character format or string format.

After calling the GUI_UPLOAD function module the t_tab contains all the records of what is there in the flat file.

v_string is for work area for the internal table t_tab.

if you have the quantity field in the internal table change it into character field. Why because split statement is working only

C, N format only.



Edited by: Dhina DMD on May 14, 2011 1:31 PM

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question