Web dynpro using RFC

Hi,
     I am working on one web dynpro application where I am using function module : Bapi_Employee_Getdata .
     In this i need to get the user id from portal and need send that as input parameter to RFC, I did everything but when i see output i couldnt see anything I guess basically itz not pulling any data from back end, I am not sure where I am doin wrong ..?
        any ideas..?
     Thanks

Hi
     In my application I am passing portal userid as input parameter, do we have to pass the portal userid to fuction module or does it automatically send the userid to function module..?
      Here is Cust Controller Code:
        public void wdDoInit()
    //@@begin wdDoInit()
   try{
          IWDClientUser wdUser = WDClientUser.getCurrentUser();
        IUser user = wdUser.getSAPUser();     
         if (user != null)
           try{
                IUserAccount[] acct = user.getUserAccounts();
                if(acct[0] != null)
                         String strUserid = acct[0].getLogonUid();
                         System.out.print(strUserid);
                       Rhxss_Ser_Get_Employee_Data_Input input = new Rhxss_Ser_Get_Employee_Data_Input();
                       wdContext.nodeEmployee().bind(input);
                       Bapi_Employee_Getdata_Input Input = new Bapi_Employee_Getdata_Input();
                       wdContext.nodeEmployeeOrgData().bind(Input);
                       input.setUsername(strUserid);
                       Input.setUserid(strUserid);
                }catch (UMException ex)
                       ex.printStackTrace();
   }catch (WDUMException e)
    //@@end
