Including Adhoc Objects in Workflow Item

Hi,
We have a process where we an External program that is creating IDocs for us and we have a Z FM to process this IDoc. If during processing within the FM the process dodnot complete we are raising a Workflow Event ( Z - Business Object ) that sends notification to a SAP users Inbox.
We need to link the Originating IDoc linked as a OBJECT in the workflow notification item.
Can I use Adhoc Objects and How do i use it. I have already created a container element referring to Object Type BO - IDOCAPPL. What i am not able to do is how to get the values populated in this element. Are there special function modules available to populate Adhoc Objects.
Has anyone used the adhoc objects. Or point me to some sample proram that use these.
Regards,
Arunava

Solved by self.
1. Create a variable for the object reference. Use the following command to do this:
DATA <Object> TYPE SWC_OBJECT.
2. Create the object reference. Use the following command to do this:
SWC_CREATE_OBJECT <Object> <ObjectType> <ObjectKey>.
3. Write the object reference into the container using the following macro instruction:
SWC_SET_ELEMENT <Container> <ContainerElement> <Object>.

Similar Messages

  • How to get the objects from a workflow item's container

    Dear all,<P/>
    We need to get the value of a variable in the container of a workflow item. I can get the workflow item list using function module <B>SAP_WAPI_CREATE_WORKLIST</B>. Then how can I get the corresponding container elements' value?<P/>
    I tried function mofule <B>SAP_WAPI_GET_OBJECTS</B>, but the returned table <B>OBJECTS</B> and <B>OBJECTS_2</B> are both empty.<P/>
    Thanks + Best Regards<P/>
    Jerome<P/>
    null

    Hi,
    Well, I think you will be getting the value as BORNAME:BORKEY. Get the KEYVALUE into your local variable. And use the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4acef453d11d189430000e829fbbd/frameset.htm">BOR Macros</a> to get the instance and desired contents.
    Regards
    <i><b>Raja Sekhar</b></i>

  • Urgent - How to create instance of Business Object in workflow at runtime

    Hi all,
       I have a requirement as follows...
    1) I have a Business Object ISUPOD in which the Key field is Pointof Delivery
    2) I am getting the value for Pointof Delivery in the step-2 of my workflow.
    3) Now I want to create a instance for the Business Object using this key field value in my Workflow at runtime and use the instance in the following steps.
    How can I do this ???
    Thanks,
    Sivagami

    Hi Ravi,
      Thanks for the solution...
      There is also a wizard that will generate an activity to do this. We have to just go to Wizards->Include "Create Object Reference" which will create the task  with the BO & Method referred by you.
    Thanks,
    Sivagami

  • Generic Object Servises- Workflow overview

    Hi,
      In Me53n transacrion, when I am selecting the Workflow-> workflow overview from Generic Object Services(this icon appears in the left where 'Display Purchase Req. XXXXX' appears ).
    I get a message saying "There are no workflows that have already worked with this object", even though the workflow has trigged and work item has been created in SAP Business Work Place for the PR. Please let me know what is to be done so that it shows the workflow log for the object.
    Regard,
    Shweta

    Hi,
      This feature is working if the worflow has trigged from BUS2105-RELEASESTEPCREATED, but not working if the worflow is trigged from ZBUS2105-ZCHANGE(ZBUS2105 is subtype and zchange is custome event ).
       I have created an entry for this Subtype ZBUS2105 and custom event ZCHANGE SWEC transaction so that the worflow will trigger when PR is saved after being held. I have also set the "Delegate" for ZBUS2105 in transaction SW01 to BUS2105 .  This is working fine, but  the problem is if the workflow trigger by this custom event then GOS->Workflow->Workflow Overview does not show this workflow item in the overview.
      Please tell me what is to be done...

  • SC in Awating Approval satus but No workflow item found

    Hi Experts.
    We are using SRM 5.0 and have found this strange problem where a SC is awaiting approval status but there is no workflow item generated when we check for the sc in bbp_pd.
    We tried to check in swi1 for workflow item id for that particular but are not able to see this SC.
    What could be the reason where the workflow is not started since in our case once the sc is created workflow gets started automtically in this case that has not happend.
    we ran the clean_req_req_up job and bbp_get_status_2 for this sc but no help
    Any help in this regards will be highly appreciated
    Regards
    Vidya

    Hi Ricardo,
    Thanks for your response As suggested we did check for the SC in SWI6 but we get a messge " there are No workflows that have already worked with this object type"
    Since our SC have approvals in line will restart of workflow trigger the approval or will t get auto=approved,since in a few cases when we retriggered the workflow teh approvals were never called and the SC were auto-approved.
    There are more than 10sc which have stuck in thsi kind of situtation
    we also had a SP patch upgradtion,cld this have been caused  because of SP upgradation?
    Regards
    Vidya

  • Adhoc object opened in wrong format

    Hi Guys,
    One of the users reported a problem that when opening an adhoc object from SBWP, it opens a MS Word file conversion dialogue. The adhoc object is an archived image that is a PDF file on an IXOS repository.
    The users says that the first time he opened an archived image the system asked what format it is and he chose DOC. Since then when she tries to open an archived PDF from workflow, it opens with Word, pops up the file conversion dialogue and regardless what she chooses, displays the file in Word and of course it's unreadable.
    The user also says thet she can open PDF files on her PC without a problem.
    Other users can display PDF images from WF w/o problem, so the frontend comminication customizing seems fine. So I wonder whether there is any user related setting in SAP that controls what application opens a certain file type.
    Thanks,
    Krisz

    Please try using the Settings->Office settings of the user Business Workplace and remove the default class of DOC to PDF.

  • Leave Workflow item from Personnel no. of an employee

    Dear All,
    I just wanted to know that is there any transaction or report which displays leave workflow items for particular employee.
    Thanks in Advance
    Regards,
    Bharat

    Hello,
    You can use tx SWI6
    as input use the businessobject and the key. This will give you an overview of all workitems which worked whith this object instance.
    Kind regards,
    Peter

  • WORKFLOW ITEM forward

    Hello All,
    When I am trying to forward workflow item using SWIA , I am getting the message like " WS is not a valid object type for a task".
    It's in statuts "STARTED" and AGENT is "SAP WORKFLOW".
    How can I forward this item to user as workflow administrator.
    Regards,
    Lavanya.

    Hi,
    Please follow the below steps........
    1. If you have the workflow instance number
    Oepn table SWWWIHEAD through tcode se11/se12/se16
    Enter the instance number in field TOP_WI_ID and execute.
    You will find there are multiple woritem there.
    Get the workitem whrere WI_TYPE is 'W'.
    That is the dialog workitem of that workflow. ( There may be the multiple dialog workitem as per the workflow design )
    Now forward the dialog workitem through SWIA
    2. If you hav woritem number which is not wokflow instance number
    Open table SWWWIHEAD through tcode se11/se12/se16
    Enter the instance number in field WI_ID and execute.
    You will get the worklow instance number in field TOP_WI_ID.
    Now get the top wokitem id adn open table SWWWIHEAD through tcode se11/se12/se16
    Enter the instance number in field TOP_WI_ID and execute.
    You will find there are multiple woritem there.
    Get the workitem whrere WI_TYPE is 'W'.
    That is the dialog workitem of that workflow. ( There may be the multiple dialog workitem as per the workflow design )
    Now forward the dialog workitem through SWIA
    Hoping that this will help you to fix your problem.
    Thanks and regards,
    SNJY

  • Need to include invoice note in workflow email notification

    Hi,
    I need to include the notes entered by user in invoice notes tab while parking the invoice
    when the workflow is triggered , workitem is created for the purchase personnel and the email notification for his workitem should contain the text written by the finance person in notes tab of the invoice while parking the document
    I  found out the table where the name of this text for the invoice is stored. Its STXH. The text name is invoice number and fiscal year
    I  created workflow element invoicetext and concatenated invoice number and fiscal year in it and passed it to the task of the workitem.
    I put the following statement in the description of the workitem as per the entries in table STXH.
    /: INCLUDE &INVOICENOTE& OBJECT RBKP ID 0001
    but the text is not showingup in the description of the task when the workflow is instantiated. I also checked the funcion module READ_TEXT, all parameters are correct.
    Could you please advice me what could be the problem ?
    thanks
    R

    Hello Rita,
    Prior to the Mail step, use an activity step in workflow by calling a method.. in that method use READ_TEXT and get the required value into a container element and pass it back to Workflow, then you will be able to use INCLUDE to add that container element to your body of the mail.
    Try the above process and if not we can look for other options.
    Thanks,
    Sudhir.

  • Need to deactivate task that generates workflow items not needed anymore

    Hi,
    Some users are currently getting workflow items with the error message: "Header del.date/Qty different than line item;..." for inbound orders. The users don't want to receive this error message anymore on their inboxes.
    I found out this error message is generated by the TS90100001. How can I find out if this task only generates this error message or if it is used to something else? And also, if this is the case, how can I deactivate this task?
    Thanks!
    Andrea

    Hi,
    I don't have access to TCode SWE2, if you think it would be useful for me, I'll request the access.
    I entered to see what the task does and found out the name of it which is: Order Change after post processing error.
    Object Category: BO BOR Object Type
    Object Type: ZBUS2032
    Method: CHANGE
    Not familiar with this sorry
    Thanks,
    Andrea

  • Tcode to be used to approve a workflow item

    Hi Gurus,
    Which tcode can be used to approve a workflow item manually?
    br
    jack

    SWO1
    SELECT THE BUSINESS OBJECT
    IF IT IS SC
    BUS2121
    EXUCUTE
    INSTANCE
    GIVE SC NUMBER
    GO TO METHOD
    SET RELEASED
    EXECUTE
    SC APPROVED.
    THIS IS BACKEND METHOD .........FIRE FIGHTING NOT ALWAYS..

  • Are there user exits after Workflow items being created

    Hi all:
    Here is my situation, I want to create a change document object on table SWWWIHEAD, which is the table of workflow items. Whenever a workitem is created, I want to send the information of this item to an webservice outside of ECC.
    The first thing come to my thought is the change document, and use the change document to link with an event. But we need to find the place to insert the code of call the function *WRITE_DOCUMENT generated by  change document. Are there any one know if there are user exits that I can insert the code after a work item being created or updated?
    Regrads
    Wayne

    look at MM06E005 in SMOD

  • GRC AC v10 SPM WF - Workflow Item not showing up in WF Inbox

    GRC AC v10 - SP12
    The outlook email notification for the Workflow Item goes out, but there is nothing in the NWBC Inbox for the WF Item. Subsitution is setup correctly.
    Any ideas?
    -john

    Hi John
    this is probably be a silly question but what substitution did you set up for ZFF_CTL_01? I assume the item is in that user's inbox. Which user is meant to be receiving?
    I also noticed this KB article (1589130) which mentions the delegated person needs GRAC_REQ authorisation. Have you checked if security access issue?
    There was also mention that the delegated approver does not appear in the MSMP instance runtime (your screen shot suggests same situation unless you have not set up the delegation). SP14 delivers the fix or refer to  1915928 - UAM: Delegated Approver is not visible in the Instance status
    Possibly have a look at both of them to see if they resolve your issue.
    Regards
    Colleen

  • Delete Workflow items from workflow inbox.

    Hello All,
    We are using workflow in MSS for Compensation Management. As part of this an email will be sent to the managers when a compensation needs an approval. There are some workflow items under workflow inbox ( SBWP ) . How can I delete emails which I don't want to execute. I don't see any delete button. I can see delete buttons for the documents under inbox, but these emails that I want to delete are under workflow in Inbox.
    Thanks a lot for your help and points will be rewarded for any helpful solution.
    Thanks,
    Chakri.

    Thank You Suresh,
    You are refering to the emails in the inbox ( SBWP ) where I can delete my emails with the help of a delete button. But I am referring to the workflow items that are present under INBOX -> WORKFLOW. There is no delete button on these workflow items. If we execute these workflow items then they will be deleted automatically. I am looking for a solution by which I can delete (clean up) all the workflow items that are not executed from last year so that we can be ready for our compensation for this year.
    Thanks,
    Chakri.

  • Regarding workflow items

    Hi,
    Can any one suggest the solution to get the workflow items in the portal UWL.
    I had configured the UWL and I am able to get the mails of the documents in the inbox of SAP. But I am not able to get the workflow items. Even I had maintained the task in SWFVISU.
    Regards,
    Narendra

    Hi,
    The UWL has to be configured in the portal side also.Please refer the below link for the same.
    http://help.sap.com/saphelp_nw70/helpdata/en/39/a1bb5c4c0d4ab4a417e87ef35f1efa/frameset.htm
    Thanks,
    Smita Das.

