Fetching SAP R/3 table in web dynpro application

Hello All
I ve a group in portal. This group have member users stored in sap r/3 table.
Now i have a requirement that whenever changes are made in sap r/3 table i.e. either adding of users or removing of users from table, these changes should automatically get reflected in Portal.
I should use rfc for accessing the table, but what code so that depending upon user-id, changes should reflect in Portal????

i did it on my own

Similar Messages

  • Java dictionary database table in web dynpro application

    Hi,
    I want to access java dictionary database table in my web dynpro application in java.
    Right now I have created one java dictionary DC.
    and in that Dc i have created two database table .
    Now I want to use this table in my web dynpro application.
    Can anyone help me.

    You can use the Dictionary Projects to create tables in Database. You must use codes to access these database tables that is created using Dictionary projects.
    You have to use the DataSource in order to get connection ; Use Visual Administrator to see the data source name.
    You can use the following code to access the database table.
    ResultSet result = null;
    try
         InitialContext initialcontext = new InitialContext();
         DataSource datasource = (DataSource)initialcontext.lookup("jdbc/<DataSourceName>");
            Connection connection = datasource.getConnection();
         Statement statement = connection.createStatement();
         result = statement.executeQuery( <Query>);
         connection.close();
    } catch (NamingException e) {
         // TODO Auto-generated catch block          
              e.printStackTrace();
    } catch (SQLException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
    Regards
       Vinod

  • Calling a Standard SAP transaction VA03 from another web dynpro application

    Hi All,
    I have a requirement wherein I need to call the standard SAP transaction VA03 whenever a sales order is selected in some other we dynpro application so that the sales order gets displayed.
    No regarding usage of OBN for the above functionality I have certain queries:
    1. In order to call VA03 do I need to create a transactional iview for it or is there any direct method.Also how to pass this sales order number as parameter to the T.Code.
    2. Can we use standard business object BUS2032 for OBN or a new Business object is created.What exactly is the purpose of these standard business objects in portal and when should they be used.
    Thanks in advance
    Aman Gupta

    Hi Aman - Do you have a portal team in your project or you have to create the IVIEWS yourself?
    I do have a portal team and I dont know how they create the IVIEWs but for example, I will go to my portal team and I will ask them to create an IVIEW for TCODE VA03, they will created and they will tell me the input parameters they entered for the IVIEW so I can call OBN and display in webdynpro.
    SAP in SRM has webdynpro e.g. for BUS2121 and they have an IVIEW already implemented in the portal context pointing to the webdynpro of BUS2121 so we can used the IVIEW by calling OBN and passing the parameters; in my case the object_type will be 'shc' and the operation will be 'display' and the paremeters itab will be the GUID of my shopping cart, that way the OBN can understand which Shopping cart open and in which operation mode.
    I also did something like your requirement, I need it to display a specific case in Records Management but SAP has a standard IVIEW for records management 'RMREGEDIT' that didn't work for my requirement so I went to SE38 created a program that displayed the case based on GUID and I created a TCODE of my custom program. Portal team created a custom IVIEW of my custom TCODE and they told me the input parameters to call the TCODE in OBN and I pass in the itab parameter the GUID of the case using the FM that I post before.
    The action to call the OBN is in the event handler ON_CLICK of my ALV and the action is getting trigger when the user actually clicks a HYPERLINK in the ALV.
    Hope this helps you!
    Please feel free to ask me more details if you need.
    Jason PV

  • Error in deploying Web Dynpro application

    Hi
    I have created (in Net weaver developer studio) and deployed a webdynpro application on the portal. I have created a SAP WebDynpro iView for the web Dynpro application that I have deployed on the portal. When I execute the WebDynpro iView in the portal,
    1) I get a popup message "Session Management will not work! Please check the DSM log file for details" I checked for the DSM log file under System Administration>Support>Support Desk>Portal RuntimeLogViewer and I browse to irj/root/WEB-INF/portal/logs. There is no file in the logs folder.
    2) After clicking ok on the popup message, I get an  error message in the portal saying
    Service cannot be reached
    What has happened
    URL http://svc1uer.<companyname.net>:8038/webdynpro/dispatcher/com.postdk.flights/FlightsApp call was terminated because the corresponding service is not available.
    Note
    The termination occurred in system UER with error code 404 and for the reason Not found.
    The selected virtual host was 0 .
    What can I do?
    Please select a valid URL.
    If you do not yet have a user ID, contact your system administrator.
    ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:K-i:svc1uer_UER_38-v:0-s:404-r:Notfound
    HTTP 404 - Not found
    Your SAP Internet Communication Framework Team
    Thanks in advance
    Jay

    Hi..
    Thank u boss, ur reply was very helpfull to sort out our requirment.
    Regrads
    Rajesh

  • Consuming an outbound iDoc from a Java Web Dynpro application on EP front

    Hi,
    I am trying to consume an outbound iDoc from a SAP system into a Java Web Dynpro application. The result would be displayed on the Enterprise Portal. Could anyone help me with the process to be followed for the same.
    Regards,
    Chandrima.

    Hi,
    I am trying to consume an outbound iDoc from a SAP system into a Java Web Dynpro application. The result would be displayed on the Enterprise Portal. Could anyone help me with the process to be followed for the same.
    Regards,
    Chandrima.

  • Deletion of data of R/3 table using Web Dynpro

    Hi Experts,
    I have to delete some records from R/3 table CATSDB using Web Dynpro form. I am using BAPI_CATIMESHEETMGR_DELETE for this purpose. Can you please let me know the steps to accomplish this exercise.
    I have displayed the records of CATSDB using one custom made BAPI. Using this BAPI, I am able to display the data. I have created one button called "Delete Data" button on the form. I have called BAPIs using following code:
    public void onActionDeleteData(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionDeleteData(ServerEvent)
        wdThis.wdGetTimesheetCompController().executeBapi_Catimesheetmgr_Delete_Input();
        wdThis.wdGetTimesheetCompController().executeBapi_Transaction_Commit_Input();
    //@@end
    However, when I am selecting the record and trying to delete the record, record is not getting deleted. Can you please help me in resolving the issues? What is going wrong?
    Regards,
    Brian

    Hi Ashwani,
    I have checked the BAPI - BAPI_CATIMESHEETMGR_DELETE. I am unable to delete the record using even R/3 screen. For deleting the record, I have to provide following four parameters:
    PROFILE, TESTRUN, RELEASE_DATA and AGENT.
    I don't know what should be the value of TESTRUN, RELEASE_DATA and AGENT. I know only the value of PROFILE. From ABAPers, I have come to know that in order to delete the reccord I must provide the value of COUNTER. However, the BAPI,  BAPI_CATIMESHEETMGR_DELETE is not asking me to enter the COUNTER.
    Can you please let me know how to delete the record from BAPI using R/3 screen. After that I will try to delete record using Web Dynpro application.
    Regards,
    Brian

  • How to create dictionary table using web dynpro?

    Dear Experts,
    Please clarify my doubts.Im new in this EP development.
    Im using EP6 portal with NWDS6 for dev.
    My Doubts are :
    Im trying to develop a web dynpro application which captures some data and insert/update in Table.
    => If we create a structure Dictionary in web dynpro application will that automatically create the table in Portal database?
    => If it is automatically created how to insert or update that table.
    can any one plz help.
    thanks and regards,
    Viswes.

    Hi Visweswara
    This will use the concept of EJB.
    Refer these for creating Dictionary tables...
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c]
    As far as answer to your second question is concerned,
    => If u create a structure Dictionary in web dynpro application  it will not create the table in Portal database..
    You can access that table via creating a web dynpro iview in Portal..
    Only application can accessed after deployment via iviews in Portal..
    Thanks...
    Rewards Appreciated...

  • Drop down in allready displaying table in web dynpro

    Hi Experts,
    We have  a requirement where we are displaying the data of the table KNA1 in a table form (Web dynpro) which is editable.for the field NAME1 there must be drop down box which contain some values , so that for any row user can select one of the value and then when press SAVE button the table KNA1 should be updated with the new value of NAME1.
    Can you please let us know how to do this.
    Thanks
    Mahesh

    >Can you please let us know how to do this.
    Which part of what you describe and what exactly are you having problems with.  You can of course change the cell editor of your column to DDLB.  Is that where you are having problems.  Or are you trying to decied between DDLBByKey and DDLBByIndex.  For that I would suggest you read the following:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bb/69b441b0133531e10000000a155106/frameset.htm

  • FETCH DATA FROM ORACLE DATABASE USING Web Dynpro

    I want to fetch data from ORACLE database using Web Dynpro.How can I do this?

    1) Are you sure that you get no results? It sounds like you are having name resolution issues, which would imply that you should be getting an ORA-00942 error indicating that the table doesn't exist (or that you don't have access to the table). If you are not seeing this error, I would tend to suspect an overzealous exception handler.
    2) What database account owns the table? What database account is your ASP.Net application using to connect? Assuming these two accounts are different, your application would either have to
    - Explicitly prefix the table name with the schema name
    - Have a public or private synonym that maps the table name to the fully qualified identifier schema_name.table_name
    - Issue the command ALTER SESSION SET CURRENT_SCHEMA = <<schema name>> in each session, in which case all queries in the session would use the specified schema name as the default if no schema name is prefixed.
    Justin

  • Connecting Web dynpro application to an SAP database

    Hi
    Iam new to the Web dynpro
    I created a proto type for this screen.
    In my project ,under one of the module "std Allo" option will come.By clicking that "std allo" screen will come.
    In that Create , Export buttons is there.In that, table is present consists of Allowance Code, sub code,type,level,expense type,amount fields are present.
    1. After clicking create button , these elements are present.
    Save and Cancel buttons are present.
    allowance code - (i/p field) , sub code - (i/p field) , period Type - (Dropdown by key) ,
    Type - (Checkbox group) , level - ( Dropdown by key) , expense type - ( Dropdown by key) ,
    trip - ( Dropdown by key) , currency - ( Dropdown by key) ,amount - (i/p field)
    2.By clicking first row in the table ,,
    delete ,edit cancel buttons are present.
    same elements are present which i mentioned in step 1.
    To connect to the R3 database, Function module is required.Can any one help what are the specifications i need to give to the ABAP team to develop a Function module for this appluication.
    Please tell me procedure.
    Regards
    Sushma

    Iam trying to connect my web dynpro application to R3 Database.
    Iam having list screen consistts of Create and Export buttons and table.
    Table Fields :
    Allowance Code , sub code ,Type , Level , expense Type , amount
    After clicking  Create button ,
    the screen consists of save and Cancel buttons.
    Allowance Code  -- (Input Field)
    Sub Code --  (Input Field)
    Period Type -
    (Dropdown by key)
    Type -
    (Radio button Group)
    Level --- (Dropdown by key)
    Expense Type -(Dropdown by key)
    Trip - (Dropdown by key)
    Currency - (Dropdown by key)
    Amount --(Input Field)
    In the Create screen  all these fields are present. But in the table in the List Screen it is taking only mandatory Fields.
    For this our Abapers created
    Fun Mod : Zup_Allowance_Input
    Table     : ZMSTR_ALLOW 
    Iam getting error in this code under IdataType in this "Save Button ".
    Can any one help me where i went wrong in this code.or else please provide the Code for this.
    public void onActionSave(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSave(ServerEvent)
         try{
              String str1=wdContext.currentStdAllowanceElement().getAllowanceCode();
              String str2=wdContext.currentStdAllowanceElement().getSubCode();
              IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("PeriodType").getDataType();
         String index=wdContext.currentStdAllowanceElement().getPeriodType();
         String str3=wdThis.getTextFromSimpleType(dataType,index);
                                  wdComponentAPI.getMessageManager().reportSuccess("wetreer                "+str3);
         String arr[]={"Fixed","Actual"};
         for(int i=0;i<arr.length;i++)
    IPrivateEtrecStdCreateView.ICheckElement e=wdContext.nodeCheck().createCheckElement();
    wdContext.nodeCheck().addElement(e);
    e.setType(arr<i>);
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("").getDataType();
              String index=wdContext.currentStdAllowanceElement().getLevel();
              String str5=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer                 "+str5);
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("ExpenseType").getDataType();
    String index=wdContext.currentStdAllowanceElement().getExpenseType();
    String str6=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer                 "+str6);
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("Trip").getDataType();
    String index=wdContext.currentStdAllowanceElement().getTrip();
    String str7=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer                 "+str7);
    IDataType datatype = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("Currency").getDataType();
    String index=wdContext.currentStdAllowanceElement().getCurrency();
    String str8=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer                 "+str8);
    String str9=wdContext.currentStdAllowanceElement().getAmount();
    Zup_Allowance_Input input=new Zup_Allowance_Input();
              input.setAllow_Opt("C");
              input.setAllowance_Code(str1);
              input.setSubcode(str2);
              input.setType1(str3);
              input.setLevel1(str5);
                         input.setExpense(str6);
                         input.setCurr_Key(str8);
    wdContext.nodeZup_Allowance_Input().bind(input);
    wdContext.currentZup_Allowance_InputElement().modelObject().execute();
    String str10=wdContext.currentOutputElement().get();
    if(str10.equalsIgnoreCase("3"))
    String errorMessage = "Inserted Successfully !";
    IWDEventHandlerInfo windowHandler = wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("OK");
    IWDConfirmationDialog windowDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(errorMessage, windowHandler, "OK");
    windowDialog.open();
    windowDialog.setWindowPosition(300,250);
    }if(str10.equalsIgnoreCase("2"))
    String errorMessage = "Duplicate Value !";
    IWDEventHandlerInfo windowHandler = wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("OK");
    IWDConfirmationDialog windowDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(errorMessage, windowHandler, "OK");
    windowDialog.open();
    windowDialog.setWindowPosition(300,250);
    }catch(Exception e)
                 wdComponentAPI.getMessageManager().reportSuccess(e.toString());
        //@@end
      //@@begin javadoc:onPlugFromEtrecStdView(ServerEvent)
      /** Declared validating event handler. */
      //@@end
      public void onPlugFromEtrecStdView(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onPlugFromEtrecStdView(ServerEvent)
         wdContext.currentStdAllowanceElement().setAllowanceCode("");
            wdContext.currentStdAllowanceElement().setAmount("");
            wdContext.currentStdAllowanceElement().setSubCode("");
        //@@end

  • Exchanging data between a Web Dynpro application and SAP Web Shop

    I'll try to keep this as clear as possible:
    1) We have the SAP Internet Sales system running, which has a series of Business Object classes and corresponding Backend Layer objects that can return data from several sources.
    2) We are able to create our own Backend Layer objects that would return data from a component called IPC, which is a Java component.
    3) I would like a Web Dynpro application to retrieve data from this backend layer object, but I am not experienced enough with Java to know if what I want to do is possible. I don't think that I can use JCo, because I am trying to get a Java component (class?) in Web Dynpro to access a Java class remotely.
    4) I think I am asking is this: is there a way for a Java to Java connection to be created, much like Web Dynpro can use JCo to connect Java to ABAP systems?
    If this is a glaringly obvious question to Java programmers, my apologies!
    - Tony.

    Somebody on another forum recommended using RMI. Which would be the better option in terms of ease of implementation?
    - Tony

  • Web-dynpro application -ERROR: ICF service node "/sap/bc/webdynpro/sap/zqm_cto_arr_general1" does not exist (see SAP Note 1109215) (termination: ERROR_MESSAGE_STATE)

    i have created my web-dynpro application in development. and sent to quality . whenever i will execute my dynpro in quality  i got one message
    ERROR: ICF service node "/sap/bc/webdynpro/sap/zqm_cto_arr_general1" does not exist (see SAP Note 1109215) (termination: ERROR_MESSAGE_STATE)
    whenever i saw  sicf  transaction my web-dynpro is not seen . my dynpro application name is more then 15 character. what i will do . please give me valuable suggestion.....

    Hi Ashok,
                   for your requirement the application is not exist in particular place. It means, the webdynpro application is saved at different package or different location.
                  Please change the webdynpro component name and save it in particular request in package, then transport it to quality ..(development server )
    then go to SICF  t.code .. sap->bc->webdynpro->sap->find  out your application and activate the service of your webdynpro application.
    Now test it ... this solution might helpful to you .
    Regards,
    Naveen M

  • Does SAP GUI 7.10 include Web Dynpro client?

    Hi all,
        I want to try out Web Dynpro client, My SAP GUI version is 7.10, I can't see the web dynpro client component when install SAP GUI,  and can't see the web dynpro application in logon ui too. Seem to Gui7.10 does not include web dynpro client. I search forum can see SAP GUI 6.40 include a beta version of web dynpro client, but the download of Web Dynpro Client was not work.
        Does anyone kown if the Web Dynpro Client can be integrated in Sap Gui 7.10 ? Or it was still in beta version not be released official.
    best regard
    reefish
    Edited by: Ree Fish on Nov 18, 2008 5:33 PM
    Edited by: Ree Fish on Nov 18, 2008 5:34 PM

    Hi Martin ,
    I think your answer resolve our problem. But i can not get get installation document after login MarketPlace account. The page show blank.
    [SAP NetWeaver Business Client (with PCD Connection) |http://help.sap.com/saphelp_nw70/helpdata/en/46/4185faf54e2f90e10000000a1553f6/frameset.htm]  (Service Market Place Login Required)
    Documentation on installation, configuration and use of the SAP NetWeaver Business Client.
    I Search the download service and can't find NWBC installation file, is it a independent client?
    best regard
    reefish

  • Database table in Web dynpro

    Hi All,
    I am trying to use a database table in Web Dynpro. For this, o already created and deployed a dictionary project and one database table in that project. In my web dynpro project when i am accessing this table columnname it works fine, but its not allowing to insert the data.It is giving following error:
    The SQL statement "INSERT INTO "TMP_2" ("NAME") VALUES ( "ASDFGH") " contains the semantics error[s]: - 1:36 - the column >>ASDFGH<< is undefined in the current scope  where NAME is my column name.
    Also when i change some column name or add one more column to my table and then deploy it. After this, when i run my web dynpro project it doesn't show the updated column name and column count.
    Please help.
    Regards,
    Chirag Aneja

    Hi,
    Try using prepare statement as follows
    PreparedStatement pstmt = con.prepareStatement("INSERT INTO TMP_2(NAME) VALUES ( ?) );
    pstmt.setString(1, "ASDF");
    Regards
    Ayyapparaj

  • How to create the Dynamic UI element table in web dynpro in abap

    Hi All,
    Does anybody have reference note or teach me how to create dynamic UI element table in web dynpro in abap ?
    Regards,
    Luke

    HI LukeWong ,
    for creating any UI dynamically you shoul use their runtime class that always start with cl_wd_* ui element name*
    so for the Table UI element the runtime class is CL_WD_TABLE
    now reffer the below code for creating the Table UI dynamically
    METHOD wddomodifyview.
    DATA lr_table TYPE REF TO cl_wd_table.
    DATA lr_flow_data TYPE REF TO cl_wd_flow_data.
    DATA lr_container TYPE REF TO cl_wd_uielement_container.
    DATA lr_column_name TYPE REF TO cl_wd_table_column.
    DATA lr_text_view TYPE REF TO cl_wd_text_view.
    DATA lr_table_header TYPE REF TO cl_wd_caption.
    DATA lr_column_name_header TYPE REF TO cl_wd_caption.
    IF first_time EQ abap_true.
    lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
    lr_table = cl_wd_table=>new_table(
    id = 'TBL_TABLE'
    bind_data_source = 'TABLE'
    design = cl_wd_table=>e_design-alternating
    visible_row_count = 3
    lr_flow_data = cl_wd_flow_data=>new_flow_data( element =
    lr_table ).
    lr_container->add_child( lr_table ).
    lr_column_name = cl_wd_table_column=>new_table_column(
    id = 'TBL_EXAMPLE_NAME'
    lr_table_header ?= cl_wd_caption=>new_caption( text = 'Table UI elem
    ent - example').
    lr_table->add_column( the_column = lr_column_name ).
    lr_table->set_header( lr_table_header ).
    lr_text_view = cl_wd_text_view=>new_text_view(
    id = 'TXV_NAME'
    bind_text = 'TABLE.NAME'
    lr_column_name_header ?= cl_wd_caption=>new_caption( text = 'Name').
    lr_column_name->set_table_cell_editor( the_table_cell_editor = lr_text_view).
    lr_column_name->set_header( lr_column_name_header ).
    ENDIF.
    ENDMETHOD.
    Regards
    Chinnaiya P
    Edited by: chinnaiya pandiyan on Sep 17, 2010 12:01 PM

Maybe you are looking for

  • Query data from MS SQL db through Oracle ? By using JAVA ?

    Hi folks, I would like to sync our one table in oracle db with table in different system, stored in MS SQL database. What would be the easiest option for connection from Oracle to MS SQL db to be able to query data from MS SQL through some Oracle pac

  • Brand new N76 vibrates but doesn't ring

    I recently received an unused n76. Everything on it works fine, except that it doesn't ring. The mp3 player works, they keys make sounds, it vibrates when called but doesn't ring. I've checked and adjusted the profiles to ensure that the volume is up

  • Change the editable form of a list

    I created a custom list with more columns. If a user edits the list with the edit form i would like that the form shows only one field that can be updated. Anyone has a suggestion to achieve this  in the most simple way?

  • What is the top hierarchical class in abap

    What is the top hierarchical class in abap ? in java we have the class Object, that is on top of all the rest. Is there a similar class in ABAP ? Thanks

  • Can developers create apps with lock screen buttons?

    Title pretty much says it all.  Is it possible for developers to create apps that have lock screen buttons that appear with a home button double tap similar to the itunes control buttons?  I've seen other apps tap into itunes media controls but can y