Workflow BOR

Hi Experts,
I have created a subclass for BOR = IDOCORDRSP like ZDOCORDRSP for using in my workflow.
In my worflow i have to process my IDOC based on some condition
I have calculated the status ,
if its 'A', i process the IDOC and update my Purchase Order ,
if the status is 'R'  i want to delete the IDOC so PO wont be updated
Which are the methods that i am supposed to use for the standard BOR "IDOCORDRSP" for this functionality.
Many Thanks..:)
Bijal

Hi Bijal ,
You can create your own method for implementing this functionality . Just add a new method to your Z Object write the code for checking the status and processing the IDOC .
Include this step in your task .

Similar Messages

  • WorkFlow BOR : Change Method

    Hi,
    Can I know the BOR Object for sales order which includes Change method.

    Hi Meghna,
    I think the SDN team has already provided the answer. If you require any other information then please post a new thread.
    Thanks in advance for your kind coooperation.
    Regards.
    Abhijit.

  • Workflow - BOR BKPF

    Hi There,
    I have defined a custom workflow which should run for BKPF.CREATED event. Event linkage has been set up. And when I create an invoice from FB01 my workflow has been triggered. In the binding i have mapped Object key in event container with Object key i have defined in workflow container.
    Problems - Object key is not passed from event container to workflow container. And when I check workflow overview from FB03 there is no workflow attached to the invoice. But a workflow is being triggered and finished.
    Please share your valuable thoughts?
    Thanks in advance,
    Rajesh.

    Hi Rajesh,
    How exactly have you "mapped Object key in event container with Object key i have defined in workflow container"?
    The binding should be all but automatic. I'd suggest delete the triggering event from your WF and create it again. Click on the binding button and it should all be filled in for you if you defined your workflow container correctly (element of object type BKPF, with 'Import' flag set). You don't need to change what the system proposes, just OK the binding and that's it.
    Cheers
    Mike

  • Regenerate the Object Reference in workflow

    Hi All
    Is it possible to regenerate the object reference in workflow BOR.
    Please clarify below my query.
    I am using custom workflow at initial stage i am sending dialog work item one user to another user, Once user opens his work item i want to change the object reference.
    Is these any function module available please let me know.
    Thanks & Regards
    K.Gunasekar.

    Did it via the Call transaction and BDC in the object method code and working perfectly fine.
    Regards,
    Archana

  • About ale error handling in workflow?

    Hi,
    can any one explian in detail ale error handling through workflow,its urgent for me.
    Regards,
    phani

    Hi Srikanth,
    follw the steps it will helpful u,
    Pre-requisites. 
    It is assumed that the reader of this article has some knowledge in SAP workflow BOR objects and ALE Idoc process like process code, Partner Profile etc. 
    Description 
    Here, we will be discussing in details the Error handling of an Inbound Idoc through triggering an event, which in turn will be triggering a workflow attached to the workflow. 
    Steps:-
    1.     Create custom BOR object with the events, Start and Stop event
    2.     Create a workflow for the error handling, like generating a notification whenever an error occurred in the Inbound Idoc.
    3.     Creation of Function Module and attachment with the Process Code
    4.     Create the settings for the Inbound Process of the Idoc through the Process Code.
    Creation of BOR objects. Go to the[http://www.****************/Tutorials/ALE/ErrorHandling/page3.htm] transaction SWO1. 
    Enter a name for the Object type and click ‘CREATE’ button for creating the custom BOR object. 
    Enter the details required for creating the BOR objects... 
    Create the Key fields and events of the BOR object.
    For creating the Key fields place the cursor on the Key fields and Click on the Create Button
    Create events for triggering the workflow and stopping the workflow.
    For creating the event place the cursor on the EVENTS and Click the create button like Key fields.
    Create two events.
    Enter the event name description etc and proceed further to create it. 
    Similarly create another event for ending the Workflow in the similar manner like that created earlier. 
    Now, Generate the BOR object through the generate button
    Release the EVENTS and subsequently release the BOR object. 
    After the creation of BOR object
    Create a workflow for the generation of notification whenever an error is reached in the Inbound Idoc.
    Execute the transaction SWDD. 
    Click on the CREATE button for creating the workflow for error handling. 
    Choose the Step type to be inserted for the notification like here we are using Send Mail option for sending a mail to the user whenever any error occurred.
    Activate the Workflow and test it whether it is working as per the requirement.
    After the successful completion it is required to attach the workflow with the event.
    Go to the Header section (Denoted by CAP).
    Go to the Start Events TAB.        
    Enter the details of the event with which the workflow should be linked like the category, BOR object type and the event with which that should be linked.
    Enter here the BOR object that has been created and give the name of event created for starting the workflow.
    Click on the Binding Button for generating the binding between the event and the workflow.
    Click on the Binding Button for generating the binding between the event and the workflow.
    Generate the binding and click OK button to save the binding.
    Click on Activate / deactivate button for activating the linkage.
    After the successful linkage the following sign will appear on the workflow..... 
    This shows that the workflow has been linked to the event and it will be triggered whenever that particular event will be triggered. 
    After the creation and successful linkage of workflow with the event it is required it is required to generate a function module and attached it to the process code. 
    Go to SE37 transaction and copy a standard process code function module to a custom one. Do no delete any parameters from the function module as the SAP standard program itself is calling this. 
    In that function module do the required validation and whenever the validation fails set a standard parameter ‘WORKFLOW_RESULT’ to 9999 from within the function module, otherwise normally proceed to set the status to 53.
    After the creation of function module it is required to attach it to the process code and corresponding attached to the message type at the Partner Profile stage.
    The process code is being created through the transaction WE42
    Go to the change mode and click the New Entries button for creating new process code. 
    Enter the Process Code Name, description and choose the processing type as Processing by function module. Click on the extension button of Identification.
    The details for the of the Process Code after clicking the identification button will be  
    Whenever idoc arrives into the Destination system then the standard SAP triggers the Process code attached to the Message type in the partner profile. The partner profile is being maintained in the transaction WE20. 
    Since, it is and inbound scenario so the message type and the corresponding process code will be maintained for the Inbound Parameters. 
    Click on Create Inbound Parameters button for creating new Inbound Message type and the corresponding message type. 
    Enter the process code for the corresponding message type. 
    Click SAVE button for saving the changes. 
    Whenever the IDOC arrives into the target system, it checks the partner profile and finds the corresponding process code. The process code is being linked with the function module through which the IDOC is required to be processed.
    Regards,
    Phani.

  • How to amend workflow email footer that only appears in transaction SOST

    I am fairly new to workflow (less than one yearu2019s experience).
    An email is created by a User Decision step (Advance with dialog) in workflow (BOR ZDECISION2, method PROCESS). When you display the workflow task (transaction PFTC - standard task) just the email content is displayed in the task description i.e .no email header or footer is displayed.
    No Methods AFTER Work Item Execution are defined for the Workflow User Decision step.
    After the workflow has run and the email/document is displayed by transaction SOST a header and footer are displayed  u2013 where are the header and footer configured? Is anyone able to point me in the right direction? Many thanks.
    We are running SAP ECC 6.0
    Eg. email/document displayed by transaction SOST
    E-mail header text - where is this defined?
    E-mail content as defined in Workflow task.
    E-mail content as defined in Workflow task.
    E-mail content as defined in Workflow task.
    E-mail content as defined in Workflow task.
    E-mail content as defined in Workflow task.
    E-mail footer text - where is this defined?

    Hi David,
    I am also facing the same issue.
    Issue: I got the workflow in which mail body is created through some task attached to function module. In Transaction code: SOST, i am getting some additional text, and my mail body (from workflow task) is sandwich between those text displayed in SOST. Also, when mail is getting sent, text visible to receiver is the only ail body (created from workflow task).
    Ex. The text highlighted in bold-italic is additional text.
    Your Workflow inbox in the SAP system QA1, client 100, contains the following work item:
    <Mail Body created in workflow task>
    Open the SAP shortcut attachment in order to process the work item.
    If you have any problems logging on, contact your system administrator.
    I tried to find out from where those text is displayed using program RSWUWFML2, SE61 and SLG1 but couldn't find it.
    Can u please help me out to solve this issue.
    Thanks,
    Ketan

  • Change in Working Time - WORKFLOW - MSS

    Hi All,
    Im Very new to workflow & adobe forms in HCM.
    From MSS, manager needs to initiate the workflow to HR administrator(Change in Working Time).
    I have create form & ISR Scenario.
    Could you please help me in creating the workflow.
    Where to specify the ISR Scenario name in workflow, BOR 7051 & form name in WF..?
    How to proceed further..?
    Thanks,
    Rani.

    Hi Bentow,
    Thanks for your reply.
    And in my FS, there is no word like CATS.
    Mine is compeltely a workflow part.
    I just copying my FS workflow process part: Please Tell me some idea, if possible.
    A custom workflow template needs to be developed for Change in Working Time (MSS) process.
    Once the Manager submits the Change in Working Time form via MSS for any of the reporting Employees  the corresponding Workflow will be triggered.
    The workflow will route the submitted form to the relevant HR Administrator (which can be fetched based on an Agent determination rule , if needed  or can be maintained in the workflow template).
    The HR Administrator will  open the form and update the backend SAP system accordingly.
    Once the HR Administrator successfully updates the system , he shall  process the form  and complete it.
    Once the form is successfully completed by the HR Administrator , the workflow will send an Email notification to the Manager of the  concerned Employee. [In a normal scenario, the Manager will be the Initiator of the current Change in Working Time process]
    The above workflow configuration needs to done as part of the usage of  HCM P&F framework.
    The Workflow will be triggered when the Requestor(Manager) Submits the Change in Working Time
    form in MSS.
    Thanks in Advance,
    Rani,

  • Attach Invoice to CRM Workflow Task

    Hi All,
    My requirement is to attach invoice as an hyperlink to the userdecision step. The Object Type is VBRK, Which is non-exisiting in CRM. I am working on SAP 4.7 version.
    I have the invoice number attached to the Activity in CRM. Are there any exisint FMs for attaching the Business Object by making an RFC call. Searching for want of solution to this.
    Thanks.

    U can try following thing ,
    Create a container of your  BOR type for in the decision task .
    Bind workflow BOR container to Task BOR container .Try executing your workflow
    I am not sure weather this will work or not but you can have a trybecause in pure ECC it works.

  • Questions in MDG

    Hi
    I have few questions. Please find them below.
    1) What is the use of Active area while created a data model . For example it is partner for BP.
    2) what is qualifying, Leading and referencing relationship.
    3) what is the role of business objects in MDG.
    4) How do i get what is the purpose of paramters like process, CREQUEST ect . Where can i get more detail for this.
          Also please provide any material to get basic information.

    These are very basic MDG concepts. You should consider taking MDG training. Any way, to answer your questions quickly:
    1) Active area contains data that is ready for transactional use.
    2) Leading is just like a key field foreign key to a master record; qualifying is like a key field foreign key to a check table; and referencing is a regular field foreign key to a check table.
    3) what do you mean by business objects here? do you mean the workflow BOR BUS2250? if so, the main reason behind this object is to integrate MDG into the workflow engine.
    4) parameters of what? the WDA application? if so, these parameters will be used when displaying an MDG CR. so, if you pass a CREQUEST, that specific CR will be displayed, etc.

  • Reg: mail need to be trigger for salary change

    Hi gurus,
    I have one requirement.
    If any one does the changes in salary I mean in infotype 0008 then one mail need to be trigger.
    Can any one tell me the procedure how to do this requirement?
    Regards
    Ramesh

    HI Soumya,
    Thank you very much .
    I have found one BOR for this workflow
    BOR name  : BSAICPAY
    if any changes happen in infotype 0008 then changes event will tiger in this bor.
    I completed this requirement trough simple workflow
    Thank you all
    Thank you for your support
    Regards
    RameshG

  • Need 2 links in an Work item???

    Hi Experts,
    I am having a requirement as i need to display the 2 Links which should route to a T-Code via a work item... I can display the 1 link for a transaction VA03 based on the Display method in a business object and in the same work item i need to give a link to display the VC01N transaction which is related to another business object... So please guide me how can i display 2 Links in an Work item for 2 different transactions...
    Thanks,
    Srikag

    Hello,
    The workitem will display a link for the default method of every BOR in the workflow (besides the workflow BOR).
    So if you want a link to transaction x, make a BOR and make x the default method of that BOR and instantiate that BOR in the workflow.
    Usually the BOR already exists; you'll just have to instantiate it with a relevant value in the workflow and possibly change the default method.
    regards
    Rick Bakker
    hanabi technology

  • Start workflow with f. module to trigger event and how to pass data to BOR?

    Hi,
    I have a custom BOR object, with Event "Created". I have also an attribute in this BOR, just simple field Plant.
    I have prepared a custom Workflow which is triggered when event Created of that custom BOR business object is raised.
    To raise an event and to start a workflow I run f. module SAP_WAPI_CREATE_EVENT.
    I have a problem to pass a Plant value to the Workflow container. In the PFTC_CHG for my Workflow I made the container
    of BOR object, and the data binding &_EVT_OBJECT& => &MATREQ&  (symbol of my BOR).
    Below both of EVTOBJECT and MATREQ I can see my field Plant.
    Then I run f. module SAP_WAPI_CREATE_EVENT with tables parameter input_container.
    I try to fill the data in many ways, but the started workflow does not have Plant filled.
    I try to use '_EVT_OBJECT.WERKS' in field name for input_container parameters.
    Business Object is passed to the Workflow container, but I do not get the fields
    as attributes. Do I have to use the parameters for the event Created ?
    Thank you in advance
    Wojtek

    Hello,
    I've never used GUID as a key but I suppose the principles are the same - the object instance is equivalent to "something", say a widget.
    This widget has attributes, e.g. the factory where it was created, the day it was created, its weight etc.
    If you make a widget BOR object and you specify attributes then you're telling SAP how, given the key, it can deduce the value of the attributes. Widget 1234's weight can be looked up in table XXX by doing this select.
    If you pass an object instance to a workflow then all you need to pass is the type of object and the key, the rest can be done by the workflow (or any other program). It can instantiate the object, and the attribute values are immediately available.
    If you can instantiate the object in SWO1 and the attributes get values, then it should work in the workflow as well.
    If not, please provide the code of the attribute or describe how it finds the attribute value.
    regards
    Rick Bakker
    hanabi technology

  • System variable for find the method BOR / workflow

    Hi,
    I  am working with one workflow . I am displaying tcode FB60 in edit mode( FV60) for the approver( method FIPP.Change ). I wanted to differentiate technically the tcodes that are executing through manually and thorough BOR method.
    Is there any system variable which holds the value of BOR and method name ?
    Please help me in getting this system variable.
    Regards
    paveee

    Hi Claudio,
    Try this,
    ->> Open the Pick List(System) PLD and Save as the New PLD.
    ->> Open the NEw PLD and Create 1 Database Field(for WareHouse Name) in Repetetive Area.
    Table -> OWHS - WareHouse
    Column -> WhsName - WareHouse Name
    Save as and Run the Print Preview.
    IF will not print the WareHouse Name in Print.
    Do this in PLD.
    ->> Open your PLD.
    --> Ralate to WareHouse Code Field ID in WareHouse Name Field at Content Tab on Properties Window.
    Regards,
    Madhan.

  • Workflow : attributes  and methods in BOR

    Hi to all,
         I need to create a custom attribute in custom BOR object. I want to put some value in custom attribute by using select statement . where do i write the code for that attribute in BOR. In standard methods i have seen that ex: gw_purchase = object-key-number   wt is that object-key- number. wt is the value does this holds
    so any one  please explain me  with details.

    Hi,
    methods in BOR are piece of codes that you execute in runtime by calling them in workflow. So when you check the box object method with dialog, such methods need to processed by user i.e; workitem agents. If you don't check this checkbox, the piece of code (method) will you be executed in the background without sending the workitem to user.
    Let me know if you still have doubts.
    Regards,
    Raj

  • BOR Attribute empty during workflow trigger

    Hi Gurus,
    I have a problem in workflow where the IMAGE attribute of my zBUS2081 is not being read (or might be empty) during workflow trigger. This is the scenario:
    1. I delegated zbus2081 to BUS2081 and added attribute of type BOR - IMAGE.
    2. My workflow is being triggered when a LIV INvoice is parked.
    3. In my workflow, at the beginning I am transferring ZBUS2081.IMAGE to a wf container IMAGE_CONT (type BOR - IMAGE)
    4. My workflow triggers, then I check the log. It shows that IMAGE_CONT was assigned with ' ' value even it passed through the container operation step.
    5. What's weird, is when I retrigger the workflow, it is now able to assign the value of ZBUS2081.IMAGE to IMAGE_CONT.
    What could be the problem? I don't think there is a problem in my workflow. Seems that ZBUS2081.IMAGE has no value during trigger, but there is a valid data for IMAGE before the wf triggers.
    Thanks,
    Eo

    Hi Eo,
      I guess it may be because of the program logic inside business object Zbus2081 on attritube IMAGE.
      Can you open the program of attribute image and check whether you put the condition that maybe skip command swc_set_element container?
      In background, workflow will re-calculate attribute of the object. If swc_set_element container is missing, value will be blank.
    Regards,
    Chaiphon

