cancel
Showing results for 
Search instead for 
Did you mean: 

Binding problem in Rule ?

Former Member
0 Kudos

Hi Experts,

I created the Rule to fetch the Authoriser Person(BOSSID field it is in FMSB Application ). When iam testing through Simulation. it is working fine. But when i Assighned to workflow. its not fetching the User.

i Think it is Binding problem. my Export Parameters Document Number & FmArea . Which values i can import to the workflow ?

Accepted Solutions (1)

Accepted Solutions (1)

bpawanchand
Active Contributor
0 Kudos

One of the main reasons could be that the binding between workflow container and rule container is correct or not i think the values might not getting passed from workflow container to rule container.

And One more thing that you have to make a note is that you can not export any values back to workflow container from rule other thatn the determined agents based on org. objects..

Former Member
0 Kudos

Hi,

My Workflow Containers are FMAREA1, FUNDCENTER1

Rule containers are FMAREA and FUNDCENTER

This is the binding between Workflow container & Rule container.

Workflow container -> Rule container

&FMAREA1& -> &FMAREA&

&FUNDCENTER1& -> &FUNDCENTER&

Workflow container :-FMAREA1 in workflow container i maintained import and export parameters

Table: FMFCTR

Field: FIKRS

Workflow container :Fundcenter1

Table : FMFCTR

Field : FICTR

Rule container:FMAREA in Rule container i maintained import parameters only

Table: FMFCTR

Field: FIKRS

Rule container:FUNDCENTER

Table : FMFCTR

Field : FICTR

Please help me where is the problem . why the user is not fetching and not getting the mail . plz help me. the below one is the Rule code.

FUNCTION ZFM_RULE_BUDGET.

*"----


""Local Interface:

*" TABLES

*" AC_CONTAINER STRUCTURE SWCONT

*" ACTOR_TAB STRUCTURE SWHACTOR

*" EXCEPTIONS

*" FMAREA_NOT_FOUND

*" FUNDCENTER_NOT_FOUND

*" AUTHORIZER_NOT_FOUND

*"----


INCLUDE <CNTN01>.

TABLES : FMFCTR.

DATA : L_FMAREA TYPE FMFCTR-FIKRS,

L_FUNCEN TYPE FMFCTR-FICTR,

WA_ACTOR TYPE SWHACTOR,

L_BOSSID TYPE FMFCTR-BOSSID,

NUM_LINES TYPE I.

CONSTANTS: C_VALUE(2) TYPE C VALUE 'US'.

SWC_GET_ELEMENT AC_CONTAINER 'FMAREA' L_FMAREA.

IF SY-SUBRC NE 0.

RAISE FMAREA_NOT_FOUND.

ENDIF.

SWC_GET_ELEMENT AC_CONTAINER 'FUNDCENTER' L_FUNCEN.

IF SY-SUBRC NE 0.

RAISE FUNDCENTER_NOT_FOUND.

ENDIF.

IF L_FMAREA IS NOT INITIAL AND L_FUNCEN IS NOT INITIAL.

  • to get the authorizer from FMSB Application by using fundcenter and FMArea.

SELECT SINGLE BOSSID FROM FMFCTR INTO L_BOSSID

WHERE FIKRS = L_FMAREA

AND FICTR = L_FUNCEN.

IF SY-SUBRC EQ 0.

WA_ACTOR-OTYPE = C_VALUE.

WA_ACTOR-OBJID = L_BOSSID.

APPEND WA_ACTOR TO ACTOR_TAB.

ENDIF.

ENDIF.

DESCRIBE TABLE ACTOR_TAB LINES NUM_LINES.

IF NUM_LINES IS INITIAL.

RAISE AUTHORIZER_NOT_FOUND.

ENDIF.

ENDFUNCTION.

Please Solve my problem.

Edited by: Chinni4sap on May 5, 2010 11:45 AM

Edited by: Chinni4sap on May 5, 2010 11:46 AM

former_member554978
Active Contributor
0 Kudos

Please check the workflow log whether you are getting values in these worklfow containers FMAREA1, FUNDCENTER1

Also check the binding from Event container to Workflow Conatiner in SWDD->Basic Data-> Start events....

Also check the other bindings as well...

Former Member
0 Kudos

Hi Swami,

I cheked the Basic data-start-events. they are fine. when i created the FMBBC appication.

My BO is BUS0050 and event is Prepostcreate. WF is triggering fine. I checked in SWEL.

my workflow is in recievier with green colour. i cheked the log it started WF. i cheked the BO container Values coming fine in SBWP Log. .how can we check the Workflow container values. when i check those containers. it shows the display mode.

how can we see the values.

Former Member
0 Kudos

Hi Swami,

i cheked the Containers of FMAREA1& FUNDCENTER1. but it shows <not set >.

Please tell me Swami , how can i approach ?

former_member554978
Active Contributor
0 Kudos

check the import/export properties of these containers FMAREA1& FUNDCENTER1 and also check the bindings of these values from previous tasks,,,

former_member185167
Active Contributor
0 Kudos

How do FMAREA1 and FUNDCENTER1 get their values?

Former Member
0 Kudos

Just i created the WF containers FMAREA1 and FUNDCENTER1 . how the data will come i don't know. iam a new one. plz help me.

former_member185167
Active Contributor
0 Kudos

Are FMAREA1 and FUNDCENTER1 attributes of BUS0050?

If not, then you'll have to pass them in as event parameters, if you can't deduce them some other way.

Former Member
0 Kudos

i passed the FMAREA1 and FUNDCENTER1 are as event object key. i got the FMAREA1 value correct.

But iam getting the wrong value for FUNDCENTER1. Plz help me

Former Member
0 Kudos

Hi ,

In my case Organization strucuture is not maintained. if Organization structure is not maintained then my Rule will work or not ?

May be this is the problem. Plz tell me.

Edited by: Chinni4sap on May 6, 2010 7:32 AM

former_member554978
Active Contributor
0 Kudos

There is no problem in Org structure being not maintained...

You can also create a virtual arrtibute for these workflow containers and you can write your own logic to populate your required values

Answers (2)

Answers (2)

Former Member
0 Kudos

The problem is your Workflow container is not getting populated. Please check the binding from Event to workflow whether this is in place if it is getting triggered from event.

Thanks

Arghadip

Former Member
0 Kudos

Hi Agardipkar,

In binding form event container to workflow container i pass the WFinitiator and ObjectId(BUS0050) only. This is correct or i need to pass FMArea & Funcenter also ? Plz tell me ?

former_member554978
Active Contributor
0 Kudos

Kindly check whether all neccesary import parameters of rule are getting passed correctly...

Check the binding between workflow and rule.