Putting data to R3 table
Hi,
I am trying to put data to R3 table while putting data to r3 table i should get a error message if the same name is already exist. If not it should Enter.
At present i have done all the things. But while inserting data i am getting java.lang.NullPointerException
wht might be the reason.
I have written code like this.
try{
String str1=wdContext.currentBapi_Fm_Sw_InputElement().getStname();
String str2=wdContext.currentBapi_Fm_Sw_InputElement().getStnumb();
Bapi_Fm_Sw_Input input=new Bapi_Fm_Sw_Input();
input.setStname(str1);
input.setStnumb(str2);
wdContext.currentBapi_Fm_Sw_InputElement().modelObject().execute();
String ch=wdContext.currentOutputElement().getDup();
wdComponentAPI.getMessageManager().reportSuccess(ch);
if((Integer.parseInt(ch))==1)
wdComponentAPI.getMessageManager().reportSuccess("duplicate");
else
wdComponentAPI.getMessageManager().reportSuccess("Inserted a row");
}catch(Exception e)
wdComponentAPI.getMessageManager().reportSuccess((e.getCause()).toString());
Here Dup is the value which get will be zero if it doesn't have duplicate row.
else it will be one if it has the duplicate value.
Regards,
H.V.Swathi
Hi,
try{
String str1=wdContext.currentBapi_Fm_Sw_InputElement().getStname();
String str2=wdContext.currentBapi_Fm_Sw_InputElement().getStnumb();
Bapi_Fm_Sw_Input input=new Bapi_Fm_Sw_Input();
input.setStname(str1);
input.setStnumb(str2);
wdContext.nodeBapi_Fm_Sw_Input().bind(input);
wdContext.currentBapi_Fm_Sw_InputElement().modelObject().execute();
wdComponentAPI.getMessageManager().reportSuccess("duplicate1");
String ch=wdContext.currentOutputElement().getDup();
wdComponentAPI.getMessageManager().reportSuccess(ch.toString());
wdComponentAPI.getMessageManager().reportSuccess("duplicate2"+ch);
if(ch.equals("y"))
wdComponentAPI.getMessageManager().reportSuccess("duplicate");
else if(ch.equals("N"))
wdComponentAPI.getMessageManager().reportSuccess("Inserted a row");
}catch(Exception e)
wdComponentAPI.getMessageManager().reportSuccess(e.toString());
I did what ever u told but now i am getting this error .
duplicate1
java.lang.ArrayIndexOutOfBoundsException: -1
Can u tell the solution plz.
Regards,
H.V.Swathi
Similar Messages
-
Single form that puts data into 5 tables
Hi,
I'm new to ApEx, I want to create a name and address form, that puts data into 5 tables at once, all on the same form.
Is this possible with ApEx looking at the tables?
or do I need to create a database procedure and point ApEx at that?
I have a couple of books, but I can't find an example that does what I want to do.
A URL to another resource would be a great help.
Regards
MichaelHi,
I can't remember the exact reason,
It was something to do with there being a many to one to many join in the tables in the view.
[table] > [link table] < [table]
then there isn't a parent child relationship in either direction.
I think that the other problem in webdb was the view was updated using a 'like' command
This was not good as the primary key is a number.
Since we are probably migrating to ApEx, and a procedure already exists to perform this functionality, I'll give that a try.
Regards
Michael -
How to put data in the table for Absence Quotas.
Hello Gurus,
How to configure in the table (V_556A_B)Absence Quota for increase in SicK Leave and Priviledge Leave.
Kindly provide me with steps.hi.
please specify whether you are using time evaluation or time management quota generation based on which information can be provided. please do eloberate the query.
madhu -
How to put data into a RFC import parameter structure from portal
Hi, All,
I have a RFC in which an import parameter is a structure (not a table). I want to put data into that structure. I know how to put data into a table or a string. I tried to use
IRecordSet MyTABStr = (IRecordSet)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
MyTABStr.setString("FIELD1", value1);
MyTABStr.setString("FIELD2", value2);
importParams.put("MYTABSTR",MyTABStr);
But it works for table not structure. Is there anybody know how to do that?
Thanks in advance!
MeiyingHi,
You can try the following code -
IRecord structure = (IRecord)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
structure.setString("FIELD1", value1);
structure.setString("FIELD2", value2);
importParams.put("MYTABSTR",structure);
Regards,
Sudip -
Extract the data in a view and put them into a table
Hi, all
I am a new beginer in Oracle. Recently I have a project with 70,000 records in the database. I made a view so that I can combine the tables and extract the columns I need. However making the view took me a lot of time, thus I want to put those data into a table so that I don't have to creat the view everytime to decrease the performance. Can you help me?
Thanks!!
joeyYou don't need to recreate the view, you can just:
SQL> SELECT * FROM view_name;
However, if you want to create a table that has the same columns as the view and insert the rows from the view, you can:
SQL> CREATE TABLE table_name AS SELECT * FROM view_name;
null -
Want to Read the a txt file and put the data into the table colums.
I have a text file in which data is piped separated and I want to put the data in the table column.
Eg.
Text File Column
First_name|Last_name|address|phone_number
Database table:
first_name ,last_name,address,phone_number
It's very urgent.
Thanks For your help in advance.
HimanshuUse sqlldr or external file.
See http://download.oracle.com/docs/cd/E11882_01/server.112/e10701/part_ldr.htm#i436326 for SQL Loader.
See http://download.oracle.com/docs/cd/E11882_01/server.112/e10595/tables013.htm#ADMIN11705 for External table. -
How and put data frrom DB into JFrame.tables ?
hello,
I tried to get rows from a DB into a table. Therefore I created a class(A) with a function(a1) throws SQLException. Connect and select rows from the DB runs perfectly. Now I want to put this data into a table. I created another class(B) extends JFrame with an inner class(icB1) extends AbstractTableModel. From here I tried call A.a1 to get the rows but
1. the return type should be StringArray, how should i declare a function returning type stringarray and
2. I tried to put the data into a String, so that the return value is String(Iwould try sort the data after returning values) like
" icB1 extends AbstractTableModel { A.a1(); }" then i get the error msg: "java.sql.SQLException; must caught or declared to be thrown". Then i tried with this: " try { statement } catch { statement }" but it also doesnt func .. So how put I data from a DB into a table ? the main idea is to show and manage DB tables from the web. Many Thanks
regards erkanHi Erkan
Here's parts of a simple tutorial style app that shows how to easily get data from a DB into a table. Note that the code is incomplete and may have typos.
public class SQLHandler {
public List getData(String sql, List headers) {
List result = new ArrayList();
ResultSet rs = connection.executeQuery(sql);
// Get column details
ResultSetMetaData rsmd = rs.getMetaData();
int columns = rsmd.getColumnCount();
for (int i=0;i<columns;i++) {
headers.add(rsmd.getColumnLabel(i+1));
while(rs.next()) {
Object array = new Object[columns];
for(int i=0;i<columns;i++) {
array[i] = rs.getObject(i+1);
list.add(array):
return result;
public class SQLDataTableModel implements AbstractTableModel {
private List data;
private List headers = new ArrayList();
public SQLDataTableModel(String sql) {
data = sqlHandler.getData(sql,headers);
// abstract methods
public int getRowCount() {
return list.size();
public int getColumnCount() {
return headers.size();
public Object getValueAt(int row, int column) {
Object[] array = data.get(row);
return array[column];
// Create JTable and assign a model
JTable table = new JTable();
table.setModel( new SQLDataTableModel("select * from table")):cheers
Dave -
How to put data in tables in SAP LogOn
For example,i'm doing company benefits,branching this aspect is Medical leave,taxi fees claims and company insurance,how do i put it inside the tables in SAP LogOn?please help me,thanks=)
Hi,
Go to SE16 and enter your table name and click on icon in toolbar to create new entries, there you can add more table contents in your table.
Regards,
Deepti -
How can I insert data in different table dynamically?
I have one requirement ,In these I have transaction table in which payLoad contain data like employee record,PO record,SO record in XML format.Now I have transfer the data from transaction table to particular table(Emp,SO,PO) dynamical ? how can I do it.. Give me your suggestion guys?? Thanks in Advance
Hello,
Still no luck.I am surely doing silly mistakes.Anyway,Here are my workings-
1> student_mst (id(pk),studentname) and student_guard_mst(id(fk),guardianname)
2> created EO from both of the tables,made id in both EO as DBSequence and an association was also generated.
3> i made that association composite by clicking the checkbox
4> i created 2 VO from 2 EO.
5> put those VO in Application Module.
6> dragged and dropped 2 VO on my jspx page and dropped them as ADF Form.
Now what to do please? -
Loading data from one table to another table
I need to load the data (data conversion) from one table to 3 different table.
I have to load the data from Source table to following 3 target tables.
So Consumer table has email pk and it has relationship with CONSUMER_RCV table and CONSUMER_RCV
table has relationship with CONSUMER_ATTR table. I am doing right now with pl/sql but I am looking
to use MULTI INSERT or SQL*LOADER or another efficient way.
I tried with MultiInsert but it getting failed as it's violating Unique Constraints as source table might contains
Duplicate emails.
Could you please show me how I can load the data efficiently?
Also I need to load in CONSUMER_ATTR table from CONTACT table which has ATTR1, ATTR2 columns.
so My mapping will be ...
Contact.email, first_name, last_name will go into Consumer table
then in CONSUMER_RCV, I generate the id column value by sequence, load email and DATE_CREATEd from contact table
And rest of the value is hard coded
Then in CONSUMER_ATTR table I will generate the CONSUMER_ATTR_id through sequence, for ID, will use the same
id column value which I have generated by sequence in CONSUMER_RCV, then put the attr_type = 'ATTR1' and for
attr_value column I will insert the value from contact table's ATTR1 value,
Then generate another CONSUMER_ATTR_ID, will use the same id column value which I have generated by sequence
in CONSUMER_RCV, then put the attr_type = 'ATTR2' and for
attr_value column I will insert the value from contact table's ATTR2 value,
Please let me know if you need further explanation.
I am using Oracle 9i R2.
Please consider CONTACT is Source table, CONSUMER is a Target1, CONSUMER_RCV is a Target2 and CONSUMER_ATTR is a Target3
to simplify the problem.
Following is the Table structure
=========================
CREATE TABLE CONTACT (
ID VARCHAR2 (40) NOT NULL, -- will go into Target1
EMAIL VARCHAR2 (100) , -- might be duplicate and will go into Target1 and Target2
FIRST_NAME VARCHAR2 (100) NOT NULL, -- will go into Target1
LAST_NAME VARCHAR2 (100) NOT NULL, -- will go into Target1
COUNTRY VARCHAR2 (40) NOT NULL, -- will go into Target1
PHONE VARCHAR2 (100), -- will go into Target1
NOTIFY VARCHAR2 (3), -- will go into Target2 table's RECEIVE_EMAIL column
CREATE_DATE DATE , -- will go into Target1 and target2
ATTR1 VARCHAR2 (400), -- will go into Target3 as attr_type= ATTR1 and will load actual value in ATTR_VALUE
ATTR2 VARCHAR2(100), -- will go into Target3 as attr_type= ATTR2 and will load actual value in ATTR_VALUE
ATTR2 VARCHAR2(100), -- will go into Target3 as attr_type= ATTR1 and will load actual value in ATTR_VALUE
CONSTRAINT CONTACT_PK
PRIMARY KEY ( USER_ID ) ) ;
CREATE TABLE CONSUMER(
EMAIL VARCHAR2 (100) NOT NULL, -- PK
TITLE VARCHAR2 (40),
FIRST_NAME VARCHAR2 (40),
LAST_NAME VARCHAR2 (40),
ADDRESS1 VARCHAR2 (40),
ADDRESS2 VARCHAR2 (40),
CITY VARCHAR2 (30),
STATE VARCHAR2 (30),
ZIP VARCHAR2 (10),
COUNTRY VARCHAR2 (40),
PHONE VARCHAR2 (15),
DATE_CREATED DATE NOT NULL,
CONSTRAINT CONSUMER_PK
PRIMARY KEY ( EMAIL ) ) ;
CREATE TABLE CONSUMER_RCV (
ID VARCHAR2 (40) NOT NULL,-- PK
EMAIL VARCHAR2 (100) NOT NULL,-- FK reference to Consumer
SITE VARCHAR2 (100) NOT NULL, -- default website
RECEIVE_EMAIL VARCHAR2 (1),
CREATE_DATE DATE NOT NULL,
CONSTRAINT CONSUMER_RCV_PK
PRIMARY KEY (ID) ) ;
ALTER TABLE CONSUMER_RCV ADD CONSTRAINT CONSUMER_RCV_FK
FOREIGN KEY (EMAIL)
REFERENCES CONSUMER (EMAIL) ;
CREATE TABLE CONSUMER_ATTR (
CONSUMER_ATTR_ID VARCHAR2 (40) NOT NULL, -- PK
ID VARCHAR2 (40) NOT NULL, -- FK reference to COnsumer_RCV
ATTR_TYPE VARCHAR2 (100) NOT NULL,
ATTR_VALUE VARCHAR2 (4000) NOT NULL,
CONSTRAINT CONSUMER_ATTR_PK
PRIMARY KEY ( CONSUMER_ATTR_ID ) ) ;
ALTER TABLE CONSUMER_ATTR ADD CONSTRAINT CONSUMER_ATTR_FK
FOREIGN KEY (CONSUMER_ATTR_ID)
REFERENCES CONSUMER_RCV (ID) ;HI Hema,
How are the entries related.. is it like for one entry in y table there are more than one entry in x table then you have to use loop with in loop , here are the both the conditions.
1) For each entry in Y there are more than one entries in X
sort y by quota trpid.
sort x by quota trpid.
loop at y.
loop at x where quota eq y-quota
and trpid eq y-trpid.
z-value = x-value.
append z.
endloop.
endloop.
2) For each y there is one entry in x table.
sort y by quota trpid.
sort x by quota trpid.
loop at y.
read table x with key quota = y-quota
trpid = y-trpid binary search.
if sy-subrc eq 0.
z-value = x-value.
append z.
Endif.
endloop.
Mahesh -
Inserting data from one table to another in different format
Hello,
I would like to know what I am doing wrong with the following code when I write a data from one another to another table in a different format. I am now learning PL/SQL and am using this as
a test problem.
I have a table called students which has the following columns:
SQL> desc student
Name Null? Type
----------- ----------------STUDENT_ID NUMBER(10)
COURSE VARCHAR2(10)
CREDITS NUMBER(10)
I have created another table called new_student which has the following structure:
SQL> desc new_student
Name Null? Type
----------------------------------------- -------- ------------- STUDENT_ID NUMBER(10)
COURSE VARCHAR2(30)
CREDITS VARCHAR2(10)
The data in the student table is:
SQL> select * from student;
STUDENT_ID COURSE CREDITS
1 Science 4
1 History 3
2 Science 4
2 History 3
2 Math 4
3 Sociology 3
3 Psycology 3
I want to store the STUDENT table data in NEW_STUDENT table as:
STUDENT ID COURSES CREDITS
1 Science/History 4/3
2 Science/History/Math 4/3/4
3 Sociology/Psycology 3/3
This is my code:
DECLARE
-- Get all the student IDs
CURSOR studentlist_cursor IS select distinct student_id from student ORDER BY student_id;
-- Get the information for each student ID
CURSOR courses_cursor(nstudentid number) is select course, credits from student where student_id=nstudentid;
nIndex INTEGER;
pltcourses DBMS_SQL.VARCHAR2_TABLE;
pltcredits DBMS_SQL.NUMBER_TABLE;
newcourses varchar2(50);
newcredits varchar2(10);
BEGIN
FOR student_rec IN studentlist_cursor
LOOP
nIndex:=0;
-- Loop through each student ID from student_rec to get the
--courses and creditsstudent ID
FOR courses_rec in courses_cursor(student_rec.student_id)
LOOP
nIndex:=nIndex+1;
pltcourses(nIndex):=courses_rec.course;
-- Store the course data for each student ID in newcourses
-- while doing so check if it is null or put a '/' between each course
loop
if newcourses is null then
newcourses:=pltcourses(nIndex);
else
newcourses:=newcourses||'/'||pltcourses(nIndex);
end if;
end loop;
pltcredits(nIndex):=courses_rec.credits;
--Store credits data in variable newcredits
--If the newcredits is not null then put a '/' between each credits
loop
if newcredits is null then
newcredits:=pltcredits(nIndex);
else
newcredits:=newcredits||'/'||pltcredits(nIndex);
end if;
end loop;
-- Insert student id, newcourses, newcredits into NEW_STUDENT
INSERT INTO NEW_STUDENT
(student_id ,
course,
credits
) VALUES
(student_rec.student_id,
newcourses,
newcredits
COMMIT;
-- come out of the student id record and go to the next student --id record
END LOOP;
-- come out of the loop
END LOOP;
END;
While doing so I get an error message:
declare
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at line 23.
The error is at the line:
newcourses:=newcourses||'/'||pltcourses(nIndex);
Can anyone help me by pointing out where the mistake is?
Thank you for reading this long mail.
Thank you.
Rama.Hi dude
there is lot of error in ur pl/sql.
and u have created table new_student with columns
student_id number(10),
courses varchar2(30),
credits number(10).
first u need to modify ur table.
student_id number(10),
courses varchar2(30),
credits varchar2(10).
Now i am writing whole pl/sql block for u. it will work fine.
DECLARE
CURSOR studentlist_cursor IS select distinct student_id from student ORDER BY student_id;
CURSOR courses_cursor(nstudentid number) is select course, credits from student
where student_id = nstudentid;
nIndex INTEGER;
pltcourses DBMS_SQL.VARCHAR2_TABLE;
pltcredits DBMS_SQL.NUMBER_TABLE;
newcourses varchar2(50);
newcredits varchar2(10);
BEGIN
FOR student_rec IN studentlist_cursor
LOOP
nIndex:=0;
newcourses := null;
newcredits := null;
FOR courses_rec in courses_cursor(student_rec.student_id)
LOOP
nIndex:=nIndex+1;
pltcourses(nIndex):=courses_rec.course;
if newcourses is null then
newcourses:=pltcourses(nIndex);
else
newcourses:=newcourses||'/'||pltcourses(nIndex);
end if;
pltcredits(nIndex):=courses_rec.credits;
if newcredits is null then
newcredits:=pltcredits(nIndex);
else
newcredits:=newcredits||'/'||pltcredits(nIndex);
end if;
end loop;
INSERT INTO NEW_STUDENT
(student_id,
course) VALUES
(student_rec.student_id,
newcourses);
END LOOP;
END;
and please revert back
Regards
Anil -
Copying data from one table to another, but not duplicate
Good afternoon!
I am new to Oracle SQL, I have a difficulty.
I have a script that copies or add another table with data from another table.
If the table already has 01 "Registry 01" when you make a copy of the data in table 02, can not duplicate the "Registry 01" again.
As the table already exists since the beginning of the year before last and duplicate information, I can not apply the UNIQUE constraint because of the error. I have to make this change from now.
How to perform this validation so that no duplicate data?
DECLARE
w_cont NUMBER;
CURSOR c_simpro IS
SELECT sc.cd_simpro,
sc.ds_produto,
sp.qt_embalagem,
MAX(sp.dt_vigencia)
FROM simpro_cadastro sc,
simpro_preco sp
WHERE sc.cd_simpro = sp.cd_simpro
GROUP BY sc.cd_simpro,
sc.ds_produto,
sp.qt_embalagem;
BEGIN
FOR r_simpro IN c_simpro LOOP
w_cont := 0;
SELECT COUNT(1)
INTO w_cont
FROM pls_material pm
WHERE pm.cd_material_ops = r_simpro.cd_simpro;
IF w_cont = 0 THEN
INSERT INTO pls_material(nr_sequencia,
dt_atualizacao,
nm_usuario,
dt_atualizacao_nrec,
nm_usuario_nrec,
ie_tipo_despesa,
cd_estabelecimento,
nr_seq_estrut_mat,
cd_simpro,
ds_material,
ie_situacao,
ds_material_sem_acento,
dt_inclusao,
cd_material_ops_orig,
cd_unidade_medida,
cd_material_ops,
qt_conversao_simpro)
VALUES(pls_material_seq.nextval,
SYSDATE,
'ES-SIMPRO',
SYSDATE,
'ES-SIMPRO',
3,
1,
3,
r_simpro.cd_simpro,
r_simpro.ds_PRODUTO,
'A',
r_simpro.ds_PRODUTO,
SYSDATE,
r_simpro.cd_simpro,
'un',
TRIM(to_char(r_simpro.cd_simpro,'0000099999')),
r_simpro.qt_embalagem);
COMMIT;
END IF;
IF w_cont > 0 THEN
UPDATE pls_material p
SET p.qt_conversao_simpro = r_simpro.qt_embalagem,
p.dt_atualizacao = SYSDATE
WHERE p.cd_simpro = r_simpro.cd_simpro;
COMMIT;
END IF;
END LOOP;
END;
Edited by: 983464 on 22/01/2013 10:30Hi,
in addition to what Marwin has already said, I suggest you to post CREATE TABLE and INSERT statements (as mentioned in the FAQ).
The error you are getting from MERGE command is because you need a way to uniquely identify within the table. So it's is important to know also if your table has a primary key/unique index so the keys could to be used in the MERGE command.
Additionally when you put some code or output please enclose it between two lines starting with {noformat}{noformat}
i.e.:
{noformat}{noformat}
SELECT ...
{noformat}{noformat}
Regards.
Al -
How to get the data from one table and insert into another table
Hi,
We have requirement to build OA page with the data needs to be populated from one table and on save data into another table.
For the above requirement what the best way to implement in OAF.
I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
ThanksYou can achieve this in many different ways, one is
1. Create another VO based on the EO which is based on the dest table.
2. At save, copy the contents of the source VO into the dest VO (see copy routine in dev guide).
3. commiting the transaction will push the data into the dest table on which the dest VO is based.
I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
if by table you mean a DB table, then no, you can have a VO based on multiple EOs which will do DMLs accordingly.Thanks
Tapash -
How to input data into a table with columns?
I am trying to input data into a table. My table have 5 columns and an unlimited amount of rows. I created a program in LabView that enters the data into the table but it enters all of the data in one row. I would like to enter the first set of information into the first column, the second set of info into the second column and so on. I am including a copy of the program that I am working with. I would like the number of runs to be put into the first column (it should count down like number 5 in first row, number 4 in second row, number 3 in third row, and so on). I would like the applied voltage to be placed in the second column, and so on. Any help or information will be greatly appreciated. I am working with LabView Version 6.1 and 8.0. I am submitting the vi from 6.1.
Attachments:
FJ-PROGRAM.vi 68 KBPondered,
I looked at your code and I think you might be making things too complicated. I've included a very simple example that demonstrates how to write a 2D array of integers to a table. Hope you find this helpful. It is in LV 7.1.
Chris C
Chris Cilino
National Instruments
LabVIEW Product Marketing Manager
Certified LabVIEW Architect
Attachments:
rows - columns.vi 17 KB -
Regarding fetching data into internal table from D.B Tables, D.B View
Hi All,
I Have following 5 tables in my Database.
LTAP
TABNAME
FIELDNAME
KEYFLAG
LTAP
MANDT
X
LTAP
LGNUM
X
LTAP
TANUM
X
LTAP
TAPOS
X
LTAP
VLPLA
Z0MNH
TABNAME
FIELDNAME
KEYFLAG
Z0MNH
MANDT
X
Z0MNH
WERKS
X
Z0MNH
ZMANNO
X
Z0MNH
LGNUM
X
Z0MNH
AENAM
Z0MNH
BUDAT
Z0MNH
CPUTM
Z0MNH
LAEDA
Z0MNH
STATUS
Z0MNH
USNAM
Z0MNH
ZARDAT
Z0MNH
ZARTIM
Z0MNH
ZCLDAT
Z0MNH
ZCLTIM
Z0MNH
ZDPDAT
Z0MNH
ZDPTIM
Z0MNH
ZDRIVR
Z0MNH
ZINDAT
Z0MNH
ZINTIM
Z0MNH
ZLOAD
Z0MNH
ZNOTES
Z0MNH
ZPRDAT
Z0MNH
ZPRTIM
Z0MNH
ZSUPR
Z0MNH
ZTRAILR
Z3MANBOXIDHDR
TABNAME
FIELDNAME
KEYFLAG
Z3MANBOXIDHDR
MANDT
X
Z3MANBOXIDHDR
WERKS
X
Z3MANBOXIDHDR
ZMANNO
X
Z3MANBOXIDHDR
EXIDV
X
Z3MANBOXIDHDR
NLPLA
Z3MANBOXIDHDR
NLTYP
Z3MANBOXIDHDR
VLTYP
Z3MANBOXIDHDR
Z0PAL
Z3MANBOXIDHDR
Z3COMENT
Z3MANBOXIDHDR
Z3RECPT_FLAG
Z3MANBOXIDITM
TABNAME
FIELDNAME
KEYFLAG
Z3MANBOXIDITM
MANDT
X
Z3MANBOXIDITM
WERKS
X
Z3MANBOXIDITM
ZMANNO
X
Z3MANBOXIDITM
EXIDV
X
Z3MANBOXIDITM
ITEM_NO
Z3MANBOXIDITM
MATNR
Z3MANBOXIDITM
VEMEH
Z3MANBOXIDITM
VEMNG
Z3MANBOXIDITM
Z_CARTON
Z3MANBOXIDSERIAL
TABNAME
FIELDNAME
KEYFLAG
Z3MANBOXIDSERIAL
MANDT
X
Z3MANBOXIDSERIAL
WERKS
X
Z3MANBOXIDSERIAL
EXIDV
X
Z3MANBOXIDSERIAL
ZMANNO
X
Z3MANBOXIDSERIAL
ITEM_NO
Z3MANBOXIDSERIAL
SERNR
Based on all the above tables i need to fill in below internal table field as given below:
<b>Internal Table I_TAB
ZMANNO
LGNUM
WERKS
EXIDV
ITEM_NO
MATNR
SERNR
VEMNG
VEMEH
VLTYP
NLTYP
VLPLA
NLPLA
ZLOAD
USNAM
STATUS
BUDAT
CPUTM
ZINDAT
ZINTIM
ZARDAT
ZARTIM
ZCLDAT
ZCLTIM</b>
Extract data from Manifest header <b>Z0MNH, Z3MANBOXIDHDR,
Z3MANBOXIDITM, Z3MANBOXIDSER and LTAP</b> tables based on selection parameter.
Selection Screen will have folowing Select-option fields-
<b>LGNUM
WERKS
ZMANNO
USNAM
ZLOAD
EXIDV
MATNR
SERNR
VLTYP
NLTYP
VLPLA
NLPLA
BUDAT
ZINDAT
ZARDAT
ZCLDAT</b>
Based on above selection criteria i need to fetch above internal table fields data.
Then need to Move corresponding header and item data in ITAB_RESULT internal table.
I need to fetch above fields based on above 5 tables and put in final Internal Table.
Can anybody tell me the logic how can i write the same.
Also can anybody tell me i am trying to create a DataBaseView for
Z0MNH, Z3MANBOXIDHDR, Z3MANBOXIDITM, Z3MANBOXIDSERIAL and LTAP tables.
<b>Note:
1. Z3MANBOXIDITM table may contain multiple material[MATNR] for same box-id[EXIDV] (with another line item).
2. Z3MANBOXIDSERIAL table may contain multiple record for one box id[EXIDV]+item_no[ITEM_NO].</b>
But what are the <b>TABLE/JOIN Conditions</b> i need to write while creating <b>DB View</b> for above <b>5</b> tables.
Can anybody solve above 2 issues!
Thanks in advance.
Thanks,
Deep.Hi Deep,
While creation of DB view just make sure abt the key relation between the tables. Based on that u can join the tables...First fetch the data from header table then by using for all entries u can fetch the line items data.
Hope this helps you. Reply for queries, shall post the updates.
Regards.
Kumar.
Maybe you are looking for
-
How many users can you have on time capsule
How do I configure Time capsule so that I can use 2 macbook to safty copy (Time machine). Hans
-
Hi , I am trying to pass select-options values from my ABAP editor to Class metod. its giving error like *The IN operator with "S_KUNNR" is followed neither by an internal table *. I am not getting how to pass ranges values to method. Get_data is
-
Downloading iTunes extras (Error -50)
I've been trying for the last week to download the iTunes extras for one of the movies I recently bought. every time I try to download it, it stops and gives me error -50. what does this mean? How can I fix it? I'm currently in Costa Rica so I can't
-
Problem during Importing of FA master data
Hi, using SBO v8.8 PL:10, Importing FA Master data does not continue, w/ error number -2147467259. here is the error log.: 2011-01-04 16:00:45.678 0 BA ER CBFResourceLoader::GetChildNode <dbdataso
-
Error (access denied) when starting Client Runtime Audit Browser
LS, After starting the OC4J instance, I try to start the Client Runtime Audit Browser. For a brief moment I see a DOS-box, then an IE-page appears saying the following: ====================================================== ERROR The requested URL co