Writing binary data in same format as with FORTRAN code
Hello,
I would like to write out data in a binary format that is used by FORTRAN unformatted direct access files. I have some code in FORTAN that produces the correct format; however, I have been unable to reproduce the output with a Java method.
The FORTAN code to write an array Z is:
REAL Z(72,46,16)
OPEN(8,FILE='grads.dat',FORM='UNFORMATTED',
& ACCESS='DIRECT',RECL=72*46)
IREC=1
DO 10 I=1,16
WRITE (8,REC=IREC) ((Z(J,K,I),J=1,72),K=1,46)
IREC=IREC+1
10 CONTINUE
The Java code I was able to come up with to write out an array arrTS produces binary data differently:
FileOutputStream fosOut = new FileOutputStream(filename,false);
for(int x=0; x<this.xmax; x++) {
for(int y=0; y<this.ymax; y++) {
ByteArrayOutputStream bosOut = new ByteArrayOutputStream(2);
DataOutputStream dos = new DataOutputStream(bosOut);
dos.writeFloat((float)this.arrTS[x][y]);
byte[] arrByte = bosOut.toByteArray();
fosOut.write(arrByte);
fosOut.close();
Any help is greatly appreciated.
Best regards,
Stefan
I am using a software to read in the data that I am calculating in Java. I cannot easily change the format that software is reading; therefore, ASCII is not an option.
The software that reads the data states something about "Little-endian". Do you which Java classes to use for that?
Best regards,
Stefan
First, you need to find out the format of yourFORTRAN
output. Is it ASCII? EBCDIC? BCD? IEEE?
Big-endian? Little-endian?
Until you know that you won't know which Javaclasses
to use.Also I wouldn't be too sure different FORTRAN
compilers use the same data format.
In my view the best system interchange format still is
the ASCII text file. Why don't you let the Fortran
program use it to write its data to file. It should be
no problem reading it from Java.
Similar Messages
-
Exception writing binary data to the output stream to client -Broken pipe
Hi,
I am trying to use the drag & drop feature using Contributor mode of Webcenter sites. Single Image Page Attribute is working properly where as Multiple Image Page Attribute throws the following error:
[ERROR] [.kernel.Default (self-tuning)'] [logging.cs.satellite.request] Exception writing binary data to the output stream to client 10.191.117.106
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.java:568)
at weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:539)
at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:427)
at weblogic.servlet.internal.ChunkOutput$2.checkForFlush(ChunkOutput.java:648)
at weblogic.servlet.internal.ChunkOutput.write(ChunkOutput.java:333)
at weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:148)
at weblogic.servlet.internal.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:148)
at COM.FutureTense.Servlet.ServletRequest$OutputOutputStream.write(ServletRequest.java:80)
at COM.FutureTense.Servlet.ServletRequest.write(ServletRequest.java:1633)
at com.openmarket.Satellite.RequestContext.write(RequestContext.java:1123)
at com.openmarket.Satellite.BytePiece.stream(DataPiece.java:253)
at com.openmarket.Satellite.CacheObjectImpl.stream(CacheObjectImpl.java:651)
at com.openmarket.Satellite.Http11Responder.respondForWrapper(Http11Responder.java:142)
at com.openmarket.Satellite.WrapperAwareResponder.respond(WrapperAwareResponder.java:36)
at com.openmarket.Satellite.SatelliteServer.execute(SatelliteServer.java:85)
at com.openmarket.Satellite.servlet.BaseServlet.doGet(BaseServlet.java:118)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at com.fatwire.wem.sso.cas.filter.CASFilter.doFilter(CASFilter.java:557)
at com.fatwire.wem.sso.SSOFilter.doFilter(SSOFilter.java:51)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Thanks
KarthiKThank u very much,
FileOutputStream opGif = new FileOutputStream(destFile, false);
I have changed above line with the following line:
PrintWriter opGif = new PrintWriter ( new FileWriter(destFile, false));
and now this code is working very fine.
Thanks once again... -
Writing binary data to a file without carriage returns every 512 bytes
Is there a VI for writing binary data to a file without carriage returns being inserted every 512 bytes?
ThanksHi Momolxg,
I could be way off on this. I tried to simulate what you've done by
making a for loop that would run a set number of times. For my example I
used 1025. I wired the iteration terminal to a 'Write to SGL File.vi'
outside the loop with indexing enabled. It wrote the SGL data from 0 to
1024 to the file. I then read the file with a 'Read Characters from
File.vi' and searched the output for a carriage return (0D hex). It was
found five times. The reason why was the SGL number it was reading had a
13 (0D hex) in it. Perhaps you're running into a similar problem?
I tried it again, this time using the 'Write to I16 File.vi'. The
carriage return was found five times: the 28th character the first time
then on the 512th character four consecutive time
s after that. I suppose
that makes sense that you'd find a 0D in the numbers at equal spacings if
they're incrementing this way... In this case the carriage returns you're
seeing are actually numbers from your data.
One big difference is that I'm using a set pattern of numbers. This
doesn't appear to be your case. Is there a better way we can duplicate
your problem? It sounds interesting. Again my simulation could be way
off. (I'm also running this on LV60 for Linux so my results could be
different)
- Kevin
In article <[email protected]>,
"momolxg" wrote:
> Is there a VI for writing binary data to a file without carriage returns
> being inserted every 512 bytes? Thanks -
Writing binary data to ASP file from applet through URLConnection
Hi Everybody,
I am facing a proble with HttpURLConnection.I want to write some binary data from applet to an ASP file.The other end ASP file read this binary data and process , Here problem is I have opened URLConnection to the page and Created OutputStream and writing byte by Write() method But other end we are not getting bytes...we are not getting error too at java side..can any body help me..do we need to set any property to URLConnection...here I am giving sample code...
OutputStream os;
URL uConnect2;
HttpURLConnection hucConnect2;
uConnect2= new URL("http://webserver/vnc/sendtoserver.asp?"); hucConnect2=(HttpURLConnection)uConnect2.openConnection();
hucConnect2.setDoOutput(true);
hucConnect2.setRequestMethod("POST")
os=new DataOutputStream(hucConnect2.getOutputStream());
os.writeBytes("Hello");
Thanks in Advance
MadhavDo you remember to flush() and close() the stream?
-
What's the fastest C function for writing binary data to disk?
I'm acquiring data at high speeds across multiple boards and I'm having a hard time writing the data to disk fast enough to keep up. I'm programming in C in Visual Studios and I'm currently using fwrite. I have a similar system set up in LabView and my C code can't perform as well. Is there a better or faster way to write to disk in C?
Some speculated a few years ago that there would be
no reason to use Fortran too. :)Are you saying there's a reason to use Fortran? Help me lord!
Anyway, they were right! The industry may be stalling, but the vision is not. The economy and many other factors are to blame for why we haven't been able to break out of the computing paradigm we're stuck in. It's like the automobile, it hasn't changed in a century. Why? $$$
Oh, people said we'd have flying cars by now, where are they? Well we do have them! But we're too busy spending that 400 billion a year on war instead of evolving as a species.
Anyway, when we take the next step and have true distributed computing with multi-core processors everywhere, Java will run, Java will scale, and Java will outperform ANYTHING available.
And speaking of game programming, the PS3 developers are having a hell of a time doing the 3 CPUs. Why? Because all they've ever done is single & double processor systems. It's time to think out of the box. When a game console hits the market with 512 CPU cores, do you REALLY think C/C++ will run on that? But, Java was designed for it.
Java = the future
C++ = the past -
Hi,
I'm trying to develop a JSP that returns binary data in the form of a jpeg image.
I found this on google where one of the replies correctly states that to be compliant I need to use XML JSPs:
http://www.caucho.com/quercus/faq/question.xtp?question_id=1005
This is what I am now doing but I am getting exceptions about:
"java.lang.IllegalStateException: getOutputStream() has already been called for this response"
I have traced this to be on the very last line of the blah_jsp.java file created by tomcat:
"if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);".
My code looks like this:
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2">
<jsp:directive.page contentType="image/jpeg" />
<jsp:declaration><![CDATA[ .... ]]></jsp:declaration>
<jsp:scriptlet><![CDATA[
try {
updateImage();
response.getOutputStream().write( apodImageData );
} catch (Exception e) {
out.println( e.toString() );
StringWriter sr = new StringWriter();
e.printStackTrace( new PrintWriter( sr ) );
out.println( sr.toString() );
]]></jsp:scriptlet>
</jsp:root>
Any ideas? Is there a way to stop the container produced java file from tampering with out? Obviously my code is working but the final line of the container produced code is failing because I've manually been using result.getOutputStream().
Any ideas?Have just found this after many hours of searching:
http://www.mooreds.com/weblog/archives/000018.html
The upshot is that TC4 is non compliant in this area, TC5 is fixed.. -
JNI to interface with fortran code
So suppose my fortan program has (6 functions)
and I use Java JNI method to make use of existing fortran code
here is my ?,
should i declare prototypes of all 5 fortran functions in c or
should i declare only the topmost entry method(main) of fortran?
my inclination is that if my fortran main method has access to all variables in program, then i only need the topmost fortran main prototype funciton to be declared in c.
is this correct?how does one pass primitive data types such as char, int, single & multiple dim arrays from C to fortran?
what about passing them from fortran to C?
I had previously posted this
? in another forum not knowing about this JNI forum, so thanks for your patience. -
Printing binary data in PDF format
HI all,
Any idea on how to print Binary content in a PDF format
I have read a PDF format from application server in a Binary format, I need to print the binary content on a printer in PDF format
Any help on this is appreciated <REMOVED BY MODERATOR>
Thanks
Aakash
Edited by: Alvaro Tejada Galindo on Jun 9, 2008 3:15 PMHi papick,
this may be easier than expected for a million dollar erp system:
You need a PDF printer.
When I played around with adobe interactive forms our basis guys created a new printer in SPAD with
Device Attributes
Device Type PDF1
Device Class Stabdard Printer
location PDF-Frontend printer = Standard printer for workstation
Access Method
Host Spool Access Method FF
Host printer PDF
Then need some expremimenting with Functions
RSPO_OUTPUT_DEVICEDATA Spool Output Control of an Internal Table with Formatted Data
or something alike (see function group SPOD)
Then you should be able to create an entry in spooler (SP01) with spool request type adobe pdf document.
Sorry, I don't have this problem, thus I did not check out the details yet.
But I'm convinced it should work that way because the ADS server creates a complete PDF binary and it can be printed using the above described printer - actually a HP Laserjet V was configured as frontend printer and it can print the pdf.
Regards,
Clemens -
Writing binary data to file ???
Hi all,
I am facing a strange problem in my java program. Please go through the following code...
import java.io.*;
public class Hex2BinFile
Hex2BinFile()
boolean hex2bin(String source,String destFile)
try
PrintWriter opGif = new PrintWriter ( new FileWriter(destFile, false));
int strlen = source.length();
for ( int i = 0; i < strlen; i += 2)
opGif.print((char)Integer.parseInt(source.substring(i, i+2), 16));
opGif.flush();
opGif.close();
catch(Exception e)
System.out.println(e);
return false;
return true;
public static void main(String [] args)
Hex2BinFile hbf = new Hex2BinFile();
hbf.hex2bin("05", "/home/oracle/1.bin"); // resulting file size is 1 byte
hbf.hex2bin("AF", "/home/oracle/2.bin"); // resulting file size is 2 byte
This is a very simple class. In this class hex2bin() function takes hex string, and then convert it to binary value (character by character) and write binary value to a specified file.
In the above mentioned code, in main() method, i am calling hex2bin() method twice.
In the first call the result is satisfactory and a file (1.bin) is created with file size 1 byte as i am passing one byte hex value to this function.
But in the second call to hex2bin(), I am also passing 1 bye hex value, and resulting file size is 2 bytes. I also observe that when I pass a value greater than '7F' hex, the resulting file size is two byte.
What is the cause of this inconsistancy? is there any error or problem? and what is the solution? Please guide me.
Thanks in advance...Thank u very much,
FileOutputStream opGif = new FileOutputStream(destFile, false);
I have changed above line with the following line:
PrintWriter opGif = new PrintWriter ( new FileWriter(destFile, false));
and now this code is working very fine.
Thanks once again... -
URGENT PLEASE HELP WRITING BINARY DATA
I'm attaching a jsp page to download an excel file (generated using HSSF) that doesn't work. When I open t.xls in Excel it looks fine. I think the problem is with out.write.
<%@ page import="java.io.*" %>
<%
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-disposition", "attachment;filename=output.xl
s");
String fn="/tmp/t.xls";
File fnam=new File(fn);
FileInputStream fis=null;
response.setContentLength((int) fnam.length());
int iRead;
try{
fis= new FileInputStream(fn);
while((iRead=fis.read()) != -1) {
out.write(iRead);
out.flush();
} catch (IOException i) {
out.println("ioexception");
%>Because there is a newline between the page import line and the <% before the code...
<%@ page import="java.io.*" %><%
response.setContentType("application/vnd.ms-excel");
... -
RE: Interacting with FORTRAN code
Hi all,
I am currently working on some stuff which is written in FORTRAN and I need to put a GUI for that code. I want to know how to do it, I think I would need to use JNI and also I need to use JIT( as the program would run based on the user input). Am i in the right direction ? can someone give any guidelines as to how to do it. I have seen some of JNI documentation and all it mentions is about C,C++, assembly isnt FORTRAN supported ?
Thank you
amarshThis link could help:
http://www.math.ucla.edu/~anderson/JAVAclass/JavaInterface/JavaInterface.html -
Convert Binary Data into Pdf & send it as attachment in a mail in Workflow
Hi,
Scenario:
The interactive form saved in WebDynpro Application is sent to R/3 in binary format. It has to be converted into pdf and sent it as an attachment in mail to the respective person in workflow.
Kindly help on these issues :
1. How to receive the binary data in R/3 sent by the WebDynpro Application ?
To my knowledge we can receive the binary in XSTRING data type. Plz correct me if am wrong.
2. How do i convert the received binary data into pdf ?
Thanks,
Bharath KaushikHi Bharath,
I think you should try to write dat being sent to R/3 to spool first, as in R/3 there is FM <i>CONVERT_ABAPSPOOLJOB_2_PDF</i> , with the help of which you will be able to convert Binary data to PDF format.
Pls find one of the threads related to this , and see if this is useful to you.
Problem in CONVERT_ABAPSPOOLJOB_2_PDF.
Hope this atleast helps to start off.
Regds,
Akshay Bhagwat
PS: Some points would be nice if it helps:) -
Define BINARY DATA column (DB2 to Oracle migration)
Have a table where a column is defined as 'FOR BIT DATA'. This specifies that the contents of the column are to be treated as bit (binary) data. During data exchange with other systems, code page conversions are not performed. Comparisons are done in binary, irrespective of the database collating sequence.
During conversion to Oracle using Oracle Migration Workbench, this table is converted irrespective of this definition. Please see below for details:
DB2 table definition:
CREATE TABLE ADMIN.XENCY (
ID INTEGER NOT NULL ,
XENCYSYMBOL CHAR(2) FOR BIT DATA NOT NULL ,
IN TS_XENCY ;
Oracle table definition as generated by OMWB:
CREATE TABLE ADMIN.XENCY
( ID NUMBER(10,0) NOT NULL ENABLE,
XENCYSYMBOL CHAR(2) NOT NULL ENABLE,
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE TS_XENCY;
During data loading from DB2 to Oracle it fails for this table with the following error:
Type: Error
Time: 14-08-2006 18:21:02
Phase: Migrating
Message: Unable to migrate data from source table ADMIN.XENCY to destination table ADMIN.XENCY : ADMIN.XENCY; ORA-12899: value too large for column "ADMIN"."XENCY"."XENCYSYMBOL" (actual: 4, maximum: 2)
For Oracle the length of the data in this column is 4; however for DB2 it is 2 only as shown below:
$ db2 "select max(length(Xencysymbol)) from admin.Xency with ur"
1
2
1 record(s) selected.
$
The distinct contents of this table is as follows:
$ db2 "select distinct Xencysymbol from admin.Xency with ur"
XENCYSYMBOL
x'0024'
x'2020'
2 record(s) selected.
$
How do I define a column as containing binary data in Oracle?
Thanks in advance.The MWB DB2 LUW plug-in incorrectly translates CHAR FOR BIT. Doesn't particularly pay attention to any of the CHAR modifiers. It will just see that column as a CHAR. Obviously, this is a defect.
Binary data of limited length is stored in RAW type columns in Oracle DB.
You have two problems (in addition to issuing an ALTER COLUMN to fix the type delcaration or dropping, tweaking the table creation script and reloading. )
1. The data extraction scripts utilized for that table have not properly encoded the data for transport between DB systems. If there are endian differences between he source and target platform there may be additional problems. Nominally, you can export the binary data in hex format.
2. The SQL*Loader file needs to be adjusted. (if you dump in hex format, so the data in the file is characters of a hex value )
XENCYSYMBOL CHAR : hextoraw( : XENCYSYMBOL)
Loader will convert those hex characters back into RAW as it loads.
[ The built in data pump will not work obviously because the system thinks it is a CHAR. So offline data transfer is your only option. ] -
Hi all I have a basic doubt. How does Servlets is preferred technology to generate binary data than JSP? Any limitation in JSP?
Okay,
When you write a JSP file, you type it in text, and all the text you type is sent to the client that requests your page. Everything is sent including carriage returns, spaces, tab characters and anything you have type into the file. Only things that are inside <% and %> do not get sent through. If you have several blank lines at the end of the file they will be sent to the client and may cause issues if you are writing binary data that needs to be handled by an application.
With Servlets you have to write data to the outputstream you get from the (cant quite remember) response.getOutputStream() method. This ensures that only what you want to send gets sent to the client.
It sepends on what you need it for. If it doesnt matter what you send through then JSP can be used to write binary data. In one application I had to send through sound files to the client and any extra data would only corrupt the sound, so it had to be sent using servlets.
Does that help? -
Formatting issues with dbms_xmlgen.getxml()
Hi,
I am trying to get a shell script call a sql code, which tables the tablename as in input parameter and dump out the data as xml format. The basic code works but the xml tags seem broken -
$ cat expdata.sql
whenever sqlerror exit sqlnum sqlcode
set serveroutput off
set echo off
set pages 0
set linesize 1000
set long 9999
set head off
set feedback off
set verify off
set long 1000000
spool &1..xml
select dbms_xmlgen.getxml('select * from &1 where rownum < 100 ') xml from dual ;
exit;
$ grep TOTAL_WEIGHTED_COST_BASE shipment.xml
<TOTAL_WEIGHTED_COST_BASE>133</TOTAL_WEIGHTED_COST_B
<TOTAL_WEIGHTED_COST_BASE>134.009999999999990905052982270717620849</TOTAL_W
<TOTAL_WEIGHTED_COST_BASE>317.990000000000009094947017
72928237915</TOTAL_WEIGHTED_COST_BASE>
<TOTAL_WEIGHTED_COST_BASE>1234</TOTAL_WEIGHTED_COST_BASE>
<TOTAL_WEIGHTED_COST_BASE>175</TOTAL_WEIGHTED_COST_
<TOTAL_WEIGHTED_COST_BASE>200</TOTAL_WEIGHTED_COST_BASE>
<TOTAL_WEIGHTED_COST_BASE>99999</TOTAL_WEIGHTED_COST_BASE>
<TOTAL_WEIGHTED_COST_BASE>2000</TOTAL_WEIGHTED_COS
<TOTAL_WEIGHTED_COST_BASE>3107.86000000000012732925824820995330811</TOTA
<TOTAL_WEIGHTED_COST_BASE>3107.86000000000012732925824820995330811</TOTAL_
<TOTAL_WEIGHTED_COST_BASE>189.0399999999999920419213594868779
18243</TOTAL_WEIGHTED_COST_BASE>
<TOTAL_WEIGHTED_COST_BASE>300</TOTAL_WEIGHTED_COST_BASE>
<TOTAL_WEIGHTED_COST_BASE>99999</TOTAL_WEIGHTED_COS
<TOTAL_WEIGHTED_COST_BASE>250</TOTAL_WEIGHTED_COST_BASE>
<TOTAL_WEIGHTED_COST_BASE>1</TOTAL_WEIGHTED_COST_BASE>
<TOTAL_WEIGHTED_COST_BASE>2333.32999999999992724042385816574096
68</TOTAL_WEIGHTED_COST_BASE>
<TOTAL_WEIGHTED_COST_BASE>2333.32999999999992724042385
81657409668</TOTAL_WEIGHTED_COST_BASE>
<TOTAL_WEIGHTED_COST_BASE>100</TOTAL_WEIGHTED_COST_BASE>
<TOTAL_WEIGHTED_COST_BASE>100</TOTAL_WEIGHTED_COST_BASE>
<TOTAL_WEIGHTED_COST_BASE>396.1399999999999863575794734060>
TOTAL_WEIGHTED_COST_BASE NUMBER
other fields like - T_WEIGHTED_COST_CURRENCY_GID VARCHAR2(101 CHAR) , TOTAL_NET_WEIGHT_UOM_CODE VARCHAR2(64 CHAR also seem to have issues for this table.
Is there a format tag to get the output of each field, fields-value in each line?
I tried to trim/clean the data with Unix commands and it didn't seem to help -
FNAME=$line.xml
FNAME2=$line.xml.$$
sed -e "s/ *$//" $FNAME > $FNAME2
mv $FNAME2 $FNAME
# tr -s '\n' ' ' < $FNAME > $FNAME2
# mv $FNAME2 $FNAME
ThanksHere is the sample output -
$ more shipment.xml
<?xml version="1.0"?>
<ROWSET>
<ROW>
<SHIPMENT_GID>MENLO/A001.100100000281</SHIPMENT_GID>
<SHIPMENT_XID>100100000281</SHIPMENT_XID>
<TRANSPORT_MODE_GID>TL</TRANSPORT_MODE_GID>
<IS_TEMPLATE>N</IS_TEMPLATE>
<IS_PRIMARY>Y</IS_PRIMARY>
<IS_SPOT_COSTED>Y</IS_SPOT_COSTED>
<IS_CREDIT_NOTE>N</IS_CREDIT_NOTE>
<TOTAL_ACTUAL_COST>133</TOTAL_ACTUAL_COST>
<TOTAL_ACTUAL_COST_BASE>133</TOTAL_ACTUAL_COST_BASE>
<TOTAL_WEIGHTED_COST>133</TOTAL_WEIGHTED_COST>
<TOTAL_WEIGHTED_COST_BASE>133</TOTAL_WEIGHTED_COST_B
ASE>
<T_ACTUAL_COST_CURRENCY_GID>USD</T_ACTUAL_COST_CURRENCY_GID>
<T_WEIGHTED_COST_CURRENCY_GID>USD</T_WEIGHTED_COST_CURRENCY_
GID>
<LOADED_DISTANCE>193</LOADED_DISTANCE>
<LOADED_DISTANCE_UOM_CODE>MI</LOADED_DISTANCE_UOM_CODE>
<LOADED_DISTANCE_BASE>193</LOADED_DISTANCE_BASE>
<UNLOADED_DISTANCE>0</UNLOADED_DISTANCE>
<UNLOADED_DISTANCE_UOM_CODE>MI</UNLOADED_DISTANCE_UOM_CODE>
<UNLOADED_DISTANCE_BASE>0</UNLOADED_DISTANCE_BASE>
<SOURCE_LOCATION_GID>MENLO/A001.000026</SOURCE_LOCATION_GID>
<DEST_LOCATION_GID>MENLO/A001.000050</DEST_LOCATION_GID>
<START_TIME>24-MAY-10</START_TIME>
<END_TIME>24-MAY-10</END_TIME>
<PARENT_LEG_GID>MENLO/A001.375</PARENT_LEG_GID>
<SERVPROV_GID>MENLO/A001.CTRQ</SERVPROV_GID>
<IS_AUTO_MERGE_CONSOLIDATE>N</IS_AUTO_MERGE_CONSOLIDATE>
<PERSPECTIVE>B</PERSPECTIVE>
<TOTAL_WEIGHT>5000</TOTAL_WEIGHT>
<TOTAL_WEIGHT_UOM_CODE>LB</TOTAL_WEIGHT_UOM_CODE>
<TOTAL_WEIGHT_BASE>5000</TOTAL_WEIGHT_BASE>
<TOTAL_VOLUME>0</TOTAL_VOLUME>
<TOTAL_VOLUME_UOM_CODE>CUFT</TOTAL_VOLUME_UOM_CODE>
<TOTAL_VOLUME_BASE>0</TOTAL_VOLUME_BASE>
<TOTAL_SHIP_UNIT_COUNT>1</TOTAL_SHIP_UNIT_COUNT>
<TOTAL_PACKAGING_UNIT_COUNT>0</TOTAL_PACKAGING_UNIT_COUNT
>
<TOTAL_ITEM_PACKAGE_COUNT>50</TOTAL_ITEM_PACKAGE_COUNT>
<SHIPMENT_TYPE_GID>NON FREIGHT RELATED CHARGE</SHIPMENT_TYPE_GID>
<SHIPMENT_AS_WORK>N</SHIPMENT_AS_WORK>
<CHECK_TIME_CONSTRAINT>Y</CHECK_TIME_CONSTRAINT>
<CHECK_COST_CONSTRAINT>Y</CHECK_COST_CONSTRAINT>
<CHECK_CAPACITY_CONSTRAINT>Y</CHECK_CAPACITY_CONSTRAINT>
<WEIGH_CODE>A</WEIGH_CODE>
<RULE_7>N</RULE_7>
<SHIPMENT_RELEASED>Y</SHIPMENT_RELEASED>
<PLANNED_COST>99999</PLANNED_COST>
<PLANNED_COST_BASE>99999</PLANNED_COST_BASE>
<PLANNED_COST_CURRENCY_GID>USD</PLANNED_COST_CURRENCY_GID>
<IS_HAZARDOUS>N</IS_HAZARDOUS>
<IS_TEMPERATURE_CONTROL>N</IS_TEMPERATURE_CONTROL>
<IS_COST_FIXED>Y</IS_COST_FIXED>
<IS_SERVICE_TIME_FIXED>N</IS_SERVICE_TIME_FIXED>
<IS_RATE_GEO_FIXED>N</IS_RATE_GEO_FIXED>
I'm searching for example usage of the function call on Google, figured there might be other who have more hands on experience here with these functions.
Thanks
Maybe you are looking for
-
TS4062 I can't sync music to my iPhone 5... what do I do?
I just replaced my broken iPhone 5 with a new one, and switched the sim card from my old phone. My music did not transfer, so now I'm attempting to load my music from iTunes to my new iPhone. I have tried everything from restarting both my computer a
-
Adding a photo gallery loses the editable region
Hello I have a test site that I am road testing for my client and have noticed a slight problem when adding a photo gallery. When a photo gallery is added to a page the once editable region then loses it's editable status. When I take the page back i
-
When I attempt to open iPhoto, I receive this message: "You can't open your current photo library using this version of iPhoto. You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPh
-
I just want to post another new question based on last week's thread: Visakh16 provided me answer to use "CASE When" to handling different regions (see the Select statement below). My new question is: I do need to add a new condition for transaction
-
Width of phtmlb:ganttChart
I just inserted a phtmlb:ganttChart into my WebAS application. Cool stuff. Now, I wonder how to set the width of the chart. In my case, the chart is inserted into a table, which has width="100%". If the time frame that is shown in the chart is too bi