API for insert Lead into telesales
How can Insert lead for customer using API in Telesales
Hi,
Currently, I believe there are no api's to populate the pa_transaction_control table.
If this is a new implementation and you are converting the projects from your legacy system for the first time, you should be able to directly insert date into these tables. This table does not have many FK relationships. Mainly depending on the transaction control is set at the Project or the Task level, you can set the values for Project id /Task id.
I would also suggest that you confirm with Oracle by creating a Tar that there is no API currently available.
- Vasu -
Similar Messages
-
Inserting Leads into a Text File?
Hello there, I am wondering if there is a way to insert leads
into a .txt file once a form is submitted?
If so how would this be achieved. I know you can do this with
PHP as I have done it before.
Thanks
Derek Bess> insert leads into a .txt file
There are plenty of file tags and functions available. But
what do you mean by "leads"?
http://livedocs.adobe.com/coldfusion/8/htmldocs/functions-pt0_20.html#1100017 -
Which trigger to use for insert data into db table in Forms
Hi,
My form is current having a database block with table reference. When enter data into form field and click on save button. Automatically the record is inserted into database table.
I want to make this as manual insert. I changed the data block to a non-database. Where should i write the insert statement in order to insert data into table.
Is it Key-commit trigger at form level?
Please advise.
Thanks,
Yuvaraaj.Hi Yuvaraaj.
Insert should happen when we click on the save which is inbuilt in the form. In this case where should i write the insert statement.Forms in built save commit's the form data where block is based on database not non database.
@2nd reply
Ypu are right. The reason i chnaged the database block to non-database is Currently i have a database block with form field canvas which insert only 1 record in to >table when we click on standard save button. The requirement was to add a field called CHANNEL which should have multiple values displayed. (i created this channel >field in a seperate datablock (non database) and used the same canvas.) When we insert data in all fields (single record) and channel we should be able to selected >multiple channel (say A,B and C) when we click on save then 3 records should be inserted in to the table which looping values for each channel. This was the actual >requirement and this is the reason why iam changing the block to non-database block.You are talking about two blocks.. 1. Master block and 2. Details block name channel
You are inserting one record in master block then insert 3 record name A,B,C for that master record.
Now you want master record should insert to each A,B,C record. Means
'how are you' --master record
and you want
'A'- 'how are you'
'B'- 'how are you'
'C'- 'how are you'OR
?Ok. If you want master record save in database and then want to save non-database(channel) data into database USE Post-Insert trigger at block level and do the rest.
Hope this helps...
Hamid
Mark correct/helpful to help others to get right answer(s).*
Edited by: HamidHelal on Jan 26, 2013 1:20 AM -
Query for inserting data into table and incrementing the PK.. pls help
I have one table dd_prohibited_country. prohibit_country_key is the primary key column.
I have to insert data into dd_prohibited_country based on records already present.
The scenario I should follow is:
For Level_id 'EA' and prohibited_level_id 'EA' I should retreive the
max(prohibit_country_key) and starting from the maximum number again I have to insert them
into dd_prohibited_country. While inserting I have to increment the prohibit_country_key and
shall replace the values of level_id and prohibited_level_id.
(If 'EA' occurs, I have to replace with 'EUR')
For Instance,
If there are 15 records in dd_prohibited_country with Level_id 'EA' and prohibited_level_id 'EA', then
I have to insert these 15 records starting with prohibit_country_key 16 (Afetr 15 I should start inserting with number 16)
I have written the following query for this:
insert into dd_prohibited_country
select
a.pkey,
b.levelid,
b.ieflag,
b.plevelid
from
(select
max(prohibit_country_key) pkey
from
dd_prohibited_country) a,
(select
prohibit_country_key pkey,
replace(level_id,'EA','EUR') levelid,
level_id_flg as ieflag,
replace(prohibited_level_id,'EA','EUR') plevelid
from
dd_prohibited_country
where
level_id = 'EA' or prohibited_level_id = 'EA') b
My problem here is, I am always getting a.pkey as 15, because I am not incrementing it.
I tried incrementing it also, but I am unable to acheive it.
Can anyone please hepl me in writing this query.
Thanks in advance
Regards
RaghuBecause you are not incrementing your pkey. Try like this.
insert
into dd_prohibited_country
select a.pkey+b.pkey,
b.levelid,
b.ieflag,
b.plevelid
from (select max(prohibit_country_key) pkey
from dd_prohibited_country) a,
(select row_number() over (order by prohibit_country_key) pkey,
replace(level_id,'EA','EUR') levelid,
level_id_flg as ieflag,
replace(prohibited_level_id,'EA','EUR') plevelid
from dd_prohibited_country
where level_id = 'EA' or prohibited_level_id = 'EA') bNote: If you are in multiple user environment you can get into trouble for incrementing your PKey like this. -
Does adobe have alternatives for inserting photos into templates?
I have just downloaded this software in the hope that I can use some template files. They are eps and elements 13 doesn't support it.
In addition to this the only other thing that I wanted elements for was to remove backgrounds. I can't find a tutorial on that. The only one listed is for CC.
The only use I have for the software is to insert photos into a sublimation template. Do Adobe have an alternative that can do this?Please review this and get back with issues that need additional clarification:
How to import my images into templates for sublimation blanks [was: inserts]? [was: HELP]
As for EPS files, Irfanview will open them, and then you can save them as JPEG files and open them in PSE.
Irfanview is a terrific program, free: www.irfanview.com -
Calling webservice in udf for inserting data into webservice
Dear Experts,
Please give me the drawbacks of using lookup function for inserting data. we are calling a webservice from the udf for inserting the data using a webservice.
It is a file to jdbc usnig a soap lookup . we use this approach because we need to pass the response from webservice along with the error data to the jdbc. is there any other way to do it without using bpm ?
In the udf we are creating the xml structure for webservice and passing the parameters through arguments.
is there a better approach for this ?
Thanks,
AjuHi Aju,
You can do it without BPM.
Write UDF for Soap Lookup. Parse the response message from Webservice. and map the required values to respective fields.
See the weblog
Webservice Calls From a User Defined Function.
Negative point of this solution is that it will take some time to call Webservice and get response back from it.
Kulwinder -
How to use record type for inserting data into a table
I've read through the web the following tip:
"When working with a large number of columns, using variables of type RECORD is a better approach. With this approach, you do not have to list anything in the INSERT statement, because you are inserting a variable into the table that is defined as a row from the same table."
I usually define a variable as
r_mytable mytable%ROWTYPE;
and inside my procedure I'll set the fields I need as
r_mytable.field1 := 1;
r_mytable.field3 := 7;
and then I perform the insert as
insert into mytable
(field1,
field3)
values
(r_mytable.field1,
r_mytable.field3);
According to the tip I've copied above, how can I use the TYPE RECORD of pl/sql for achieving the same result but perhaps in a smarter way?
Thanks in advance!Hi,
Are you looking for this?
SQL> create table table1 (id number, descr varchar2(30));
Table created
SQL>
SQL> DECLARE
2 my_rec table1%rowtype;
3 BEGIN
4 my_rec.id := 1;
5 my_rec.descr := 'TEST';
6 insert into table1 values my_rec;
7 END;
8 /
PL/SQL procedure successfully completed
SQL> select * from table1;
ID DESCR
1 TESTWorks with UPDATE too :
SQL> DECLARE
2 my_rec table1%rowtype;
3 BEGIN
4 my_rec.id := 2;
5 my_rec.descr := 'TEST2';
6 update table1 set row = my_rec where id = 1;
7 END;
8 /
PL/SQL procedure successfully completed
SQL> select * from table1;
ID DESCR
2 TEST2 -
Need Logic for Inserting data into table from another table
Hi,
Could you please give me some logic on below:
TABLE_A has columns A,B,C,D
What i did
==========
Created new table
TABLE_1_A with columns A1,A2,B1,B2,B3
Requirement
===========
I should populate columns A1,A2 (table TABLE_1_A) with the data from column A (table TABLE_A)
& simillarly populate columns B1,B2 with the data from B.
the data is huge in the table_a.
Database: 10g
Thanks.Hi,
Here's one way:
INSERT INTO table_1_a
(a1, a2, b1, b2)
SELECT a, a, b, b
FROM table_a
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
If you're asking about a DML statement, such as INSERT, the sample data will be the contents of the table before the DML, and the results will be state of the changed table(s) when everything is finished.
Explain, using specific examples, how you get those results from that data.
See the forum FAQ {message:id=9360002} -
Using model 1 Architecture for inserting row into DB...
The question is on the design of a JSP using Model 1 architecture.
I have a html form with 3 fields taking input from user. I have made a java bean with 3 instance varibales in the name of the field names and with getter() setter() methods too.
I dont want to hardcode the database access in the JSP. How do i acheive modularity or make use of object orientation concepts in the JSP to open aconnection and save the record into a database.
I dont want the conventional way of harcoding like registering DriverManager... Creating Statement opject and OPening Connection...... and with Statement object to call executeUpdate() method...
These all should be encapsulated in class and methods so that my JSP looks simple......
Java Gurus, How do i get going.........Untill now, I have motsly written java web applications merely showing information; there's no insert or update available. nevertheless, the design pattern MVC or Model-View-Controller can work just as good for display-only web apps as for the rest.
You're right if you don't want to have the database connection inside your JSP's. So how do you have to deal with it. The letters MVC already tell a part of the story. You have 3 kinds of objects :
- Model : the so-called Java Beans; these objects refer to the concepts known to the usezr of the web app, like Client, Product, Order, Orderline, Invoice, Payment
- View : these are the JSP's
- Controller : this is the heart of the web app; Java uses the servlets to be the controller.
But there's another kind of object you will need, namely the DAO or Data Access Object. These objects define the contact with the database, contain the SQL-statements and make objects of the Model type.
I'll give 2 examples. The first is the GeneralDao which you define just once. This GeneralDao contains the database driver you're using.
/** Java class "GeneralDao.java" generated from Poseidon for UML.
* Poseidon for UML is developed by Gentleware.
* Generated with velocity template engine.
package org.gertcuppens.dao;
// import java.util.*;
import java.util.ResourceBundle;
import java.sql.*;
/* import org.apache.log4j */
import org.apache.log4j.Logger;
public abstract class GeneralDao {
// operations
* de GeneralDao is de algemene klasse waar alle andere DAO's of Data Access
* Objects van erven. Het is de bedoeling om in deze klasse ��nmaal de
* getConnection te defini�ren
* <p>
* getConnection() connecteert met de databank afhankelijk van de JDBC-driver
* die voorhanden is. Deze methode zorgt ervoor dat alle afgeleide DAO's van
* dezelfde driver gebruik maken terwijl er toch maar op ��n plaats de naam
* van de driver gedefinieerd is.
* </p>
protected Connection getConnection()
throws java.sql.SQLException
Connection dbconn = null;
ResourceBundle resBundle;
Logger mopoLogger = Logger.getLogger("mopo.log");
mopoLogger.debug("start connectie databank " );
try
Class.forName("com.mysql.jdbc.Driver").newInstance();
resBundle = ResourceBundle.getBundle("gcoConfig");
mopoLogger.debug("ophalen resourceBundle (gcoConfig) " );
String dbConnectie = resBundle.getString("databaseconnection");
mopoLogger.debug("lezen databaseconnection in resourceBundle " );
//dbconn = DriverManager.getConnection("jdbc:mysql://localhost/gco");
dbconn = DriverManager.getConnection(dbConnectie);
mopoLogger.debug("maken connectie databank " );
} catch (InstantiationException e)
System.out.println("GeneralDao - Fout bij getConnection - instantiation " );
mopoLogger.fatal("GeneralDao - Fout bij getConnection - instantiation " );
e.printStackTrace();
} catch (IllegalAccessException e)
System.out.println("GeneralDao - Fout bij getConnection - illegal acces " );
mopoLogger.fatal("GeneralDao - Fout bij getConnection - illegal acces " );
e.printStackTrace();
} catch (ClassNotFoundException e)
System.out.println("GeneralDao - Fout bij getConnection - class not found " );
mopoLogger.fatal("GeneralDao - Fout bij getConnection - class not found " );
e.printStackTrace();
return dbconn;
} // end GeneralDao
Each object of the Model type should have a corresponding DAO. In my webapp I had 3 kinds of model objects, so I've defined 3 DAO's. All these DAO's are children of the GeneralDao. I'll give an example of this.
package org.gertcuppens.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.gertcuppens.general.Gebruiker;
/* import org.apache.log4j */
import org.apache.log4j.Logger;
public class GebruikerDao extends GeneralDao {
* Zoekt de gebruiker op aan de hand van de opgegeven naam en wachtwoord
* @return Gebruiker
* @param _naam
* @param _wachtwoord
public Gebruiker findGebruiker(String naam, String wachtwoord)
throws SQLException
Logger mopoLogger = Logger.getLogger("mopo.log");
mopoLogger.debug("start findGebruiker" );
StringBuffer zoekString = new StringBuffer();
zoekString.append ("select * from gebruiker ");
zoekString.append("where naam=? and wachtwoord=? ");
Connection con = getConnection();
PreparedStatement ps = con.prepareStatement(zoekString.toString());
ps.setString(1,_naam);
ps.setString(2,_wachtwoord);
ResultSet rs = ps.executeQuery();
if (rs.next() )
Gebruiker gebruiker = new Gebruiker(rs);
rs.close();
ps.close();
con.close();
mopoLogger.debug("gebruiker gevonden " + gebruiker.getNaam());
return gebruiker;
else {
ps.close();
con.close();
mopoLogger.debug("geen gebruiker gevonden");
return null;
} // end findGebruiker
} // end GebruikerDao
Want to know more about this ? Just give me a sign. -
API for inserting/updating system profile option values
Hi,
Is there any API that I can use to insert/update system profile option values via PL/SQL?
Regards,
Santhosh JoseHi Santosh,
You can think of using the FNDLOAD utility to download the values from one instance and upload to other instance.
## Now lets have a look at the profile option using oracle's FNDLOAD
FNDLOAD apps/$CLIENT_APPS_PWD O Y DOWNLOAD $FND_TOP/patch/115/import/afscprof.lct POR_ENABLE_REQ_HEADER_CUST.ldt PROFILE PROFILE_NAME="POR_ENABLE_REQ_HEADER_CUST" APPLICATION_SHORT_NAME="ICX"
## Note that
## POR_ENABLE_REQ_HEADER_CUST is the short name of profile option
## We aren't passing the user profile option name in this case. Validate using ...
########----->select application_id, PROFILE_OPTION_NAME || '==>' || profile_option_id || '==>' ||
########----->USER_PROFILE_OPTION_NAME
########----->from FND_PROFILE_OPTIONS_VL
########----->where PROFILE_OPTION_NAME like '%' || upper('&profile_option_name') || '%'
########----->order by PROFILE_OPTION_NAME
########----->/
## Now to upload
FNDLOAD apps/$CLIENT_APPS_PWD O Y UPLOAD $FND_TOP/patch/115/import/afscprof.lct POR_ENABLE_REQ_HEADER_CUST.ldt
For other config components download and upload you can refer the link- http://www.apps2fusion.com/apps/scripts/19-oracle-fndload-script-examples
Thanks,
Sanjay -
Better way for inserting column into array?
I have to insert a 2-D array(20x10) into the end (column) of a bigger 2-D array(1000x10). I am seeing two ways to do that:
1. Insert smaller 2D array at the end of bigger array.
2. Insert the bigger array at the 0th column of smaller array.
Which one would be more efficient? Will there be any performance difference?
Or any other better way to do this?
The second one looks simpler but I think it would require a bigger copying of memory.Both methods use a buffer allocation, so they might be very similar. Since we don't know what the compiler is doing, you could also try this:
I am assumung that you only need to append once and not append more and more columns as the program progresses. Is this correct? In any case, you should consider operating on the transposed version, because it is always easier to append rows instead of columns (rows are adjacent in memory, while appending columns require more data shuffling under the hood
In any case, you should simply wire up the alternatives and do a proper benchmark if you are planning to use this on much larger arrays in the future, for example. Can you give us some context how you are planning to use this?
LabVIEW Champion . Do more with less code and in less time .
Attachments:
AppendColumns.png 3 KB -
Nicer method for inserting dynamic into a JSP
I have a site layout which has header.jsp, menu.jsp, content.jsp(s), footer.jsp.
Instead of having 10 various topic pages all of which including header,menu, and footer into them, I have opted for one JSP that loads the content.jsp based on a parameter in the URL e.g,
index.jsp?content=news
index.jsp?content=polls
index.jsp?content=products
So far I can do this by :
<jsp:include page="includes/header.jsp" />
<jsp:include page="includes/menu.jsp" />
<%
String content = request.getParameter("content");
String action = request.getParameter("action");
String id = request.getParameter("id");
if(content.equals("news"))
if(action == null)
%>
<jsp:include page="news/content.jsp" />
<%
else if(action != null)
%>
<jsp:include page="news/form.jsp" />
<%
if(content.equals("forums"))
if(action == null)
%>
<jsp:include page="forums/content.jsp" />
<%
else if(action.equals("edit"))
%>
<jsp:include page="forums/showtopic.jsp" />
<%
// other IF blocks here
%>
<%@ include file="includes/footer.jsp" %>
footer.jsp in constant so it is '<%@ include', the header and menu have content which can vary between views so they have '<jsp:include'.
Originally I thought I could have one single
<jsp:include page="<%=content%>/content.jsp" />
or find any means to use the content variable to feed it into the JSP:INCLUDE, but it doesn't seem to be possible.
Does anyone have any ideas for me?
Many thanksOriginally I thought I could have one single
<jsp:include page="<%=content%>/content.jsp" />
or find any means to use the content variable to fee
it into the JSP:INCLUDE, but it doesn't seem to be
possible.
Does anyone have any ideas for me?
Try:
<% String pageName = content + "/content.jsp"; %>
<jsp:include page="<%=pageName%>"/>or
<jsp:include page='<%=content + "/content.jsp"%>' /> -
QUERY FOR INSERT INTO SQL TABLE
Hi all,
i want to insert some records into SQL table but not SAP database table. This table is only present in SQL database &
not present in SAP database.
i want to write a program in SAP to update the SQL table(not present in SAP database). is it possible?
if yes, plz give me the query for inserting records into SQL table.
RegardsHello,
working on the same issue:
Try this:
DATA : Begin Of XY Occurs 1000,
id(15) TYPE C,
Name(50) TYPE C,
ArtNr(50) TYPE C,
lieferant TYPE I,
End Of XY.
Fill this internal Table with the SAP-Table
START Connection to your Database
EXEC SQL.
Connect TO 'TEST_FH'
ENDEXEC.
IF SY-SUBRC EQ 0.
EXEC SQL.
Set Connection 'TEST_FH' " <-- this is defines with TCode dbco
ENDEXEC.
IF SY-SUBRC EQ 0.
Else.
" OUT_Msg = '... won't connect'.
Exit.
EndIf. " Else IF SY-SUBRC EQ 0
Else.
" OUT_Msg = 'Error at Set Connection Test_FH'.
Exit.
EndIf. " IF SY-SUBRC EQ 0
ENDE Connection to your Database
START Insert your table XY to an external database
Loop AT XY.
Try.
EXEC SQL.
INSERT INTO stoff
(id, name , artnr, lieferant)
VALUES
( :XY-ID, :XY-Name, :XY-ArtNr, :XY-Lieferant )
ENDEXEC.
COMMIT WORK AND WAIT. " <=== Maybe VERY important
CATCH cx_sy_native_sql_error INTO exc_ref.
error_text = exc_ref->get_text( ).
Concatenate 'Table-INSERT: ' error_text Into error_text.
MESSAGE error_text TYPE 'I'.
ENDTRY.
ENDLoop. " Loop AT XY
END Insert your table XY to an external database
START: Clear Connection
EXEC SQL.
DISCONNECT 'TEST_FH'
ENDEXEC.
END : Clear Connection
Hope it works
Best wishes
Frank -
Adding Form for insert into Ext Js Layout
Hi all,
How to adding form for insert record into EMP table
+[http://apex.oracle.com/pls/apex/f?p=43040:7|INSERT EMP]+
into Ext JS layout with one Array Grid report from EMP ?
+[http://apex.oracle.com/pls/apex/f?p=43040:5|ExtJS layout EMP report]+
(this is extend threat from
Re: ExtJS report with JsonStore -examples? apex and extjs grid table]
implements by munky)
regards,
Gordan
Edited by: useruseruser on Aug 3, 2010 9:17 AMHi Gordan
Just for information, the link syntax doesn't work on the forum anymore, just paste the link in with no tags or brackets and it will be 'clickable'.
Exactly what are you trying to achieve here?
Have you had a look at these sites which may be of some use to you...
http://oracleinsights.blogspot.com/ - Mark Lancaster
http://application-express-blog.e-dba.com/ - e-DBA (Matt Nolan)
http://apex-at-work.blogspot.com/ - Tobias Arnhold
Cheers
Ben -
Concurrent program Do not Insert Data Into Interface Tables!
Hi there:
I am facing a problem with my concurrent program whenever I execute my stored procedure in SQL/PLUS it's work fine data load into the AP_INTERFACE/LINES.
Whenever I try to load data through my concurrent programs it doesn't load into AP_INTERFACE/LINES and concurrent request successfully completed but don't load data.
This is code query take a look.
CREATE OR REPLACE PROCEDURE CINDNOTE(errbuff OUT VARCHAR2,
retcode OUT NUMBER,
p_org IN VARCHAR2,
p_from_date IN VARCHAR2,
p_to_date IN VARCHAR2)
--p_org_id IN NUMBER,
*Module Name AP DEBIT NOTE INTERFACE
*Description This Package contains PL/SQL to support the
* the DEBIT NOTE Inward Interface to AP
*Author Zeeshan Hussain Siddiqui
*Date 15 May, 2007
*Modification Log
*Developer Version Date Description
*Zeeshan Hussain Siddiqui 1.0.0.1 15-MAY-2007 This interface integrated to AP
AS
ap_sequence NUMBER;
reject_debit CHAR:='D';
--v_invoice_lookup_code VARCHAR2(25):='Debit Memo';
--v_negative_amt1 CHAR:='(';
--v_negative_amt2 CHAR:=')';
v_code VARCHAR2(250):='01.01.000.10450.00.00000';
v_description VARCHAR2(250);
V_rma_no VARCHAR2(10):='RMA#';
from_date DATE;
to_date DATE;
CURSOR rejected_cur
IS
SELECT HR.full_name,ORG.organization_code InvOrg,
ROUND(NVL((CR.unit_price*quantity_rejected*-1)+NVL(CR.gst_amount*-1,0),0),2)
Invoice_Amt,ROUND(NVL(CR.unit_price*quantity_rejected*-1,0),2) AMT,ROUND(NVL(CR.gst_amount*-1,0),2) GST_AMT,
POS.vendor_site_code,CR.date_of_disposition disposition_date,POS.vendor_site_id,CR.organization_id,
(CASE WHEN CR.organization_id =305 THEN '01' WHEN CR.organization_id =304 THEN '01'
WHEN CR.organization_id =450 THEN '07' WHEN CR.organization_id =303 THEN '02' ELSE '00' END)||'.'||
(CASE WHEN CR.organization_id=305 THEN '02' ELSE '01' END)||'.000.'||(CASE WHEN CR.disposition=4
THEN '10430' WHEN CR.disposition=6 THEN '10433' WHEN CR.disposition=3 THEN '10430'
ELSE '00000' END)||'.'||'00.00000' Distribution_Code,
PO.vendor_id,CR.reject_number,CR.disposition,CR.po_number,CR.unit_price,CR.rework_po_no,
CR.shipping_memo, PO.vendor_name,
CR.debit_note_number Invoice_Number,CR.account_number,CR.currency_code,
CR.shipped_via,CR.vendor_rma,POC.first_name||' '||POC.last_name Contact,POS.phone,
SUBSTR(POS.Fax_Area_Code,1,10)||'-'||SUBSTR(POS.Fax,1,20) Fax_Number,
SUBSTR(POS.Address_Line1,1,100) Address,
SUBSTR(POS.City,1,25)||' '||SUBSTR(POS.State,1,20)||' '||SUBSTR(POS.Province,1,20)"City/State/Prov"
FROM apps.hr_employees hr,apps.mtl_system_items mtl,
apps.org_organization_definitions ORG,
apps.cin_rejects CR,apps.po_headers_all POH,
apps.po_vendors PO,apps.po_vendor_contacts POC,apps.po_vendor_sites_all POS
--WHERE TRUNC(CR.date_of_disposition) BETWEEN from_date AND to_date
WHERE To_char(CR.date_of_disposition,'j') BETWEEN to_char(from_date,'j') AND to_char(to_date,'j')
AND CR.organization_id =p_org_id ORG.organization_id
AND ORG.organization_code =p_org
AND POH.segment1 =CR.po_number
AND HR.employee_id =MTL.buyer_id
and CR.organization_id =MTL.organization_id
AND CR.INVENTORY_ITEM_ID =MTL.INVENTORY_ITEM_ID
AND PO.vendor_id =POH.vendor_id
AND POH.vendor_contact_id =POC.vendor_contact_id
AND POH.vendor_site_id =POS.vendor_site_id
AND POS.invoice_currency_code =CR.currency_code
AND CR.disposition IN(3,4,6);
BEGIN
from_date:=FND_CONC_DATE.STRING_TO_DATE(p_from_date);
to_date:=FND_CONC_DATE.STRING_TO_DATE(p_to_date);
FOR rejected_rec IN rejected_cur
LOOP
IF rejected_rec.vendor_rma IS NULL THEN
v_description:=rejected_rec.shipping_memo||' '||rejected_rec.full_name;
ELSIF rejected_rec.shipping_memo IS NULL THEN
v_description:=v_rma_no||rejected_rec.vendor_rma||' '||rejected_rec.full_name;
ELSIF rejected_rec.vendor_rma IS NULL AND rejected_rec.shipping_memo IS NULL THEN
v_description:=rejected_rec.full_name;
ELSIF rejected_rec.vendor_rma IS NOT NULL AND rejected_rec.shipping_memo IS NOT NULL
AND rejected_rec.full_name IS NOT NULL THEN
v_description:=v_rma_no||rejected_rec.vendor_rma||' '||rejected_rec.shipping_memo||'
'||rejected_rec.full_name;
END IF;
SELECT AP_INVOICES_INTERFACE_S.NEXTVAL
INTO ap_sequence
FROM DUAL;
INSERT INTO AP_INVOICES_INTERFACE
INVOICE_ID
,VENDOR_ID
,INVOICE_CURRENCY_CODE
,DESCRIPTION
,INVOICE_NUM
,VENDOR_NAME
,VENDOR_SITE_ID
,VENDOR_SITE_CODE
,INVOICE_DATE
,SOURCE
,INVOICE_AMOUNT
,INVOICE_TYPE_LOOKUP_CODE
VALUES
ap_sequence
,rejected_rec.vendor_id
,rejected_rec.currency_code
,v_description
,reject_debit||rejected_rec.reject_number
,rejected_rec.vendor_name
,rejected_rec.vendor_site_id
,rejected_rec.vendor_site_code
,rejected_rec.disposition_date
,'REJECTS'
,rejected_rec.Invoice_Amt
,'CREDIT'
IF rejected_rec.GST_AMT <0 THEN
INSERT INTO AP_INVOICE_LINES_INTERFACE
INVOICE_ID
,LINE_TYPE_LOOKUP_CODE
,DIST_CODE_CONCATENATED
,ITEM_DESCRIPTION
,AMOUNT
VALUES
ap_sequence
,'TAX'
,v_code
,v_description
,rejected_rec.GST_AMT
END IF;
INSERT INTO AP_INVOICE_LINES_INTERFACE
INVOICE_ID
,LINE_TYPE_LOOKUP_CODE
,DIST_CODE_CONCATENATED
,ITEM_DESCRIPTION
,AMOUNT
VALUES
ap_sequence
,'ITEM'
,rejected_rec.Distribution_Code
,v_description
,rejected_rec.AMT
COMMIT;
END LOOP;
END;
Please reply me ASAP.
Thanks,
ZeeshanHi All,
I have created a package with a procedure. This procedure is used for inserting records into the custom tables created by me. When I am running the script in back end, it is running in reasonable time and giving back the desired output.
But, as per requirement, I have to run this package-procedure via a concurrent program. When I am submitting the request, it is taking hours to complete. Also I am using BULK COLLECT and FORALL(Since the number of records are more than 3 lacs) and firing COMMIT after every FORALL. But when I am quering the table, after an hour or so, no rows are returned.
Please help and reply asap.
Thanks in Advance....!!
Maybe you are looking for
-
Applet not showing in browser OR appletviewer window not appearing
hi 1. I have small java code - hello.java import java.awt.Graphics; public class hello extends java.applet.Applet public void paint(Graphics g) g.drawString("Hello java...................",600,300); which correctly compiled 2. then I wrote an html fi
-
How do you save an image that was downloaded from an email into pages to my album?
I had a friend email me a word document with images in it. The document was downloaded onto my iPad and opened in the pages app. I would now like to save the images from this document into my album so I can use them in other applications. I know how
-
How to define a customized MessageFactory.java?
Hello, I want create my own MessageFactory.java class instead of using the existing JSF one. Is there anyway I could define this class somewhere in configuration file (like struts-config.xml for MessageResourcesFactory) and use it directly? Thank you
-
I would like to delete the "inbox" screen from coming up when I open Firefox. I might help if I could speak with a person.
-
IPad not compatible with MAC OS X 10.4.11
I just bought an iPad and just realised that it's not compatible with MAC OS X 10.4.11 when I tried to hook it into iTunes. Therefore I will need to upgrade. C an someone advise on what OS I should upgrade to and how? I assume Snow Leopard would be m