How the Workflow container is being filled up
Hi,
There is a customized Workflow is already maintain in the system which is responsible for triggering when The Personal data has been changed from the ESS portal and it will send to the manager for approval.In the workflow the first step is an activity step (Personal data) which is importing the values and exporting the status and reason for the same.
I am not able to understand how the values is coming in the the above activity step...After modify the personal data in ESS will it be stored in the database table or from where is it coming?
Hi
As you are saying that when ever there is a change in the infotype PA0002 which is personal data of the employee then IN that case the workflow is triggered and you want to know from where this data is getting passed and workflow is triggered right,
You can check in the Transaction SWEHR2 or SWEHR3 where they might have maintained some kind of event linkage between the workflow which is getting triggered.
Or some kind of RFC might have been configured in the portal so that when ever you click on Save button then this RFC is called from portal and directly by making use of SAP_WAPI_START_WORKFLOW. they might be starting the workflow.
Regards
Pavan
Similar Messages
-
Access the adobe form data in the workflow container for further processin
HI,
I am using HCM processes and Forms. I need to access the form data in the workflow container once the workflow kicks off.
I need to access these data as would need it for further processing in the workflow.
I know that TS17900110 allows to import form conatiner to
-> WF Container in the field name and value pair. But I need to access a lot more fields than what is in the task. Is there a standard task which allow to retrieve all the fields in the form in one task or do I need to develope a custom class to do that. If so could you please provide some clue as in how to code this specific requirement as i am somewhat new to OO ABAP.
Thanks...hi,
in the livecycle designer under libary tab u have webdynpro tab--->choose submit to sap button and place it in the adobe form ur designing. u can use this button to trigger the code that u have written in webdynpro java.
for eg if u have
a value node details
and under that two value attr fname,lname
import the model (Insertdata---it has two import param fname and lname)u need for updating the data to r3 system.
in the ctrller have a method submit.Here write the code to insert fname and lname into the db.
IPrivateMyForm.IDetailsElement elem = wdContext.nodeDetails().currentDetailsElement();
Insertdata_Input input = new Insertdata_Input();
wdContext.nodeInsertdata_Input().bind(input);
input.setFname(elem.getFname());
input.setLname(elem.getLname());
try
wdContext.currentInsertdata_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
catch (Exception ex)
{ ex.printStackTrace();}
ul bind details to the datasource.
when u edit ur interactive ui element these attr(fname and lname) vl be visible under dataview tab u can drag and drop them to the form
now add submit to sap button in ur form.
this button correspond to the onactionSubmit dat u have written in the ctrller.
so wen u click this the data vl be inserted
Regards
Jay -
Need to understand how the PGI date is being calculated
Hi,
Need to understand how the PGI date is being calculated.
Does the PGI date get recalculated if the cusotme delivery date is changed.
Thanks,
RakiHi,
Thanks for the information and please let us know is there any calculation logic exist for that?
I have changed delivery date in the sales order and based on that-
- Transportation planning/material availability/loading/schedule line and confirmed quantity date was chaged.
Is this the - GI date - Transist time= PGI?
Thanks, -
Funtion module to catch the workflow container data
Hi All
I need a FM to catch the WF container data. but the input to the FM should be WF templete No. and the status of WF like "STARED/ COMPLETED"
Thanks,
Kakoli.Hi Kakoli,
If you know the object type and key you are working with then you could use SAP_WAPI_WORKITEMS_TO_OBJECT to retrieve the relevant workflows based upon the workflow template(s) you specify in the TASK_FILTER table. You could then filter the workflows retrieved by status.
FM SAP_WAPI_READ_CONTAINER could then be used to retrieve the container data.
Best Regards,
Trevor -
How the workflow determine if a job is finished ?
Hi ,
Sombody told me , the workflow can't determine the job finish, if job be triggered at background mode ?
Is that ture ? or we can have some functions to determine the job finish ?
Thanks !Hi,
Follow this links
http://www.coe.org/EventsEducation/COENewsNet/JulyAugust2007/TechnologyUpdate/tabid/605/Default.aspx
http://www.cadinfo.net/editorial/dct.htm
For Creation
http://help.sap.com/saphelp_ides/helpdata/en/0a/857463c87611d1a7760000e8a5f6c8/content.htm
http://big4guy.com/index.php/2006/01/29/sap_interview_faqs_what_is_a_bill_of_mat -
Hi all,
Hi I am new to workflows.
I have been trying to find out like crazy, how exactly the following Workflow is being triggered?
Workflow Process Internal name: OTA_LNR_TRNG_CANCEL_JSP_PRC
Workflow Process Display name : Cancel Learning Enrollment
The following is what exactly happens:
Using the Responsibility Learner Self-Service-->Learner Home
In the Home Tab, under enrollments, a list of all the courses that the user has enrolled for is displayed.
now i un-enroll, using the Un-Enroll button.
Now you come to the Unenroll: Pre Assessment page, where you select the New Status and Reason. Then press Finish.
You will get a confirmation and also a notification will be sent to you and your supervisor.
I need to customize this workflow, buti am unable to find out how is this workflow getting triggered.
I found out in the OAF page that when the un-enroll button is being pressed a form function OTA_LEARNER_CATALOG_ENROLL_DTL is being callled and this does has Form parameters:
pCancelProcessName=*OTA_LNR_TRNG_CANCEL_JSP_PRC*&pCancelCalledFrom=OTA_LEARNER_CATALOG_ENROLL_DTL&pItemType=HRSSA
But when i change the value of the pCancelProcessName to my custom process name, it still is refering to the seeded WF process.
Can anyone help me figure out where exactly is this workflow being triggered. Am really going nuts now? :SI think that the WF is being called from an API
OTA_DELEGATE_BOOKING_API.UPDATE_DELEGATE_BOOKING
AND IN THAT THIS PARTICULAR CONDITION:
IF l_type ='C' and l_delegate_contact_id is null and l_contact_id IS NULL
and nvl(p_source_cancel,'-1') <> 'AME'
and l_event_rec.event_type in ('SCHEDULED','SELFPACED') then
OTA_LRNR_ENROLL_UNENROLL_WF.learner_unenrollment(p_process => 'OTA_LNR_TRNG_CANCEL_JSP_PRC',
p_itemtype => 'HRSSA',
p_person_id => l_person_id,
p_eventid => p_event_id); -
How to set the following workflow container element
In the below example i have created the following field chgdocdat fieldnam in the workflow container in the initial value it is showing as <notset>
but i want the value for initial value for field chgdocdat as 00.00.0000
fieldnam as
can any body help mehi koto,
when u create a work flow element container.
u have tye option to give the data type.
there u u choose from dictonary, ie some date field from the data dictonory.
after that in the 3rd tab it is initial value.
click it and give 00.00.0000
since it is date type no problem here.
save it.
thats all
clarifiactions are welcome.
pls reward points, if this helped u.
regards,
anversha.
[email protected] -
Passing multiline element to workflow container ? how do i ?
Hello Folks,
I need to pass an internal table to the workflow container...In this container i had already created an Multiline element which the right table type assigned..
I need to call this Workflow using FM SAP_WAPI_START_WORKFLOW.... Eg:
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
EXPORTING
TASK = WFNAME
LANGUAGE = SY-LANGU
DO_COMMIT = 'X'
USER = SY-UNAME
START_ASYNCHRONOUS = 'X'
DESIRED_START_DATE =
DESIRED_START_TIME =
DESIRED_START_ZONLO = SY-ZONLO
IFS_XML_CONTAINER =
IMPORTING
RETURN_CODE = lv_return_code
WORKITEM_ID = lv_workitem_id
NEW_STATUS =
TABLES
INPUT_CONTAINER = lt_container_wf
MESSAGE_STRUCT = lt_message_struct
MESSAGE_LINES = lt_msg_lines.
lt_container_wf values should have an internal table to be passed a multiline element.....
I am unble to pass it this way and the error i get is that " Single Line element <XXXX> is being passed several times...
How do i tell the system the the element which is passed is a mulitple element..
Regards,
Anandcheck this code snippet
include <cntn01>.
DATA:
lv_retcode TYPE sysubrc,
lt_cont TYPE TABLE OF swcont,
ls_cont TYPE swcont,
lt_kna1 TYPE TABLE OF kna1,
ls_kna1 TYPE kna1.
SELECT * FROM kna1 INTO TABLE lt_kna1 UP TO 10 ROWS.
swc_create_container lt_cont.
swc_set_table lt_cont 'CUSTOMER' lt_kna1.
CALL FUNCTION 'EWW_WORKFLOW_START'
EXPORTING
x_task = 'WSXXXXXXXX'
TABLES
X_CONTAINER = lt_cont
EXCEPTIONS
INVALID_TASK = 1
NO_ACTIVE_PLVAR = 2
START_FAILED = 3
GENERAL_ERROR = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
How to trigger workflow from WDA and read workflow container into WDAscreen
Dear Expert,
Please suggest the solution for the following requirement:
1. Create 1 leave request from WDA and submit for approval
2. When User press "submit" button in WDA screen, workflow will be triggered for processing approval .
3. When 1 request is sent to approver, he logon into portal and access to UWL to process task himself.
4. After he press approval link, the system will call WDA screen to process approval ( this screen will contain full information of requester.)
5. After finishing process, the result will return workflow and end of process.
Please send simple example for step 1 and one for get data from workflow into WDA screen at step4
Any help would be appreciated
Thanks and best regards,
DucTV.Hi,
I am not sure for what reasons you are developing a application but SAP has its own standard workflow process for applying leave from ESS portal..
1. AS soon as you click on the submit button of the applicaiton then you need to trigger a workflow right in that case you make sure that you need to pass some data to the workflow container I hope you might be using either SAP_WAPI_CREATE_EVENT or SAP_WAPI_START_WORKFLOW to start the workflow in both the function module you have to fill this table in Order to pass the values from ABAP program to workflow container.
The answer to your question is it depends on the type of the work item ID you are passing to the SAP_WAPI_READ_CONTAINER if you are passing a top work item ID then you will have workflow container in LT_CONTAINER if you are passing any of the child or dependent work item ids of the top work item id then you have that respective task container value.
2. You can make use of the any foreground activity or a decision step, it depends on how you want to get back the result, if you use a foreground activity step then in that case you have to populate the result back to the task container and if let say you are using a decision step then in that case you do not have to populate the result there will be standard container element _RESULT in the decision step it will be filled.
Make sure if you are expecting some work item in UWL and as soon as you click on the work item your application should open then configure in SWFVISU transaction and maintain DTD in UWL any portal consultant can perform this steps in few seconds.
3. When the workflow is started then the work item which you are able to get back is the one which helps to identify dependent work item ids it is the TOP or PARENT work item ID.
Regards
Pavan -
How to handle exception thrown in standard bo method in the workflow design
Hi Experts
how to handle exception thrown from standard bo method in the workflow design. For example, bo BUS2032, METHOD confirm. If the user cancel it, it will throw exception. In the workflow, how to catch this exception and add corresponding steps in the workflow.@jrockman li
Try to implement the logic that what ever you are performing in the BO mehtod in a FM and in the FM you have tab with name EXECPTIONS define the execption in that tab.Now in the BO method you call this FM and if the exception occurs by using RAISE you can raise the exception in the FM and based on the number of exceptions your sy-subrc value will be set
so when sys-subrc is not eq 0 then pass a value back t the workflow container., I think this will work.
a sample Snippet for understanding purpose
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = <path>
filetype = 'ASC'
IMPORTING
filelength = lv_len
TABLES
data_tab = l_txt_tab
EXCEPTIONS
file_write_error = 1 " If this Exception occurs
invalid_type = 2
no_authority = 3
unknown_error = 4
OTHERS = 10.
CASE sy-subrc.
WHEN 1. " SY-SUBRC value will be 1 then,
" Pass or set the value back to the workflow conatiner element
ENDCASE. -
How do I pass a file attachment to the Workflow?
Hy All
How do I pass a file attachment to the Workflow?
The Portal will attach a document to be passed to the Workflow.
The RFC that starts the Workflow uses SWE_EVENT_CREATE function.
Can someone help me?
thank you,
Alexandre.
(Sorry for English ... by google translator)Hi Clima,
I worked for HRDC in the Natura project.
In first time, ask the Webdynpro developer to pass the content of the file in the SWE_EVENT_CREATE function inside the container table.
Ask him to send it as a table (don't use the xstring format because the container doesn't recognize this format)!
If the file is not in a table format, ask him to transform it using the function module SCMS_XTRING_TO_BINARY
Pass this table through event parameter in the SWO1 object and after pass it inside the workflow container.
Access this link, you can find step by step to implement it:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60ff6ad3-729b-2b10-6582-fedc82680a29?QuickLink=index&overridelayout=true&35665408432457
Abraços,
Ricardo -
How to block the workflow event
hi all,
we use the custom BAPI to trigger the workflow.
in the custom BAPI we used <b>assigned</b> event from the <b>BOR object IFARCH21- it's related to SAP archive link .</b>. the custom BAPI is conatins the API's of create a shipment,and shipment cost based on this opearations billing wii be done.....now the user will get the <b>error message</b> in SAP workplace from this BAPI.
now i want to block the billing creation.
please give a suggestion on this...
regards
Sukumar<b></b>Hi,
Can you clarify a bit further????
I think you have used SAP_WAPI_CREATE_EVENT in your BAPI to create the event "assigned". This event gets triggered whenever a shipment is created and the workflow send out a message to the inbox. Now you want to deactivate this message that is being sent. i.e in other words you want to disonnect the workflow itself from being triggered.
If i am right in understanding your requirement then you will have to deactivate the linkage to the workflow that sends out the mail in the transaction SWETYPV. Or you will have to comment out the code written for SAP_WAPI_CREATE_EVENT.
Thanks,
Prasath N -
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. -
Container Variables Not Filled
Hi,
I have configured Alert Category and Alert Rules to trigger exceptions at Mapping, Adapter and Proxy level. All these alerts are getting triggered properly. But the container variable, &SXMS_FROM_SERVICE& is not getting populated and displays the tag as such.
I infact checked the Note 947738 (Container Element not filled). But this is for SP 09. We are in Release 7.0 SP 11. So the note is already implemented.
But still I am facing this problem. The container variables are not filled. Can someone suggest how to fix this.
Regards.
BalaHi,
Are all the other Container Variables being populated?
If yes, one option is to check note : 913858 . This note describes one question when the From Interface Container variable does not fill up. Check what it mentions.
Regards
Bhavesh -
Error Occured when trying to progress through the workflow
Tried to move a project from one stage to the next in the workflow and an error popped up saying,
Workflow: Workflow Terminated
An error has occurred in the workflow.
Now when you open the project in PWA instead of seeing the image of the workflow there is a message that reads,
Stage Status image - There is no workflow status to communicate because the project is not yet created
Any thoughts....EPM Admin
Try restarting the workflow. If that doesn't work, then you need to provide a whole lot of details on how the workflow is built, what version you are running, was it working before etc.
CHeers!
Michael Wharton, MVP, MBA, PMP, MCT, MCTS, MCSD, MCSE+I, MCDBA
Website http://www.WhartonComputer.com
Blog http://MyProjectExpert.com contains my field notes and SQL queries
Maybe you are looking for
-
I am using CS4 on a Mac I made a simple page with two images. Neither shows up when I upload the files. I have a site: KathrynCecelia.com A folder for the site kathryncecelia Inside that folder is a another folder images Inside that fo
-
Video playback on Adobe Premiere Elements 8 no longer works
Windows 7 Professional 64 bit OS Lenovo T420 i5 Second Gen Proc 8GB RAM Premiere Elements 8.0 Latest Version Update and Driver Update Installed Majoirty of video pulled from Flip Camera What other information is necessary? I've been working on a vide
-
Hi...I am having the same issue that this guy did: https://discussions.apple.com/thread/5652287 There is no button that says "Update" on my mac with Airport Utility 6.3.1 How do I update the utility?? I am running OS 10.8.5 Thanks
-
I have iphone 6 plus i forgot my passcode and i never backed up my device, i just want a way to restore my iphone without losing my contacts?
-
I am looking for a solution to monitoring all SQL queries executed on a database in real time. Something akin to what would be an "SQL tail" capability. This would be for any user executing queries on any table. Does something like this already exist