public void executeRHXSS_SER_GET_EMPLOYEE_DATA( )
    //@@begin executeRHXSS_SER_GET_EMPLOYEE_DATA()
    try{
         wdContext.currentEmployeeElement().modelObject().execute();
         wdContext.nodeEmployeeOutput().invalidate();
    }catch (Exception ex)
          ex.printStackTrace();
    //@@end
  //@@begin javadoc:executeBAPI_EMPLOYEE_GETDATA()
  /** Declared method. */
  //@@end
  public void executeBAPI_EMPLOYEE_GETDATA( )
    //@@begin executeBAPI_EMPLOYEE_GETDATA()
    try{
         wdContext.currentEmployeeOrgDataElement().modelObject().execute();
         wdContext.nodeOutput().invalidate();
    catch (Exception ex)
               ex.printStackTrace();
    //@@end

Similar Messages

  • Creating a report in Web dynpro using OOPS concept

    Hi all,
             Iam new to web Dynpro, i need to create a report in Web Dynpro  using oops concept. can any one guide me regarding it.
    Regads,
    Easter

    Hi,
    Please refer to these links -
    DEMO_COMMON_ASSISTANCE1 -Example for standard component
    http://help.sap.com/saphelp_nw04s/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/content.htm
    Regards,
    Lekha.

  • I want to write ABAP Program in web dynpro Using se80 tra.code

    hi
    I want to write ABAP Program in web dynpro Using se80 tra.code and to Create URL for the same.
    Please let me know the steps to do.
    Thanks

    Hi Shiva,
    I understood ,  you want to create a Webdynpro Applicaiton and run it.
    this will help you
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cb243c45-0801-0010-eb9c-88669007f130
    Regards
    Abhimanyu

  • Calling a Report Program In Web Dynpro Using Submit statment

    Hi all,
             Can any one suggest how can i call a report program form Web Dynpro using Submit statment. I tried to call it its showing Field symbols not defined error. Is their any other ways to call Report in a Web Dynpro?. I have posted the error message when i tried using SUBMIT ZRR AND RETURN CONTROL
    Field symbol has not yet been assigned.
    The error occurred on the application server mnghcmsap_HRS_00 and in the work process 1 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Form: CHECKBOX_OUT of program SAPLKKBL
    Form: GEN_LINE_OUT of program SAPLKKBL
    Form: DATA_OUT_SIMPLE of program SAPLKKBL
    Form: LIST_OUTPUT_NEW of program SAPLKKBL
    Form: FIRST_LIST_DISPLAY of program SAPLKKBL
    Module: LIST_DISPLAY of program SAPLKKBL
    Function: K_KKB_LIST_DISPLAY of program SAPLKKBL
    Method: PRINT_BACKEND of program CL_GUI_ALV_GRID===============CP
    Method: SET_TABLE_FOR_FIRST_DISPLAY of program CL_GUI_ALV_GRID===============CP
    Form: PBO of program SAPLSLVC_FULLSCREEN
    Edited by: VINMANO on Jul 22, 2009 2:54 PM

    HI,
    Its possible to call report program from Web dunpro...
    chk out dis link,
    calling report(se38) in webdynpro abap
    By the way are using field symbol anywhere and left it unassigned?
    Thanks,
    Divya.S

  • Search help for Web Dynpro using the SAP-search help

    Hi,
    I’m trying to create a generic search help for Web Dynpro using the SAP-search help. It should working so, that I construct a Web Dynpro-component, that gets the data of the search help from the SAP-system, interpreted it and creates the ui-elements and the needed context generic.
    The mapping between the Input field of the customerview and the right search help is to be made with an xml-file, which contains the information: name of the view, the input field, the search-help-name and the name of the field that will be returned.
    The xml-file is reading from a helper-class. That helper-class contains any information, witch need the search help-component as well as the customer-component.
    The initialization takes place in the method wdDoModify of the customer. The call of the search help from the customer should be implement with an Action, witch is bound to a Button(create dynamic in the helper-class behind the input field).
    In a second foot should be create a plugin for eclipse, witch insert the used files (search help component, helper class, …) in the project. In addition it should create the call in the customer generic.
    It would be great if someone can give me a feedback!

    Hi Mike,
    The BlanketAgreement.exe is a reference to the executable that will be created when you compile the solution you created in Part II - Part III. I think there is a mistake in the tutorial because it asks you to name the project 'Blanket' which means that by default the executable will be called Blanket.exe and not BlanketAgreement.exe. The tutorial also misses the step asking you to compile the Blanket project before you go on to create an installer. You should compile your Blanket project in Release mode before creating an installer. By compiling the project you'll get a Blanket.exe file in the bin folder of your Blanket project which you then need to add to the installer per the instructions.
    SAP do offer development courses in some areas and there is training material here on the SDN and on the SAP partner portal (and maybe the customer portal as well). Try searching this forum for 'training' or 'tutorial' and you should get a few links. There's also a development certification.
    Personally I'd recommend you give yourself a little project to work on and just get stuck in
    Kind Regards,
    Owen

  • Web DynPro Adaptive RFC proxies configuration

    Hi,
    When using Adaptive RFC proxies to call BAPIs in my Web DynPro application I need to go to the content management web interface (localhost:50000/webdynpro/welcome) to set them up. How can I automate this configuration for, say, quick deployment on another server ?
    Thanks,
    Romain GUY
    Cap Gemini France

    From your problem description, I assume it's the JCO destinations that you want to create programatically in the SLD. This is possible. Check out the API documentation for the class WDSystemLandscape.
    Regards
    Shakeel

  • Srm 7.0 - Hide field in web dynpro using configurations

    Hello to all,
    I'm trying to hide some fields on PO web dynpro. In this example on web dynpro /SAPSRM/WDC_DODC_PO_I_BD I start the component configuration /SAPSRM/WDCC_DODC_PO_I_BD, I search for the fields I want to hide and put the visibility attribute to Invisible and I mark final check box.
    The fields don't dessapear from the web dynpro. Am I missing something?
    Best regards,
    Nacho

    Thanks for your reply.
    I have here two situations:
    SPRO. If I add the field on Configure Field Control at Header Level/Item Level it disapears but not all fields appear on this transaction. For example, I can't do that to tolerance group (TOL_GP)
    Webdynpro. Using Component Configuration of the dynpro. I guess that it is in two actions:
       - Change the value of visibility to Invisible on Web dynpro Built-In
       - Add field to context. I put for this example:
             Attributes of the Element usagesDefinition (ITEM_TOL.TOL_GP)
                     usageName ITEM_TOL.TOL_GP
                     componentName ITEM_TOL.TOL_GP
                     ConfigurationName /SAPSRM/WDCC_DODC_PO_I_BD
    The webdynpro way doesn't work, Am I missing something?
    Best regards,
    Nacho

  • What is the right  way to display a table in Java web dynpro using a node.

    Hi experts,
      I am trying to show a node of cardinality 0...n as a table in an adobe form in Java web dynpro. But its not showing it properly. Can anybody please tell me what is the right way to display a table on adobe form using a node of cardinality 0...n or 1...n in Java Webdynpro.  In ABAP webdynpro, we can drag and drop a node of cardianlity 0...n or 1...n to  show as a table and it works fine. Is the same possible in Java webdynpro also. Please help.
    Thanks and Regards.
    Vaibhav Tiwari.

    Please refer to my post.. you will get the answer
    Dynamic Table -  same data repeating in all rows
    Special care should be taken in designing the context for table attribute.
    The attribute type singletone also plays a important role. I have this doubt from the beginning when you have reported this problem for the first time but finally you marked it as solved so i thought there might be some other issues but again when you reported that again i did some analysis.
    Now coming to final solution :
    For designing a table in adobe interactive form you have consider following
    You have to design the view context upto three level, I am explaining you the properties
    PDFDataSource (Parent Level1) - Cardinality 1:1 - Signetone -True - This is assigned to datasource
    TableList (Parent Level2) - Cardinality (1:1) - Signetone -True
    TableWrapper(Parent Level3) - Cardinality (0:n) - Signetone -True
    TableData (Parent Level4) - Cardinality (0:1) - Signetone - false (This is the main point)
    Then under TableData value node, you have to put all your table attributes.
    This Value Node name can be anything but hierarchy should be same as I have mentioned above.
    Please try out these steps and get back to me if you have any doubt.

  • Showing Image in Web Dynpro using ABAP

    Hi All,
    I am new to Web Dynpro ABAP , basically my requirement is to show a image , could any one please tell me the steps to do that , i have already uploaded the image in application server using T-code smw0 , and in the layout i have taken the element IMAGE.
    I have also made the context node as Image and under that i have made three attributes named as :-
    IMAGE (Context Node)
    source (Attibute type string)
    tooltip (Attribute type string)
    visible (Attribute type WDUI_VISIBILITY)
    In the WDDOINIT  method i have written the following code.
    DATA:
    context_node TYPE REF TO if_wd_context_node,
    context_elem TYPE REF TO if_wd_context_element,
    stru_image TYPE if_image_view=>element_image.
    fill structure with values
    stru_image-source = 'abc.gif'.
    stru_image-tooltip = 'Image Tooltip!!'.
    stru_image-visible = '02'. "=visible
    navigate to <IMAGE> via lead selection
    context_node = wd_context->get_child_node( name = `IMAGE` ).
    get element via lead selection
    context_elem = context_node->get_element( ).
    bind structure to context element image
    CALL METHOD context_elem->set_static_attributes
    EXPORTING
    static_attributes = stru_image.
    But I am getting the error if_image_view does not exist.
    Please help me and guide me if I am proceeding in a wrong way.
    Thanks and Regards,
    Rachit Khanna

    Hi ,
    Its very simple ....
    Dont use any transaction to upload image.
    right click on component and select
    create->mime_object->import
    suppose ur image is on desktop...
    So select the path of desktop select the image and click ok.
    U will see an MIMEs named folder in ur component and under which u will have ur image.
    now add image element into UI and there u will have source name property ...just write the name of ur image file and test ur application.
    U can see the image in output..
    (Also there are different properties of image element to set the position and other things)
    any queries ..feel free to ask
    regards
    panky

  • Cannot import DCs, necessary for Web Dynpro use in CAF GP

    Hello!
    I'm a newbie in SAP technologies. I want to develop a Web Dynpro (WD) application, which will be used as UI in CAF GP. The problem is that I cannot import necessary DCs for this!
    As I understand, the following ones are necessary to develop a WD app for use in GP:
    caf/eu/gp/api
    caf/eu/gp/api/wd
    com.sap.security.api.sda
    (according to http://help.sap.com/saphelp_nw2004s/helpdata/en/b2/06ae42848bb211e10000000a155106/content.htm)
    I acted as it is described in "Implementing a Web Dynpro CO which Implements the GP Interface" (https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50d74ada-0c01-0010-07a8-8c118d408e59).
    Actually, those DCs don't exist in my local configuration - so, as it is told in "Implementing a Web Dynpro CO which Implements the GP Interface", I tried to get the DCs from remote host (there's a server in Intranet with all stuff installed). In NetWeaver Dev Studio, in "Preferences -> Development Configuration Pool" I have written http://<local server>:50100. Actually, I don't know, what port should be used - I've written the one, which handles requests to SAP NetWeaver Portal. The response to "ping" button click is "HTTP response code: 403 (Forbidden)".
    I tried to check the status of SLD, and went to http://<local server>:50100/sld. I have successfully logged in, but when I try to go to tab "Administration", I receive the message " 403 Forbidden. You are not authorized to view the requested resource."
    Is there a problem with my roles & groups? Actually, I'm in group SAP_SLD_ADMINISTRATOR.
    What is wrong?
    How can I get the detailed information about the error (log files or something)?
    Thanks in advance!

    Barry, as I understand, I have no these roles, available for granting. Maybe, I've acted in a wrong way (the version of SAP NetWeaver is "Release 2004s".):
    I logged in NetWeaver portal as administrator, went to section "User administration", selected my user, opened the tab "Assigned Groups" and searched for the groups you've written - I found no one

  • Web dynpro using a portal service

    Hello All,
    We are using the JDI.
    We want to use a portal service DC from a web dynpro DC.
    The web dynpro DC is part of a software component.
    When the portal service is a local DC it is working fine (except failing later on the CBS build)
    but when the service is part of a software component as well I get a runtime exception: a java.lang.NullPointerException.
    The WD sharing reference I'm using is: PORTAL:sap.com/<dc service prefix>.<service name>
    I assume that this is the right reference because without this exact phrase I get a java.lang.NoClassDefFoundError: com/sap/<name of service>
    <b>Does anybody know how to use a portal service that is part of software component?</b>
    Thanks a lot in advance, Adi.

    Thanks Bharathwaj , but I already solved my problem.
    The solution was  to change the next code line in the service client code :
    Idb_srv DB_Service = (Idb_srv) WDPortalUtils.getServiceReference(Idb_srv.KEY)
    to:
    Idb_srv DB_Service = (Idb_srv) WDPortalUtils.getServiceReference(""<PARFilename>.<service name>");
    Regards, Adi.

  • Web Dynpro using EJB to implement database access for MS SQL 2005 server

    Hello,
    For using EJB model in Java Web Dynpro, why do I need another dictionary project with all the required tables (there are 5 tables in my project), when the same database is already created in back end MS SQL 2005 Server.
    Thanks
    Srinivas

    Thanks for your reply Charan,
    I am fairly new to EJB. I have created only one session bean (called TrainingBean) and created all the business methods inside it.
    Here is my database schema, with the following 5 tables
    Courses
    CourseSchedules
    Students
    Registrations
    Competencies
    Here are the session bean business methods:
    changeCourse(String)
    changeStartDate(String)
    createCourse()
    createCourseSchedule()
    getCourses()
    getCourseSchedules()
    registerStudent(String)
    unRegisterStudent(String)
    Is this good way to implement EJB, or should I create multiple session beans and multiple corresponding Data access command beans  ?
    Thanks a lot
    Srinivas

  • Compiling web dynpro using javac

    I am writing an ant script to build ear file for my web dynpro application. We can not want to use Netweaver studio because our build process is automated using ant. In my web dynpro application there are 45 java files including my own java classes & the java classes generated by netweaver studio. But in my app.jar file there are 80 java classes. if I can locate all the java files then I can use javac to compile these classes & create ear file independent of netweaver studio.
    Has anyone tried using ant to build ear file for a webdynpro app? How are these extra classes created without corresponding java files?

    Hi Sam,
            Webdynpro is a framework within the Studio.The meta model of it requires all the jar files for compilation.You can see all jar files in the plugin folder of the same.If you can export all these jar files
    then I think you can compile and run your script outside studio but surely it is a tedious process.Moreover when you want to run any webdynpro application it is designed to open an IE with the framework.Lot of work around has to be done for opening external browser for running it other than studio.
              Hope my points briefs your query.
           Can you tell me the reason why you don't want to compile it within the studio?
    Regards,
    Guru

  • How to create Variants in Web Dynpro using ABAP

    Can anyone please tell how to create and save variants in a Web DynPro application using ABAP.
    Also state the steps involved in saving and loading the variants.

    hi,
    For calender control, there is Date Navigator under "complex tab". You can just click and drag it and provide calender control.
    One more easy way is to create a input field. In the context, create a node and attribute of type "D"(which means DATE). And bind the context to your input field under "values" in property window. While running the program, you will see an calender attached to lt on the input field.
    Regards,
    Jithin

  • Web dynpro using SE80( for FORM16 under ESS )

    hi to all.
         Please can you guide me who to create web tools using SE80.i dont have any knowledge in webdynpro.
    Here i am working as ABAP programmer. We also want to use ESS service.
    here is my requirement.
    there is one Tcode PC00_M40_F16 .this is form 16 .when ever he want to see his form16 we need to show . We able to show it ,but the problem is one can see other's form16.
    we are planing to create some custom Tcode or Function module which will use this TCODE internally.
    We have to restrict one person such that ,he can able to see his own form16.
    Thanks in advance.
    have a nice day......
    chandra.........

    Hi Shiva,
    I understood ,  you want to create a Webdynpro Applicaiton and run it.
    this will help you
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cb243c45-0801-0010-eb9c-88669007f130
    Regards
    Abhimanyu

Maybe you are looking for

  • Get message on iPhone 4S, "Cannot connect to iTunes Store." How can I access the iTunes Store?

    I get a Message on iPhone 4S, "Cannot Connect to iTunes Store." How can I access iTunes Store?  Yes,  I am WiFi connected.

  • How can I make a countdown timer using After Effects

    I'd like to make a video that has a timer that counts down one second at a time. I need one starting at 5:00 (five minutes). Is there a way to easily do this in After Effects without having to manually change the text every second? Thanks.

  • Printing problems after updat maverick

    After update to maverick mine hp deskjet 3070a ,cannot print wirelessprinting anymore.the AirPrint is not in the list and, bonjour printing is not in the list *** Well Before i update the printer was working allright with wireless connection. No prob

  • Debian Linux character recognition problem

    Maybe this shouldn't be on this forum, but perhaps someone can help me... I have Jrun 3.1, java 2 1.4 and Debian Linux. On our test server everything was hunky dory, running perfectly. But once everything was on the real server, we've had a character

  • Multiple iTunes IDs, can we share downloaded content

    Myself, -iPhone, iPad Wife - iPod, iPad Son - iPhone, iPad NAS and wifi infrastructure. We all have Windows PCs and have been buying/downloading content for some time under unique itunes accounts/emails. The goal is to be able to share what we purcha