Maybe you are looking for

  • MiniWAS 6.20 Installation Problem on XP Pro

    To: Anyone That Can Help I am one of the hordes of people having problems installing MiniWAS 6.20.  I had MiniWAS 6.10 formerly installed. I ran the Uninstall script first. Then I procedded to stop the x_server and do a db_cold, stop & drop on WA1. I

  • Cancelled Accounting Document Number(belnr)

    Hello Experts, I m developing a report in which i have to capture accounting document number which has been generated against the cancelled A/c document number. Is any field populated when the a/c doc num has been canceeled so that we can make out th

  • How can I turn off genius in iTunes 10.5.3 (3)

    How can I turn off Genius in iTunes 10.5.3  under Lion 10.7.3 (other than disconnecting from the internet). It is no longer an option in the Store menu and although I can hide that playlist on the left through parental controls, the atom symbol is st

  • FireFox not loading page with passed argument

    I have a simple url that includes an argument passed to a php process: http://everydaycats.com/ec_video_purr.php?image=K7_CE_raN_s If you load this url in any other browser, even older versions of FF it works. When I installed FF 4 today it suddenly

  • Two ATI video cards in Vista 32 with Boot Camp

    Hello, I just installed a second ATI Radeon 1900 video card in my 2007 Mac Pro. It seems to work fine while in OS X, I can adjust and use three different monitors at once. However, while in Vista 32, only two monitors on one card will work and the vi