Parameter WDA - Workflow

Hi All.
I seen couples thread in this forum talking about WDA and WF. Especially related with SWFVISU transaction where WF can sent work item id to WDA.
Is there any way for us to send some data back to caller (workflow task) thru one of WDA parameter ?
The example scenario is, user launch WDA view where contains Approve and Reject button. I'd like to pass the value from this button to workflow task.
Thanks

you can alwasy write the container of your task
use FM SAP_WAPI_WRITE_CONTAINER
Abhi

Similar Messages

  • WDA - Workflow Integration Problem...

    Hi pple,
    Is there any standard SAP ABAP Web Dynpro Application which is integrated with Workflows?
    I mean, is there any Standard Workflow that calls ABAP Web Dynpro Application?
    Actually, I am able to call the ABAP WD Application using SWFVISU application, but the only problem is...HOW CAN I SEND DATA FROM WORKFLOW CONTAINER TO WD ABAP ?
    Did anyone get to work in this area? If so, can you help me in giving me an idea of how to do this.
    I am trying to get the Workitem number from UWL inside my WD Application, but I am unsuccessful...Did any one tried doing this...???
    I achieved the same in JAVA WD Applications using
    <b>Str_WI_ID = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("WI_ID").</b>
    This WDProtocolAdapter extracts the WI number from UWL inside my JAVA WD Application.
    Is there any such class in ABAP also which does the same?
    Regards,
    <i><b>Raja Sekhar</b></i>

    Hi Rajasekhar,
    The WDA program that you want to integrate with workflow has a window with input plug "DEFAULT". Add "WI_ID" as a parmeter to the handler method of the plug.
    You can now use that parameter directly in the handler method as the WID is passed as
    parameter from the UWL.
    Thanks,
    G.Jayaprakash

  • Mapping Output Parameter in Workflow

    Hello,
    I would like to know if it is possible to pass a parameter from a mapping to another in a workflow (or from a transformation to a mapping in a workflow).
    When I define output parameter in a mapping (or output parameter in a transformation), I'm not able to see it in the workflow window.
    The only way I found to get a parameter in a mapping included in a workflow is to define it as a parameter for the start activity, but this time it's not what I need to do.
    Thanks very much for your help
    Catherine

    At the moment there is no way of passing parameters between activities (mappings or similar) in a process flow. The workaround would be to write the parameter to a temporary location on the database (a parameter table or similar) from the preceding mapping and then read it from the same location in the next mapping. We are planning to introduce this feature in our next major release (mid 2004).
    Regards:
    Igor

  • Issue in workflow binding of Table in send mail step

    Hi All,
    I am working on a Travel Management workflow where mail needs to be sent to the manager along with the trip details.
    We are displaying data in tables (html format). Now i need to add another such table with details into this already existing workflow but i am facing issues in binding.
    Issue: For already existing tables, the binding is like this,
    Export to task,
    &TRIP& --> &T_SUMMARY##&
    Import to w/f,
    &T_SUMMARY##& <--- &T_SUMMARY##&.
    But when i am trying to add my table in binding as, &TRIP& --> &T_MILEAGE##&,
    I am getting a binding error, &T_MILEAGE##& is not available in the container.
    I checked the container both in workflow and in task, both contain multiple declarations of the variable &TRIP& which is of type the BO.
    Kindly help me how to proceed further.
    Regards,
    Jose

    Hi Anjan,
    The status of  note  1658491 is also cannot not be implemented.
    I checked the correction given in this note. All changes exists into system.
    Following is code of method SEND ( (CL_SWF_UTL_MAIL_FACADE)
    *- check if document has recipients at all
           lt_recipients = lo_send_request->recipients( ).
           if lt_recipients is initial.
             lo_send_request->delete( ).
             ls_t100msg-msgid = 'WZ'.
             ls_t100msg-msgty = 'E'.
             ls_t100msg-msgno = 619.
             raise exception type cx_swf_run_wim
               exporting
                 t100_msg = ls_t100msg.
           else.
    *-       Send document
             call method lo_send_request->send( ).
           endif.
    The exception is thrown, because lt_recipients table is blank.
    With same parameter the workflow is running successfully if 'Long mail title' is not set in SWPA.
    When is field is active, workflow returns message Document <> could not be sent
    The method "SELFITEM->SendTaskDescription" does not send mail if Long Mail Title" indicator is set .   
    Thanks & Regards,
    Mounj K

  • Urgent - How to pass value to Multiline container element in workflow

    Hi,
      I hav a requirement as below...
    1) In a Bus. Object, there is a method with a parameter which is Multiline.
    2) When I execute it directly from Bus. Object, I am able to populate any no. of lines to the multiline parameter & execute it. It is working correctly.
    3) Now I have created a task for the same Method & used it in my workflow.
    4) I want to pass multiline values to the parameter from workflow.
    5) I dont have any internal table being filled in the previous steps. I directly want to assign variables or constants to it.
    How can I do it????
    Thanks,
    Sivagami

    hi sivagami,
    Please help me. I am also facing same type of problem. i am new to workflow. i am using using FM sap_wapi_write_container. to write into the container. but here my problem is i don know wat is the element name to refer to the value. if i give any element naem its taking as separate element & not as the same multiline container. i hope u will be able to assist me since u have worked on the same type of problem.
    If u help i will be highly thankful to u.
    Thanks & Regards
    Nigesh

  • Passing Internal tables to Workflow

    Hello all,
    I learning workflow and have a small doubt related to passing internal table as parameter to workflow when it is triggered by a report program explicitely.
    I wrote a prog to upload data from flat file into internal table and by passing this ITAB to the workflow for futher processing. <b>Actually i succeeded in this with only one field in my flat file (lfa1-lifnr).</b>
    <b>what if my flat file contains more than one field? (i.e., lifnr, name1, city, county) how should i declare the parameters for my EVENT (triggering event) and same with my container declaration?</b>
    Any inputs in this regards are welcome.
    Thank you in advance,
    Lakshmi Narayana

    Hi Lakshmi,
    Create Workflow container
      swc_container        lt_container.
      swc_create_container lt_container.
    Fill internal table with data
    The container type and the internal table type should be same, U can use a structure to define both.
    Declare a structure with all the fields.
    Define a conatiner of same type of structure in worklow and set it in <b>wait for event</b> setp.
    swc_set_table lt_container '<container_name>' lit_int_data.
    CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype           = lc_objtyp
          objkey            = lv_objkey
          event             = lc_event
        IMPORTING
          event_id          = lv_eventid
        TABLES
          event_container   = lt_container
        EXCEPTIONS
          objtype_not_found = 1
          OTHERS            = 2.
    Rgds,
    Prakash
    Message was edited by: Prakashsingh Mehra

  • Get a value from the method to class in workflow

    Hi Expert,
         I am doing a workflow and passing a value when submiting  and i need to get the passing value in the Class for further info,
    ****Instantiate an empty event container
      CALL METHOD cl_swf_evt_event=>get_event_container
        EXPORTING
          im_objcateg  = cl_swf_evt_event=>mc_objcateg_cl
          im_objtype   = iv_objtype
          im_event     = iv_event
        RECEIVING
          re_reference = lr_event_parameters.
    *****Set up the name/value pair to be added to the container
      lv_param_name = 'LEVEL'.
      lv_level = wd_this->adlvl.
    ****Add the name/value pair to the event conainer
      TRY.
          CALL METHOD lr_event_parameters->set
            EXPORTING
              name  = lv_param_name
              value = lv_level.
    CALL METHOD cl_swf_evt_event=>raise
            EXPORTING
              im_objcateg        = ls_sibflpord-catid
              im_objtype         = ls_sibflpord-typeid
              im_event           = iv_event
              im_objkey          = ls_sibflpord-instid
              im_event_container = lr_event_parameters.
    I Created a Customised Class zcl_asset and  i need to get the iv_event or  lv_level  value which i passing in the above method to process further to determine the approver in my customised  zcl_asset class.
    Thanks,
    Regards,
    Deeesanth

    >I am doing a workflow and passing a value when submiting and i need to get the passing value in the Class for further info,
    Look, this is not really possible. You cannot pass a value with your code to a class (whatever you mean by this?). With your method you are triggering an event with a parameter. It is possible to "catch" this event and its parameter from workflow. Then your parameter value will be in your workflow and you can use it later (with your class).
    So for example, if you start a workflow with your code, you can create a container element into the workflow, and then with simple binding (in workflow editor) you can get your parameter value into the container element.
    Regards,
    Karri

  • Workflow Binding Problem

    Hi All,
         I have to customize standard Leave Application workflow WS12300111. for that  i have copied  this workflow into  new Z-workflow. Actually i have to fetch some data from custom infotype before  sending this  leave to approver.
        Now this WS12300111 is  based on Class(CL_PT_REQ_WF_ATTRIBS) not on BO and  to fetch custom Infotype data I have created custom BO and written method inside this BO.
      The problem i am facing is i need to export a parameter from workflow container to my BO's method container and data type of that element is of Table Type (PTREQ_ITEMS_WF_TAB_FLAT) and in method it is not allowing me to create elements  with reference to this Table type (there is no Option to create element using ABAP Dictionary type As it is in Workflow container). If i define my method element using Line type if this PTREQ_ITEMS_WF_TAB_FLAT then it allows  me to create that  element (B'coz line types  are basically structures) But it gives me Datatype mismatch error in Binding from Task to Method...
       So is there any way to achieve this?? or  should I create a Z-Class as  subtype of standard Class CL_PT_REQ_WF_ATTRIBS and then write a new Method in this subtype Z-class to read  custom infotype. Is this the way to achieve the delegation functionality of BO in Class.

    Hi michell ongota 
        What your are trying to achieve with custom infotype. As far as i concern you can use employeet business object to get all the details. customize this busniess object and write your logic here or you can customize the class which you have mentioned. There is nothing like delegation for class. But i dont know in which method u will write the code. Since the leave request going to apply from portal dont do any customization of this class. Try to use the business object EMPLOYEET. I have done leave request workflows i never done any thing in this class.
    Regards
    vijay

  • Ouput field is not getting displayed

    Hi All,
    I created an object type in BOB which gives me ernam field of MARA table on testing.
    I need to use that object type in the new workflow in which user inserts a material number and should get ernam (Created by) as an output field.
    I tied doing that but on testing , it shows task's status 'COMPLETED' but does not display the ERNAM.
    What else I need to do to make it displayed on the screen?
    Thanks in advance
    Shweta

    Hi Vidya,
    I used 'SAP_WAPI_CREATE_EVENT' to pass the values. Also , I created an event parameter 'MATERIAL' so that the value can be passed as the event gets triggered then I did the binding of event parameter and workflow container parameter of material.
    after that i run the following code in se80.
    DATA : MATERIAL like SWR_STRUCT-OBJECT_KEY,
           lv_matnr TYPE mara-matnr.
    DATA : wa_event like  SWR_STRUCT-EVENT,
           wa_obj LIKE swr_struct-object_typ.
    DATA : lv_user TYPE SWC_ELEM VALUE 'INITUSER',
           LV_MATERIAL TYPE SWC_ELEM VALUE 'MATERIAL'.
    DATA : T_MSG TYPE STANDARD TABLE OF SWR_MESSAG.
    DATA : flg(1) TYPE c.
    DATA : it_cont TYPE TABLE OF SWCONT,
           wa_cont like LINE OF it_cont.
    wa_event = 'ZCLICK_EVENT'.
    Wa_obj = 'ZDEMO_BOR1'.
       MATERIAL = lv_matnr.
       wa_cont-element = lv_user.
       wa_cont-value = sy-uname.
       append wa_cont to it_cont.
       CLEAR : wa_cont.
       wa_cont-element = LV_MATERIAL.
       wa_cont-value = LV_MATNR.
       append wa_cont to it_cont.
       CLEAR : wa_cont.
    CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
       EXPORTING
         object_type             = wa_obj
         object_key              = MATERIAL    "Key field in BOR
         event                   = WA_EVENT
    *   COMMIT_WORK             = 'X'
    *   EVENT_LANGUAGE          = SY-LANGU
    *   LANGUAGE                = SY-LANGU
        USER                    = SY-UNAME
    *   IFS_XML_CONTAINER       =
    * IMPORTING
    *   RETURN_CODE             =
    *   EVENT_ID                =
      TABLES
        INPUT_CONTAINER         = it_cont[]
        MESSAGE_LINES           = T_MSG[].
    *   MESSAGE_STRUCT          =
       READ TABLE T_MSG WITH KEY MSG_TYPE = 'E' TRANSPORTING NO FIELDS.
           IF SY-SUBRC = 0.
             Flg = 'N'.
             MESSAGE E208(00) WITH 'Error initiating Workflow.'.
            ELSEIF SY-SUBRC <> 0.
             MESSAGE 'Workflow initiated.' Type 'S'.
    After this code , I get a message 'Worlflow initiated' but I can not see the value being transferred to the workflow respective container

  • ESYU: Blanket PO approve시 ASL과 Sourcing Rules이 생성되기 위해 요구되는 steps

    Purpose
    Oracle Purchasing - Version: 11.5.8 to 11.5.10
    Blanket Purchase Order approval 동안 ASL과 Sourcing Rules이 생성되게 하기 위해
    요구되는 steps에는 무엇이 있는지 알아본다.
    Solution
    Profile Options:
    - PO: Allow Auto-generate Sourcing Rules => CREATE AND UPDATE
    - PO: Allow Autocreation of Oracle Sourcing Documents => Yes
    - MRP: Default Assignment Set => Define with desired Assignment Set (eg. Supplier Scheduling)
    Note:
    - 위 Profiles은 User, Responsibility, Application 그리고 Site level로 setting 할 수 있다.
    - Profile option을 setting 하거나 변경 후, application을 re-log 해야 한다.
    Workflow Builder를 통해 PO Approval Workflow를 setup:
    Attributes
    - Create Sourcing Rule Flag: "Y"
    - Update Sourcing Rule Flag: "Y"
    - PO SR Rule Name Prefix: "PURCH" - Default Value
    - PO Assignment Type ID for SR: "3 - Item level "
    - PO Sourcing Organization ID: ASL이 생성되어야 하는 Inventory Org를 set
    Example 1 : 새로운 Socing Rule이 생성
    a. 아래 setting을 가진 Blanket을 생성:
    - "Enable Automatic Sourcing"
    - "Update Existing Sourcing Rule and Assignment"
    - Item: AS12345
    - Supplier: Advanced Network Devices
    - Site: SANTA CLARA
    b. Deferred Parameter "Yes", Workflow Background engine을 실행
    c. Supply Base> Approved Supplier List로 이동
    d. Item AS12345를 조회
    e. 생성된 ASL을 확인
    f. Soucing Rule 화면으로 이동
    - Sourcing Rule을 조회: PUR%
    - Soucing Rule 'PURCH_ABCD' 이 생성된 것을 확인
    - Supplier: Advanced Network Devices
    - Allocation = 100% , Rank =1
    g. Soucing Rule 생성을 확인
    h. Assignment Set 화면으로 이동
    i. 조회:
    - Assignment Set: Supplier Shceduling
    - Type: Item
    - Item: AS12345
    - Soucing Rule: PURCH_ABCD
    j. Assignment Set 생성을 확인
    Example 2 : 기존의 Soucing Rule / ASL을 update
    a. 아래 setting을 가진 Blanket을 생성:
    - "Enable Automatic Sourcing"
    - "Update Existing Sourcing Rule and Assignment"
    - Item: AS12345
    - Supplier: Advanced Network Devices
    - Site: SANTA CLARA
    b. Deferred Parameter "Yes", Workflow Background engine을 실행
    c. Supply Base> Approved Supplier List로 이동
    - Item 'AS1345'를 조회
    - Supplier Block으로 이동:
    - Supplier: Advantage Corp
    - Site: ADVANTAGE - US
    d. ASL이 존재하고 있음을 확인
    e. Soucing Rule 화면으로 이동
    - Soucing Rule을 조회: PUR%
    - Soucing Rule 'PURCH_ABCD' 이 생성된 것을 확인
    - Supplier: Advanced Network Devices
    - Site: SANTA CLARA
    - Allocation = 100% , Rank =1
    f. 기존의 Soucing rule PURCH_ABCD가 update 된 것을 확인
    g. Assignment Set 화면으로 이동, 조회
    - Assignment Set: Supplier Shceduling
    - Type: Item
    - Item: AS12345
    - Soucing Rule: PURCH_ABCD
    j. Assignment Set은 변경됨이 없음을 확인, 왜냐하면 soucing rule이 동일하기 때문
    Reference
    Note 273983.1

  • How to send a ALV graphic through SBWP

    Hi,
    I am new to SAP and newly started SAP PP. We are sending a Z report through SBWP to senior team of the organization. But now new requirement generated to send the ALV graphic instead of detail report.
    Is it possible to send through standard?.
    If possible, can you please explains the steps.
    Thanks;
    Malka

    Hi Siraj
    I do not have a ready sample with me; however, here can be a logical sequencing of steps which you can follow to achieve this:
    1) Define a custom PF STATUS in the ALV with the SEND Button
    2) In the User Command routine for ALV, code for SEND
    3) See how standard ALV - EXPORT to EXCEL Works - Debug and find the steps to generate an EXCEL - in the SEND Functionality
    4) Once Excel is downloaded, create a SOFM document for the same - Check the method CREATE of object SOFM on the coding required to do it
    5) Generate the SOFM Object Instance using the document created and calling FM SWO_INVOKE
    6) Now you have the run time instance of the report output as a document
    7) Define a custom Business object and a custom workflow based on that object
    8) Define a custom event with the event parameter of type SOFM
    9) From your SEND routine of the report -> trigger the event and pass the SOFM Instance of the excel as event parameter
    10) Workflow will have this object via binding from event to workflow container
    11) In the decision step to approver, bind this to _ATTACH_OBJECTS
    For each of these, you will find some  link already on SCN.
    Hope this helps.
    Once you have the solution, by the above steps or a better one, do remember to create a document on SCN in order to help others - this is a valid requirement and it would be good to have a ready reckoner :-)
    regards,
    Modak

  • How to send a ALV report as a workitem

    Hi All,
    How to send a ALV report to the SAP Inbox for approval.
    Requirement: When the reviewer executes the report and click on send button.
    It will go to the approver for report approval.
    How to send a report when reviewer click on the send button.
    I am unable to find a solution when the user click on the send button the report will go to the approver.
    Please help me out on this...
    Regards,
    Siraj,
    +918008322278.

    Hi Siraj
    I do not have a ready sample with me; however, here can be a logical sequencing of steps which you can follow to achieve this:
    1) Define a custom PF STATUS in the ALV with the SEND Button
    2) In the User Command routine for ALV, code for SEND
    3) See how standard ALV - EXPORT to EXCEL Works - Debug and find the steps to generate an EXCEL - in the SEND Functionality
    4) Once Excel is downloaded, create a SOFM document for the same - Check the method CREATE of object SOFM on the coding required to do it
    5) Generate the SOFM Object Instance using the document created and calling FM SWO_INVOKE
    6) Now you have the run time instance of the report output as a document
    7) Define a custom Business object and a custom workflow based on that object
    8) Define a custom event with the event parameter of type SOFM
    9) From your SEND routine of the report -> trigger the event and pass the SOFM Instance of the excel as event parameter
    10) Workflow will have this object via binding from event to workflow container
    11) In the decision step to approver, bind this to _ATTACH_OBJECTS
    For each of these, you will find some  link already on SCN.
    Hope this helps.
    Once you have the solution, by the above steps or a better one, do remember to create a document on SCN in order to help others - this is a valid requirement and it would be good to have a ready reckoner :-)
    regards,
    Modak

  • How to Get the created Request Activity Status using SCSM 2012 SDK

    Hi, i have created a ServiceRequest,
    so there are Activities related to Servicerequest.
    I am trying to know the Status of the each Activity (Completed,Failed etc)
    and the Change of Activity (like from ReviewActivity to RunBookActivity).
    how can we get the Activity status change programmatically.
    so that i could Display this Status to other Portal, 
    I am Creating a CustomActivity with ActivityID as Parameter to Workflow inheriting WorkflowActivityBase
    protected
    override
    ActivityExecutionStatus Execute(ActivityExecutionContext
    executionContext)
    Is this a Right Approach..???
    Plz respond as m not getting the way ..

    I'm not entirely clear on what you're trying to accomplish, but I can give you some guidance on getting the status of activities that are part of a service request.
    Quick overview before we get to the code: After we connect to the database we want to retrieve some management packs, a relationship, and a type projection. We then want to create some criteria for querying the Service Manager database. Then we execute the
    query and traverse the results, displaying the activity ID and it's status.
    //Connect to Service Manager
    EnterpriseManagementGroup emg = new EnterpriseManagementGroup("<your management server>");
    //Get some management packs
    ManagementPack mpSystem = emg.ManagementPacks.GetManagementPack(SystemManagementPack.System);
    ManagementPack mpSRLib = emg.ManagementPacks.GetManagementPack("ServiceManager.ServiceRequest.Library", mpSystem.KeyToken, new Version("7.5.1464.0"));
    ManagementPack mpWorkItemLibrary = emg.ManagementPacks.GetManagementPack("System.WorkItem.Library", mpSystem.KeyToken, new Version("7.5.1464.0"));
    ManagementPack mpActivityLib = emg.ManagementPacks.GetManagementPack("System.WorkItem.Activity.Library",mpSystem.KeyToken,new Version("7.5.1464.0"));
    //Get the relationship and type projection we'll be using for this query
    ManagementPackRelationship mprWIContainsActivity = mpActivityLib.GetRelationship("System.WorkItemContainsActivity");
    ManagementPackTypeProjection mptpWIActivities = mpSRLib.GetTypeProjection("System.WorkItem.ServiceRequestAndActivityViewProjection");
    //This is the work item (such as a service request) ID that we're looking for
    String WorkItemID = "SR123";
    //Setup the criteria. This will instruct service manager to "Get me the service request with ID SR123"
    String strWICriteria = String.Format(@"
    <Criteria xmlns=""http://Microsoft.EnterpriseManagement.Core.Criteria/"">
    <Reference Id=""System.WorkItem.Library"" PublicKeyToken=""{0}"" Version=""{1}"" Alias=""WILib"" />
    <Expression>
    <SimpleExpression>
    <ValueExpressionLeft>
    <Property>$Target/Property[Type='WILib!System.WorkItem']/Id$</Property>
    </ValueExpressionLeft>
    <Operator>Equal</Operator>
    <ValueExpressionRight>
    <Value>" + WorkItemID + @"</Value>
    </ValueExpressionRight>
    </SimpleExpression>
    </Expression>
    </Criteria>
    ", mpWorkItemLibrary.KeyToken, mpWorkItemLibrary.Version.ToString());
    //Build the projection criteria
    ObjectProjectionCriteria opcWI = new ObjectProjectionCriteria(strWICriteria, mptpWIActivities,emg);
    //Perform the query
    IObjectProjectionReader<EnterpriseManagementObject> oprWIs = emg.EntityObjects.GetObjectProjectionReader<EnterpriseManagementObject>(opcWI,ObjectQueryOptions.Default);
    //oprWIs contains all of the work items with ID "SR123" (and there will only be one work item with that ID)
    //We loop through all the work items in the oprWIs collection
    foreach (EnterpriseManagementObjectProjection emopWI in oprWIs)
    //Next we loop through all of the activities contained by our work item, using the WorkItemContainsActivity relationship
    //NOTE that these activities are in no particular order. You'll have to use the icpActivity.Object[null,"SequenceId"].Value to order them
    foreach (IComposableProjection icpActivity in emopWI[mprWIContainsActivity.Target])
    //Since activity status is an enumeration, we want to display it's displayname, not it's value (enumeration values are just GUIDs or other unique identifiers)
    ManagementPackEnumeration status = (ManagementPackEnumeration)icpActivity.Object[null, "Status"].Value;
    //For this little snippet, we're just outputting the activity ID and it's status
    Console.WriteLine(icpActivity.Object[null,"Id"].Value + " " + status.DisplayName);
    Regarding the rest of your post, I'm not sure what you meant when you said you wanted the "change of activity". Are you trying to display the time that an activity's status changed (stored in the activity's history records)?
    Second, if you're displaying this information on some other custom portal, what is the purpose for the workflow?
    A couple disclaimers: Use this code at your own risk, there are no guarantees, etc etc :) Second, I'm assuming you're on Service Manager 2012 RC at least (otherwise the "versions" in the code will need to be changed)
    Are you new to the SCSM SDK? If so, this code snippet might seem overwhelming. I recommend reading the Service Manager blog to get an idea about how classes, objects, relationships, type projections, etc all work.
    Here's a link to a post by Travis that uses the SDK..he also references a lot of the information necessary to best understand Service Manager's inner workings :)
    http://blogs.technet.com/b/servicemanager/archive/2010/10/04/using-the-sdk-to-create-and-edit-objects-and-relationships-using-type-projections.aspx

  • Webdynpro abap application attached to SWFVISU is tested from se80

    hi,
    when webdynpro ABAP application is attached to workitem in SWFVISU the the workitem id is passed via url when calling the application. (though the url seen in the application in se80 in the webdynrpo abap component does not have workitem id paramter)
    [link1|http://forums.sdn.sap.com/thread.jspa?threadID=1209159]
    [link2|http://forums.sdn.sap.com/thread.jspa?threadID=226957]
    [link3|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20dda6?QuickLink=index&overridelayout=true]
    I am running this application from se80 - application - right click - test. (this is required to troubleshoot one of the issues.)
    at this time it does not ask for workitem id and directly runs the application . It picks the same workitem id everytime. I tried doing this with a couple of different user ids. but I cant figure out from where it picks this particular workitem id. the status of this workitem is complete in the system.
    thanks
    bhakti

    Hi-
    (though the url seen in the application in se80 in the webdynrpo abap component does not have workitem id paramter)
    It is required to have a parameter WI_ID (as an Application parameter) in your WDA. And via this Application parameter WDA will receive the workitem id, when the task is exceuted from UWL (provided configuration is done in swfvisu)
    Could you confirm, there is no Application parameter (WI_ID) in your WDA?
    It picks the same workitem id everytime. I tried doing this with a couple of different user ids. but I cant figure out from where it picks this particular workitem id
    If you defined WI_ID in Application parameter and there is an option to provide value and it seems, you have defined some value over there or other way might be in your method (inbound plug), you may gave default value to WI_ID in the parameter
    If your application is working properly from UWL and for testing purpose, you could put a breakpoint and change the workitem id, when executing from se80
    Vinoth

  • SAP Webdynpro ABAP Application Caching Issues

    Hi All,
    We have developed custom applications using Webdynpro - ABAP, using FPM and accessing those applications through SAP Netweaver Portal 7.0. I have deactivated all the caching techniquies in Portal @ iview level and Page level, Portal Runtime and ContentFetch side, But still causing the same problem.
    I have a doubt, wether this is happening because of SAP Logon Caching @ SAP WAS system level. I have checked the SSO parameter settings in RZ10 Profile parameters. Our basis people have set both accept and create parameter value = 1. Is this causing issue?
    Or Is there any other settings which is required to do in Portal or SAP system level. Please let us know , really appreciate your value suggestions and help.
    Please find the below links, which im referring to...
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/d2/91553b4d53273de10000000a114084/frameset.htm
    http://help.sap.com/SAPHELP_NWPI71/helpdata/EN/48/69eb40e8a607d6e10000000a42189c/content.htm
    Thanks in Advance
    PRadeep

    Hi-
    (though the url seen in the application in se80 in the webdynrpo abap component does not have workitem id paramter)
    It is required to have a parameter WI_ID (as an Application parameter) in your WDA. And via this Application parameter WDA will receive the workitem id, when the task is exceuted from UWL (provided configuration is done in swfvisu)
    Could you confirm, there is no Application parameter (WI_ID) in your WDA?
    It picks the same workitem id everytime. I tried doing this with a couple of different user ids. but I cant figure out from where it picks this particular workitem id
    If you defined WI_ID in Application parameter and there is an option to provide value and it seems, you have defined some value over there or other way might be in your method (inbound plug), you may gave default value to WI_ID in the parameter
    If your application is working properly from UWL and for testing purpose, you could put a breakpoint and change the workitem id, when executing from se80
    Vinoth

Maybe you are looking for