Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Transaction through User Decision step in workflow

Former Member
0 Kudos

Hi all,

Pls help me calling a transaction through User Decision step in workflow. I have attached two buttons to my User decision and the one of the outcomes to a task where I am calling the transaction through a method of BOR. But the problem is I am unable to see the transaction when I press the button on my User Decision at test run.

Can you ppl let me know how can I achieve this?

Pls reply ASAP...

Thanks

Sangharsh

1 REPLY 1

Former Member
0 Kudos

Hello Sangharsh ,

Please Check the paramater of of the method which you define.

e.g. I define CALL_TCODE_CJ03 method

which have the parameters FLAG,ProjectDefinition,WBSElement2,User

with export, import checkbox.

Pass the paratmeres in programs

e.g.

BEGIN_METHOD CALL_TCODE_CJ03 CHANGING CONTAINER.

DATA:

FLAG(1),

PROJECTDEFINITION TYPE PROJ-PSPID,

WBSELEMENT2 TYPE PRPS-POSID,

USER TYPE USR21-BNAME.

SWC_GET_ELEMENT CONTAINER 'FLAG' FLAG.

SWC_GET_ELEMENT CONTAINER 'ProjectDefinition' PROJECTDEFINITION.

SWC_GET_ELEMENT CONTAINER 'WBSElement2' WBSELEMENT2.

SWC_GET_ELEMENT CONTAINER 'User' USER.

GET PARAMETER ID 'PSP' FIELD PROJECTDEFINITION.

GET PARAMETER ID 'PRO' FIELD WBSELEMENT2.

SET PARAMETER ID 'PSP' FIELD PROJECTDEFINITION.

SET PARAMETER ID 'PRO' FIELD WBSELEMENT2.

CALL TRANSACTION 'CJ03' AND SKIP FIRST SCREEN.

SWC_SET_ELEMENT CONTAINER 'FLAG' FLAG.

SWC_SET_ELEMENT CONTAINER 'ProjectDefinition' PROJECTDEFINITION.

SWC_SET_ELEMENT CONTAINER 'WBSElement2' WBSELEMENT2. SWC_SET_ELEMENT CONTAINER 'User' USER.

END_METHOD.

I hope it will help you.

***Assigning points is the way to say thanks in SDN.***

Minaxi Shah