10-23-2009 11:26 AM
Hi gurus!!!
We're facing this problem:
When posting goods movment wiht FM WS_DELIVERY_UPDATE, this FM throws error BS001 "No status object is available for HU ####".
This only happens when in the same Z t-code we do the following:
1 - Create Delivery;
2 - picking (WS_DELIVERY_UPDATE)
3 - post goods movment (WS_DELIVERY_UPDATE)
If, for some reason, we leave transaction between 2 and 3, everthing works fine.
I've checked my code, and after every call to WS_DELIVERY_UPDATE I have a "commit work and wait"....
Did I miss something?
Do you have any Ideias?!
Best regards,
Carlos Constantino
10-23-2009 2:36 PM
please throw some more light on handling unit scenario in ur object, there seems to be some issue related to handling units.
10-23-2009 2:53 PM
Hi!
Fisrt of all: Thank You abhishek,
Handling units are being created automaticly at delivery creation due to packing instructions. (this is how mutch i know about this subject - if you need something more specific I need to call my SD/MM consultant).
Ok, I also thougth about HU, but why does my program is albe to post goods movment if I exit from it and continue the proccess in afterwards?
I've been debugging for a wile now, and I haven't found the exact conditions that causes the error...
Thanks again, but if you need more specific data about our handling unit scenario, please ask!
Carlos Constantino
10-23-2009 5:42 PM
Guys: I'VE FOUND THE PROBLEM!!!
The problem was that I called FM WS_DELIVERY_UPDATE 2 times with parameter COMMIT = 'X'.
This option resets status object and therefore at the second time It couldn't be read.
So, be aware of commits: if BS001 error occurs in z code, check for commits.
Best regards,
Carlos Constantino.
03-12-2021 10:27 AM
10-18-2022 11:08 AM
Hello guys,
Just to share a solution, it usually happens when excuting the FM by Z program. So try to execute the code bellow befor call the FM:
CALL FUNCTION 'RV_DELIVERY_INIT'
CALL FUNCTION 'L_SAPLL03A_INIT_INT'.
PERFORM SAPML03T_INIT(SAPML03T).
CALL FUNCTION 'HU_PACKING_REFRESH'.
CALL FUNCTION 'LE_DELIVERY_REFRESH_BUFFER'
EXCEPTIONS
NO_KEY_SPECIFIED = 0
OTHERS = 0.
09-25-2023 4:46 PM
Hello,
thank you for the answer, it solved my problem using Function Module WS_DELIVERY_UPDATE_2 to update picking and posting goods issue.
I had error message no. BS001 "No status object is available for HU ...." before.