Output Table from one BAPI as Input Table to another Bapi
Hi
I have two BAPIs. First BAPI returned me a table, I displayed it on the view.
Then, user will select some rows and then the same Table with user selected values should be input of the Second BAPI.
Please advise how to achieve this.
Thanks,
Jai
Hi,
Copy the values from the output of BAPI 1 to a value Node and bind it to the table which is shown in the View. After you make the changes in the table and the user performs an action to send the table values to another BAPI as input, try the following code:
//Create an instance of the new BAPI
BAPI<name>Input bapi2Object = new BAPI<name>();
wdContext().currentBAPI<name>Input().bind(bapi2Object);
//get the size of the table from the view
int sizeOfTable = wdContext().node<tableNode>.size();
//initialize a List to hold all the records
ArrayList listOfRecords = new ArrayList();
for(int i = 0; i < sizeOfTable; i++)
//Initialize the structure which is sent as an Input to the BAPI
<structurename> structObject = new <structurename>();
//Set all the parameters required
structObject.set<attribute>(wdContext().node<tableNode>().get<tableNode>ElementAt(i).get<attributeName>);
listOfRecords.add(structObject);
//set the list to the input structure
wdContext().currentBAPI<name>Input().set<structurename>(listOfRecords);
//execute the BAPI
Hope this helps you
Regards,
Poojith MV
Similar Messages
-
How do I copy a spreadsheet/table from one Pages document to paste to another?
Hello:
I am in graduate school and am working on an assignment that requires that I use two different 'templates,' or tables, to analyze data. Instead of filling them in separately and saving as multiple documents, I have created an assignment document with my header. I want to copy the tables from the two 'template' documents and paste them both to my assignment document. I've tried highlighting the table in the template document, clicking copy, and then pasting in my assignment document. Nothing is pasted.
What am I doing wrong?What version of Pages?
What OS, iOS or OSX?
Are you sure you have the Table selected and not a cell or just contents?
Peter -
Add to Multiple Tables from One Page
Hello,
I am building an application that handles hardware inventory (APEX 4.0). I have an input page that adds data to two or more tables all at once. The page has two forms on it that point to two separate tables. However when I try to run the page, it fails and returns an error:
ORA-06550: line 1, column 437: PL/SQL: ORA-00904: "ORH_LAST_UPDATE_DATE": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
Error Unable to process row of table IDD_ID_DATA.
So far as i can see within the App, that column is not at issue (I am not even doing anything to it and it is nullable). I have looked into the App itself as well as doing some online research but have found nothing helpful...
So my question is this: Is it possible to add to multiple tables from one page? If so how do I do it?
I am new to APEX so any help would be greatly appreciated!UPDATE:
I received an email from the APEX Support Team:
"The simple answer is that you will need to manually code the DML (and query) processes if you wish to maintain multiple tables from one page (There is a limit of one table when using the built-in processes).
In order to do this I suggest you delete the processes generated by the wizards and create PL/SQL processes with insert, update, delete statements as necessary. Such coding is not difficult but is more time consuming than when you can use built-in processes."
I have been playing around with PL/SQL code and the end result is this:
begin
INSERT INTO table1
VALUES(
:P2_Item_Field1,
:P2_Item_Field2);
INSERT INTO table2
VALUES(
:P2_Item_Field1,
:P2_Item_Field2);
end;
I used this code in a custom PL/SQL Process in the Processing>Processes section of Page Processing and it seems to work fine now. The only downside to this method is if the name of a Page Item is changed the code will also have to be changed. Other than that i have had no problems. -
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> -
How can we copy table from one schema to other schema
Hi,
I have create one table in one schema and i want to copy it to other schema.How we can copy table from one schema to other schemaHi,
You can try something like this :-
SQL> CONNECT SYS/SYS123@SERVER AS SYSDBA
Connected.
SQL> CREATE USER TEST_1 IDENTIFIED BY TEST_1;
User created.
SQL> CREATE USER TEST_2 IDENTIFIED BY TEST_2;
User created.
SQL> GRANT CONNECT,RESOURCE,DBA TO TEST_1;
Grant succeeded.
SQL> GRANT CONNECT,RESOURCE,DBA TO TEST_2;
Grant succeeded.
SQL> CONNECT TEST_1/TEST_1@SERVER
Connected.
SQL> CREATE TABLE TEST_COPY ( TEST_COL NUMBER );
Table created.
SQL> INSERT INTO TEST_COPY VALUES ( 1 );
1 row created.
SQL> INSERT INTO TEST_COPY VALUES ( 2 );
1 row created.
SQL> COMMIT;
Commit complete.
SQL> GRANT ALL ON TEST_COPY TO TEST_2;
Grant succeeded.
SQL> CONNECT TEST_2/TEST_2@SERVER
Connected.
SQL> CREATE TABLE TEST_COPY AS SELECT * FROM TEST_1.TEST_COPY;
Table created.
SQL> SELECT * FROM TEST_COPY;
TEST_COL
1
2Regards,
Sandeep -
How to transfer the tables from one file group to another file group in SQL 2008.?
Hello all,
I have few issues regarding the transfer of the tables from one file group to another file group in SQL 2008 and also How can we backup
and restore the particular database based on file group level.
Let’s say I have a tables stored within the different FG. such as
Tables
File group
Dimension tables
Primary
Fact tables
FG1
FG2…
zzz_tables
DEFAULT_FG
dim.table1 DEFAULT_FG
dim.table2 DEFAULT_FG
Here all I want to transfer the dim.table1 ,dim.table2 from DEFAULT_FG to the Primary File
group .So is there simple methods for transfer the dim.table1,2 from one FG to another .I have tried somewhat but I couldn’t get the exact way .So if someone have better idea please share your knowledge that would be really appreciated.
Secondly after moving those dim.table1 ,dim.table2 from DEFAULT_FG to Primary ,All I want to backup and restore the database only containing the Primary and FG1,FG2… not
a DEFAULT_FG.Is it possible or not.?
Hope to hear from the one who knows better approach for this kind of task .Your simple help will be much appreciated.
Regards,
Anil MaharjanWell after all my full day research on this topic had paid off, I finally got the solution and am so happy to research on these things. It makes
us feel really happy after all our research and hard work doesn't goes as waste.
Finally I got what I am looking for and want to make sure that I am able to transfer the tables from DEFAULT_FG to another FG without tables
having clustered index on that tables .
With the help of the link below I finally got my solution where Roberto’s coded store procedure simply works for this.
Really thanks to him for his great post and thanks to all for your response and your valuable time.
http://gallery.technet.microsoft.com/scriptcenter/c1da9334-2885-468c-a374-775da60f256f
Regards,
Anil Maharjan -
How do I move a table from one schema to another schema on Oracle XE?
How do I move a table from one schema to another schema on Oracle XE?
Hi,
I tried to use the insert/select statement that you had given, it did not work.
The error is ORA-00913: too many values.
But finally what I did was, I went into the system schema where the table was and generated the DDL through the utilities and afterwards I imported them into the schema that I am currently working on. It solved the problem!
However I am still curious to know why the insert/select statement did not work? Do you know any site/tutorial which gives a real time example?
Thank you
Skye -
How do I move a table from one schema to another schema?
How do I move a table from one schema to another schema?
Grant access to the table from the source schema to destination schema.
GRANT SELECT ON <TABLE_NAME> TO <DESTINATION SCHEMA>A simple way would be to use CREATE Table with select syntax (in destination schema)
CREATE TABLE <TABLE_NAME> AS SELECT * FROM <SOURCE SCHEMA>.<TABLE_NAME><li>However, you would be in <b><u>trouble when the table has index,constraints and triggers</u></b>.
So you can better of grab the DDL statement of the table(and any additional components) andd then create the table in the destination schema.You can use SQL developer, Toad or Apex's Object browser for this.
After the table is created, Insert the records using SELECT.
INSERT INTO <TABLE_NAME> SELECT * FROM <SOURCE SCHEMA>.<TABLE_NAME>This question is discussed in great detail in this <b>AskTom thread</b> -
Getting error while creating table from one database to other.
Hi,
We are getting below error while creating the table from one database to other.
SQL> create table fnd_lobs parallel compress as select * from [email protected];
create table fnd_lobs parallel compress as select * from [email protected]
ERROR at line 1:
ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
too small
ORA-02063: preceding line from EEXIT2TEST
ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
too small
ORA-02063: preceding line from EEXIT2TEST
ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
too small
ORA-02063: preceding line from EEXIT2TEST
ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
too small
Regards,
Bhatiahi
what are the apps version local and remote database???
Snapshot too old errors occur because Oracle can 't reconstruct a consistent
image of a block for the purposes of a consistent read.
I feel at remote database, you are using UNDO, it will be rather easy to iincrease the undo retention time or increase the undo tablespace size.. if you are dealing with roll back segments, you may have rollback segments whose optimal values are too small...
increase roll back segments size and select again then
the following metalink notes might be helpful
ORA-01555 "Snapshot too old" - Detailed Explanation Doc ID: 40689.1
How To Avoid ORA-01555: Snapshot Too Old When Running PAAPIMP Doc ID: 603259.1
OERR: ORA 1555 "snapshot too old (rollback segment too small)" Doc ID: 18954.1 -
Copying a table from one databse to another
Hi,
I used the following code to copy a table from one database to another.
set copycommit 1
set arraysize 1000
copy from username/passwd@tnsname -
create <tablename> -
using -
select * from <tablename>
But I get the following error:
set copycommit 1
ERROR at line 1:
ORA-00922: missing or invalid option
Could you please let me know how this can be done.
Thanks,
NarasimhanThanks for your suggestions.I created a database link.I had no problems.
Then when i issue the command
copy from uname/password@db
create <tablename>
using
select * from <tablename>
<Here db is database link to source database identified by uname and password>.
I still get the error
copy from uname/password@db
ERROR at line 1:
ORA-00900: invalid SQL statement
Does it mean that the command is wrong?Or I'm doing something different.
Thanks! -
Cutting and pasting tables from one project to another
When cutting and pasting existing tables from one project to
another, the line weights for the cell borders seem to vary at
random - some are the original line weight and some are heavier
when pasted.
I've tried sorting things out with the table properties
dialogue, but to no effect.
Is there a quick fix, or am I better importing in whole
topics and then editing the imported topic?Hi Colum/Peter,
It's not a custom table, I just need to copy an existing
table from one project to another.
My blasted developers (may the fleas of a thousand camels,
etc), just decided to change the toolbars in one of our
applications. As this toolbar appears in slightly different guises
in about 6 tabs, I was trying to update the table that shows what
icon does what and cut and paste that table into all the sub
projects I have. Each table then only needs a minor edit for a few
icons specific to that sub-project.
Peter's on the right track. When I cut and pasted the table
it also pasted in a number of lines of HTML associated with the
styles in the other project. If I delete those lines, the table
then appears as it should.
Thanks for prompt response -
Moving table from one tablespace to another
Hi,
I want to move several tables from one tablespace to another as I know I need to rebuild indexes(as indexes are invalid after this) what I want to know is that constraints needs to recreate again after table movement, Thanks.what I want to know is that constraints needs to recreate again after table movementNo you don't need do that.
-
Passing internal table from one program to other without using IMPORT
Hi Experts,
I need to pass an internal table from one program to other. However i cannot use IMPORT/EXPORT due to some reason. Any idea how this can be done?
Warm regards,
Harshad.hi,
for passing itab from one program to another u can use
IN FIRST PROGRAM WRITE ,
perform pass_data(SECOND_PROGRAM_NAME) using ITAB.
in both the program declare itab with same structure.
if u want to do some changes in that itab and if u want it back in first program then write as
perform pass_data(SECOND_PROGRAM_NAME) using ITAB changing itab. -
How to Import/Export database tables from one server to other in oracle8i
Hello friend,
Please can any one tell me how to import/export groups of database tables from one server with oracle to another using VB.net. It would be nice if some one can provide some code of it.
I am a software developer and I am in middle of a large project development, in which I need to export a large oracle database from one server to another efficiently.
Its very urgent so please someone help me.At command prompt (source db)
set ORACLE_SID=db_name
exp system/password@db_name full=y buffer=104857600 file=(c:\file1.dmp, c:\file2.dmp....) log=c:\exp.log filesize=2000M
Then ftp the export dump files (in binary) to the other server or copy to target server over the network.
At command prompt (target db)
set ORACLE_SID=db_name
imp system/password@db_name full=y ignore=y buffer=104857600 file=(c:\file1.dmp, c:\file2.dmp....) log=c:\imp.log filesize=2000M
If the path names of the datafiles are going to be different in the target server (as compared to the source), then precreate the tablespaces before import. Set buffer value accordingly.
Message was edited by:
FeNiCrC_Neil -
How to copy a physical Alias table from one rpd to another
Hi
I am copy pasting the physical tables from one rpd to another. I first copied the physical table and then tried to copy the alias table i get the message ' Unknown Error' when i click ok it says
'Failed to copy from clip board"Identify the "class=MyStyle" string in the MTML code, and use the Multi-File Find and Replace feature to step through each topic and change the specific instances to "class=MyOtherStyle." (I doubt that you'll want to "Replace All".)
Sorry, there's no silver bullet!
Good luck,
Leon -
To copy table from one database to another
hai,
I will be really pleased if someone can me tell me that how can i copy table from one database to another. I am having two databases.
GursimranYou can Also do
++ Create a database link on the TARGET to SOURCE
CREATE PUBLIC DATABASE LINK <<DBLNK_NAME>> CONNECT TO <<USER>> IDENTIFIED BY <<PASSOWORD>> USING '<<TNS_NAME>>';
++ And copy as below
CREATE TABLE EMP AS SELECT * FROM EMP@DBLNK_NAME;
Maybe you are looking for
-
Getting an error while deploying war file on Weblogic Server Admin Console
I am getting following error -- Unexpected Exception An unexpected exception has occurred processing your request Message: Stack Trace: java.lang.NullPointerException at com.bea.console.actions.app.install.Flow.uploadApp(Flow.java:256) at sun.reflect
-
If you highlight certain items in the trash and then go to "empty trash" will only the highlighted items be deleted or everything? My problem is several items I can't afford to loose were incorrectly put in the trash. Unfortunately there isn't enough
-
Paper jams in HP Photosmart 5520 e-all-in-one
Why do I keep getting paper jams in HP Photosmart 5520 e-all-in-one? It won't even take in the paper without jamming.
-
Please help, i lost all my photos off my old computer and now can't transfer from my ipod to my new laptop the ones i have?
-
Please help me to figure out how to clean up my HD. When I run the disk utility I get the following view: As you can se 467.79 GB are in the "Other" section, but I cannot find a way to get to that and clean it up, please anyone out there How can I cl