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: 

How to Change Handling Unit User Status

Former Member
0 Kudos
2,787

Hi All,

I am trying to change the HU Status using FM 'STATUS_CHANGE_EXTERN' but its not working.

lx_huheader-hu_id is the Internal Handling unit number.

CONCATENATE 'HU'

lx_huheader-hu_id INTO

lv_objnr.

CALL FUNCTION 'STATUS_CHANGE_EXTERN'

EXPORTING

client = sy-mandt

objnr = lv_objnr

user_status = 'E0002'

EXCEPTIONS

object_not_found = 1

status_inconsistent = 2

status_not_allowed = 3

OTHERS = 4.

Please guide me.

Thanks

Srinath

3 REPLIES 3

former_member196079
Active Contributor
0 Kudos
619

Hi

after try to call BAPI_TRANSACTION_COMMIT

Best ragards

Marco

0 Kudos
619

Hi Marco,

I am getting NO_OBJECT_FOUND but have entry in JSTO.

In PERFORM STAUS_READ i am not getting any values in JSTO_BUF

Thanks,

Srinath

former_member196079
Active Contributor
0 Kudos
619

HI...

add this Export parameter in the call of function module,


           SET_CHGKZ                 = 'X'

after chef id the objnr is correct.........remember to call the commit work, or BAPI_TRANSACTION_COMMIT after the status change.

Marco