on 2024 Jan 11 8:33 PM
Hello experts,
I am getting an array of strings from a JSON, a list of data. As shown in the picture

I would like to pass it to BAPI as Table Input.

Create my table data type (Step 2 - Tabla ZFI_0181)

When I go to assign the values from the list to the table it only allows me to do it individually

The problem is that my initial list of data that I obtained from reading the JSON, I don't know how many lines it will have.
Manually I can add multiple items.
But How can I add a list (Array) each items and then call BAPI runtime?
How can I assign the values from the list to the table dynamically?
Regards,
Request clarification before answering.
Hi Ricardo,
you can use a for each loop to parse the data from the file and put them into your table. In the Store you can find some how to use BAPIs with sales orders or purchase requisitions, perhaps you can reuse something from this content.
Br,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your response, I am trying that but it still does not work for me, here in the following link you can see in greater detail
Good morning Peter
I am trying something to make the call of the table through a custome script
As you can see in the following image, this is the declaration of my data table that I use for the bapi, where my input is IT_CARGA

then I am using a "for" to assign the values to my table
but as you can see it gives me an error, it doesn't recognize my datatype

Is there another way to call it,
I would appreciate any comments on the subject.
Thanks
peter.engel can you please help me with this situation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.