Maybe you are looking for

  • Error while opening Fiori app on iPad

    I keep getting "Service XXXX failed. Contact your system administrator. Cannot call service with URL: /sap/opu/....." error on the iPad - both in the browser and the Fiori client. I am able to login to the launch pad and also see the apps, the error

  • Ive lost sound from my iMac, and itunes wont play

    Hi Ive been having trouble with my mac for a few weeks - since losing my Microsoft Office suite and trying to reinstall it.  Wont allow me to as hard drive is full.  Then lost all info on screen - grey screen on lonin - so rebooted in Safety Mode and

  • Font in shared library

    Hello everyone Been reading all your posts and tried everything, but nothing seems to work. The problem is: index.swf as a class named AssetsLoader.as. This class loads sharedlib.swf which as a font in it. I need to register the font at index.swf, bu

  • Photoshop cs5 Save as slow down

    Hi I have been experiencing a ptoblem in Photoshop Cs5 relating to Save As. My workflow is as follows. I import and work on my pictures using Lightroom 3.2, then if I want further editing - I use Photshop. I have a dual processor Xeon workstation tha

  • Client copying.

    Hi Gurus; I want to copy a client which has every data except the master data. which profile should i choose in this case during client copying. The new client should have user, roles profiles customising changes of the source client but no master da