Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error BS001 when posting goods movment with FM WS_DELIVERY_UPDATE

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

please throw some more light on handling unit scenario in ur object, there seems to be some issue related to handling units.

0 Kudos

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

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.

0 Kudos

Hi I am also getting same error.
What is the solution

renatabarros
Explorer

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.

0 Kudos

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.