How to pass work item id from  workitem to webdynpro form

hi ,
im working on  webdynpro. when the agent executes  the  workitem  it has to open one form designed with webdynpro screens. here i have to get the workitem id from workitem and basing on the workitem id , i will get other data , that i have to dispaly in the lay out of a view..
how to pass this work item id to my view and how to display this...?
Raghu

Hi,
Application parameters can be used for this accessed directly only in the Window. Follow these steps;
1. get the application url using the following code,
par_wrkitm is the application parameter ( which should also be declared in the HANDLEDEFAULT method of the window as importing parameter and aslo appended in the URL )
g_wrkitm is a Component Controller attribute
Data: my_url TYPE string.
*Get the URL of the Application
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
    application_name = 'ZWDRC_NEW_APP'
IMPORTING
   out_absolute_url = my_url.
2. Now pass the required parameter ( i.e in this case Workitem id ) to this URL
3. In your webdybpro applicatio, Goto Application parameters and create a parameter for workitem id with the same name as used in the URL.
4. In the HANDLEDEFAULT method of the window, create Importing parameters with same names as that of your application parameter.
5. Now this variable will contain your workitem id.
If you want to acess the variable in your views;
2. create a attribute in the Component Controller( Component Controller->Attributes Tab; mark it as public )
3. Now in the HANDLEDEFAULT method of the window, assign your application parameter values to the component controller attributes directly as shown below,
wd_comp_controller->g_wrkitm = par_wrkitm
Regards,
Radhika

