2005 Dec 08 4:22 PM
Hello,
I want to update billing block in the items of the order.
I am filling the 2 tables ORDER_ITEM_IN and ORDER_ITEM_INX with lots of POSNRs (and all the required parameters).
I want to execute this bapi once per VBELN.
Everything works fine but can I know which POSNR has not been updated (if there was a problem) ?
The Return table does not give me enough information about this.
Of course, I do not want to parse the text given back from the Return table.
Thanks a lot!!!
2005 Dec 08 4:45 PM
Hi,
May be you can check them by going to the table "CDHDR" by giving relevant fields and from there going to "CDPOS".
Regards,
Suman
Hello,
I want to update billing block in the items of the order.
I am filling the 2 tables ORDER_ITEM_IN and ORDER_ITEM_INX with lots of POSNRs (and all the required parameters).
I want to execute this bapi once per VBELN.
Everything works fine but can I know which POSNR has not been updated (if there was a problem) ?
The Return table does not give me enough information about this.
Of course, I do not want to parse the text given back from the Return table.
Thanks a lot!!!
2005 Dec 08 4:31 PM
the bapi return will give the required info. There is no other go for this. u need to get from the return table itself.
2005 Dec 08 5:08 PM
2005 Dec 08 5:17 PM
Hi
Perhaps the easier way is reading the items after updating it.
You should know which data have to be changed and you should know their value before beeing changed.
So if you run the BAPI with syncronous way after calling BAPI, you can re-read the order in order to see which items are updated.
This solution could be good if you haven't to change many orders in the same session, because the syncronous way should get worse the performance.
Max
2005 Dec 08 4:32 PM
Hi David,
There is no other way to know which POSNR has not been updated other than from the return table.
If you see the Return table, there are fields like MESSAGE_V1, MESSAGE_V2, PARAMETER etc. I think these fields will definitely have the POSNR number for which the error occured (not updated).
Hope this helps........
Lokesh
Pls. rewards appropriate points.
2005 Dec 08 4:45 PM
Hi,
May be you can check them by going to the table "CDHDR" by giving relevant fields and from there going to "CDPOS".
Regards,
Suman
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |