Issue in webdynpro application while calling from UWL

Hi All,
I am working on APPRAISAL workflow in HCM module.
In new version of SAP has provided ABAP web dynpro application HAP_MAIN_DOCUMENT (component HAP_MAIN_DOCUMENT)
but it is not integrated with workflow. Earlier insted of this application there was a BSP application and this was integrated with workflow.
Now to integrate ABAP webdynpro application with workflow I have created new web dynpro application and calling HAP_MAIN DOCUMENT application and when I test through SE80 transaction then I am just passing Work Item ID and it is opening HAP_MAIN DOCUMENT application. I have done it as follows.
In swfvisu I am passing Work Item ID and In application I am getting business object details using this I am createing a URL and then using exit plug I am calling HAP_MAIN_DOCUMENT application
*METHOD exit1 .*
* DATA lo_nd_new_url TYPE REF TO if_wd_context_node.
  **DATA lo_el_new_url TYPE REF TO if_wd_context_element.**
  **DATA ls_new_url TYPE wd_this->element_new_url.**
  **DATA lv_url TYPE wd_this->element_new_url-url.**
  **DATA: l_cmp_api TYPE REF TO if_wd_component,**
        **result TYPE REF TO if_wd_window,**
        **l_window1 TYPE REF TO if_wd_window_manager.**
***     navigate from <CONTEXT> to <NEW_URL> via lead selection**
  **lo_nd_new_url = wd_context->get_child_node( name = wd_this->wdctx_new_url ).**
***     @TODO handle non existant child**
***     IF lo_nd_new_url IS INITIAL.**
***     ENDIF.**
***     get element via lead selection**
  **lo_el_new_url = lo_nd_new_url->get_element( ).**
***     @TODO handle not set lead selection**
  **IF lo_el_new_url IS INITIAL.**
  **ENDIF.**
***     get single attribute**
  **lo_el_new_url->get_attribute(**
    **EXPORTING**
      **name =  `URL`**
    **IMPORTING**
      **value = lv_url ).**
  **wd_this->fire_exit_plg( url = lv_url ). "abap_true**
***  l_cmp_api = wd_this->wd_get_api( ).**
***  l_window1 = l_cmp_api->get_window_manager( ).**
***  result = l_window1->create_external_window(**
***url = lv_url ).**
***  result->open( ).**
**ENDMETHOD.**
In SE80 it is opening application perfectly in same session of new Z webdynpro application.
But when I click on UWL workitem it is not opening.
In dubugging I checked that workitem ID is passed correctly also URL is created correctly for HAP_MAINDOCUMENT but it is not opening.
Please let me know is there any setting in UWL config.
Edited by: Akshay Kale on Nov 17, 2009 11:51 AM
Edited by: Akshay Kale on Nov 23, 2009 10:07 AM

Hi akshay,
   Check the following links ,
Workitems, UWL and Web Dynpro for ABAP
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20dda6
another that talks about swfvisu
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a002d1eb-33f0-2b10-f391-e1e0c3057c17&overridelayout=true
hope this helps.
Thanks,
Sahiba

