cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Approval Levels In RFX

Former Member
0 Kudos

Hi,

I Have requirement i.e Approvers are determined on the basis of Purchasing Group. Approval Levels May Vary Depending Up on the Purchasing Group. I have seen lot of threads in this forum regarding this . BRF needs to be implemented for this . But iam new to this Concept . AnyOne please Gide Me in this regard

Edited by: sunil challapalli on Apr 12, 2010 8:05 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Please check the Workflow Guide for technical information.

http://service.sap.com/srm-inst

-> SAP SRM Server 7.0 -> Workflow Guide - SAP SRM 7.0

Regards,

Masa

Former Member
0 Kudos

Hi Masa,

Thank You For Providing Good material.

I have created different Process schemas in Process level configuration.

By using expression FM I am passing Back the Process Schema to Ev_VAlue Parameter

Now it Is Giving Error 'Process Schema Not Found'. did i Miss any thing Pls Suggest me

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Can you share your custom FM logic? I think you have not filled other parameter value.

Regards,

Masa

Former Member
0 Kudos

ev_type = 'B'.

ev_length = 1.

CLEAR ev_currency.

ev_output_length = 1.

ev_decimals = 0.

ev_value = abap_true. " no processing

ev_data_missing = 'X'.

  • get event object

lo_wf_brf_event ?= io_event.

  • get Context Container from BRF event

lo_context_provider = lo_wf_brf_event->get_context_provider( ).

CALL METHOD lo_context_provider->get_document

IMPORTING

ev_document_guid = lv_document_guid

ev_document_type = lv_document_type.

CASE lv_document_type.

WHEN 'BUS2200'.

ev_value = '3C_RQ_600_002'. """Process Schema Name

CLEAR ev_data_missing.

WHEN OTHERS.

ENDCASE.

ENDFUNCTION.

For testing Purpose I hardcoded the Process schema..

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

>ev_type = 'B'.

>ev_length = 1.

>ev_output_length = 1.

If you return a scema name, type should be 'C',Character and max length is 32, but your program is setting bool type.

Regards,

Masa

former_member249671
Participant
0 Kudos

Hi Masa,

Now Error is Not coming , But the BADi For Picking the Agents is not triggering,

Bus 2200 Evaluation ID : ZBID_EVAL_PSCHEMA

This evalution ID will Write Back The Process Schema 3C_RQ_600_001

Process Level Configuration

Level : 110,

LevelType : A Approval,

Eval ID : 0EV000

RespResolverName : ZSRM_BADI_ADAPTER_500

TaskID : 40007982,

Decision Type : 1.

Like Above i configured 5 Process levels.

In Agent BAdi

I Defined Filter Values

Document Type : bus2200,

RespResolverName : ZSRM_BADI_ADAPTER_500

But still Agent BADI Is not Triggering .

Please Let Me Know Anything Is Missing

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Which method of Agent BADI you have implemented? Is it active?

Regards,

Masa

former_member249671
Participant
0 Kudos

These 2 methods I Implemented ,Implementation and Class Both Are active

GET_AREA_TO_ITEM_MAP

GET_APPROVERS_BY_AREA_GUID

For Already Creted RFX One Error iS also COming

Process Levels Not There In COnfiguration" But For that Process Schema in configuration Process Levels Are there