How can i trigger workflow when particular event happens in webdynpro
how can i trigger workflow when particular event happens in webdynpro
hi,
To trigger workflow , use the fm : 'SAP_WAPI_START_WORKFLOW'
Refer this thread for similar requirment : Workflow in WebDynpro
Blog : http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID1564403950DB00699140435432809306End?blog=/pub/wlg/2778
Similar Messages
-
How can i trigger workflow from report
hi i create one report and workflow. i want to trigger workflow from report, how can i do this one, please send me any code you have.
Thanks & Regards
SankarHi Sankar,
There is another sample code...
REPORT ZRGEVTCR.
INCLUDE <CNTN01>.
DATA: OBJKEY LIKE SWEINSTCOU-OBJKEY,
EVENTID LIKE SWEDUMEVID-EVTID.
DATA: BEGIN OF EVENT_CONTAINER OCCURS 0.
INCLUDE STRUCTURE SWCONT.
DATA: END OF EVENT_CONTAINER.
PARAMETERS:
OBJTYPE LIKE SWETYPECOU-OBJTYPE DEFAULT 'ZRGMARA',
MATERIAL LIKE MARA-MATNR,
EVENT LIKE SWETYPECOU-EVENT DEFAULT 'CREATED',
VOLEH LIKE MARA-VOLEH,
LED LIKE SY-DATUM DEFAULT '19971231'.
OBJKEY = MATERIAL.
CLEAR EVENT_CONTAINER. REFRESH EVENT_CONTAINER.
set input parameters for CREATED event.
remark: to be more general, we had to use fm SWO_QUERY_PARAMETERS
IF EVENT EQ 'CREATED'.
SWC_SET_ELEMENT EVENT_CONTAINER 'LatestChangeDate' LED.
SWC_SET_ELEMENT EVENT_CONTAINER 'VolumeUnit' VOLEH.
ENDIF.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
OBJTYPE = OBJTYPE
OBJKEY = OBJKEY
EVENT = EVENT
IMPORTING
EVENT_ID = EVENTID
TABLES
EVENT_CONTAINER = EVENT_CONTAINER
EXCEPTIONS
OBJTYPE_NOT_FOUND = 1.
IF SY-SUBRC NE 0.
WRITE : / 'Object type', OBJTYPE, 'not found in object repository'.
ELSE.
IF EVENTID NE 0.
WRITE : / 'At least one receiver was found'.
COMMIT WORK.
ELSE.
WRITE : / 'No receivers found'.
ENDIF.
ENDIF.
Hope this will help you to solve your problem that how to trigger workflow from the report.
Thanks,
Pramod -
How can I send invites when scheduling events through iPhone?
I was able to do this through corporate Exchange before, but now without Exchange, and having set iCloud as my default calendar, the event notificaton does not appear to be sent when I create the event with an invitee. I used my account as a test (and have confirmed it wasn't trapped by spam). Any pointers?
Re: theMAIR,
Oh....it would be a diificult for me to send iMessage to my friend's ipod......(as he does not own iphone....)
Problems for iMessage in iPhone4 which I found:
1. Cannot choose to send iMessage or SMS
2. If there has a person who only have email information(Apple ID) in contact, you cannot choose this person to send iMessage
However, if Ipod send iMessage to iPhone, then iPhone can reply it.............
p.s. I hope there will be an option to turn off SMS =] (as iMessage is free of charge) -
How can I trigger an onchange event for hidden or never displayed item
hi -- I have an item that I don't want displayed on my page -- more info than the user wants or needs; call it B. It needs to be
set by an onchange event from a visible item (A); then, the change of B triggers on onchange to set another item (visible) -- C.
When B is visible on the page, it all works. If I make it hidden or conditionally never displayed, it doesn't work. From the looks of
it, B never gets changed.
How can I trigger this onchange event (from B to set C) with B not visible?
Thanks,
Carolhi Varad -- Probably more info than you want... but here's the whole chain of events.
Hope it answers your question.
C
**** 1
In A's html form element attributes (simplified; I took out the irrelevant call to jsLookupValue that sets another item).
onchange='jsLookupValue($v("P142_SITE_ID"),"site_id","P142_OBJECTTYPE_ID","objecttype_id","hdb_site_syn");'
**** 2
jsLookupValue is the following.
The statement that actually sets the value of B is: $s(dest_item_name, jsonobj.row[0].RETURN_VAL);
function jsLookupValue(source_item_value, source_column_name, dest_item_name, dest_column_name, lookup_table_name){
// Continue only if there are valid values
if (valueOf(source_column_name)&&valueOf(dest_item_name)&&valueOf(dest_column_name)&&valueOf(lookup_table_name)){
//Check to see if the source_item_value is null (either all spaces or empty
//If it is, set the dest item to null, but only if it's not already --
//otherwise we get into a loop.
source_item_value = trim(source_item_value);
dest_item_value = trim($v(dest_item_name));
if (source_item_value.length==0) {
if (dest_item_value.length != 0) {
$s(dest_item_name, null);
}else{
//This is the AJAX call to the Application Process from step 1
ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=LOOKUP_VALUE',0);
//Here we are adding that x01 parameter we use in the app process with the value of the objecttype_name field
ajaxRequest.addParam('x01', source_item_value);
ajaxRequest.addParam('x02', source_column_name);
ajaxRequest.addParam('x03', dest_item_name);
ajaxRequest.addParam('x04', dest_column_name);
ajaxRequest.addParam('x05', lookup_table_name);
//Now do the actual AJAX call and put the result in ajaxResponse
ajaxResponse = ajaxRequest.get();
//Check if there is a response
if (ajaxResponse) {
//We need to format the JSON return string and put it in a JSON object
// the formatting is done by a function in the external JSON library
// the jsonobj can be used to retrieve the data returned by the App process
var jsonobj= ajaxResponse.parseJSON();
// And finally, we set the DNAME item with the value of the jsonobj.DNAME
// an array was created in the object with the name row, so that is why you have to include row[0] to retrieve the data
if (jsonobj.row[0].RETURN_VAL != $v(dest_item_name)) {
$s(dest_item_name, jsonobj.row[0].RETURN_VAL);
}else{
} //not setting
}else{
alert('No response from app process');
} //no response
} //no source item value
} //no bad nulls
} //function
**** 3
I won't bore you with app process LOOKUP_VALUE. It just builds an sql query that gets the value for B, aliased to RETURN_VAL. -
How can i trigger the workflow from REPORT
hi,
my requirement is, whenever Z... Report Is generated there is Icon called print. the write the code for printing icon. if printing Icon fails the workflow will be trigger.
how can i trigger this from report. and i send attachent of report with mail to next person to sap inbox.
pls let me know.
pls give any documentation if you have.
thanks & Regards
Sankar.Hi,
Workflow container
swc_container lt_container.
swc_create_container lt_container.
swc_set_table lt_container '<cont_name>' lit_int_tab.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = lc_objtyp
objkey = lv_objkey
event = lc_event_name
IMPORTING
event_id = lv_eventid
TABLES
event_container = lt_container
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
yv_err_flg = gc_true.
EXIT.
ENDIF.
Rgds,
Prakash -
How can I sort photos within an event? When I follow the Help instructions, I can sort manually in Photo format, but when I return to Event format, the original order is restored.
Events are organisation for those who can't really be bothered. They are automatic - based entirely on Date and Time the camera records the photos as taken.
You can move photos between Events, you can Merge Events, you can Rename them and sort them in various ways except one: You cannot manually sort in an Event as Events are all automated.
If you want to manually sort in an Event then you've outgrown Events as an organising tool. Now it's time to look at albums (Where you can manually sort) which are much more flexible than Events as an organising tool. -
How can I find out when was a particular table last updated?
How can I find out when was a particular table last updated? I need to find out the usage of this table - when was it last updated, etc. Thanks in advance. The version I am using is Oracle 9i.
If you don't have any application level logging, and auditing is not enabled, there's not much hope.
You could, if you have archive logs available, go trawling through archive logs via logminer, but that's likely to prove painful and not very fruitful, unless you're very meticulous and patient...
-Mark -
How can I remove default alarm for events in iCal on devices ios?
Whenever I add an event to my iCal calendar in Mounain Lion it will automatically add one default alert only on my iphone and ipad. These default alarms are not displayed on my macbook or icloud.com
Default alarms are disabled in macbook, icloud.com, and my ios devices.
How can I remove default alarm for events in iCal on devices ios?
Thanks and sorry for my english.
MacBook Pro, Mac OS X 10.8OK, so I have had this issue for the past several months. I think it all started when I upgraded to ML from SL and migrated my calendars and contacts to iCloud. That was a couple months ago. But now I am running 10.8.2, and about two weeks ago I upgraded my iOS devices to 6.0.1.
I don't seem to be having any issues with events that I create now, but all those old events that were migrated to iCloud a couple months ago, many of those sound alerts on the iOS devices even though there was no alert defined when the event was originally created. I have always had alerts off by default both in iCal and on the iOS devices.
So here's the question: is there a way to go through and disable all these spurious event alerts? I've been disabling them as the event reminders come up, but it's irritating. It would be nice if there was a way to turn them off all in one shot somehow. -
After importing clips to Final Cut, they do not show up in the events library. Events from 2014 show up, but not 2015.They show up in the timeline of my project, though. How can I see them in the events browser?
TThose aren't bins. Those are just groupings based on when the content was created or any other selected parameter. Use the action popup in the toolbar tho change the setting.
-
How can we trigger an IDOC based on Orders creation.
Hiii...experts,
After searching alot in SDN i am taking this very commonly asked to experts in the hope of a better understanding.
If i create a sales order means.. i want to trigger a IDOC based on certain Condition on ORDER data .. how can we do this..
when ever i'm creating a sales order it should be automatically trigger a IDOC , Because when ever sales ordre was created in R/3 system it should be transferred to some destination...
And pls tell me about the reports that does the job of collecting required data from the sales order and converts it into a IDOC.
so, how can we trigger an IDOC based on Orders creation..
pls help.
Ram.Use IDOC_OUTPUT_ORDERS for creating IDOC
you need to maintain condition records & output type
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 10, 2008 4:18 PM -
How can we find workflow templates activated ina system ?
how can we find workflow templates activated ina system ?
Could you please tell me a table name for that ?
thanksHello ,
I need the active workflow templates regardless of business object,event or template etc
So I used method suggested by Mohammad Anwar and checked the table HRS1205
Here I find a long list of active workflow templates
But further to that I need to find which workflows have been activated and implemented to meet business requirement and put to use in the system.
For this I checked the SWI1 in production system to get an idea of what all workflows are active.This will give day to day data.
But if I need to find the same in HRS1205 table then can I consider those entries of active workflows for which UNAME field is not standard SAP userID but a dialog user ID of any user ?
thank you -
How can we trigger the BAdI MD_PIR_FLEX_CONS in a MTS strategy
Hi All!
We have 5 Plants: 4 commercial plants and 1 production plant.
The sales orders are created in the commercial plants with a Make-to-order with consumption Requirements type; (Individual customer stock is an issue of the client).
Planned independent requirements are entered at finished product level with Consumption indicator for planning requirements 4 - Flexible Consumption for Different MRP Elements (BAdI); we create the purchase order (L - Subcontracting) for the finished product based on the PIR.
We need to do the consumption and reduction of planned independent requirements based on the purchase orders creation or in the Goods Receipt for the Outbound Delivery.
We implemented the BAdI MD_PIR_FLEX_CONS but the BAdI isnu2019t trigger for Planning strategy 10 or 40 but. The BAdi is trigger only when Requirements class of the Requirements type of independent requirements as value 2 (Consume planning w/o assembly) in the Consumption indicator and value 3 (Single-item planning) in the Planning Indicator.
How can we trigger the BAdI in a MTS strategy u2013 The BAdI documentation doesnu2019t mention that can only be used in MTO strategy?
Thanks.
Regards.
AdelinoHello Adelino
Strategy 10 is a special business case without consumption and only with the PIR reduction during the delivery (goods issue). You can see in customizing OPPS that both requirements KSL and LFS are set with "No consumption with customer requirements". In this case, BAdI MD_PIR_FLEX_CONS is not called.
The BAdI can be used with strategy 40, so please make sure that the consumption indicator of the PIR is set to '4 - Flexible Consumption for Different MRP Elements (BAdI)'.
BR
Caetano -
HOW CAN I TRANSPORTA WORKFLOW?
HOW CAN I TRANSPORTA WORKFLOW? THANQ
I see that you have still not received any hints about how to transport a workflow.
Are you not asked for a workbench transport when you save the workflow definition? I think this is solved by changing a setting in SOBJ or whatever the transaction is called. Of course, the prerequisite is that your basic workflow settings (transaction SWU3) is already OK. Ask basis people for assistance before you create havoc by making changes in SOBJ.
Otherwise, search for OSS Notes. There probably is one mentioning this problem. -
When I switch on my computer I get the desktop then I try to click on Mozilla Firefox but get the message, 'Firefox is already running but not responding. To open a new window you must first close the existing Firefox process or resart your system.' I looked up how to close but I need to click on 'file' then 'exit'. How can I do that when I can't see the page yet? IE is working fine.
See also [[Firefox is already running but is not responding]]
-
How can I export a list of events for one of many calendars - e.g. "sailing" to use in Excel?
See this thread here
Display number of emails by sender
Maybe you are looking for
-
I got the above error while i restore the standby database using RMAN backu
Dear All, RMAN> crosscheck archivelog all; using target database controlfile instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=14 devtype=DISK specification does not match any archive log in the recovery catalogi got t
-
Update statement takes lot of time . Need help in optimization.
Hi, I need to update values from table ARPU_2009_2010 to table TST_MICRO_SEG_PREP. Table ARPU_2009_2010 contains around 400000 records. Table TST_MICRO_SEG_PREP contains 374000 customers. I need to update values for each customer in the table TST_MIC
-
Accessibility of Workshop 8.1.6
Hello, I tried sending this to an email address ([email protected]) as suggested by some documentation, but the address is dead. I'm posting it here in hopes of getting more info on the accessibility of Workshop for blind developers. Hello, I wan
-
I want to get a USB card as I am running out of inputs. Will any USB 2 card work or do I have to get an PCI express card? Thanks
-
I can't get the download assistant to let me change the download directory
I downloaded it once, realized I downloaded the program to the wrong hard drive (c drive) and now it only gives me the option to "resume download" and I can't get it to change the drive that I want it to download to (e drive).