cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SRM 7.1 BADI /SAPSRM/BD_WF_PROCESS_CONFIG

Former Member
0 Kudos
162

Hi Experts,


I need to approve the shopping cart in SRM 7.1 by item with different approval level by item, e g.

Item 10 - 1000000001 (2 approval Level)

1st - Level - Approver X

2st - Level - Approver Y

Item 20 - 1000000002 (3 approval Level)

1st - Level - Approver X

2st - Level - Approver Y

3st - Level - Appover Z

.

The approval leve is determined based on the value of the item and settings (Table "Z"). I implemented the BADI  /SAPSRM/BD_WF_PROCESS_CONFIG, but the DOCUMENT_GUID is populated with Header GUID.

Do I need to configure/activate something relevant provess level via the BRF or Implemented another BADI?

Ho

Regards,

Alexandre.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Alexandre,

not sure if I fully understood your problem...

This BAdi gives you only the document type and number. You need to read the item details yourself within the implementation if you want to have an item based approval with some logic behind... So basically in method CREATE_PROCESS_LEVEL_CONFIG of the BAdi you first get the item details of the SC. Then you need to carry out your logic depending on value and Ztable. If an additional approval is necessary you then can add a process level or change the one retrieved from the process level configuration.

You can also do this directly within the process level configuration. In this case you wouldn't need  the BAdi implementation at all.

For your example above three steps are needed within the process level configuration, all with decision type 2(item-based).

First step: Within the BRF you need to check if at least one item needs to be approved depending on your logic. If so, you can then assign all items of the SC which need to go for first level apprival to one area guid within your implementation of the BAdi /SAPSRM/BD_WF_RESP_RESOLVER. For those item you can then add the approver.

Second step: Same as in the first, only you custom logic changes(higher values are needed for this step I guess).

Third step: same again...

If you have more approval level, then you need to add these as well. At the end the maximum number of possible approvals have to be reflected within the process level configuration...

Hope this helps a bit.

Markus

Answers (0)