on 05-17-2016 2:30 PM
Dear community
We have a file interface where we want to read a file completely, instead line-by-line. This is due to performance reasons. The bapi we want to use in our action is able to use a table of data. This data is read from a file, manipulated and then passed to the bapi. So far, we read the data line-by-line from our file. Is it possible to read the file completely and then execute the action once for all read data?
Thank you in advance,
Kind regards
Thimo
Hi Thimo,
yes, its possible. Your interface's raw structure needs a component which has a table type. The line type of this table needs to fit to your file.
In the file adapter configuration maintain your interface's raw structure in field "Structure Name". Maintain the component of your table type in field "Field Name".
Then you should have all lines of the file in one data message and can call the action for all lines at once.
Best regards,
Verena
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Verena
Thank you for your answer.
I have the following structure set in the interface:
The table type of component "LINE" has the following structure which matches our file:
The following settings were made in our file adapter:
But our file is still read line by line. Do we have to set the import parameter of "CURR_LINE" to the table type? I think that the parameter curr_line is currently equal to one line of the file. This brings me to another problem we are facing: We cannot debug the action FM. No matter what breakpoint we set, it does not stop there.
Hi Thimo,
Could you check one of the messages in /AIF/ERR. How many lines does the component LINE have for a message?
As you are referring to CURR_LINE, which is the parameter of an action function module, I assume that the issue is not in the file adapter, but that it is rather related to the way the action is called.
Best regards,
Verena
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.