11-29-2011 10:25 AM
Hi all,
I'm working on the development of one interface from a non-sap system to SAP where on a first step SAP will capture a flat file into one structure "ZZZ" but I'm doubting about how to create this structure.
At first I was thinking on identifying a suitable component type/data element for each field (f.i. WAERS for currency field ZZZ-WAERS) but meanwhile I have noticed that for a similar interface the corresponding XXX structure was created using as data elements CHAR* type, where the * was the field length.
Which criteria would you choose in my case? and what will it depend on?
Thanks in advance.
Abdali
11-29-2011 4:36 PM
I think it is a good idea to use only CHAR-definitions for importing flat file data. Here the focus is to have a fixed column length and avoid conversion errors during import, as opposed to neat F1 help texts, for example.
When further processing the data inside SAP you can move the data to another structure with proper data elements (like WAERS or WRBTR), checking for consistency and catching conversion errors in the process.
Thomas
11-29-2011 4:36 PM
I think it is a good idea to use only CHAR-definitions for importing flat file data. Here the focus is to have a fixed column length and avoid conversion errors during import, as opposed to neat F1 help texts, for example.
When further processing the data inside SAP you can move the data to another structure with proper data elements (like WAERS or WRBTR), checking for consistency and catching conversion errors in the process.
Thomas
11-29-2011 4:45 PM