XXL_FULL_API Sample code pls
Hi,
My requirement is user will have different options in selection screen if he selects Excel format then he should be able to select file path and execute the report .
ALV report is displaying good. For excel if I use other function modules like gui_download, list_download, sap_convert_to_excel etc ....to download report in Excel .some of the columns which have leading zero's were not displaying in excel output.
I saw solution for this problem through XXL_FULL_API.
Please send me some sample code other than sflight code ....:)
which you have used in your actual business scenario like using MARA or some other tables ...
Points for sure !!!
Regards,
Varma
Hi Varma,
Please check this link
http://www.thespot4sap.com/Articles/Download_to_excel.asp
Best regards,
raam
Similar Messages
-
Hi pls send me calander sample code...
Hi everybody,
plz send me attaching calander to my form. Pls send me sample code calander at [email protected]
thanks
otnfriendYou can download the Calendar Sample from here
http://www.saadatahmad.freeservers.com/ -
Hi All! I want to use javaFX controles in vaadin applications pls give some sample code
Hi All!
I want to use javaFX 2.0 Controles in Vaadin applications please give some sample code.
Is it possible or not .
RegardsHi,
Thanks manish for your reply but i could not get any help from your suggesion because i have know idea in Java.
I want to know how can we deploy jsp files in Oracle bpel.
Because i'm not getting the proper way to deploy jsp files in oracle bpel.
Can any one help me out by providing step by step information or suggest any url to resolve this.
Regards,
Nikhil Kumar Jain -
How to Delete a Specific Cell in a Matrix + plz Give sample code for Lost F
hello there !!!!
i m in Great Trouble please help me out..
i have to search for a specific Column n then i have to validate that portion, similarly after validating i have to add update delete all the fuction apply... so please help me i m very upset.
Public Sub HandleEventts_Allowance(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByRef BubbleEvent As Boolean)
Try
Dim Count As Int32
If FormUID.Equals("Allowance") Then
If (pVal.BeforeAction = True) And (pVal.ItemUID = "1") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK) Then
If pVal.Row = 0 Then
'BubbleEvent = False
End If
o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
Count = o_Matrix.RowCount()
SBO_Application1.MessageBox("Matrix Count is " & o_Matrix.RowCount)
Validate(pVal, EventEnum, FormUID, BubbleEvent)
End If
End If
Catch ex As Exception
SBO_Application1.MessageBox(ex.Message)
End Try
End Sub
Public Sub Validate(ByRef pval As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByVal FormUID As String, ByRef BubbleEvent As Boolean)
Dim Row, ii As Integer
o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
o_Matrix.FlushToDataSource()
Try
For Row = 2 To o_Matrix.RowCount
StrName = Convert.ToString(DBtable.GetValue("CardCode", Row - 1)).Trim()''' i got Error over there n rest of my code is also not working pls...
StrUId = Convert.ToString(DBtable.GetValue("U_AlwID", Row - 1)).Trim()
StrEnter = Convert.ToString(DBtable.GetValue("U_SupEnter", Row - 1)).Trim()
StrExist = Convert.ToString(DBtable.GetValue("U_SupExist", Row - 1)).Trim()
If Row - 1 < DBtable.Rows.Count - 1 Or (Not (StrName.Equals(String.Empty) And StrUId.Equals(String.Empty) And (StrEnter.Equals(String.Empty) Or StrExist.Equals(String.Empty))) And (Row - 1 = DBtable.Rows.Count - 1)) Then
If (Not StrName.Equals(String.Empty)) And ((StrUId.Equals(String.Empty) Or StrEnter.Equals(String.Empty)) Or StrExist.Trim.Equals(String.Empty)) Then
SBO_Application1.StatusBar.SetText("Invalid values provided!Blank values not vllowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
BubbleEvent = False
Exit Sub
End If
For ii = Row To DBtable.Rows.Count - 1
If Convert.ToString(DBtable.GetValue("ColName", ii)).Trim().Equals(StrName.Trim()) Then
SBO_Application1.StatusBar.SetText("Invalid Allowance ID: Duplication Not Allowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
oForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE
BubbleEvent = False
Exit Sub
End If
Next
If CDbl(StrName) < 0 Then
SBO_Application1.StatusBar.SetText("Invalid values provided!Blank values not vllowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
BubbleEvent = False
Exit Sub
End If
End If
Next Row
Catch ex As Exception
SBO_Application1.MessageBox(ex.Message)
End Try
End SubHello there
sir i want to Add Update and delete these three basic operation onto the Matrix, Sir u game me a Sample code of Delete a specific Column...
Sir can u do me a favour pls leave every thing n just told me how to update a matrix ,like i have to fill the matrix field through the DATABASE table now i want to update the DataBase table from the matrix..
i just only know thta i have to fill back database table with the help of FLUSHTODATABASE()
here is my Sample Code...n i have to update in the validate portion...
Public Sub HandleEventts_Allowance(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByRef BubbleEvent As Boolean)
Try
Dim oCellValue As SAPbouiCOM.EditText
If FormUID.Equals("Allowance") Then
If (pVal.ItemUID = "MatAllow") Then
If pVal.Row = 0 Then Exit Sub
o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
If (pVal.Row > o_Matrix.RowCount) Then Exit Sub
oForm = SBO_Application1.Forms.Item(FormUID)
If (pVal.ItemUID = "1" Or EventEnum = SAPbouiCOM.BoEventTypes.et_CLICK) Then
o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
If pVal.ColUID = "ColName" And pVal.BeforeAction = True Then
If pVal.Row = 0 Then Exit Sub
oCellValue = CType(o_Matrix.Columns.Item(pVal.ColUID).Cells.Item(pVal.Row).Specific(), SAPbouiCOM.EditText)
If (oCellValue.Value.Trim().Equals(String.Empty) And o_Matrix.RowCount <> pVal.Row) Then
SBO_Application1.StatusBar.SetText("Invalid Allowance ID: Blank Value Not Allowed", )
oCellValue.Active = True
BubbleEvent = False
Exit Sub
End If
End If
End If
End If
End If
Validate(pVal, EventEnum, FormUID, BubbleEvent)
Catch ex As Exception
SBO_Application1.MessageBox(ex.Message)
End Try
End Sub
Public Sub Validate(ByRef pval As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByVal FormUID As String, ByRef BubbleEvent As Boolean)
Dim str, str1 As String
Dim checkbox1, Checkbox2 As SAPbouiCOM.CheckBox
Dim o_Matrix As SAPbouiCOM.Matrix
Dim Sum As Integer
Dim oRecordset As SAPbobsCOM.Recordset
Dim Container As Integer
Dim Count As Int32
o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
oRecordset = o_CompanyObj.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
Try
For Count = 0 To DBtable.Rows.Count - 1
CodeFill = Convert.ToString(DBtable.GetValue("Name", Count).Trme())
NameID = Convert.ToString(DBtable.GetValue("ColUID", Count).Trim())
Price = Convert.ToString(DBtable.GetValue("ColPrice", Count).Trim())
Quantity = Convert.ToString(DBtable.GetValue("ColQuant", Count).Trim())
Total = Convert.ToString(DBtable.GetValue("ColTotal", Count).Trim())
checkbox1 = o_Matrix.Columns.Item("ColSEnter").Cells.Item(Count).Specific
Checkbox2 = o_Matrix.Columns.Item("ColSExist").Cells.Item(Count).Specific
If (checkbox1.Checked = True) And (Checkbox2.Checked = True) Then
Dim Sql As String
Sql = "Update [@Supplier] Set U_Price=' " & Price & " ',U_ID=" & NameID & "Where Name ='" & CodeFill & " '"
oRecordset.DoQuery(Sql)
End If
Next Count
SBO_Application1.MessageBox("Record was Updated")
Catch ex As Exception
SBO_Application1.MessageBox(ex.Message)
End Try
End Sub -
Sample code on how to populate data in DropDownListbox
Hi all
i am new to the webdynpro for java.
i have one UI element called DropDownListBox and i want to populate some desired values to the dropdown list box.
what are the different ways are there to populate data in DropDownList box.
for example i have city as dropdownlist box and i want to populate some values in drop downlistbox like bangalore,hyderabad,chennai and delhi,
can you pls send the sample code on the same?
Regards
Suresh BabuHi,
If you want to retrieve the city names then you can use the standard tables in R/3.
We have countries list in T500T. Like this we have table for the cities also.
Or
You can manually populate a table and bind this table to the list box.
Please check out this link -
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ded11778-0801-0010-258f-ac3b9408a194
http://help.sap.com/saphelp_nw70/helpdata/EN/74/450e8af57065468e88e4b86de47e4b/frameset.htm
Regards
Lekha -
Need sample code for Using BADI ME_PROCESS_REQ_CUST
Dear all,
Initially my requirement is to Validate the Document Type of Purchase Request ion as per material.
I have created a implementation for BADI : ME_PROCESS_REQ_CUST .
im new to OOPS-ABAP, so pls send *sample code for how to use these methods PROCESS_ITEM,
like declarations, assignment of data into internal table for further validation*.
Regards,
NIranjan.GHi,
get the item data ....
*DATA : lt_item TYPE MEREQ_ITEM,
ls_item liek line of it_item*
CALL METHOD im_item->GET_DATA
RECEIVING
RE_DATA = lt_item .
you will get the data in lt_item.. table
Thanks,
Shailaja Ainala. -
Can u please send me a sample code to upload and download a file using java
Hi,
Please can u send me a sample code to upload a file and to download the same file from a remote server using a java servlets. The file should be read byte by byte.
Message was edited by:
user461713Hi, Thank u.
Sorry, I forgot to attach a code. Here it is.
Actually i need to upload a file to a remote server and download it from a server to my machine. I'm trying it using servlets and using tomcat5.0 as a servlet container. Here i'm sening a code used to upload a file. Let me know whether it works. Only few lines are here.
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.lang.Object;
import java.util.*;
import java.lang.String;
import com.oreilly.servlet.MultipartRequest;
public class FileUpload extends HttpServlet{
public void doPost(HttpServletRequest req, HttpServletResponse res)throws
ServletException, IOException{
MultipartRequest multi=new MultipartRequest(req);
String file="file1";
byte[] b=file.getBytes();
InputStream in=null;
BufferedInputStream bis=null;
FileWriter fw=null;
try{
in=multi.getInputStream("file1");
bis=new BufferedInputStream(in);
File output=new File("/fileuploadtest");
fw=new FileWriter(output);
int i;
i=bis.read();
while (i != -1) {
fw.write(i);
i = bis.read();
catch(IOException e){
System.out.println("Exception=" +e);
finally{
try{
if(in!=null)
in.close();
if(bis!=null)
bis.close();
if(fw!=null)
fw.close();
catch(Exception e){
System.out.println(e);
This code is giving error as: cannot resolve symbol: class MultipartRequest
Why is this happening?
Pls let me know whether this code works or no and also i have written form.html.
Can u pls tel me whether there are ways in which i can write a code to upload a file using servlets without using third party packages. Pls help.
Also how should be the servlet mapping for this code.?
Regards
Message was edited by:
user461713 -
ARB PHP Sample Code SOAP Exception
Hello Everybody
I m using ARB PHP Sample Code.
I m using it as it is provided with my login id and transaction key
I m using PHP 5.2 version
I m quite new to SOAP.
Everything seems fine but the script is throwing following exception.
SoapFault exception: [soap:Client] Server was unable to read request.
---> There is an error in XML document (2, 584). ---> Input string was
not in a correct format. in /mysite//php_arb/PHP/
api_authorize_net_soap_v1.php:1869 Stack trace: #0 /mysite//php_arb/
PHP/api_authorize_net_soap_v1.php(1869): SoapClient-
>__soapCall('ARBCreateSubscr...', Array) #1 /mysite//php_arb/PHP/
subscription_create.php(24): AuthorizeNetWS-
>ARBCreateSubscription(Object(ARBCreateSubscription)) #2
May i please have some help on how to resolve this and get the code
working for me?
I m trying to trace out the issue but my efforts are in vain.
I look forward to recieve some help from everybody in this group
Pls reply
Thanking You in advanceHello Devster,
Thank you to post your question on TechNet forum.
After reviewing the whole post, I have a question to you. You can access the report via the link, http://myServer/Reports_DEVPROJECT/Pages/Report.aspx?ItemPath=%2fData+Mgmt%2fSample+Letter.
From the URL, I can see that the report is located at: /Data Mgmt/Sample Letter, instead of /DataMgmt/Sample Letter. In addition, I found that the target report is "/DataMgmt/Sample HAP Letter" instead of "/DataMgmt/Sample Letter" as the error described. I
am not sure whether you post out the correct code segment.
Please check the above things on your side, and hope it is helpful to you.
Regards,
Edward
Edward Zhu
TechNet Community Support -
Sample code is required on how to use TableUI element in ArrayList
Hi all
Can any body send the sample code on how to store Table UI element in Arraylist.
Regards
Suresh babuHi I am providing two methods of it. Just go through and try. This will defenately solve your problem
I. METHOD
Try This
//@@begin others
//this is the array used in the program
String emp[][]=
{"nikhil","tapkir","pune"},
{ "juhi","bhatnagar","delhi"},
//@@end
i have to insert the above information in a table wid columns firstname lastname and city .
u need to use the for loop to insert the data in the table for more than 1 record
code the following thing in wd init
here fname lname and city are my value attributes mapped to my table columns.
for (int i=0;i<emp.length;i++)
IPrivateTabappView.ITablenodeElement tnode=wdContext.createTablenodeElement();
tnode.setFname(this.emp<i>[0]);
tnode.setLname(this.emp<i>[1]);
tnode.setCity(this.emp<i>[2]);
wdContext.nodeTablenode().addElement(tnode);
i hope this is what ur doubt was if not pls clarify.
hope this helps u.
II METHOD
For example: Consider that the value node DataNode having two attributes A and B is bound to the DataSource property of your Table UI Element.
IDataNodeElement objDataNode = null;
ArrayList arlDataNode = null;
int size = 0;
size = <No. of rows that you want in the table>;
arlDataNode = new ArrayList();
for(int i=0;i<size;i++)
objDataNode = wdContext.createDataNodeElement();
objDataNode.setA(<Set some values>);
objDataNode.setB(<Set some values>);
arlDataNode.add(objDataNode);
wdContext.nodeDataNode.bind(arlDataNode);
Hope, You can resolve your problem. Revert me if you have any doubts.
Regards
Raghu -
Exception in running the sample code for XA
Hi,
I'm trying out sample code for XA with Two-phase commit operation - X4.java provided in "Oracle8i JDBC Developer's Guide and Reference"
http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/a83724/samapp9.htm#1012235
I'm getting the following exception.
java.sql.SQLException: ORA-06550: line 1, column 13:
PLS-00201: identifier 'JAVA_XA.XA_START' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:822)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:1446)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1371)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1900)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:363)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:407)
at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:156)
at orajta.XA4.main(XA4.java:126)
oracle.jdbc.xa.OracleXAException
at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:498)
at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:190)
at orajta.XA4.main(XA4.java:126)
What's the reason for the above exception and can someone help me with a possible fix for the same? Your help is greatly appreciated.
Thanks,
HajaHi,
I dont have access to a 8i db, but i ran the sample between two oracle9i db and it ran successfully.
Regards
Elango. -
Hi,
I'm trying to connect to Oracle 8.1.6.0 database through my VC++ application through ODBC. Can anybody put the connection and sample query code for the same.
Thankshttp://www.oracle.com/pls/use/use_scr_api.print?refno=581
There are some others there too, search the Sample Code Repository here on OTN -
KIMYONG : API ( FND_SUBMIT, FND_REQUEST) Sample Code 소개
Purpose
Extension 개발자들이 간혹 요청하는 Standard API (FND_SUBMIT, FND_REQUEST)의 sample code입니다.
Configuring the Script
FND_SUBMIT test procedure and sample code
Creates a procedure called fnd_submit_test that can be registered and run as a concurrent program.
This procedure will use the FND_SUBMIT API to submit a request set. (Function Security Reports - This request set should be seeded, if it is not available the values in the script may need to be changed.) The procedure will then place itself in a Paused status until the request set completes.
Running the Script
1. Install this procedure in the APPS schema.
2. Register the procedure as a concurrent program
Caution
This script is provided for educational purposes only and not supported by Oracle Support Services. It has been tested internally, however, and works as documented. We do not guarantee that it will work for you, so be sure to test it in your environment before relying on it.
Proofread this script before using it! Due to the differences in the way text editors, e-mail packages and operating systems handle text formatting (spaces, tabs and carriage returns), this script may not be in an executable state when you first receive it. Check over the script to ensure that errors of this type are corrected.
Script
REM +==========================================================================
REM | Concurrent Processing Sample Code
REM |
REM | FILE:
REM | fnd_submit_test.pls
REM |
REM | REVISION:
REM | $Id$
REM |
REM | DESCRIPTION:
REM | FND_SUBMIT test procedure and sample code
REM | Creates a procedure called fnd_submit_test that can be registered
REM | and run as a concurrent program.
REM | This procedure will use the FND_SUBMIT API to submit a request set.
REM | (Function Security Reports - This request set should be seeded, if
REM | it is not available the values in the script may need to be changed.)
REM | The procedure will then place itself in a Paused status until the
REM | request set completes.
REM |
REM | INSTRUCTIONS:
REM |
REM | 1. Install this procedure in the APPS schema.
REM |
REM | 2. Register the procedure as a concurrent program
REM |
REM |
REM +==========================================================================
whenever sqlerror exit failure rollback;
create or replace procedure fnd_submit_test (errbuf out varchar2,
retcode out varchar2) as
success boolean;
req_id number;
req_data varchar2(10);
srs_failed exception;
submitprog_failed exception;
submitset_failed exception;
begin
-- Use FND_FILE to output messages at each stage
fnd_file.put_line(fnd_file.log, 'Starting test...');
-- Read fnd_conc_global.request_data, if available then we have been
-- reawakened after the request set has completed.
-- If so, exit.
req_data := fnd_conc_global.request_data;
if (req_data is not null) then
errbuf := 'Done!';
retcode := 0 ;
return;
end if;
-- Step 1 - call set_request_set
fnd_file.put_line(fnd_file.log, 'Calling set_request_set...');
success := fnd_submit.set_request_set('FND', 'FNDRSSUB43');
if ( not success ) then
raise srs_failed;
end if;
fnd_file.put_line(fnd_file.log, 'Calling submit program first time...');
-- Step 2 - call submit program for each program in the set
success := fnd_submit.submit_program('FND','FNDMNFUN', 'STAGE10', 'System Administrator', chr(0));
if ( not success ) then
raise submitprog_failed;
end if;
fnd_file.put_line(fnd_file.log, 'Calling submit program second time...');
success := fnd_submit.submit_program('FND','FNDMNMNU', 'STAGE10', 'System Administrator', chr(0));
if ( not success ) then
raise submitprog_failed;
end if;
fnd_file.put_line(fnd_file.log, 'Calling submit program third time...');
success := fnd_submit.submit_program('FND','FNDMNNAV', 'STAGE10', 'System Administrator', chr(0));
if ( not success ) then
raise submitprog_failed;
end if;
-- Step 3 - call submit_set
fnd_file.put_line(fnd_file.log, 'Calling submit_set...');
req_id := fnd_submit.submit_set(null,true);
if (req_id = 0 ) then
raise submitset_failed;
end if;
fnd_file.put_line(fnd_file.log, 'Finished.');
-- Set conc_status to PAUSED, set request_data to 1 and exit
fnd_conc_global.set_req_globals(conc_status => 'PAUSED', request_data => '1') ;
errbuf := 'Request set submitted. id = ' || req_id;
retcode := 0;
exception
when srs_failed then
errbuf := 'Call to set_request_set failed: ' || fnd_message.get;
retcode := 2;
fnd_file.put_line(fnd_file.log, errbuf);
when submitprog_failed then
errbuf := 'Call to submit_program failed: ' || fnd_message.get;
retcode := 2;
fnd_file.put_line(fnd_file.log, errbuf);
when submitset_failed then
errbuf := 'Call to submit_set failed: ' || fnd_message.get;
retcode := 2;
fnd_file.put_line(fnd_file.log, errbuf);
when others then
errbuf := 'Request set submission failed - unknown error: ' || sqlerrm;
retcode := 2;
fnd_file.put_line(fnd_file.log, errbuf);
end;
rem ===================================================================
commit;
exit;
Reference
자세한 사항은 Note 221542.1 를 참고하세요.Not sure about that particular option, but in general you pass in pairs - an example from code I didn't write but maintain (so if this is the worst possible way, I apologize)
proj_req_id6 := FND_REQUEST.SUBMIT_REQUEST('SQLGL', 'XXXX_GLGENLED_PDF',
'XXXX General Ledger',
'',dummy_default,
'P_SET_OF_BOOKS_ID='||v_rep_cmp.set_of_books_id,'P_CHART_OF_ACCOUNTS_ID=101',
'P_KIND=L','P_CURRENCY_CODE='||v_rep_cmp.currency_code,
'P_ACTUAL_FLAG=A','P_BUD_ENC_TYPE_ID=100',
'P_START_PERIOD='||'&1','P_END_PERIOD='||'&1',
'P_MIN_FLEX='||v_min_flex||'.'||v_emp_cost_center.COST_CENTER||'.00000.000.000.000.00',
'P_MAX_FLEX='||v_max_flex||'.'||v_emp_cost_center.COST_CENTER||'.99999.999.999.ZZZ.99',
'P_PAGE_SIZE=180',chr(0),'',
'','','','','','','','','','');You see where I have option pairs - for example
'P_ACTUAL_FLAG=A'Tells my program that the value for parameter P_ACTUAL_FLAG is A
This example is from a SQL*Plus script, hence the &1 for the value substitutions.
Hope that helps -
Pleasee Help , URGENTT , Need sample code
We should upload Sales Order XML File into OA Tables everyday .
As I am very new to XML I request to give complete sample code ( giving just the logic needs time to understand, very urgent..)
The current XML File can have mutilpe one sales order and each sales order can have many lines .Each line can have multiple taxes.
Pls give the sample Code which you think is the best approach.
I have used xpath(may not be right)
I want to insert Parent Node / Child Node / Grand Child Done as one set of data.
I used Xpath syntax , when I give the Parent node path in for loop, it inserts all parent nodes data at one time into the table , similarly all child nodes at one time .
So I am unable to link grand child record with child record and parent record.
To be specific , I am unable to trace these are the tax records for this line from this order.
I have used xpath. I have loaded the xml file into table with clob variable
l_OrderRequest_nodelist := xslprocessor.selectNodes(xmldom.makeNode(l_doc), '/Recordset');
FOR rec IN 0 .. xmldom.getlength(l_OrderRequest_nodelist) -1 loop l_OrderRequest_node := xmldom.item(l_OrderRequest_nodelist,
rec);
end loop;
we are not validating Sales order XML File with DTD or XSD .
Please give sample code for parent / child /grandchild .
Below is the sample file.
- <Recordset>
- <Header dueDate="2007-01-17T16:09:05" orderDate="2004-01-17" orderID="0009" transactionID="1389" type="new">
<KeyIndex>2</KeyIndex>
- <BillTo>
- <Address addressID="5619" isoCountryCode="US">
<Name>fMat</Name>
- <PostalAddress name="default">
<Street>34545</Street>
<City>dfgfg</City>
<State>AZ</State>
<PostalCode>85086-1693</PostalCode>
<County>Maricopa</County>
<Country>US</Country>
</PostalAddress>
<Email name="default">[email protected]</Email>
</Address>
</BillTo>
<PromotionCode />
- <SubTotal>
<Money currency="USD">32.49</Money>
</SubTotal>
- <Tax>
<Money currency="USD">2.32</Money>
<Description />
</Tax>
- <Shipping>
<Money currency="USD">8.95</Money>
<Description />
</Shipping>
</Header>
- <Detail lineNumber="1" quantity="1">
- <ItemDetail>
- <UnitPrice>
<Money currency="USD">29.99</Money>
</UnitPrice>
<ShortName>Little;reg; pxxxx® Learning System</ShortName>
</ItemDetail>
- <Tax>
<Money currency="USD">1.68</Money>
<Description />
- <TaxDetail category="sales">
- <TaxAmount>
<Money currency="USD">1.68</Money>
</TaxAmount>
<TaxLocation>AZ</TaxLocation>
</TaxDetail>
</Tax>
</Detail>
- <Detail lineNumber="2" quantity="1">
- <ItemDetail>
- <UnitPrice>
<Money currency="USD">29.99</Money>
</UnitPrice>
<ShortName>Little;reg; pxxxx® Learning System</ShortName>
</ItemDetail>
- <Tax>
<Money currency="USD">1.68</Money>
<Description />
- <TaxDetail category="sales">
- <TaxAmount>
<Money currency="USD">1.68</Money>
</TaxAmount>
<TaxLocation>AZ</TaxLocation>
</TaxDetail>
</Tax>
- <Tax>
<Money currency="USD">0.68</Money>
<Description />
- <TaxDetail category="sales">
- <TaxAmount>
<Money currency="USD">0.68</Money>
</TaxAmount>
<TaxLocation>DISTRICT</TaxLocation>
</TaxDetail>
</Tax>
</Detail>
</Recordset>
We are working on Oracle9i Enterprise Edition Release 9.2.0.6.0
Thanks in Adv
KalHi
here is a quick demo:
DATA: a,b, result(10).
IF a IS Initial.
Result = 'yes'.
ELSEIF NOT a IS Initial AND NOT b is initial.
Result = 'no'.
Else.
RESULT = 'abc'.
ENDIF. -
Hiding and overriding(look SAMPLE CODE) -is there possible polymorphism?
sample code is there
pls explain how it works
class animal
public void static hide()
system.out.println("the hiding in aniaml")
public void overrriding()
system.out.println("the overriding in aniaml")
class cat extends animal
public void static hide()
system.out.println("the hiding in cat")
public void overrriding()
system.out.println("the overriding in cat")
public static void main(String args[])
cat mycat=new cat()
animal myanimal=(animal)mycat
myanimal.hide()
myanimal.overriding()
output:
the hiding in animal
the overriding in catThere is polymorphism in one case, where you override the method 'overriding'.
The other method is a static one, which doesnt take part in polymorphism. All static methods are linked at compile time itself.
You can find more details of polymorphism in java here : http://www.javaworld.com/javaworld/javatips/jw-javatip30.html
FeedFeeds : http://www.feedfeeds.com -
Error while running a sample code
Hello,
I 'm getting the following error while i'm trying to run a
sample code which I have imported into Flex 3.
===================================================================
Severity and Description Path Resource Location Creation Time
Id
unable to open 'C:\Documents and Settings\sn55179\My
Documents\Flex Builder
3\FlexForDummies_Chapter3_Code\libs'FlexForDummies_Chapter3_Code
Unknown 1237909480511 215
===================================================================
Can anyone help me in resolving this issue.
Many thanks in advance.It's very frustrating that FB stops working when the libs
folder is missing. If you are checking in project files to a source
control app like Perforce, empty folders don't get added, so if you
don't add an initial dummy file, the next time you do a clean sync,
the libs folder may not be there, and even though there is nothing
there, FB complains. :-(
Maybe you are looking for
-
Bug in new asdoc rules in Flex PMD 1.1
ASDoc rules failing when there is metadata between asdoc comment and attributes/methods/classes https://bugs.adobe.com/jira/browse/FLEXPMD-167
-
Hi Call Functionality (Account Call/ Contact Call) uses Activity object.We have dynamic layouts for Appointment and task ? Can we create dynamic layouts for Call ( For new Call / Auto Call)
-
Mobile me member name or password maybe invalid
i have mobile member name or password maybe invalid. But It is valid coz i am using it with my icloud access. PLease help
-
PS CS5 and Bridge not showing correct colors
When I open up pictures in Photoshop CS5 and view them in Bridge, I see a really washed out color and the pictures look horrible. However, when bring them up in Pictureviewer or another application I see the correct colors. In PS the mode is set to R
-
My Iphone will delete all my mp3 songs that were deleted on my old laptop
I downloaded mp3 files for my music on my phone and sync'd it. THen my laptop broke and i had to get a new one. On my new one id ont have the mp3 files and when i try to sync my phone it says all my musicon my phone will be deleted. Is there anything