This is similar to the question posted on Jan. 15, dealing with end-of-line/end-of-file characters. One thing I...
forgot to mention: the file was apparently downloaded to our PC, and then uploaded to SAP through calling Ws_Upload function. What do we need to adjust with Ws_upload function to handle the new file format, which no longer has end-of-line or End-of-file control characters... The current ABAP code, that handles the old file format(which has end-of-line and end-of-file characters): FORM UPLOAD_INPUT. CALL FUNCTION 'WS_UPLOAD' EXPORTING CODEPAGE = '' FILENAME = IN_FILE FILETYPE = 'ASC' IMPORTING FILELENGTH = FLENGTH_IN TABLES DATA_TAB = IN_TBL EXCEPTIONS CONVERSION_ERROR = 1 INVALID_TABLE_WIDTH = 2 INVALID_TYPE = 3.
Without having your file to test, this is a little difficult to diagnose. Have a look at the documentation for WS_UPLOAD (one of the few function modules to have documentation!). You can use FILETYPE 'BIN' which might fix your problems. Otherwise, copy to your application server, and use OPEN DATASET instead - you have far more control with this.
Dig Deeper on SAP application integration
Related Q&A from Matthew Billingham
An SAP user is trying to run a report in an SAP ALV Grid online and wants to know how to get the data in the report to appear along with the header.continue reading
An SAP user needs information on how to change the password on several SAP user accounts from a central location.continue reading
An SAP user needs to transfer customer purchase order spreadsheet data to SAP VA01 to create a new sales order.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.