2010 Mar 26 11:57 AM
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
2010 Mar 26 11:59 AM
2010 Mar 26 12:02 PM
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
2010 Mar 26 1:05 PM
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