Transaction Reading in Workflow

Hi Experts,
I need to create a workflow which will take care of sending a mail to the managers and senior managers based on the duration the complain was created. Suppose from the time created no action taken on complain and it has become 24 hrs then the mail mentioning abt the no necesary action for the complain must go to the Sales or service manager, similarly if the time crosses 48 hrs, the respective GM's must be informed.
Any idea how to start and how to read the actual transaction of complain(BUS2000120). I will need to read the priority of the document and its date and time and also need to find the respective Manager and GM (sales or service).
your help with be highly appritiated.
Thanks,
SA

Hi, try using CRM_ORDER_READ in SE38 with your transaction ID, this will help you finding in which structures your data is stored. It will also help you seeing how the order_read FM call is performed.
Regards,
Xavier

Similar Messages

  • Which RFC can read the Workflow Inbox about JCo

    Hello,
    I search the correct RFC to read the Workflow Inbox. I would like to develop a JAVA Class to connect the Inbox and then to show the workitems on a web screen. I use the SAP JCo to connect the SAP System. But until now, i don't found the correct RFC to connect the Workflow Inbox in the Workplace.
    Can anybody help me or know anybody the correct RFC?

    Hi
    Check this thread,
    BAPI to retrieve user's inbox items
    cheers
    Sameer
    PS: Assign points if you found the answer useful

  • Non Transactional Reads

    How do non-transactional reads interact with database locking?
    I find that it is possible for a non-transactional read from one Persistence
    Manager to return null for an object or try to load an object that has been
    deleted from the datastore by another persistence manager (causing a JDO
    exception)
    What are the possible solutions?

    Clive,
    Do your PMs live a long time? While there are some benefits to long
    lived PMs in situations with low interaction across PM's objects,
    sometimes you can get into the situation where data can get stale since
    commits in one PM won't necessarily propagate to the other PM. You can
    avoid this either by allocating short lived PMs which have low overhead
    in general or calling PM.refresh () appropriately.
    Clive Cox wrote:
    How are you getting into these situations?Stephen,
    I have a web service in which I have a persistence manager per member, in
    which concurrent access is controlled with appropriate synchronization.
    However,
    (perhaps foolishly) I had allowed non-transactional reads and allow one
    member to read
    another's data from their persistence manager - there is a high degree of
    interation between members.
    I use Kodo JDO with mySQL.
    The offending situation is with one class with a field that references
    another class, which
    is 2 tables in mySQL. In the persistence manager for a member I change the
    reference to
    a new object and delete the old reference while at the same time another
    member in a
    different persistence manager is reading this object structure I get either
    a null pointer for
    the reference or the other member tries to get from the datastore a object
    that
    no longer exists and throws a JDO user exception.
    I assume this is what can happen if one foolishy uses non-transactional
    reads.
    However, I would like to know how other people use JDO in a web environment
    in which
    users (members) interact highly and change each others data and read each
    others data.
    What is the best way to design a web server architecture using JDO in this
    situation?
    Clive
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • How to commit a transaction in Oracle Workflow

    Hi All,
    Oracle says there should not be any commit in Oracle WF .It is the responsbility of the calling program to Call Commit.
    I have the following Requirement:-
    I want to insert a record in one of the custom table, when a record is saved in one of the Oracle Apps Form( for e.g. insert a record in the custome table when user creates PO.)
    What I have done is :-
    1) Added a subscription to one of the seeded events that is raised when user saves a record in the Oracle apps.
    2) Designed a Custom Function, that is called when the above subscription is triggered off.
    3)The above custom function inserts a record in the custom table.
    Q ) where to write a Commit ( as this custom function is called from the WF and WF says, dont put commit in the WF,it should be called by the callling program)
    Can also you explain me , when user presses the Save button on the Oracle standard form--> that calls the Oracle API to create a record in the DB and commit , ---> then the event is raised and trigger offs all the subscriptions where does it commit then?
    Thanks

    Hi,
    The commit should be done by the form, or whatever raises the business event.
    The API fires the event in the same transaction (unless the subscription is deferred), and then the commit is issued. This commits the transaction, and all actions of the event subscription.
    If the subscription is deferred, then the concurrent request which processes the subscription will issue the commit on completion.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Calling BD87 transaction in a workflow

    Hi expert,
                        I have to send a mail into sap inbox from my workflow when user accept the mail it will  call BD87 transaction.can anyone tell me how can I do this? because I am new in workflow? One more thing is there any satandard event or change document  availabe for transaction BD87.

    Hello,
    You could send an email that has a URL link to run transaction BD87.
    This is not really a workflow question per se.... unless you want to send ths mail from a workitem.
    By the way, it may not be necessary for a user to manually run BD87. Have you considered scheduling
    various programs (eg RBDMANI2 and RBDAPP01) to process stalled idocs automatically, on a regular basis?
    cheers
    Paul Bakker
    Hanabi Technology

  • Reader Extensions workflow

    I make XFA forms and usually just add reader extensions through Acrobat but now have a form from which I will need to extract data from more than 500 users so can't do it this way.
    Can I just purchase the Reader Extension module to allow me the license to do this and if so what is the workflow for this module?
    Thanks.

    https://wwwimages2.adobe.com/content/dam/Adobe/en/solutions/web-experience-management/pdfs /datasheet-docsvcs-livecycle-ue.pdf
    http://www.adobe.com/ca/products/livecycle/modules.html

  • Generate a transaction for the workflow

    Hi ,
       I want to know how can we generate a transaction code for a workflow .
    Thanks ,
    Shounak.

    Hi all,
    just a small information that might be of interest for you:
    In release 4.6c (and maybe in other releases) it was possible to use transaction SWUG to create a start transaction for workflow templates. The workflow then started with the first task of the template.
    In MySAP ERP 2004 this is not possible anymore. You have to use the start forms instead (like described above).
    It is a little pitty, because when using start forms you are bit restricted in your possibilities, e.g. you can not have a dynpro with OK code (you just have the sub screen where you could check SY-UCOMM but not clear it).
    The idea is for example to have to complex start DynPro for entering data as the first task of a workflow, followed by a "document from template" step to add additional information in text form. So the window with the document immediately pops up after leaving the dynpro (without going back to the workflow inbox first).
    If you have a Dynpro that creates an event to trigger the workflow template, you first have to go the workflow inbox and execute the work item that waits for you there. This is not really smart.
    Maybe there is a possibility to use transaction SWUI with parameters to immediately start workflow templates.
    Or directly use function module SWW_WI_START.
    Set a breakpoint in SAPLSWUA, include LSWUAF01 at CALL FUNCTION 'SWW_WI_START' and execute SWUI with the template you want to start to find out about the parameters you need to provide to the function module.
    Kind regards
    Holger

  • Transaction management of Workflow Services

    Workflow services (TaskService) are not participating in BPEL/client transactions when called as SOAP services. Only the EJB client interfaces of workflow services are able to join the client transaction.
    I tried 2 options with BPEL client. Set the element taskService/participateInClientTransaction in wf_client_config.xml to true and set the value of CONNECTION_PROPERTY.TASK_SERVICE_PARTICIPATE_IN_CLIENT_TRANSACTION to java.lang.String "true" in the map argument to WorkflowServiceClientFactory.getWorkflowServiceClient(..) but workflow service does not participate in transaction with BPEL client.
    Any idea how to make the workflow participate in transaction with BPEL client?

    you can control from BPM.
    COMMIT Acknowledgement is needed from the receiving system to control the adapters.
    Thnz

  • Making a transaction read-only for a particular user status

    Hello,
            I have a requirement wherein I need to make an opportunity read-only if it is saved with the user status set to 'Lost'. I tried setting the 'Forbidden' flag for 'Change Document' for this status but the problem is that the transaction gets locked even before saving it.
    I have a 'Reason' field where I have dropdown values for the 'Lost' status. But when I try to select a reason, error message appears as: 'no changes possible in document'.
    Is it possible via configuration to have the transaction locked only after it is saved with user status 'Lost' and not immediately on setting the status?
    Regards,
    Aditya Mishra

    2 ways to achieve it...
    1. the document editing can be controlled based on its status i.e. standard auth objects exist to control so that user is not able to make changes with this status.
    2. implement BADI CRM_ORDER_AUTH_CHECK
        put your logic to check the document status and accordingly reutrn FALSE if you do not want user to open it in edit mode.
    hope this helps.
    rgds

  • Read in Workflow definitionidentity programatically

    Hi I have a series o workflows that I have developed.
    I wish each workflow to log its version number when it starts running.
    Workflows are developed in Visual Studio and use the standard XAMLX files and cannot find an object that lets me read in the Definitionidentity structure
    Thanks in advance for any information

    HI SourenS,
    First
    Definitionidentity can be used to allow multiple versions of a workflow to execute side-by-side.
    See: Side by Side Versioning in WorkflowServiceHost
    If you want to use the persisted WorkflowIdentity to retrieve the correct workflow, and definition from the dictionary, take a look at this sample:
    // Get the WorkflowApplicationInstance of the desired workflow from the specified
    // SqlWorkflowInstanceStore.
    WorkflowApplicationInstance instance = WorkflowApplication.GetInstance(instanceId, store);
    // Use the persisted WorkflowIdentity to retrieve the correct workflow
    // definition from the dictionary.
    Activity definition = WorkflowVersionMap[instance.DefinitionIdentity];
    WorkflowApplication wfApp = new WorkflowApplication(definition, instance.DefinitionIdentity);
    // Configure the WorkflowApplication with persistence and desired workflow event handlers.
    ConfigureWorkflowApplication(wfApp);
    // Load the persisted workflow instance.
    wfApp.Load(instance);
    // Resume the workflow...
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Attaching a note from PA30 transaction in the workflow

    Hi All,
    I have developed a workflow which gets triggered when a record for infotype 0267 is created in pa30.
    Initially when the record got created a work item appeared in the approvers inbox and he could either approve or reject it.
    Now the requirement is that the user shoud be able to attach a note when he creates the record in PA30.
    The approver who receives the workitem should be able to view this note also.
    I have no clue regarding how this can be done. Please help me out.
    Regards
    Shraddha

    Hi,
    What is this approval for? is it to decide whether infotype 0267 can be created or not? what happens if approver rejects it.
    It looks like, you are sending for approval after infotype record is created, rather it should be in otherway round, first get the approvals and once it is approved then create the infotype record.
    However if your approval is for somethine else and need to be done after the infotype record is created, to achive your objective you can do below
    1. While creating infotype record in PA30, in 'Services for Object' you can create an attachment.
    2. In your workflow, in the workitem that goes to approver send PREL Object with correct key either as AdhocObject. In runtime, this will give a link in the workitem. So, approver when he clicks on this, he/she can go to PA20 of this record. Then he has to check any attachments available and can take his decision based on that.
    another approach:
    1. Using Assign Fascimile functionality in PA30 also we can add attachments to infotype records. You can find this option under 'Extras -> Assign Fascimile'
    2. However to use this, first you need to decide which document type to be used, check in OAC3 to find associated doctypes for Object PREL. based on this you can choose the correct document types.
    Hope this helps you !!
    Regards
    Krishna Mohan

  • OAI Event is not reading the workflow queue

    I'm creating the workflow event using iStudio (created automatically by iStudio) with the following information:
    Item Type: OAI Process Bundle: EDWARD
    Internal Name: I_EDWARD_PAATRANSACTION_OAI_V1
    Display Name: Receive Request EDWARD.PAATransaction:IN
    Description: OAI Event
    Event Action: Receive
    Event Filter: oai.edward.paatransaction.oai_v1.receive_request.oai_v1
    Cost: 0.0
    I also create the event subscription for oracle.apps.wf.event.agent.create, oracle.apps.wf.event.event.create, and oracle.apps.wf.event.subscription.create and put the following information:
    System: WFLOWDEV.MAXIMUSBC.CA
    Source Type: External
    Event Filter: oracle.apps.wf.event.subscription.create
    Source Agent: <blank>
    Phase: 1
    Status: Enabled
    Rule Data: Key
    Rule Function: WF_EVENT_FUNCTIONS_PKG.RECEIVE
    Workflow Item Type: EDWARD
    Workflow Process Name: PAATRANSACTION
    Out Agent: <blank>
    To Agent: [email protected]
    Priority: Normal
    Parameters: <blank>
    I can see that the interconnect OAI Hub is putting a message into the WF_IN queue but the event does not dequeue the message and run the process.
    So, I don't know if I'm missing anything here or there is something wrong with my configuration.
    Can anyone help me please?
    Thanks,
    Edward

    Edward,
    I am basing this reply on the OAI build I have on my laptop, which is an Oracle 9iAS Integration build, however I do not think that it has changed since.
    Before you do this, it is always a good idea to add the "OAIHeader" objects to the Common View.
    1. Under "Common Views", expand the "Business Objects" and find your Business Object (e.g. MY_BO)
    2. Under the "Events", expand the "Events" to find your event (e.g. MY_EVENT)
    3. Highlight you event (MY_EVENT), Right-click on your mouse, and choose "Edit". This will bring up the "Edit Event" window.
    4. Choose "Add". This will create a new line.
    The 'Name' will be blank.
    The 'Type' will be "String".
    The 'Owner' will be blank.
    The 'Array' will be blank, and
    The 'Default' will be 'NULL'.
    5. On the 'Type' value ("String"), click on the value "String". This will bring up a pop-up list.
    6. From this list, select "Data Type..."
    7. Now click once anywhere in the "Edit Event" window. This will bring up a "Common Data Types" window.
    8. Scroll down, find and highlight the the name "OAIHeader". Press 'OK'
    9. Now back in the 'Edit Event' window, you will notice that the type is "OAIHeader".
    10. Now give the "Name" (currently still blank) a value. Give it the name "OAIHeader" too.
    11. Press 'OK'
    12. You will now see that the Event now has "OAIHeader" information. Some of these values will be of interest and of use later.
    The actual values for "EventName, EventVersion" etc. will be added to the data of the message at Runtime.
    *** TIP: I always do the above exercise first for every Business Object event I create. Once I've included the 'OAIHeader', I then add all of the actual other message attributes to the message afterwards. ***
    Create Content Based Routing Rules
    In this example, I am going to route a message from a sending DB Adapter (DBAPP1) to the Workflow Adapter (WORKFLOW). Then once the message has been passed to the Workflow, it will be passed to the receiving DB Adapter (DBAPP2).
    1. In iStudio, under the "Design" tab, expand the "Enabling Infrastructure".
    2. Under "Content Based Routing", find your Business Object.
    e.g. MY_BO
    3. Expand the Business Object, and then expand the "Events" to find your event.
    e.g. MY_EVENT
    4. On the Event (MY_EVENT), highlight it, then right mouse click. Choose Edit.
    5. A window will pop-up called "Content Based Routing: MY_EVENT"
    6. Hit the "New" button.
    7. Expand the message structure (MY_EVENT), and find the 'OAIHeader' node.
    8. Expand the "OAIHeader" node, and select (highlight) the "SendingApplication" attribute.
    9. Press 'Next'. This will move you onto the next screen.
    10. From the drop-down list, choose the "==" Operator. Press 'Next'.
    11. Enter a Value in the box. Since my sending application is "DBAPP1", type in "DBAPP1". Press Next.
    12. Since I have completed the "source" CBR rules, check the "Condition Complete" radio button, and Press 'Next'.
    13. Now in the next screen, select "WORKFLOW". Now press 'Finish'.
    Perform the same as above, this time routing the message from the "WORKFLOW" adapter to your receiving adapter (e.g. 'DBAPP2'). If the Workflow message does not have the 'OAIHeader' information in it's structure, once again refer to the above and add it in.
    Once you have completed all of your CBR configuration, use "File > Push Metadata" to send this new message structure and CBR rules to your adapters (DBAPP1, WORKFLOW and DBAPP2).
    HTH,
    Yan

  • How to call transaction in workflow

    Hi All,
    I want to call transaction in my workflow .
    Can anyone tell me about it?

    Hi,
    first create activity task in workflow. create a new methos inside BO.
    Then call the FM 'ABAP4_CALL_TRANSACTION' in the BO method.
    use this FM for call transaction from ABAP code.
    Regards,
    Jyothi CH.

  • Could you please send me some transaction in workflow

    hi all,
      anybody knows in workflow. could you please send me some transaction codes in workflow. so that i can check those transactions in workflwo.

    Hi,
    Go to SAP Menu ---> Tools ---> Business Workflow ---> Development there you have all the Workflow related T-Codes.
    Re: Workflow - Transactions
    Regards,
    Ramu N.

  • Select in read only transaction mode / insert in write mode

    hello,
    i have a following question: i have 2 db, one is rdb and one oracle
    im extracting data out of table out of rdb and inserting them into oracle via OWB;
    however this is run in read-write mode and causes locks in rdb; the only way to prevent locks is to run a select statement that accesses rdb in 'read only' transaction mode;
    my question is: is this possible to split up the select and insert statements of oracle into 2 different transaction modes, so that select statement is run in 'read-only' mode and insert in 'write' mode?
    i appreicate tips on how this could be achieved
    thx
    rgds

    Hello,
    is this something like:
    insert into oracle_table (select * from rdb_table@rdb_link);
    Then it is easy, you just need to use an sql init file for your OCI Service. Create a file, e.g. sql_init.ini that contains this line:
    declare transaction read only;
    Then alter your service so that it sees the sql init file, e.g.:
    SQLSRV> alter service <your OCI service> sql_init_file sql_init.ini
    The service owner must have the privileges to read the file. You need to restart the OCI service.
    Then a statement of the above kind results in a read only transaction on Rdb side, and the insert on Oracle side is done.
    I hope your SQL/Services version is a recent one (actual version is 7.3.1), because of this (from the SQL/Services Release Notes 7.2.0.1):
    5.4.25 Declare Transaction in SQL Init File Being Overridden
    In releases of OCI Services for Oracle Rdb prior to 7.2.0.1, if a DECLARE
    TRANSACTION statement was executed in the SQL initialization file of a service, it would
    be overridden by a DECLARE TRANSACTION statement executed later by OCI Services
    for Oracle Rdb. Toward the end of the connection setup, OCI Services for Oracle Rdb would
    execute a DECLARE TRANSACTION statement to set the default transaction
    characteristics to be close to Oracle default transaction characteristics. This would supersede
    any DECLARE TRANSACTION statement in the SQL initialization file. Starting with
    release 7.2.0.1, OCI Services for Oracle Rdb recognizes that a DECLARE TRANSACTION
    statement has been executed and will not execute another one.
    Regards
    Wolfgang
    P.S.: It is always better to place Rdb related questions in our communities at https://communities.oracle.com/portal/server.pt/community/rdb_product_family_on_openvms . Those are watched by Rdb Engineering and Support. It was by pure chance that I saw this forum thread.

