Skip to Content
0

Get approval item status before save - SRM Cart

Nov 23, 2017 at 05:19 PM

57

avatar image

Hi guys,

I'm having an issue with the status of an item from a shopping cart.

After reading lots of old posts:

Ex: https://archive.sap.com/discussions/thread/2119394

https://archive.sap.com/discussions/thread/259215

http://allaboutsapsrm.blogspot.ro/2012/02/item-based-approval-in-application.html

and many others ...

I still haven't found a way to get the current status of an item before save / submit.

Could you advise on a solution or post ? I'm not looking for tables that contain the value (as CRM_JEST, or similar) because the value isn't saved yet. Just reading the buffer status.

Regards,

Marius

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ricardo Cavedini
Nov 23, 2017 at 07:23 PM
0

Hi Marius,

I am afraid that what you are looking for is not possible.

Up to shopping cart item gets saved, there is no status to be read.

If your scenario involves approval, maybe you can try to read the approvers determined for the current document and then assign a status by your own (like awaiting approval or in revision, in case workitem is assigned to the requester).

I can't see a way to read a "buffer" status.

Regards,

Ricardo

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Hi Ricardo,

I was hoping that SRM has the same capabilities as CRM where you can read the "Order" from DB and from "Buffer", before save, since it uses some of the layers that CRM is based on.

I haven't found a function / class-method that could do that yet, so I banked on your expertise.

Since there is something like:

/sapsrm/cl_pdo_factory_sc_adv=>get_instance

which can get some "current" data, I was thinking that it was a possibility to access the actual response from the screen (with all the details, some seem to be missing):

2017-11-24-09-39-26-approve-shopping-cart.png

Regards,

Marius

0

Hi Marius,
Now I got your point. Perhaps note 1334202 can give you some insights regarding your request.

Regards,
Ricardo

0

Hi Ricardo,

Unfortunately I can't implement the note.

In order to try to implement it, at least, I have to implement note "1917681" before, since I have no data in the "details window":

Our Support Package is "SAPKB73119" which is out of validity for the latest note.

Do you know a work around this ?

Regards,

Marius

0

Hi Marius,
Actually note 1917681 is delivered in SP16 (SAPKB73116), therefore it would be already applied in your system.
This is the only idea that came to my mind.

Regards,
Ricardo

0