on 09-12-2014 7:55 PM
Experts,
I developed a method in a standard task which reads an ACCEPT/REJECT button and if the button is triggered updates a container element with an 'X'.
I have code in place as follows:
swc_set_element container 'accept' accept..
swc_set_element container 'reject' reject.
The container elements have been created and the bindings are correct.
However the container is not populated. I checked this in the workflow log even after I went into debug and ensured that the element was populated with an 'X'.
Do I have to use a FM ......why would the swc_set elemnt code not populate the container.
Any hints will be helpful.
Thank you.
regards
David Dittmer
Rick,
Thank you for your help......how would check the bindings between the method and the task ....as i said I am new to workflow. I am familiar with the bindings betwen the task conatiner and the workflow container....
regards
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Rick,
The following is the code
Declaring the object
Acceptance type LOEVM.
Rejection type LOEVM
Populating the ACCEPTANCE/REJECTION
case ZZ_APPROVAL_TYPE
when DS Site Approval.
acceptance = 'X'.
when DS Site rejection
rejection = 'X'.
endcase.
SWC_SET_ELEMENT CONTAINER 'APPROVAL' approval
SWC_SET_ELEMENT CONTAINER 'REJECTION' rejection.
The parameters on the task container 'acceptance' 'rejections' are the same type as above and clicked on for IMPORT/EXPORT and the workflow container elements the same.
When the ACCEPTANCE element is populated, the workflow stops and the value of 'X' does not go to the decision point.
Just cant understand what I did wrong.
Thank you.
regards
David Dittmer
Rick,
I click on the link in my inbox and the following method selects the transaction as follows:
BEGIN METHOD XXXX CHANGING CONTAINER.
SET PARAMETER ID 'PSP' Field object-key-currentexternalproje.
CALL TRANSACTION CJ20N' and skip first screen.
endmethod.
This code brings up the transaction and I enter CHANGE and select a few screens and then there is a button which is triggered for ACCEPT/REJECT. The project is saved. This dialogue task has been checked over and over again and it has an expression to find my inbox which is working but it will not complete and stops after I perform the action
The workflow stops right here. I moved ACCEPTANCE/REJECTION to another method on a tree where the database is selected to check whether accepted or rejected but the workflow does not even get there.
If you ned more information let me know.
Thanks
David
Hello Rick,
The funny thing is that when I run this workflow in the portal I get a popup message which asks me to COMPLETE WORKFLOW and then if I click on it, the workflow completes (NO agent issue) but where would I find the COMPLETE WORKFLOW popup or menu in the SAP GUI.
Any hints.....
regards
David
Rick,
Thanks for hanging in with me on this.......it was a basis problem on the system.
regards
David Dittmer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Did you define accept and reject as parameters for the method with suitable types and with the Export checkbox set?
regards
Rick Bakker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rick,
thank you for replying on saturday. I put a hard coded breakpoint in the method so when I clicked on the link in my inbox the debugger stopped in the method. I single stepped through the method code and noticed that the element was populated. I displayed the CONTAINER table in the debugger and it shows the container element is populated. The task container is therefore populated. I then checked the workflow container and it is also set up as IMPORT/EXPORT and is of the same type as the task container and the binding on the task is set up......this is such a conundrum.....the value is not passed to a condition step which is either ACCEPT/REJECT.
Thanks
David
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.