Can't seem to get COM_PRODUCT_MAINTAIN_STATUS to work
I have written a progran around COM_PRODUCT_MAINTAIN_STATUS and thought I had developed it correctly. While I'm not getting any errors, I cannot seem to get it to update a product's status. Here's a snippet of the code...
lv_CONTEXT-TEXT1 = 'Updating Status of Product'.
lv_CONTEXT-TEXT2 = wa_PRODUCT_MAINTENANCE-PRODUCT_ID.
lv_CONTEXT-TEXT3 = 'To'.
lv_CONTEXT-TEXT4 = wa_PRODUCT_MAINTENANCE-STATUS.
CALL FUNCTION 'COM_PRD_OPEN_LOG'
IS_CONTEXT = lv_CONTEXT
EV_LOGHANDLE = b_APPLICATION_LOG
CALL FUNCTION 'COM_PRODUCT_MAINTAIN_STATUS'
IV_PRODUCT_GUID = b_PRODUCT_GUID
IT_STATUS = b_STATUS_MAINTAIN
IV_APPLICATION_LOG = b_APPLICATION_LOG
COMMIT WORK AND WAIT.
SELECT SINGLE CHGNR FROM CRM_JEST
WHERE OBJNR = b_PRODUCT_GUID
and STAT = wa_PRODUCT_MAINTENANCE-STATUS
and INACT = SPACE.
Any idea why this is not working?
Points awarded accordingly.