on 05-04-2010 7:52 AM
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 ?
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kindly check whether all neccesary import parameters of rule are getting passed correctly...
Check the binding between workflow and rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.