Container Element!!!!!!!! in workflow
Hi to alll.....
Can anyone throw some light on "Container element " in workflow....
Why do we need that ? whats the purpose of that..
Plz its urgent..
Regards,
Sanjana
hi Sanjana,
The workflow container contains an element which is defined with a data type reference to the same object type that is created in the referenced task, this binding definition is proposed automatically when an activity is defined.
If no element with an appropriate data type reference is available in the workflow container, a suitable element is added to the workflow container and the binding entered.
For more info pz go through the link given below,u will get the useful info regarding creation of container element and much more .
http://****************/Tutorials/Workflow/Workflow.htm
please reward if u find the info useful for u
regards
ashish
Similar Messages
-
Multiline container element in workflow
Dear all,
I am using a multiline container element in workflow container. Can anybody suggest how I can see the values of that element? After workflow execution is COMPLETED and I go to SWI1, it shows only simple elements. It doesn't show any of my multiline elements.
Please help.
Thanks in advance,
Regards,
Pranav.Hi Pranav,
It does work in 6.20. I am not sure about 4.6C.
Display Technical Details from the Workflow log for your WF instance. You can examine the Container values for each of the steps. See if the values show up (are you certain your multiline container has been populated?). If you are populating the multiline container from an object method, verify by testing your object method that the parameter are correctly defined and it is getting populated. -
How to create workflow container element from workflow builder?
How to create workflow container element from workflow builder?
in workflow
three are five container, for each container we have define according to requirement of that particular container.
1. event container
2. workflow container
3. task container
4. method container
5. rule container
1. event container
in evernt contianer we have to create elements in BOR where we create event in parameters
2. workflow container
in workflow container we have to create elements in workflow builder itself. in left side of the screen we see <double click to create element>
3. task container
in task container we have to create in task itself it has a tab called container elements
4. method container
in method container we have to create in BOR. it is created in parameter of that BOR.
5. rule container
in rule container we have to create in PFAC transaction -
How to create a container element in workflow container
Hi,
I am learning WF by a Tutorial. In which absence of notification was considered as example. As per tutorial, I created two task for creating a Notification and checking a absence
In the next step it ask to create a container element(approver) to workflow container. How i can create the same.
Also, please clarify me on the binding between task container and workflow container....with this example
Thanks
SureshHi,
On the workflow builder LEFT side below the navigation area u can see this <Double-Click to Create>.
Double click and create the container.
During binding it looks as follows.
Workflow -
> Task
Workflow <----
Task
What happen here is from workflow the data passed to task and it is used for processing, after that it returned back to the workflow. Now u can create the container on bothside and bind the data. ie Variables.
Creating container u can refer : http://www.****************
Reward for useful answer.
Richard A -
ECC 6.0 - WS20000050 - Container Elements from Workflow to Rule in step 172
Hello Guys/Gals,
Hope you all are doing good.
Greatly appreciate if you could help on this with some tips.
We are under the process of the upgradation to ECC 6.0. Decided to use the std WF WS20000050 for travel request.However work flow ended in error at step 372(Approve Travel request) saying
"Source (expression '&TRIP.EMPLOYEENUMBER&') of binding assignment is not available" and
"Source (expression '&TRIP.TRIPNUMBER&') of binding assignment is not available" and
Error in the evaluation of expression '<???>&TRIP.TRIPNUMBER&' for item '1'..etc.
Can anyone tell what is are the container elements need to be passed and possible errors.
Good Day.
RajHello,
Check in SWO1 if the BO related to the TRIP container element has those attributes (EMPLOYEENUMBER and TRIPNUMBER) and if so then check in the workflow log if they have a value.
regards
Rick Bakker
Hanabi Technology -
How to pass value to Multiline container element in workflow ?
Dear Experts,
I am using the BAPI "SAP_WAPI_WRITE_CONTAINER" to write into the workitem container elements. now i want to write the data into a multiline container element. i am unable to do the same. please guide me how to write the data into multiline container.
I am getting the data from portal so i am using the BAPI to populate the container.
Please help me out...
Thanks & Regards
NigeshHi,
Use the following code:
DATA: lv_text TYPE string,
lt_cont_vals TYPE swconttab,
lt_cont_defs TYPE swbconttab,
lo_oref TYPE REF TO cx_root,
lo_workitm_cntxt TYPE REF TO cl_swf_run_workitem_context,
lo_wi_conv TYPE REF TO if_swf_cnt_conversion,
lo_wi_cnt TYPE REF TO cl_swf_cnt_container,
lif_wi_cnt TYPE REF TO if_swf_ifs_parameter_container,
lo_exception_return TYPE REF TO cx_swf_cnt_container.
***--- Get work Item Context
TRY.
CALL METHOD cl_swf_run_workitem_context=>get_instance
EXPORTING
im_wiid = im_wi_id
RECEIVING
re_instance = lo_workitm_cntxt.
CATCH cx_swf_run_wim INTO lo_oref.
lv_text = lo_oref->get_text( ).
ENDTRY.
***--- Get Instance of the work Item Container
CALL METHOD lo_workitm_cntxt->if_wapi_workitem_context~get_wi_container
RECEIVING
re_container = lif_wi_cnt.
***--- Type casting work item container into class CL_SWF_CNT_CONTAINRER
lo_wi_cnt ?= lif_wi_cnt.
***-- Set the value
TRY.
lo_wi_cnt->if_swf_cnt_element_access_1~element_set_value(
EXPORTING
name = 'ITEM'
value = t_item[]
CATCH cx_swf_cnt_cont_access_denied. " Change Access to Container Not Allowed
CATCH cx_swf_cnt_elem_not_found. " Element Not Found
CATCH cx_swf_cnt_elem_access_denied. " Element Must Not Be Changed
CATCH cx_swf_cnt_elem_type_conflict. " Type Conflict Between Value and Current Parameter
CATCH cx_swf_cnt_unit_type_conflict. " Type Conflict Between Unit and Current Parameter
CATCH cx_swf_cnt_elem_def_invalid. " Element Definition (For Example, Type Name) Is Invalid
CATCH cx_swf_cnt_invalid_qname. " Qualified Name Invalid/Already Being Used
CATCH cx_swf_cnt_container. " Exception in the Container Service
ENDTRY.
* VERY IMPORTANT -- Save changes to DB
TRY.
lo_wi_cnt->save_to_database( ).
CATCH cx_swf_cnt_invalid_por. " Invalid Persistent Object Reference
ENDTRY.
lo_workitm_cntxt->publish( ).
COMMIT WORK AND WAIT. -
Urgent - How to pass value to Multiline container element in workflow
Hi,
I hav a requirement as below...
1) In a Bus. Object, there is a method with a parameter which is Multiline.
2) When I execute it directly from Bus. Object, I am able to populate any no. of lines to the multiline parameter & execute it. It is working correctly.
3) Now I have created a task for the same Method & used it in my workflow.
4) I want to pass multiline values to the parameter from workflow.
5) I dont have any internal table being filled in the previous steps. I directly want to assign variables or constants to it.
How can I do it????
Thanks,
Sivagamihi sivagami,
Please help me. I am also facing same type of problem. i am new to workflow. i am using using FM sap_wapi_write_container. to write into the container. but here my problem is i don know wat is the element name to refer to the value. if i give any element naem its taking as separate element & not as the same multiline container. i hope u will be able to assist me since u have worked on the same type of problem.
If u help i will be highly thankful to u.
Thanks & Regards
Nigesh -
Import workflow container element to program exits
Hi Friends
Can you please let me know if we can import container elements from workflow to program exits in step?
Regards
RajeevHi Rajeev,
Yes you can import container elements from the workitem (not the workflow) to the program exit. You need an element which references the container (if_swf_ifs_parameter_container). You probably have an attribute in you class which is a reference to IF_WAPI_WORKITEM_CONTEXT called M_CTX. This has a method called get_wi_container which will give you the workitem container. Now you not only have the option to read elements with method get in your container class, but there is also a method set which will allow you to fill or change values in the container.
Regards,
Martin -
String type container element truncated in email
Hi Folks
In the email step of the workflow I have used a string type variable ( Notes of approver of ESS workflow ). The variable is populated completely in the container element in workflow log, but in the email body it's getting truncated after about 80 characters. I did apply the note 975947 but it did not help. Appreciate if anyone can let me know the fix for this.
Regards
RajeevI Know that EMAIL subject has a limitation upto 80 characters.
so you can do like this, create a internal table with one variable of 132 chanracters.
Pass this variable to that table.
so while inserting the table in email body, you will be asked to choose one of the options.
there you choose an with line break, it will appear in your editor as&it_tab##&.
Then definitely all the contents will be displayed. -
How to determine worklfow container element for BUS2031?
Hai,
I am new to W/F. I would like to know how to detemine workflow container element for Customer Quotation generated(BUS2031)- [event] created.ie based on what?
Example :&Jquotation&,&JtransactionCode& etc.....
any screen shot docu for binding/import/export purpsoe.
Points will be given.
With Regards,JaheerHai Aditya,
Thanks for your reply.
yes . I want to know what base we can create container element.
Flow is like this :somebody create quotation , it will for manager approval & finally goes(mail) to customer.
For this I am using object type BUS2031. Now I want to create w/f container element(in workflow template).From BUS2031(customer quotation), I understand that I need to create one w/f container as &Quotation&.what are others container element I have to create. This is my questions.
I hope now it is clear.
If you have any workflow documents/sample please send it to me [email protected]
With Regards,Jaheer.
-Jaheer -
Error while using container element _WF_PARFOREACH_INDEX in workflow
Hi All,
I am using internal container element WFPARFOREACH_INDEX in internal table so that i can use it as index to read table row one by one..but in binding i am getting error "Container element '_WF_PARFOREACH_INDEX' does not exist" in form of an example.
Can someone tell me that how to get rid of this error in binding? I am using this element variable to achieve parallel branching in workflow.
Regards,
SumitHi AA,
You would probably need to create more than one containers.
In workflows, we have following types of containers:
1. Workflow container
2. Task Container
3. Event Container
Now, since you need the element VBELN, try the following:
1. Create a WF container for VBELN. Make it as both input and output parameter.
2. Create a container for the Mail Step, again with VBELN field as an input parameter.
3. There would be a button for binding in the mailstep. Bind the Field VBELN from Work flow container to the Mail Step container.
Once binding is done, save it and Activate the Workflow.
Hope this helps.
Do get back in case of any issues.
Regards,
Sonal -
Over Time Workflow Container elements not updated
Hi,
I am using Standard Task TS20000459 for approval of Overtime entered for an employee in CAT2 transaction.
Work item is getting generated to his manager's inbox.
Issue is, subject of the work item should have employee number and Employe name. Standard Task contains Container elements &TS_PERNR& and &TS_ENAME& which is not getting filled with any values.
Can any one suggest me how to get the same?
Regards,
Saravana PerumalHi Shanti
I faced the same problem...And i resolved that problem by binding...
Create the container element for PERNR and ENAME in the standard task ts20000459 as well as in workflow container.Then bind those container values.
Before bind the workflow and task container, you have to bind the workflow container with the event container.
Regards,
Hemalatha. -
Workflow container element empty
Hi all,
I have the following problem:
- my workflow container has an element named 'AbsenceRequest'
- in the element 'AbsenceRequest' I have a subelement named Comments which is a table
- I created a business object type 'ZESS_AREQ' in SWO1 which has an attribute named 'Comments' and a method named 'Create'
- In a report I create an object of this object type using swc_create_object and I set subelement 'Comments' to a value 'test' using swc_set_table
- Then I call method 'Create' of the created object
- In that method I retrieve the value from the container using swc_get_table and I receive value 'test'
Then I have the following piece of code:
swc_free_object lf_object.
MOVE lw_areq-pernr TO object-key-personnelnumber.
MOVE lw_areq-id TO object-key-id.
swc_create_object lf_object 'ZESS_AREQ' object-key.
IF sy-subrc EQ 0.
swc_raise_event lf_object 'Created' container.
COMMIT WORK AND WAIT.
ENDIF.
Which should start the corresponding WF (which it does), but in my WF container the subelement Comments is empty...
Any idea what goes wrong?
Many thanks in advance!
JulienWell actually the WF container element has one entry but this entry is empty (blank)...
-
Container element for Count in Parallel Approval Workflow
Hi Gurus,
We are using ECC 6.0 and I have this below requirement. Please share your thoughts on how we can achieve this.
We are using a User decision step in parallel workflow to generate and send individual work items to multiple approvers. that is, we generate multiple work items and send to individual approvers for the same step in the workflow and get the combined result (Approve or Reject) to proceed further. I understand that individual result for each work item is stored in container element '_RESULT' (0001 for Approve, 0002 for Reject) and combined result of all the sub-work items is stored in '_WI_RESULT' (0001 for Approve, 0002 for Reject). Also, we can see the index # of work items generated for the same step (node) from container element ''_WF_PARFOREACH_INDEX'.
My requirement is to set work item to COMPLETED status after we obtain a certain # of APPROVE (_RESULT = 0001) decision. Let's say, after 2 of the approvers say Ápproved', then I'd like to close all the other relevant work items and set the Combined result '_WI_RESULT'to APPROVE and Complete the relevant work item. I was wondering if there is a container element that holds the (count) # of work items generated in individual work item container so that I can keep reading this value to see how many decisions have been made. That is, for example, If there are 3 parallel work items generated and 1st user said Äpproved', is there a way to know out of a total of 3 approvals (to get the combined result '_WI_RESULT'), one is completed and 2 approval decisions are still pending. I'm trying to use step-level Pgm Exit (After_execution Method) to read this container element for # of approvals done and if the combined result '_WI_RESULT'is '0001'(Approve), i'll try to end other work items. One way of doing is to have a custom table to capture this and keep reading this table after each decision. But, I don't want to have all this customization and I believe there should be a way the SAP is storing somewhere this # of completed or Pending approval work items that got originated from a single step/node. One way of doing could be, after each decision, read the dependent work items (having same node # and Parent Work item etc.,) and get the other relevant work items and read their status etc., But I think this is a lengthy process and may be there is an easier way, perhaps some container element that holds this information.
Please let me know if you need any clarification on my requirement and share your thoughts on how I can achieve easily.
Appreciate and thank you in advance for your help.
Regards,
VenuHi Karri,
Thank you for your reply. I was actually doing the same with having an APR_COUNT and passing that for each of individual work items and bind it back to task--> wflow container. And keep checking this counter in wf container.
Once, we obtain certain # of approvals, then I guess I'll have to complete or cancel the other work items.
I was thinking may be there is some container element already exists that keep track of this, I guess not .
Thanks for your input
Regards,
Venu -
Workflow issue - Main workflow container elements are not updated.
Hi All
We have implemented N-step badi for approval process and for this we have activated one workflow which contains subworkflow .
During approval process , only the subworkflow container elements( approver list and last approver) getting updated with status and time.But main workflow container elements is not updating with these details.
Binding between main workflow and subworkflow is perfect. But reverse binding ( from subworkflow -> main workflow ) will take place once subworkflow is completely finished. But here we will require / need to pass some information from sub workkflow to main workflow when still subworlflow in process( before completed itself).
Please let me know is there any process / steps is required to pass values between subworkflow to main workflow ( binding is perfect).
Please let me the way how I can update the main workflow container from subworkflow container or from any step in sub workflow .
In subworkflow . we have loop of approvers and it will send workitems to approvers one by one.
Here i need to update Main workflow with the information like last approver and approver list with status and approved time.
So please suggest how Can I update main workflow container from subworkflow while subworkflow is still in process( subworkflow not yet completed).
Kindly reply me ASAP.
Thanks and Regards
Madhukar .Yes I am setting SWC_SET_ELEMENT for my container values,the ones for which i have defined as EXPORT.
And I have checked the task also...
Everything has been checked properly..The binding is fine.
Thanks & regards,
Ravikiran Kallimath
Maybe you are looking for
-
How to set up AA3 on a mac with Boot Camp (radio production guys please take note!)
Hi, I'm the imaging director for some of the Providence Citadel Stations and I want to move all of my production over from PC to a spiffy new iMac. I know I can run AA3 through boot camp, but as of yet haven't purchased anything until I find out the
-
Beans do not deploy under Service Pack 12
Hello, we recently upgraded our Weblogic 5.1 from Service Pack 10 to Service Pack 12. All the beans compile and jar fine, and most deploy ok apart from a few that give the exception given below. Does anyone know anything in SP11 or SP12 that might ca
-
What is normal does wear and tear look like on a mac book charger
My childs school is charging us $80 to replace her charger that stopped working and stated it was her fault it stopped working. It was a bit frayed at the top but that's it. The charger was 2 years old when she received it.
-
Urgent - Serious problem in production (server crashes unexpectedly)
Hi, We got the following error in production server and caused the server to exit immediately. It just crashed the server. There are some jsp calls before this error. Tue Jan 02 14:20:23 EST 2001:<E> <HTTP> --------------- nested within: ------------
-
Pages, i can't see more than page one when I download a newsletter template
When I download a newsletter template I only see page one. How do I get to use the rest of the pages?