on 08-05-2016 9:22 AM
The scenario is to update a tracking number field (ZTRACK_NO) in the custom tab of the Delivery Header. I am using the BAPI: BAPI_OUTB_DELIVERY_CHANGE with extension parameter.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
EXPORTING
HEADER_DATA = GS_HEADER_DATA
HEADER_CONTROL = GS_HEADER_CONTROL
DELIVERY = GS_DLVRY
TABLES
EXTENSION2 = GT_EXTENSION2
RETURN = GT_RETURN.
if GT_RETURN[] is initial.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = c_x.
endif
This is working perfectly in most of the cases, but in some scenarios, the bapi is successful but the delivery is not updated with the tracking number.
Out of 2000 delivery records, 1800 records got updated correctly, but random 200 records are not updated. The interesting part is: bapi RETURN is initial (success) in all the cases.
Can you think about any functional scenario where this happens? I am absolutely clueless about this issue.
Please help......
Can you confirm if there is any BATCH split scenario. Alternatively you may ask ABAP developer to check any particular pattern with those 200 deliveries.
If you change a batch subitem from a distributed outbound delivery in the decentralized WMS, then this batch subitem already exists in the central ERP system.
The fields HIERARITEM and USEHIERITM are empty. The system copies the batch subitem in the DELIV_ITEM field.
If you change the quantity of a batch main item from a distributed outbound
delivery in the decentralized WMS, then this batch main item already exists in
the central ERP system.
HIERARITEM
USEHIERITM
DELIV_ITEM
ItemData
DELIV_ITEM
HIERARITEM
USEHIERITM
1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Sometimes it will take time update the tables.Please use wait up to statement.
Ex: Wait upto 5 secs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.