How to import Table from Webdynpro to RFC?

In my application there is one RFC that has one import parameter String and a Table for import/export data from webdynpro.
The context of model node and attributes is as follows
A (Root Model Node for RFC)
|....B (Model Sub Node for Output)
    |....C (Model Sub Node for Table)
        |....x (Model attribute)
        |....y (Model attribute)
Table structure in RFC is same as Model node C.
Before Executing RFC using
wdContext.currentAElement().modelObject().execute();
In Java end how to set or add data to x,y attribute so that RFC can get those values from table and insert into the ABAP table.

Hi SBS,
Try this code.
IWDMessageManager msg = wdComponentAPI.getMessageManager();
try {
String empid = 10020;
//or you can take empid from UI field also
// String empid = wdContext.currentValueNodeElement().getEmployeeID();
Bapi_Employee_Getdata_Input input = new Bapi_Employee_Getdata_Input();
input.setEmployee_Id(empid);
wdContext.nodeBapi_Employee_Getdata_Input().bind(input);
// Calls remote function module BAPI_EMPLOYEE_GETDATA
wdContext.currentBapi_Employee_Getdata_InputElement().modelObject().execute();
// Synchronise the data in the context with the data in the model
wdContext.nodePersonal_Data().invalidate();
} catch (Exception e) {
// TODO Auto-generated catch block
msg.reportSuccess(“Message : “+e.getMessage());
Re: RFC Issue - Cardinality and Selection problem
Regards,
Mithu

Similar Messages

  • How can i import tables from a different schema into the existing relational model... to add these tables in the existing model? plss help

    how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help
    note; I already have the relational/logical model ready from one schema... and I need to add few more tables to this relational/logical model
    can I import the same way as I did previously??
    but even if I do the same how can I add it in the model?? as the logical model has already been engineered..
    please help ...
    thanks

    Hi,
    Before you start, you should probably take a backup copy of your design (the .dmd file and associated folder), in case the update does not work out as you had hoped.
    You need to use Import > Data Dictionary again, to start the Data Dictionary Import Wizard.
    In step 1 use a suitable database connection that can access the relevant table definitions.
    In step 2 select the schema (or schemas) to import.  The "Import to" field in the lower left part of the main panel allows you to select which existing Relational Model to import into (or to specify that a new Relational Model is to be created).
    In step 3 select the tables to import.  (Note that if there are an Foreign Key constraints between the new tables and any tables you had previously imported, you should also include the previous tables, otherwise the Foreign Key constraints will not be imported.)
    After the import itself has completed, the "Compare Models" dialog is displayed.  This shows the differences between the model being imported and the previous state of the model, and allows you to select which changes are to be applied.
    Just selecting the Merge button should apply all the additions and changes in the new import.
    Having updated your Relational Model, you can then update your Logical Model.  To do this you repeat the "Engineer to Logical Model".  This displays the "Engineer to Logical Model" dialog, which shows the changes which will be applied to the Logical Model, and allows you to select which changes are to be applied.
    Just selecting the Engineer button should apply all the additions and changes.
    I hope this helps you achieve what you want.
    David

  • How to import data from excel or csv files to Oracle table

    hello everybody,
    I am new here and new in Oracle. I would like to know the steps how to import data from excel or csv files to Oracle table.
    Let say I already have table inside the Oracle. Then my user give me the sets of data inside the Excel Worksheet.
    So, how can I import the excel data into Oracle table.
    Thank you in advance.
    cheers,
    shima

    Even easier. Download JDeveloper 11G from this site.
    Set up the database connection, right click on the table, select Import->Excel and specify your file to load it. On the import pop-up, you must view and update each tab indicating Columns, Data Types, and DML.
    Columns -- move the selected columns that you want to load to the box on the right
    Data Types -- select column name from second column to which the data for each column of the import file should load
    DML -- click this tab to generate the INSERT SQL
    Once done click 'Insert'

  • How to import tables, indexes, tablespace, etc from a DMP.

    Hello,
    I like to know how to import tables, indexes, tablespace, etc from an DMP export of a Oracle 10.2.0.1 to be apply on a Oracle 11.2.0. When I import the DMP file all the data is going to one single Tablespace, for example, Users tablespace.
    On the original database we have various tablespace's each separated with different content (tables, indexes) and I like to know if it posible to import the same schema,tables, indexes, tablespace all made with one single DMP Export. I can't use DBUA because the software of the database on the 10.2 is missing, I have only a DMP file (24GB) of DMP!.
    Thanks for the reply,
    Sorry for my english :).
    Regards.

    thanks for that but is not what Im looking for.
    Look, on my ORCL directory of the oracle 10.2 I have for example this:
    CONTROL01.CTL
    EXAMPLE01.DBF
    REDO01-1.LOG
    REDO01.LOG
    REDO02-2.LOG
    REDO02.LOG
    REDO03-3.LOG
    REDO03.LOG
    RMAN.DBF
    SYSAUX01.DBF
    SYSTEM01.DBF
    TEMP01.DBF
    UNDOTBS01.DBF
    USERS01.DBF
    TABLESPACE1.ORA
    TABLESPACE2.ORA
    TABLESPACE3.ORA
    TABLESPACE4.ORA
    TABLESPACE5.ORA
    I make a full export to a DMP. Then in my 11.2 version first I created the user then when import the DMP file none of the tablespace (TABLESPACE1, TABLESPACE2, ETC...) is created, all is going to the USERS tablespace, SO, im looking a way to tell imp command that generates the exactly tablespace structure that i was have on the 10.2.
    Hope this can explain more my problem.
    Thanks again!.

  • Can we access PI tables from WebDynpro Java via PI 7.1?

    Hi Experts
    Is it possible to fetch PI Tables (to display monitoring and alerts as dashboard on portal) from Java Stack. I got some javadocs API SAP Netweaver for PI 7.1 but i don't know how far it can help me in solving my purpose of fetching and displaying the PI monitoring data on Portal.
    https://www.sdn.sap.com/irj/sdn/javadocs
    Please advise if J2EE access to PI Tables is possible or RFC is the suggested solution to fetch PI Monitoring data.
    Thanks
    Neha

    Hi Neha,
    You can access PI tables from Webdynpro Java application using RFC or Webservices. Create RFC or Webservices which will fetch data from the PI tables.Create the required JCO's and the Webdynpro java application which uses the Adaptive RFC model or Adaptive Webservice Model to connect to the ECC system.
    I found a document that speaks about fetching data from SXMB_MONI Standard Table https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b050ff4f-84c3-2b10-3d99-8f9c44f57a17
    Hope this is useful.
    Regards,
    Seema Rane.

  • Error while importing tables from oracle database

    Hi
    I am getting the following error when i am trying to import table from oracle database.
    my operating system is windows and my database is oracle.
    [nQSError: 16001]ODBC error state: IM004 code:0 message:
    [Microsoft][ODBC Driver Manager] Driver`s SQLAllocHandle on SQL_HANDLE_ENV failed.
    please help me in resolving this issue.
    Thanks and Regards,
    Raj

    Hi Madan,
    I have done migration Discoverer Admin EUL Layer into OBIEE repository using below methodology.
    Navigate to the <installdrive>\OracleBI\server\Bin directory. There are two important files in this directory: the migration assistant executable file named MigrateEUL.exe and a properties configuration file named MigrationConfig.properties.
    Could you please help me how to migrate discoverer plus workbooks and worksheets into OBIEE Answers?
    go through below link, It will show navigation steps for migrating of EUL from Discoverer to OBIEE.But i need migration of workbooks and worksheets from Discoverer into OBIEE Answers.
    http://www.oracle.com/technology/obe/obe_bi/discoverer/discoverer_1012/discomigration/migrate_disco_biee.htm
    This is very great full help to me …
    Advance thanks for your suggestions.
    Regards
    Duraga Prasad.

  • How to import/export   from d2k

    hi
    hi please could you help me in how to import/export from d2k.
    M.P.Kiran Kumar

    FUNCTION open_ldr RETURN varchar2 IS
    out_file Text_io.File_Type;
         v_filename varchar2(255);                              
    Begin
    out_file := Text_IO.Fopen('C:sqlldr.ini', 'R'); /* create a file so that u can store sqlldr path first time it wont be there so write the path after verifying */
    text_io.get_line(out_file,v_filename);
    --message(v_filename);
    return(v_filename);
    Exception when others then
         --message('Check For Sqlldr73.exe or Sqlldr*.exe');
    v_filename := get_file_name(File_Filter=>'sqlldr Files (*.exe)|*.exe|');
    out_file := Text_IO.Fopen('C:\sqlldr.ini', 'W');     
         Text_IO.Put(out_file,v_filename);
    Text_IO.Fclose (out_file);
    if v_filename is null then
         Message('Please Select The Sqlldr Path ');
         Message('Please Select The Sqlldr Path ');
         raise form_trigger_failure;
    end if;
    return(v_filename);
    End;
         Declare
              The_userid varchar2(100):='';
              The_Password varchar2(100):='';
              The_connectstring varchar2(100):='';
              Con_Info varchar2(100):='';
              the_command varchar2(200):='';
              v_filename varchar2(100);
              cursor c1 is select tname from <table_name > /* create a table in ur schema and put all the tables which u want to export */ where tabtype = 'MASTER';
         Begin
              v_filename:=open_ldr;
         The_userid := Get_Application_Property(UserName);
                   The_Password := Get_Application_Property(Password);
                   The_connectstring := Get_Application_Property(Connect_String);
                   Con_Info := The_userid||'/'||The_Password||'@'||The_connectstring;
                   for c1rec in c1 loop
                   C2K_TRUNC_HLL_MASTERS(c1rec.tname);
                   the_command := v_filename||' Control=c:\'||c1rec.tname||'.ctl userid='||Con_Info; -- Change This According To The Path
                   -- message(the_command);message(the_command);
    Host(the_command);
                   End Loop;
                   the_command := v_filename||' Control=c:\control'||'.ctl userid='||Con_Info; -- Change This According To The Path
                   host(the_command);
                   Exception When Others Then
                        Message('Error'||' '||sqlerrm);
                        Message('Error'||' '||sqlerrm);
         End;
    If u have any problems please contact me on [email protected]
    furnish the details properly .
         

  • Importing tables from Word 2003 into Robohelp for word ^

    Does anyone know how to import tables and boxex from Word
    2003 nicely into Robohelp 6

    You can capture the table from your original word.doc and
    save the image as either a bmp or gif file. In robohelp, insert the
    picture where you want it to be located at. Have the table act as
    an image.

  • How to export tables from development server to production server

    HI,
    Any body plz let me know how to export tables from development server to production server. what are the user names and password i need to ask my manager to do that. what are the requirements i need to ask him.
    Plz reply me ASAP.
    Thanks in advance.

    hi buddy
    first of all you should let us know the environment of production and development servers
    database versions
    and you need to have userid which has privilege to export tables of other schema. userid(owner) of the tables you want to export.
    Traditional way
    export tables in development server and then ftp to production and then import
    in the above case you should have similar database structure(tablespace etc) to avoid errors...
    if there are few tables only , you can use dblink instead of export and import...

  • How to import mailboxes from Time Machine to new Mac

    I had Time Machine backing up our old G5. We got a Mac Pro back in November and I never was able to import the mail from the G5 to the Mac Pro so I left it alone and just kept using mail on the old G5. Well, the G5 took a dump last monday. I currently have the Time Machine backup for that computer connected to our Mac Pro (but not using it as backup yet). So, the mail from the G5 should be on the Time Machine backup right? If so, can I import it into Mail on the Mac Pro?
    I also pulled one of the hard drives from the G5 and have it in the Mac Pro in the 2nd bay just to make sure that HD wasn't dead. It works fine and I tried importing the .mbox files from that drive but it appears that all the mail on that particular drive are from like 2006. So, again, I need to find out how to import mail from the Time Machine drive. Any thoughts?
    10.7.4
    Mail 5.2

    Back up what data? Mail data? I don't have any yet. I haven't used Apple Mail on this Mac Pro yet.
    Edit: Launching Mail and holding Option right afterwards does nothing. Holding down option and then launching Mail does nothing.
    Oooooh.... launching time machine while holding down option......
    Edit again.... I don't have a Time Machine menu because that disk is not currently set up as time machine for the Mac Pro yet. I don't want to use it as a backup for this computer yet. I just want to be able to pull some of the backed up contents from it until I'm set.

  • How to move table from one tablespace to other tablespace?

    how to move table from one tablespace to other tablespace?

    887274 wrote:
    how to move table from one tablespace to other tablespace?
    alter table <table_name> move  tablespace <new_tablespace_name>;
    Rebuild the indexes; alter index <index_name> rebuild <new_tablespace_name> online;Example;:
    SQL> create table ttt( ID NUMBER PRimary key);
    Table created.
    SQL> insert into ttt values (1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL> alter table ttt move tablespace users;
    Table altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 UNUSABLE
    SQL> alter index SYS_C0010863 rebuild tablespace users online;
    Index altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL>

  • OBIEE Error while importing table from database

    Hi
    I am getting the following error when i am trying to import table from database.
    [nQSError: 16001]ODBC error state: IM004 code:0 message:
    [Microsoft][ODBC Driver Manager] Driver`s SQLAllocHandle on SQL_HANDLE_ENV failed.
    Any idea y such error.
    Thanks and Regards,
    Andy

    Looks like an error in the ODBC driver, not OBIEE as such.
    Have you tried googling it?
    Can you post details about your OS and DB.

  • How to import music from an external hard drive to my itunes on my computer?

    how can import music from an external hard drive that i saved my itunes music to. i dragged the music from my hard drive to the itunes on my computer but the music does not play from my itunes. it does however play on my ipod. it gives me an error that the original can not be found and do i wish to locate it. i am thinking that i did not drag the right file or all of the files necessary .thanks. kevin

    To import music into your iTunes library on the computer go to iTunes>Help>iTunes Help>Add items to iTunes and follow the instructions

  • How To import collections from Bridge cs6 To Bridge CC

    How To import collection from Bridge cs6 To Bridge CC??
    thx

    How To import collection from Bridge cs6 To Bridge CC??
    A collection is a bunch of aliases to the original files in their original place. If you have upgraded to CC on the same machine you can use the same collection, on a different machine it will possible not find the correct location again.
    On a Mac the path for the saved collections is : User / library/ application Support / Adobe/ BridgeCS6 / collections. Inhere are the saved collections showing the names you gave them. You can copy these collection files to the same location in Bridge CC.
    If you have a different machine you best first choose the collection and add a keyword with the name of the collection to all the files in this particular collection so you can use the find command to easily recreate the collection on your new machine.
    Maybe someone with more knowledge of Windows can show you the correct path but it should be something similar as on a Mac.

  • How to import videos from iPhone 4 to PC?

    I'm trying to get a video that I recorded and edited with my iPhone 4 and iMovie, on my PC so I can share it with others. It won't email because the file size is too big (but the video is only 1:20...) and I uploaded it to YouTube but they removed the audio because it's copyright infringment. I've going through My Computer and a few other things and all the photos get imported but when I try and play an imported video it won't load and just freezes. Any tips?

    http://lmgtfy.com/?q=how+to+import+videos+from+iphone

Maybe you are looking for