cancel
Showing results for 
Search instead for 
Did you mean: 

Can't seem to get COM_PRODUCT_MAINTAIN_STATUS to work

dean_hinson2
Active Contributor
0 Kudos

Hello,

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...

CLEAR lv_CONTEXT.

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'

EXPORTING

IS_CONTEXT = lv_CONTEXT

IMPORTING

EV_LOGHANDLE = b_APPLICATION_LOG

.

CALL FUNCTION 'COM_PRODUCT_MAINTAIN_STATUS'

EXPORTING

IV_PRODUCT_GUID = b_PRODUCT_GUID

IT_STATUS = b_STATUS_MAINTAIN

IV_APPLICATION_LOG = b_APPLICATION_LOG

  • IS_STATUS_ACTIVITY =

.

COMMIT WORK AND WAIT.

SELECT SINGLE CHGNR FROM CRM_JEST

INTO lv_CHGNR

WHERE OBJNR = b_PRODUCT_GUID

and STAT = wa_PRODUCT_MAINTENANCE-STATUS

and INACT = SPACE.

Any idea why this is not working?

Points awarded accordingly.

Regards, Dean.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Which SRM version are you using ?

<b>Please see related pointers -></b>

Note 664664 Module COM_PRODUCT_UI_REFRESH unlocks after the call

Note 592715 Portal: Entered category disappears after pressing ENTER

Hope this will help.

Regards

- Atul

dean_hinson2
Active Contributor
0 Kudos

Sorry, I was on Holiday and just returned. I am on SRM 5.0/Server 5.5. I hoped that this would work but still am unable to determine why it will not take.

dean_hinson2
Active Contributor
0 Kudos

Well, I gave up using the F/Ms above. I looked at the archiving program and used the code found there to develop the progam to update the status of the products. It works and works well.

Hope this will help someone in the future.

Former Member
0 Kudos

Hi Dean Hinson,

Can I know how you did the updates. I need it urgently.

Thanks in advance.