Similar Messages

  • Color changed when webdynpro application is called from Portal

    Hi,
    I have developed an Webdynpro application, but the orginal color has been changed if I call it from portal.
    Does someone have an idea how to deal with it?
    best regards

    Hi,
             The attribute name in iView configuration is 'Supply Portal Stylesheet'. It should be marked as 'No' to not to use the Portal Style Sheet.
    Ranganathan.

  • 'BAPI_QUOTATION_CREATEFROMDATA2'  behaves different while called from SE38

    Dear Friends
    I am trying to run the bapi 'BAPI_QUOTATION_CREATEFROMDATA2' and 'BAPI_TRANSACTION_COMMIT' in proper sequence as recommended by SAP.
    I am entering the minimum data recommended by SAP help on this BAPI.
    When I run the above senario manually from transaction SE37 and selecting
    from the menu  Function Module -> Test -> Test Sequence,
    everything works fine and this also creates a quote and when I check, it
    is adding lots of extra related data.
    However, when I call the same two functions from another program (SE38),
    even though I am entering the same Data, I get different behaviour and
    also the quote is not getting created. When I check the ls_return value,
    it says that 'sold-to-party' is missing.  I don't know why this problem
    doesn't arise when I run the BAPI manually from SE37.
    I would appreciate if you can please give me any feedback or some expert comments.
    Please see the SE38 program that I am using to test these two BAPIs.
    ==========================================================
    *& Report  ZQUOTECREATE_TEST
    report  zquotecreate_test.
    data: ls_quotation_header_in        type  bapisdhd1,
          ls_behave_when_error          type  bapiflag-bapiflag,
          ls_quotation_partners         like  bapiparnr occurs 1 with header line,
          ls_return                     like  bapiret2  occurs 1 with header line.
    ls_quotation_header_in-distr_chan = '12'.
    ls_quotation_header_in-division = '00'.
    ls_quotation_header_in-sales_org = '1000'.
    ls_quotation_header_in-doc_type = 'AG'.
    ls_behave_when_error              = 'P'.
    ls_quotation_partners-partn_role = 'SP'.
    ls_quotation_partners-partn_numb = '1012'.
    call function 'BAPI_QUOTATION_CREATEFROMDATA2'
      exporting
        quotation_header_in            = ls_quotation_header_in
        BEHAVE_WHEN_ERROR              = ls_BEHAVE_WHEN_ERROR
    importing
      salesdocument                  =  ls_salesdocument
      tables
        return                         = ls_return
        quotation_partners             = ls_quotation_partners
    call function 'BAPI_TRANSACTION_COMMIT'
    exporting
       wait          = ' '
    IMPORTING
      RETURN        =

    Dear friends
    I figured out the conversion problem involving 'QT' and 'AG'.
    There is this flag 'CONVERT' which doesn't affect while running manually but while calling from SE38, I have to turn it on by putting a value 'X" and so the AG-QT issue is resolved
    So if you can please respond to the other problem with error 'Please enter sold-to-party or ship-to-party', I would appreciate.
    Again with the same test data, the above error message doesn't show up while running the BAPI manually from SE37 and QUOTE gets created successfully. However, when the same BAPI is called from SE38 program I get the above error message and QUOTE doesnt get created.

  • Blackberry issues with WebDynpro application

    We are testing a webdynpro application via a blackberry. The webdynpro application works fine from IE.  With the blackberry, we see the following:
    - User logs into the application. After user's first access attempt, they no longer have to log in. We even turn off the Blackberry and restart. The same issue occurs.
    - User executes a line item transaction in the Blackberry. This item executes fine.  However, we get a communication error on the next lineitem.
    Is there Blackberry Browser and/or Blackberry server settings that need to be applied to allow the sessions and WebDynpro communication to work properly?

    Hi Stephen,
    I'm working on creating Blackberry application for online Purchase requisition Approval process, using PR workflow.
    Workflow configurations have been done in ECC.
    can u guide me how to get "Approve/ Reject" option on the BB device?

  • Authentication Issues while calling from OSB to REST

    I am routing from a proxy Service in OSB to a REST ful Web Services.I need to apply security settings while calling REST ful services so i created groups which has users who can only call the Web Services.I did all the security settings in the weblogic Server console.
    The authentication works fine but the problem is that when i doesnot give any username or password it should give me a "Authentication required" error.But instead it calls the web services .I need not want that to happen.
    Anyone pls help me in this issue

    My proxy service uses a http protocol and gets the query string and routes it to the business service which is a REST ful based web services.My need is to apply security settings betwwen business service and service component(REST ful based web services).
    I created the security settings in weblogic server console using the following steps
    1.I created an user in the user and groups option in the security realm tab with Default Authenticator as provider selected
    2.I created a Stand-Alone Web Application Scoped Role in the application scope in the security tab with XACML RoleMapper as the provider selected in the war(REST ful web services) file deployed in the console.
    3.I added the user created in the security realm tab in this Stand-Alone Web Application Scoped Role created.
    I then tested the business service(which connects to the REST ful web service component) with username and password in the transport option in testing console as the one created in the server console.
    The business service gives the response only when the username and password matches to the one created or when username/password is weblogic/welcome1(this is the username and password given while creating the OSB domain).
    It should throw me an Authentication failed error when the username is wrong and that works except for the condition that the username and password is empty.
    How to make the service to throw an error when the username and password is empty like the same as when the username is mismatched.
    Help me out in this issue.

  • Webdynpro application not functioning from Apache Reverse Proxy

    Hi Experts,
    We are currently working on custom webdynpro application, which needs to be exposed to Internet. We are using Apache HTTP Server as a reverse proxy.
    We canable to access URL, but no images are getting displayed and also the application not functioning when we click any button/links.
    Below is the HTTPD file configuration.
    ProxyPass /esampleApp  http://hostname:port/webdynpro/dispatcher/local/esampUI/ESamplingApp
    ProxyPassReverse /esampleApp  http://hostname:port/webdynpro/dispatcher/local/esampUI/ESamplingApp
    When we look into  image URL, which is being called from Apache, we  found out "webdynpro" is missing in the URL.
    Actual URL in Portal Server: (working)
    http://portalhostname:port/webdynpro/resources/local/esampUI/Components/esampling.ui.ESamplingComp/logo.gif
    Apache URL:
    http://Apachehostname:port/resources/local/esampUI/Components/esampling.ui.ESamplingComp/logo.gif
    Please suggest.
    Thanks
    Aravind

    We also had the same issue, but the problem was that instead of http https was getting called.
    This has to do with 2 settings:
    1. Check the reverse proxy re-write URL's again. Note that there will be 2-3 entries one for webdynpro as well.
    2. Open your system definintion in system admin-sys configuration adn check the WAS settings. this should point to the FQDN of the proxy server and not to the R3 server.
    ankur

  • Closing a webdynpro application, should call a portal page

    Hi All,
    I have a requirement in which, after a webdynpro application is closed in portal, the portal should show the workset content from which the webdynpro application is triggered.
    For example,
    Wedynpro application Created is  ZWDA1.
    Two iviews are created in portal which refers to the webdynpro application ZWDA1, the portal Iview names are ZPORTAL_IVIEW1, ZPORTAL_IVIEW2.
    Two worksets ZWORKSET1 & ZWORKSET2 are created in portal which refers to Iview ZPORTAL_IVEW1 and ZPORTAL_IVEW2 respectively.
    Two roles ZROLE1 & ZROLES2 are created in portal which refers to workset ZWORKSET1 & ZWORKSET2 resepectively. These two roles are assigned to users ZUSER1 and ZUSER2, when these user logs into portal they will see the content of the  workset ZWORKSET1 & ZWORKSET2 respectively.
    Assuming ZUSER1 and ZUSER2 invokes the portal ivew ZPORTAL_IVEW1 & ZPORTAL_IVEW2, the underlying webdynpro application called is same. So in the webdynpro application only I need to write the code to close the application and call the workset ZWORKSET1 for ZUSER1 and workset ZWORKSET2 FOR ZUSER2. This differentiation I am not able to indentify in webdynpro application, I thought of using relative navigation.
    Any suggestion to achieve this functionality is greatly appreciatable
    Regards,
    H.K.Hayath Basha.

    Just closing the message

  • BAdI HRCATS_APPR_CUST - How to differentiate whether it is called from UWL?

    Hi,
    We are using the standard WebDynpro for Time Approval msscatTimeApproval.
    Implemented the BAdI HRCATS_APPR_CUST for filtering the number of records.
    Since this BAdI is called when using both UWL (Universal Worklist) and Time Approval, we have major issues.
    I want this BAdI to work only under the Time Approval and should NOT work when called within UWL.
    None of the SYST parameters were set during debugging. So wondering what other possible runtime parameters available in Portal when calling the BAdI in different areas.
    Thanks in advance for your input.
    Siva

    Which is method is used to do the validation ? Depending on the method, you may have to access the attributes of Local Class to identify the state of document (New / Existing). 
    Refer to this wiki post [Purchase Req. Line item Data manipulation using BADI - ME_PROCESS_REQ_CUST |http://wiki.sdn.sap.com/wiki/display/ABAP/PurchaseReq.LineitemDatamanipulationusingBADI-+ME_PROCESS_REQ_CUST] ( This is related to purchase requisition, still give an idea about using attributes in local classes inside badi method)

  • DATAGRID FOCUS ISSUE: Focus got lost, while moving from one cell to another cell using tab key.

    Problem: Focus got lost, while moving from one cell to another cell using tab key.
    Example: In an AdvanceDataGrid, there are three columns having custom ItemRenderer with Spark TextInput control (editable=true & focusEnabled=true).
    When I try to move the focus in with in 2nd, 3rd & 4th column using tab key, focus got lost. Most of the time it’s working, but some time it doesn’t work. There’s no clue as to how may rows/columns the focus has jumped to; or whether the focus has gone out of the data grid altogether.
    Observations: I am not sure whether this problem is because of custom component implementation or it is because of some issue related to Flex Component.
    It only occurs when we perform some actions like some server call, some complex logic execution etc. at the focus out event of itemrenderer.
    There is one property of datagrid i.e. editedItemPosition which contains row & column index of datagrid. On the focus out event, it gets null when focus got lost. We tried to set it, but it didn’t work.
    Steps Performed:-
    1. Currently focus is in 2nd column i.e. Apply to #.
    2. Once I press tab key from 2nd column, it goes to 3rd column which is correct.
    3. Now if I press tab key from 2nd column i.e. Payment #, focus should go to 3rd column, but it goes out of data grid and set the focus of button which is outside data grid.

    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Bjtable+%2Btab+%2B%22enter+key%22&col=javaforums

  • Clarification on application method calls from backing bean.

    Hi Experts ,
    In our application we are using two different ways to call application module methods from backing bean.
    allication module method name : addRowValidUnitInfo
    it has 2 parameters serialNumber,modelNumber
    1.
    BindingContainer bindings1 =
    BindingContext.getCurrent().getCurrentBindingsEntry();
    OperationBinding serialModelDetails =
    bindings1.getOperationBinding("addRowValidUnitInfo");
    serialModelDetails.getParamsMap().put("serialNumber",
    serialNumber.getValue().toString());
    serialModelDetails.getParamsMap().put("modelNumber",
    modelNumber.getValue().toString());
    serialModelDetails.execute();
    String result =serialModelDetails.getResult().toString();
    2.
    EWarrantyAdminModule appModule =(EWarrantyAdminModule)
    Configuration.createRootApplicationModule(amDef,config);
    try {
    String result = appModule.addRowValidUnitInfo(serialNumber.getValue().toString(), modelNumber.getValue().toString());
    } catch (Exception e) {
    finally {
    Configuration.releaseRootApplicationModule(appModule,true);
    Can any one tell me which one gives best performance and which one should be used in which situations.
    For me both are working fine but just want to know whcih is the best practice and which gives best performance.
    Regards
    Gayaz

    The approach 1 is the right way.
    Reasons:
    1) With Approach 2 - you are creating new ApplicationModule on the fly and release it at the end of the request. If you are invoking multiple method calls, you need to the same for each & every call.
    This is not reusing the existing application module.
    2) If the use cases which does calls for maintaining state across requests from the same client - across the application flow, Approach 2 cannot be used.
    Read this blog post from Jobinesh (which indirectly distinguishes both these approaches).
    http://jobinesh.blogspot.com/2010/04/invoking-applicationmodule-from-servlet.html
    Thanks,
    Navaneeth

  • Giving report format option to user while calling from Menu?

    Dear Gurus....How can we give our user the choice to choose the report format while it is being called from a drop-down menu (mmb file)? Plzzz be careful that giving the Desformat parameter on report parameter form is not a good option here. I'm looking someway to pass this optional parameter from the calling form or menu.

    Dear Magoo...I meant that I've a program unit (procedure) which takes all the required information to run a report (including report file name, parameters if necessary, destination, server name etc and report desformat). Initially I was giving the user a Poplist on entry forms to choose the report desformat and then passed it to the procedure to call a report. Now I've attached the reports on menu (mmb file) and attached that procedure to menu calling the report. but when I'm placing the poplist on the form to which menu is attached, then procedure gives the error of bad bind variable/expression due to that poplist. Is there anything wrong from my side? Got my words magoo?

  • RTL Issue based on Application Language Derived From - Item Preference

    Hi All,
    Application Express 4.0.1.00.03
    I am trying to create a Multi-Lingual Application.
    1. Created an Application Item "FSP_LANGUAGE_PREFERENCE".
    2. Application Globalization Property : Application Language Derived From - Item Preference
    3. On the login page I have a Select List P101_LNG to choose Language.
    STATIC2:English;en-us,Arabic;ar-kw4. On Login Page created computation for
    Item Name : FSP_LANGUAGE_PREFERENCE
    Type : Item Value
    Computation Point : After Submit
    Computation : P101_LNG
    5. I have done all the Translation steps like Creating Mapping with Language Code ar-kw, Seed translatable text to translation repository, downloaded translatable XLIFF file, updated the target for the file and then uploaded and published.
    Now when I run the forms the pages does not appear Right to Left on Selection of Arabic Language on the Login form.
    Note: On using Application Language Derived From - Browser (use browser language preference) it works fine.
    Am I missing something? Have I done something wrong?
    Please help.
    Thanks & Regards
    Arif Khadas

    Now there is different problem though.
    Once I click on Logout I get the following error:
    Error ERR-1016 Application "1000" Page "101" not found (requested language="en-us")
    Page 101 is the Login Page and it exists, even then why such an error.
    Thanks & Regards
    Arif Khadas

  • Not getting values for HR_READ_SUBTYPE while calling from Webdynpro appl

    Hello,
    When we pass infotype,begda,endda and other required parameters and run this FM in standalone we are
    getting values however when same FM is called through Webdynpro ABAP application it is not returning values.
    I tried debugging and i found out that some buffer issue is there.
    But still my problem is not sloved.
    can anyone tell me what can be the reason?
    Regards,
    Mayank

    Hi Mayank,
    Can you tell me how much entries you are getting in return when you run FM standalone.
    there may be possiblility of huge amount of data returnning.
    If u can give more details that will be great!!
    Thanks

  • Issue with data Validation while migrating from one application to another

    Hi All,
    I am having a strange issue Kindly please help me .
    I have a data form which have data validation on each cell.The dataform is quite large and contain data for 4 accounts and year (Jan to Dec) combination .The issue is that I when I migrate this data form to other application which is just the replica of the main application. The validation on each cells changes its reference points.
    I have 5 more similar data form and I need to migrate then to other application and also on production sever. Is there any way that while exporting and importing them using formutil.cmd or other way that the validation cells reference does not change its reference point.
    For ex I have validation on Cell A5,A6..........AA6 after migrating it changes to A1,A1.........AA1.
    I am using 11.1.2.1.0 version of Hyperion Planning
    Kindly please help.
    Thanks in advance
    Vikash
    Edited by: user11391767 on Nov 30, 2011 10:47 AM

    Hi Mehmet,
    I tried using the FormDefUtil.cmd .But by using this the reference points of validation changes to first cell when imported.
    Thanks
    Vikash

  • Webdynpro call from UWL not sucessful

    Hi,
    I have problems calling a webdynpro. I want to call a webdynpro configuration not an web dynpro application, but how?
    When i enter web dynpro configuration in swfvisu i get following error
      The following error text was processed in the system HT8 : WebDynpro Exception: Application ZDEMO_AC Does Not Exist
    The error occurred on the application server 698i and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
          Method: RAISE of program CX_WD_GENERAL=================CP
          Method: IF_WDR_RUNTIME~GET_RR_APPLICATION of program CL_WDR_MAIN_TASK==============CP
          Method: CREATE_APPLICATION of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
          Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
          Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
          Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
          Module: %_HTTP_START of program SAPMHTTP

    i have solved the problem. for calling configuration you have to add a DYNPARAM in swfvisu.
    the entry is sap-wd-configId=wd_ac ( = name of configuration).

Maybe you are looking for

  • Error during EA16manual billing ' AH632 - Tax code could not be determined'

    Hi, During manual billing t code EA16, we are getting following error. 'Tax code could not be determined' Actually there is no tax code given in configuration for the subtransaction which I am using for manual billing. Whether anyone has any clue? Re

  • Mystery HDD usage

    hello all, I haev an old Powermac G4/533 that i use as a file server, and it also does some light local stuff ( runs scanner etc.) Has 10.3.latest on it. Two internal HDDs - 40 GB main; 80 GB backup.  Plus an external FW 2 TB that is used as a NFS. H

  • Always first item from the punchout catalog will get missed in SRM cart

    Hi All, Recently we have configured the vendor punch-out catalog in our SRM system. We are able to get in to their catalog and able to select the items. However we have observed the following. 1) When we select 3 items from the list we get only 2 ite

  • Unable to add SAP system to SLD

    Hi all, I am trying to add a new SAP WEB AS 640 system to my SLD. But the SLD only shows latest available Product version as 620. I downloaded the latest cimsap,CR_Content,CR_Delta zip files from the marketplace. On applying note 669669, import of ci

  • Regardiing Proejct Resource Management

    Hi, Can any one has any setup or overview document related to Project resource management? I have UG and IG but they are not much friendlier. Please help me out. Regards, Sarvottam.