Similar Messages

  • Workflow - passing work item automatically from one inbox to the next one

    Hi,
       We have a pretty customized work flow and SAP is configured to start the workflow after creation of PO. For some POs created by a user, we want the POs / work item to be sent automatically  / by background job from that user's inbox to his /her manager's inbox for approval without manually executing the work item.
    I looked at the FM SWU_PROCESS_MANUEL_DECISION, but could be called only by dialog. I checked the transaction SWIA, but need manual input.
    We are in 4.6b, can anyone tell me how to do the same?
    BTW, I tried to create a custom FM based on above, but lots of issues on that as well.
    If I can change the workflow, all I want is, check the initiator and PO types then based on that either forward directly to next approver or just leave it in the inbox of the initiator so that the initiator can approve manually after verifying the PO.
    Regards,
    Sundar.

    Moderator note: As per comments, IA's answer was accepted as correct, thus marked accordingly.
    Please note that even if you found the answer before someone posted the same, it is still a good idea to mark an answer as correct:
    Firstly they did make the effort to help you, and - more importantly - it shows someone else reading this thread later on what the correct answer is.

  • How to pass parameter /1BCDWB/DOCPARAMS from webdynpro?

    Hi Experts,
    We create a wdp view and indert an adobe form into it. And this form has an interface based on XML schema.
    Now we want to translate this form into multi-language, and in wdp side, we will display diffenent language version of form for different regions.
    I found that there is a paramater /1BCDWB/DOCPARAMS-LANGU, and it seems can control the language version in processing.
    But I donot know how to pass parameter /1BCDWB/DOCPARAMS from wdp to adobe form.
    Its my 1st to use adobe form and wdp, i really have no way out. Any advice will be Appreciated.
    Thank you.
    Richard

    @sahai: Hey no , I am using very very simple example without any query or complex statement. I just have 2 radio buttons in VIEW1. On clicking the radio button, the naviagtion to view2 is done and the value of selected radio button is passed as a parameter in the plug.
    In the view2 , i just have a caption in my layout where i am displaying the parameter value by setting the attribute.THe warning i get is in view2. Here is the code. Apart from this there is no coding in view2.
    METHOD HANDLEPLUG_IN_V2 .
        DATA:
          NODE_CAPT_MSG                       TYPE REF TO IF_WD_CONTEXT_NODE,
          ELEM_CAPT_MSG                       TYPE REF TO IF_WD_CONTEXT_ELEMENT,
          STRU_CAPT_MSG                       TYPE IF_VIEW2=>ELEMENT_CAPT_MSG ,
          ITEM_MSG                            LIKE STRU_CAPT_MSG-MSG.
    *   navigate from <CONTEXT> to <CAPT_MSG> via lead selection
        NODE_CAPT_MSG = WD_CONTEXT->GET_CHILD_NODE( NAME = `CAPT_MSG` ).
    *   get single attribute
        NODE_CAPT_MSG->SET_ATTRIBUTE(
          EXPORTING
            NAME =  `MSG`
            VALUE = PAR_1 ).
    ENDMETHOD.

  • How to stop workitem complete or how to keep work item in inbox based on conditions even if it completed

    Hi,
    my requirement is to call webdyn pro screen from workflow..
    i am calling webdynpro screen by using FM :CALL_BROWSER from workflow.
    when webdyn pro screen is called user will enter some values . if user closed webdyn pro screen with out entering any values we need show this workitem in his inbox. so that user can again open it and enter values in the webdyn pro screen.
    Please help how to stop work item complete based on conditions.
    Thanks,
    phani

    Hi,
    As per my understanding, this is not a proper approach toy call web dynpro using FM CALL_BROWSER. is the web dynpro screen being called when user clicks on the work item from portal UWL OR from SAP SBWP ?
    if you are calling web dynpro screen from portal UWL when user clicks on work item link, better you achieve it using SWFVISU tcode. in SWFVISU tcode you can maintain which web dynpro. application to call when particualr work item task come in user's inbox. in your web dynpro code, then you can write your buisiness logic when user clicks for example SUBMIT/SAVE button. on action submit/save button you can use FM SAP_WAPI_WORKITEM_COMPLETE to complete the worktiem once the user clicks on final submit/save button. in this way the workitem will get removed from user inbox only upon clicking on submit/save button.
    You can refer below link for web dynpro for workitem:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70648e99-4cc1-2c10-879d-9c61003c69d6?QuickLink=index&…

  • How to see work flow log from Work flow number & work item?

    Hi SDN,
    How to see work flow log from Work flow number & work item?
    Please let me know if there is any transaction for this?
    Or there is any table which gives the details of Work items & work flow numbers?
    Regards,
    Rahul
    Edited by: Rahul Wagh on Nov 12, 2008 5:56 PM

    Hi Rahul
    Go to the Transaction SWI1,
    Enter the workitem no and press F8.
    Select the required entry and Press Shift+F8 (Log Button)
    to view the workflow log.
    Best Regards,
    Deepa Kulkarni

  • How to run work item manualy

    Hi Experts,
    This is Chakri. How to run work item Manually ? I don't no exactly workflow.Basically i am working on EP.
    Regards,
    Chakri

    Hi Chakri,
    If you are after running a workitem manually then just go to txn swia give that workitem number and execute from there.
    or
    you can go technical details of it and complete manually.
    steps: 
    go to technical details
      click on the workitem (line)
      goto menu - technical details
      change menu
      complete manually.
    Cheers
    VJ

  • In GP how to get work items in outlook inbox

    Hi,
    Any one can explain me how to send work items to Outlook Mail. This option is there in ABAP work flow. I need solution in GP.
    Please give any sloution.
    Thanks,
    Sunil

    Hi Jonathon,
    in our last project, we faced the same problem and resolved it with a standard notification CO:
    - we put a notification CO (+ action) in front of the action you mentioned (that one that generates the UWL's workitem and provides the CO for manual processing)
    - the notification's addressee will be the current processor, who is also the guy to do the manual processing
    - the notification email contains a link to the process' current workitem, which is the action you mentioned (e.g. a webdynpro form or whatever the manual processing is)
    The result is, that there will be an automatically sent notification, followed by the normal manual processing. And our client was happy to be able to customize every single email.
    See this link for email administration: http://help.sap.com/saphelp_nw04s/helpdata/en/43/f9097d1b607061e10000000a1553f6/frameset.htm
    Best regards
    Daniel

  • How to pass apex item value into custom xml for chart or guage?

    Re-opening the old thread : Re: How to pass apex item value into custom xml for chart or guage?
    Which was not answered.
    Roel - Thanks. Its working - but in a semi quotes in the custom XML
    <pointers>
    <pointer value= '&P5_RUNNING_TOTAL.'
    <label enabled="true">
    <position placement_mode="ByPoint" x="50" y="15" />
    <format>{%Value}{numDecimals:1}</format>
    <background enabled="false" />
    </label>
    </pointer>
    </pointers>This question was helpful for us to resolving one recent thread : AnyChart - set Dial axis intervals dynamically?
    (Re: AnyChart - set Dial axis intervals dynamically?
    Edited by: P.Ranish on Dec 13, 2012 6:23 AM

    P.Ranish wrote:
    Is there any update for this question ???
    Edited by: P.Ranish on Dec 13, 2012 3:36 AMNo, And there won't be in the future.
    Please stop posting followup's to old threads, if you have a real problem please search the forum first and post a new question with all information
    Roel wrote:
    Try using &P5_RUNNING_TOTAL. or #P5_RUNNING_TOTAL#Just to make it clear - this will only work if page is reloaded after setting the item values dynamically via AJAX

  • How to get work item details programatically ?

    Hi All,
    I have a list of work items (process instances) and I want to retrieve each item details such as: attachments, notes, id, ...
    All the items are filtered and represented as Fuego.Papi.Instance:
    Fuego.Papi.Instance[] inst = busProcess.getInstancesByFilter(filter : instFilter);
    But the work item details are inherited from Fuego.Lib.ProcessInstance. So, how to get the item details from inst[] ?
    Would appreciate any help, may be Dan will have an advise ?
    Regards,
    Kim

    If you have instances returned by your filter, you could extract variable information for each instance by doing something like this:
    for each inst in getInstancesByFilter(ps, filter : instF) do
        // here's how to get the value inside a primitive instance variable
        orderAmtObj as Object = getVar(inst, var : "orderAmount")
        // here's how to get the value of attributes inside a complex BPM Object instance variable
        //    - in this case this is an "order" object with two attributes (customerName and amount)
        orderObj as Object = (getVar(inst, var : "order"))
        xmlObject = Fuego.Xml.XMLObject(createXmlTextFor(DynamicXml, object : orderObj, topLevelTag : "xsi"))
        logMessage "The value of the order object's customer name is: " +
               selectString(xmlObject, xpath : "customerName")
        logMessage "The value of the order object's order amount is: " +
               selectNumber(xmlObject, xpath : "amount")
        // here's a rather uninspired way to retrieve who the participant is that was assigned the instance
        logMessage "The participant assigned to this instance is: " + inst.participantId
    endInside the above "for" loop, you could retrieve these predefined variables (this example assumes you use "inst" in your "for" loop):
        objRet as Any
        objRet = inst.getVar(var : "PREDEFINE_ACTIVITY")
        logMessage "Activity name = " + objRet using severity = DEBUGSubstitute "PREDEFINE_ACTIVITY" in the above logic to get this information:
    PREDEFINE_PRIORITY (priority)
    PREDEFINE_ACTIVITY_DEADLINE (activity.deadline)
    PREDEFINE_CREATION_TIME (creation.time)
    PREDEFINE_PROCESS_DEADLINE (deadline)
    PREDEFINE_DESCRIPTION (description)
    PREDEFINE_PROCESS (process)
    PREDEFINE_RECEIVED_TIME (receptionTime)
    PREDEFINE_PARTICIPANT (participant)
    PREDEFINE_COPY (id.copy)
    PREDEFINE_STATUS (status)
    Similarly, you might want to try to get instance information using the Fuego.Papi.VarDefinition object a try. Never used it, but the logic might be as simple as:
        logMessage "who created? = " + inst.getVar(Fuego.Papi.VarDefinition.CREATOR_ID) using severity = DEBUG
        logMessage "does it have attachments? = " + inst.getVar(Fuego.Papi.VarDefinition.HAS_ATTACHMENTS) using severity = DEBUG   
        logMessage "does it have notes? = " + inst.getVar(Fuego.Papi.VarDefinition.hasnotes) using severity = DEBUGDan

  • How to send work item?

    Can any one please tell me how to send work item ? will it be through the use of user decision or through the activity task? moreover where to provide the description and the subject of the work item?

    What do you mean by "send the work item"?
    If you mean "send information to a user that there is a work item waiting to be executed", read the FAQ and/or search this forum for RSWUWFML2.
    If you mean "send the work item to the correct recipient", your best choice is to learn how to use rules and set possible agents. Read the FAQ and/or search the forum or SAP documentation at <a href="help.sap.com">help.sap.com</a>.
    If you mean something else, then please try again to explain what you are trying to do.

  • How to passing value into Captivate from html?

    How to passing value into Captivate from html?
    Or
    How to communicate between objects in one slides?

    Hi czhao0378 and welcome to the forums!
    Captivate does not natively allow you to communicate your own
    data, either internally or externally. The only way to make this
    happen is to create your own functionality, either via custom-built
    Flash objects or JavaScript code executed in the browser or a
    combination of both.
    The only example I've seen of any "data passing" inside
    Captivate is a custom text input/output solution that was posted on
    the Captivate Developer Exchange:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1253 021
    This solution consists of an input box that takes information
    from the user on one slide and a second box that displays that
    information on another slide. The functionality was built in Flash
    and is embedded in Captivate as a Flash "animation". Unfortunately,
    since this is a custom functionality, the information is not
    included in the user completion results Captivate can pass to a
    Learning Management System.
    Since the solution mentioned above relies on a Flash
    Actionscript variable to hold the information that is displayed,
    you can also pass the information from HTML to Captivate using the
    "SetVariable" command in JavaScript. This would at least allow you
    to display your own HTML-based data inside Captivate.
    Beyond that, I'm not aware of any other way to gather and
    pass data in Captivate.

  • How to pass PO customer fields from ECC to SUS ?

    Hi Gurus,
    We defined a customer PO field at ECC side and want to pass it to SUS and diaplay it in SUS PO, my question is, how to pass PO customer fields from ECC to SUS?
    Please advise.
    Thanks and best regards
    jack

    Hi jackytam  ,
    /people/yeusheng.teo/blog/2008/01/05/ordering-unit-vs-order-pricing-unit-in-srm-sus
    you make get some pointers
    regards,
    Neelima

  • How to retrieve the item text from VL03 transaction .

    How to retrieve the item text from VL03 transaction .
    The requirement is like this, the item text thus retrieved should be printed in the script under the item.

    Jagadieshwar,
    Use <b>READ_TEXT</b> function module to get the proper item text of Delivery.
    <b>ID</b>: Probably you want 0002 (Item Note), but it depends which text you want Item Note, Material Sales Text ,etc..
    <b>NAME</b>: CONCATENATE Delivery Doc. Number + Delivery Item Number (e.g. 0080001729000010)
    <b>OBJECT</b>: VBBP
    <b>
    LANGUAGE</b>: sy-langu or whatever you want.

  • How do I create an app from my Adobe pdf forms to use on any mobile device as well as windows and ios?

    How do I create an app from my Adobe pdf forms to use on any mobile device as well as windows and ios? I have all the apps in Creative Cloud by the way.

    If you already purchased it with the same Apple ID, then you will not be re-charged.

  • How do I stop my 'notes' from being automatically sent form my iPhone to my email on my macbook pro?

    How do I stop my 'notes' from being automatically sent form my iPhone to my email on my macbook pro?

    Thank you.  What is the difference when I log into my mail, prefereces, accounts, allow notes in inbox and click No.  Nothing seemed to happen when I did that.  Thank you.  I am such an amateur

Maybe you are looking for

  • I'm trying to invoke EXCEL or POWERPOINT file into the browser IE 6.0.  The

    I'm running TOMCAT locally on my PC (running Windows NT). I'm trying to invoke EXCEL or POWERPOINT file into the browser IE 6.0. The output is coming out all scrambled (almost like ASCII code or something), where it seems like the applications are no

  • Can I use forms and reports 6I runtime for production environment?

    I have a doubt. I know if i use or install developer (forms and reports 6I) both, runtime and builder, I do require a license. But If I buy the standard edition license for database (in production or deployment), and I wanna use the runtimes (from fo

  • TO_DATE Function

    Hi, one DBA created web_type column as varchar2(35) instead of date datatype from dev to production. Now users have inserted data in to those columns where web_update is varchar2(35) datatype. The below code worked if the date date is inserted in var

  • Log4j and multiple loggers/appenders

    Hello, I have a class that is instantiated multiple times. Each instance needs to write to a separate file which has to be rolled daily. The example below instantiates SubClass twice; both log files are created successfully -2007-05-09_sc1.log and 20

  • Chinese Language Transaltion in WAD3.5

    Hi All, We have an requirement to view the BI reports in simplified chinese logon langauge 'ZH'. we can translate the BI objects using BI translation tool. how to translate the texts in WAD 3.5. we have designed our reports using WAD 3.5 and HTML scr