Maybe you are looking for

  • Exporting Options in Crystal Reports 2008

    I am using Crystal Reports 2008 to make my report for my users.   I am also programming a viewer in vb 2005 so the users can view the report without changing it.  In the viewer I need to be able to export to excel or pdf or any other format.  I want

  • Nokia 6700 supported by Nokia Multimedia Transfer

    Hello All, Please note that Nokia 6700 device is supported by nokia multimedia Transfer for mac http://europe.nokia.com/support/download-software/nokia-multimedia-transfer/download Download Nokia Multimedia Transfer Connect the device and select PC s

  • FM 12.0.2 patch available now

    The FM 12.0.2 patch has been pushed out with 22 fixes, 14 enhancements and 8 FDK/Extendscript issues resolved. There also is a RoboHelp 11.0.1 patch out. This update is being pushed through the update manager (use Help > Updates...). It's not yet ava

  • Playing movies using VLC on external display

    My Macbook Pro is connected to my TV through the DVI port. There is a side-by-side arrangement, not mirror displays. Everything is working perfectly, sound and video. Sometimes I try to use VLC to play a movie on the TV screen, while I do work on my

  • Item Type "List Item" dosn't work

    I've tried to give the item type of a item to List item After compiling, I launch the form and I get this: NoClassDefFoundError Plugin Java 10.7.2.11 Version JRE 1.6.0_31-b05 Java HotSpot(TM) Client VM Could it be because of something incompatible in