How to show graph of emc analyzer on labview?
Hi guys,
I have posted the question a few days before, now I still cannot get totally correct waveform.
I use a Agilent E7405A emc analyzer, I would like to control the parameters (centre frequency, span etc.) I downloaded the driver and found the VIs that can change these parameters, but I really have trouble in showing the graph on the analyzer into the pc.
The plot y-trace VI seems not working right. Do you guys have samples on showing spectrum graph? I'm using labview 8.2 so some examples on the net I cannot open, that is annoying. I really need help, thx.
Hi
I feel so to....maybe you can create user groups and also then have different actions ..... but this is a high price to pay for the same. You may want to prefix your action reason with two character country code, and train your users accordingly, You can also then have a user exit based on which user needs to use which action.......that's if you want a very strict controll.....best regards
Similar Messages
-
How to show graph that is the same value as the input.
Hi all, I've got assigned to a China local university to work with students here.
I have been going thru this tough time thinking how to solve this. When I type 12 the graph shows y-axis point 1 to 2. What I want is the line showing 0 to 12. Can somebody please please please help me?You don't even say where you type "12", but most likely all you need is to turn off autoscale for the Y axis.
LabVIEW Champion . Do more with less code and in less time . -
Hii
I have issues showing Business Graphics in SAP . My exact issue is that i have to show data in a table which has the following format :
Date - Val1 - Val2 - Val3
Now there can be any no. of rows in this table and i have to plot this data as a line graphs, In which X-axis represent dates and y axis shows the lines for values val1 , 2 & 3 .
Now the issue is the functional Modules like (Graph_3D,Graph_2D) can have only 30 to 32 such entries ...
Please Tell me a function module where i can show my data for any no. of records .
Thanks
AjitabhHi Ajitabh,
Try this code... i think this would help you out..
* Beispiel mit Aufruf SAP Businessgrafik ueber Funktionbaustein 290191*
REPORT ZGRBUSG_3
NO STANDARD PAGE HEADING.
* Tabelle mit dem einer Textspalte (Bezeichnung 3. Dimension) *
* und 6 * 5 Wertspalten (6 Werte fuer die 1., 5 Werte fuer die 2. Dim. *
* Eine Zeile entspricht jeweils einem Wert fuer die 3. Dimension *
DATA: BEGIN OF DATA OCCURS 1,
TEXT(25),
Y1L1 TYPE P,
Y2L1 TYPE P,
Y3L1 TYPE P,
Y4L1 TYPE P,
Y5L1 TYPE P,
Y6L1 TYPE P,
Y1L2 TYPE P,
Y2L2 TYPE P,
Y3L2 TYPE P,
Y4L2 TYPE P,
Y5L2 TYPE P,
Y6L2 TYPE P,
Y1L3 TYPE P,
Y2L3 TYPE P,
Y3L3 TYPE P,
Y4L3 TYPE P,
Y5L3 TYPE P,
Y6L3 TYPE P,
Y1L4 TYPE P,
Y2L4 TYPE P,
Y3L4 TYPE P,
Y4L4 TYPE P,
Y5L4 TYPE P,
Y6L4 TYPE P,
Y1L5 TYPE P,
Y2L5 TYPE P,
Y3L5 TYPE P,
Y4L5 TYPE P,
Y5L5 TYPE P,
Y6L5 TYPE P,
END OF DATA.
*--- Optionen-Tabelle -------------------------------------------------*
DATA: BEGIN OF OPTS OCCURS 1,
C(80) TYPE C,
END OF OPTS.
DATA: TYEAR1(5) VALUE '2190',
TYEAR2(5) VALUE '2313',
TYEAR3(5) VALUE '2314',
TYEAR4(5) VALUE '2339',
TYEAR5(5) VALUE '2360',
TYEAR6(5) VALUE '2378'.
DATA: TPROD1(9),
TPROD2(9),
TPROD3(9),
TPROD4(9),
TPROD5(9).
DATA: TITLE(25).
TITLE = TEXT-UMS.
TPROD1 = TEXT-P01.
TPROD2 = TEXT-P02.
TPROD3 = TEXT-P03.
TPROD4 = TEXT-P04.
TPROD5 = TEXT-P05.
SET PF-STATUS 'GRAF'.
DATA-TEXT = TEXT-P01.
DATA-Y1L2 = 1226.
DATA-Y2L2 = 1178.
DATA-Y3L2 = 1045.
DATA-Y4L2 = 1598.
DATA-Y5L2 = 1377.
DATA-Y6L2 = 1587.
DATA-Y1L3 = 1653.
DATA-Y2L3 = 1287.
DATA-Y3L3 = 1111.
DATA-Y4L3 = 0.
DATA-Y5L3 = 0.
DATA-Y6L3 = 0.
DATA-Y1L4 = 1036.
DATA-Y2L4 = 0.
DATA-Y3L4 = 0.
DATA-Y4L4 = 0.
DATA-Y5L4 = 0.
DATA-Y6L4 = 0.
APPEND DATA.
DATA-TEXT = TEXT-P00.
DATA-Y1L2 = 1.
DATA-Y2L2 = '0.50'.
DATA-Y3L2 = '0.75'.
DATA-Y4L2 = 1.
DATA-Y5L2 = '2.5'.
DATA-Y6L2 = '1.17'.
DATA-Y1L3 = '0.75'.
DATA-Y2L3 = '0.5'.
DATA-Y3L3 = '0.33'.
DATA-Y4L3 = 0.
DATA-Y5L3 = 0.
DATA-Y6L3 = 0.
DATA-Y1L4 = '1.4'.
DATA-Y2L4 = 0.
DATA-Y3L4 = 0.
DATA-Y4L4 = 0.
DATA-Y5L4 = 0.
DATA-Y6L4 = 0.
APPEND DATA.
* Ausgabe einer Liste: *
* Fuer 5 Länder jeweils 4 Jahresspalten und 5 Produktzeilen *
SKIP.
ULINE.
WRITE: / TEXT-L02.
WRITE: / TEXT-J00,22 TYEAR1,39 TYEAR2,56 TYEAR3, 73 TYEAR4.
SKIP 2.
LOOP AT DATA.
WRITE: / DATA-TEXT, 12 DATA-Y1L2,DATA-Y2L2,DATA-Y3L2,DATA-Y4L2.
ENDLOOP.
ULINE.
WRITE: / TEXT-L03.
WRITE: / TEXT-J00,22 TYEAR1,39 TYEAR2,56 TYEAR3, 73 TYEAR4.
SKIP 2.
LOOP AT DATA.
WRITE: / DATA-TEXT, 12 DATA-Y1L3,DATA-Y2L3,DATA-Y3L3,DATA-Y4L3.
ENDLOOP.
SKIP.
ULINE.
WRITE: / TEXT-L04.
WRITE: / TEXT-J00,22 TYEAR1,39 TYEAR2,56 TYEAR3, 73 TYEAR4.
SKIP 2.
LOOP AT DATA.
WRITE: / DATA-TEXT, 12 DATA-Y1L4,DATA-Y2L4,DATA-Y3L4,DATA-Y4L4.
ENDLOOP.
* PF11: 2D-Graphik einer Zeile *
* Von der 3.Dimension (Länder) wird das 1. Objekt ausgewählt. *
AT PF05. "1-Jahr
DATA: 2D_ROW VALUE '1'.
*--- Spaltentext-Tabelle ----------------------------------------------*
DATA: BEGIN OF TYEAR OCCURS 1,
C(20) TYPE C,
END OF TYEAR.
*--- 2D-Graphiktyp: Tortendiagramm ------------------------------------*
WRITE 'P2TYPE = PI' TO OPTS-C. APPEND OPTS.
*--- Spaltenbezeichnung mit in den Titel aufnehmen --------------------*
CASE 2D_ROW.
WHEN '1'.
WRITE TPROD1 TO TITLE+7.
WHEN '2'.
WRITE TPROD2 TO TITLE+7.
WHEN '3'.
WRITE TPROD3 TO TITLE+7.
WHEN '4'.
WRITE TPROD4 TO TITLE+7.
WHEN '5'.
WRITE TPROD5 TO TITLE+7.
ENDCASE.
MOVE TYEAR1 TO TYEAR-C. APPEND TYEAR.
MOVE TYEAR2 TO TYEAR-C. APPEND TYEAR.
MOVE TYEAR3 TO TYEAR-C. APPEND TYEAR.
MOVE TYEAR4 TO TYEAR-C. APPEND TYEAR.
CALL FUNCTION 'GRAPH_MATRIX_2D'
EXPORTING
TITL = TITLE
VALT = 'YIELD'
NROW = 2D_ROW
MAIL_ALLOW = 'X'
TABLES
DATA = DATA
OPTS = OPTS
TCOL = TYEAR.
* PF12: 2D-Graphik einer Spalte *
* Von der 3.Dimension (Länder) wird das 1. Objekt ausgewählt. *
AT PF06. "1-Jahr
DATA: 2D_COL VALUE '2'.
*--- 2D-Graphiktyp: Tortendiagramm ------------------------------------*
WRITE 'P2TYPE = PI' TO OPTS-C. APPEND OPTS.
*--- Spaltenbezeichnung mit in den Titel aufnehmen --------------------*
CASE 2D_COL.
WHEN '1'.
WRITE TYEAR1 TO TITLE+7.
WHEN '2'.
WRITE TYEAR2 TO TITLE+7.
WHEN '3'.
WRITE TYEAR3 TO TITLE+7.
WHEN '4'.
WRITE TYEAR4 TO TITLE+7.
ENDCASE.
CALL FUNCTION 'GRAPH_MATRIX_2D'
EXPORTING
TITL = TITLE
VALT = 'YIELD'
NCOL = 2D_COL
MAIL_ALLOW = 'X'
TABLES
DATA = DATA
OPTS = OPTS
TCOL = TYEAR.
* PF13: 3D-Graphik *
* Von der 3.Dimension (Länder) wird das 1. Objekt ausgewählt. *
AT PF07. "3-Jahre
*--- Erstes Bild: 3D --------------------------------------------------*
WRITE 'FIFRST = 3D' TO OPTS-C. APPEND OPTS.
*--- Art der Faerbung: abhaengig von den Zeilen------------------------*
WRITE 'P3CTYP = RO' TO OPTS-C. APPEND OPTS.
CALL FUNCTION 'GRAPH_MATRIX_3D'
EXPORTING
TITL = TEXT-VGL
VALT = 'YIELD'
DIM1 = TEXT-J00
DIM2 = TEXT-P00
COL1 = TYEAR1
COL2 = TYEAR2
COL4 = TYEAR4
MAIL_ALLOW = 'X'
TABLES
DATA = DATA
OPTS = OPTS.
* PF14: 3D-Graphik *
* Aufruf der 3D-Graphik mit nur einer Spalte fuehrt zu einem *
* automatischen Umschalten auf 2D-Graphik beim 1. Bild *
* Von der 3.Dimension (Länder) wird das 1. Objekt ausgewählt. *
AT PF08. "3-Jahre
*--- Erstes Bild: 3D --------------------------------------------------*
WRITE 'FIFRST = 3D' TO OPTS-C. APPEND OPTS.
*--- Art der Faerbung: abhängig von den Zeilen ------------------------*
WRITE 'P3CTYP = RO' TO OPTS-C. APPEND OPTS.
*--- 2D-Graphiktyp: Vertikale Balken ----------------------------------*
WRITE 'P2TYPE = VB' TO OPTS-C. APPEND OPTS.
CALL FUNCTION 'GRAPH_MATRIX_3D'
EXPORTING
TITL = TEXT-VGL
VALT = 'YIELD'
DIM1 = TEXT-J00
DIM2 = TEXT-P00
COL2 = TYEAR2
MAIL_ALLOW = 'X'
TABLES
DATA = DATA
OPTS = OPTS.
* PF15: 4D-Graphik *
AT PF09. "3-Jahre, mehrere L#nder
*--- Erstes Bild: Auswaehlen ------------------------------------------*
WRITE 'FIFRST = PU' TO OPTS-C. APPEND OPTS.
*--- 2D-Graphiktyp: Perspektivische Balken ----------------------------*
WRITE 'P2TYPE = TD' TO OPTS-C. APPEND OPTS.
*--- Art der Faerbung: gleichmaessig ----------------------------------*
WRITE 'P3CTYP = PL' TO OPTS-C. APPEND OPTS.
CALL FUNCTION 'GRAPH_MATRIX_4D'
EXPORTING
TITL = TEXT-VGL
VALT = 'YIELD'
DIM1 = TEXT-J00
DIM2 = TEXT-L00
DIM3 = TEXT-P01
DIM1_1 = TYEAR1
DIM1_2 = TYEAR2
DIM1_3 = TYEAR3
DIM1_4 = TYEAR4
DIM1_5 = TYEAR5
DIM1_6 = TYEAR6
DIM2_2 = TEXT-L02
DIM2_3 = TEXT-L03
DIM2_4 = TEXT-L04
* DIM3_1 = '3D'
MAIL_ALLOW = 'X'
TABLES
DATA = DATA
OPTS = OPTS.
Thanks,
Sreekanth G -
How to show graphs line progressively?
I want to show the line in graphs progressively in Keynote.
Make the line to show gradually.
like this example:
http://www.mathgoodies.com/lessons/graphs/line.html
Hoe to do this?You need to use a Wipe Build, in the Build Inspector. Select the line you want to appear, then apply the build to it.
-
can anyone tell me how to show graph in the application and not using the java applets?thanks!
Now with pie-chart too, Mmm-mmm pies!import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class DynamicGraph extends JFrame implements ActionListener {
JButton button;
int []bar = new int[5];
float []flote = new float[5];
String str = "", title="";
String []barLabels = {"","","","",""};
String []percent = {"","","","",""};
JLabel []JLab = new JLabel[5];
JTextField titletxt;
JTextField []Text = new JTextField[5];
JTextField []labeltxt = new JTextField[5];
boolean pieChart;
public DynamicGraph() {
super("Dynamic Graph");
Container c = getContentPane();
JPanel panel = new JPanel(){
public void paintComponent(Graphics g) {
Graphics2D g2 = (Graphics2D)g;
g2.setColor(new Color(223,222,224));
g2.fillRect(0,0,500,400);
g2.setColor(Color.orange);
if(pieChart) {
g2.fillArc(30, 130, 220, 220, 90, -bar[0]);
g2.fillRect(270, 170, 30, 20);
else g2.fillRect(30, 150, bar[0], 30);
g2.setColor(Color.green);
if(pieChart) {
g2.fillArc(30, 130, 220, 220, 90-bar[0], -bar[1]);
g2.fillRect(270, 210, 30, 20);
else g2.fillRect(30, 190, bar[1], 30);
g2.setColor(Color.red);
if(pieChart) {
g2.fillArc(30, 130, 220, 220, 90-(bar[0]+bar[1]), -bar[2]);
g2.fillRect(270, 250, 30, 20);
else g2.fillRect(30, 230, bar[2], 30);
g2.setColor(Color.blue);
if(pieChart) {
g2.fillArc(30, 130, 220, 220, 90-(bar[0]+bar[1]+bar[2]), -bar[3]);
g2.fillRect(270, 290, 30, 20);
else g2.fillRect(30, 270, bar[3], 30);
g2.setColor(Color.yellow);
if(pieChart) {
g2.fillArc(30, 130, 220, 220, 90-(bar[0]+bar[1]+bar[2]+bar[3]), -bar[4]);
g2.fillRect(270, 330, 30, 20);
else g2.fillRect(30, 310, bar[4], 30);
g2.setColor(Color.black);
g2.setFont(new Font("Arial", Font.BOLD, 18));
if(pieChart) g2.drawString(title, 220, 142);
else g2.drawString(title, 50, 132);
g2.setFont(new Font("Arial", Font.PLAIN,16));
int temp=0;
if(pieChart) temp = 185;
else temp = 172;
for(int j=0; j <5; j++) {
if(pieChart) g2.drawString(barLabels[j]+percent[j], 305, temp);
else g2.drawString(barLabels[j]+percent[j], bar[j]+40, temp);
temp += 40;
if(!pieChart){
g2.drawLine(30, 130, 30, 350);
g2.drawLine(30, 345, 430, 345);
g2.drawLine(210, 345, 210, 350);
g2.drawLine(390, 345, 390, 350);
g2.setFont(new Font("Arial", Font.PLAIN,12));
g2.drawString("0%", 26, 362);
g2.drawString("25%", 113, 362);
g2.drawString("50%", 200, 362);
g2.drawString("75%", 287, 362);
g2.drawString("100%", 380, 362);
super.paintComponent(g2);
panel.setOpaque(false);
panel.setLayout(new FlowLayout() );
button = new JButton("Draw 1");
JLabel jLab = new JLabel("<html><font face='Arial'>Enter graph title here, then labels and<br>number values and press the button</font></html>");
titletxt = new JTextField(18);
panel.add(jLab);
panel.add(titletxt);
JLabel addNums = new JLabel("Labels: ");
panel.add(addNums);
for (int j=0; j<5; j++){
str = Integer.toString(j+1);
JLab[j] = new JLabel(str);
labeltxt[j] = new JTextField(6);
panel.add(JLab[j]);
panel.add(labeltxt[j]);
button.addActionListener(this);
JLabel labellers = new JLabel("Numbers");
panel.add(labellers);
for (int k=0; k<5; k++){
str = Integer.toString(k+1);
JLab[k] = new JLabel(" "+str+" ");
Text[k] = new JTextField(3);
panel.add(JLab[k]);
panel.add(Text[k]);
panel.add(button);
c.add(panel);
public void actionPerformed(ActionEvent e) {
String command = e.getActionCommand();
if(command.equals("Draw 1")){
button.setText("Draw 2");
pieChart=false;
try {
title = titletxt.getText();
if(title.length() <1)title ="No title submitted";
int temp =0;
java.text.DecimalFormat df = new java.text.DecimalFormat("#0.#");
for (int j=0; j<5; j++){
flote[j] = Float.parseFloat(Text[j].getText());
temp += (int)((flote[j]) +0.5);
for (int k=0; k<5; k++){
bar[k] = (int)(((flote[k]/temp) * 360)+0.5);
barLabels[k] = labeltxt[k].getText();
flote[k] = (flote[k]/temp) *100;
percent[k] = ": "+df.format(flote[k])+"%";
catch(Exception message){
title = "Oops! Complete all fields, enter numbers only";
if(command.equals("Draw 2")){
button.setText("Draw 1");
pieChart=true;
repaint();
public static void main(String[] args) {
DynamicGraph frame = new DynamicGraph();
frame.setSize(500,400);
frame.setLocation(200, 200);
frame.setResizable(false);
frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
frame.setVisible(true);
} -
How to show New calculated item in graph.
I created a new calculated item in column in pivot table. That new calculated item is not showing in line graph.
How to show that new column in graph.
ThanksGuys Please provide any pointers to achieve this. its very urgent for me.
Regards
Kris -
How to show delivery date in Bex Analyzer
Hi Gurus!
I have to create a report in logistic scenario and my client wants that the report shows a column with the "Scheduled delivery date". I don't know how to show it in a column because in my KF structure, I can't put just this time characteristic.
Does anybody know how can I solve it?
Many thanks!Hi,
Create a Formula Variable on Scheduled DeliveryDate with processing as replacement path, replace variable with InfoObject, replace with Key and use it in the new formula in the columns.
in this way query designer will accept you to use the char as in column,
hope it helps you.
Regards
Reddy A -
"How to create graphs in Reports"
Hi All,
Please anybody help me how to create graphs in the BEx Analyzer and whenever the reports will be refreshed the graphs should also be refreshed with the updated data.
Help much appreciated.
I will assign points.
Thanks and Regards,
Sunil Morwal.Hi Sunil,
You can get charts in Bex Analyzer. After you execute the report, from the Tools menu > Insert Chart. You can position and edit the chart as desired and save this as a workbook.
Hope this helps...
Regards. -
11g: How to show vertical gridlines and ticks only on full hours?
Hi,
continuation of read-only preview thread dvt:graph How to show major ticks on X-axis only for full hours?
Katarina, I tried your suggestions with mixed success.
Here my starting code:
<dvt:graph binding="#{backing_lmrg0001.graph11}"
id="graph11" imageFormat="FLASH"
value="#{bindings.VwLmrgWerteGrafik.graphModel}"
dynamicResize="DYNAMIC_SIZE"
graphType="BAR_VERT_STACK2Y"
inlineStyle="width:100%; height:50%;"
noDataErrorText="#{bundle.NO_DATA_AVAILABLE_TEXT}"
partialTriggers="::commandButtonCreateGraphic ::pollRefreshData"
imageHeight="200"
continuousTimeAxisInterval="CTAI_HOUR">
<dvt:referenceObjectSet>
<dvt:referenceObject lineValue="#{backing_lmrg0001.grenzwertAcetat}"
index="0"
displayedInLegend="true"
text="#{bundle.GRAPH_THRESHOLD_ACETAT_LABEL}"
series="0" color="#ff0000"
lineWidth="2"
location="RO_FRONT"/>
</dvt:referenceObjectSet>
<dvt:seriesSet defaultAssignedToY2="DY2_AUTO_ASSIGN">
<dvt:series color="#0052ff"
markerType="MT_STEPPED_LINE" lineWidth="2"
assignedToY2="false"/>
<dvt:series assignedToY2="true" lineWidth="10"
markerType="MT_AREA" color="#e7e700"/>
<dvt:series color="#94f700" markerType="MT_AREA"
lineWidth="10" assignedToY2="true"/>
</dvt:seriesSet>
<dvt:y2Axis majorTickStep="1.0"
majorTickStepAutomatic="false"/>
<dvt:o1Axis/>
<dvt:o1MajorTick tickStyle="GS_GRID"
lineColor="#00ff00"/>
</dvt:graph>The x-axis contains date values with a grid of 5 minutes over 12 hours.
The code above shows vertical gridline only at 00:00 o'clock.
The tick label displays every half hour (format HH24:MI) --> continuousTimeAxisInterval="CTAI_HOUR" seems to have no effect.
Then I changed timeAxisType from "TAT_DEFAULT" to "TAT_DEFAULT_STRICT".
Juhu, now vertical gridlines are displayed every half hour, but orientation of tick label changed from vertical to horicontal (format DD.MM.YYYY)!
--> Why????
Then I added following code:
<dvt:o1TickLabel automaticRotation="AR_NO_ROTATE"
tickLabelSkipMode="TLS_MANUAL"
tickLabelSkipCount="12"/>This changes the orientation of x-axis tick labels to horicontal AND tickLabelSkipCount has the correct effect ! (which is wrong when using timeAxisType=TAT_DEFAULT_STRICT)
Problem now is that format of tick labels is DD.MM.YYYY and not HH24:MI.
I tried following but with no success:
<dvt:timeAxisDateFormat dayFormat="NONE"
monthFormat="NONE"
quarterFormat="NONE"
yearFormat="NONE"
timeFormat="HOUR24_MINUTE"/>This keeps following questions open for me:
1) Why does tick label orientation and format changes if timeAxisType changes from "TAT_DEFAULT" to "TAT_DEFAULT_STRICT"?
2) How to change tick label format to HH24:MI, if timeAxisType=TAT_DEFAULT_STRICT?
3) continuousTimeAxisInterval="CTAI_HOUR" doesn't solve my problem to show tick labels only for full hours.
regards
PeterHi,
Bug 7503358 has been opened for the problem of the missing vertical gridlines.
regards
Peter -
How to show x and y axis scale name
hiiiii
I am facing a problem to show scale name while making a line graph using GRAPH_MAtRIX_2D function module .
please tell me how to show scale name using this function????????
is there another way to solve this problem??You can use the "built xy graph" express VI. (Simply place the xy-graph from the express palette and it will appear).
You can also built your graph in a shift register. For simplicity, I would use a complex array in this case.
LabVIEW Champion . Do more with less code and in less time . -
How to show more than one record at a form-like style report?
Hi All,
I developed a form-like style report
I want it to show more than one record at once (At the same page)
I tried that by setting the value to "Maximum records per page" property for the repeating frame to 10
but when I close the property palete and open it agian the value is returned to 1 !!!
how to show more than one record at the same page?????
Thank uHi,
there's perhaps another property like "page protect". If than 2 records didn't fit at one page there's a page break. Or is there any object inside the repeating frame with page-break properties? Sorry .. it's like looking into a chrystal ball ...
Regards
Rainer -
How to show custom error message in WebADI Excel template?
Hi,
I've created a custom Web ADI integrator and associated it with a 'Procedure' based custom interface.
WebADI Interface API Returns is set to "Error Message".
I'm using raise_application_error(-20001, "Actual Error Message") for invalid rows,but custom error message from PL/SQL is not populated on the excel template.
Instead it is showing "SQL exception occurred during PL/SQL upload".
Am I missing anything? How to show custom error message from Pl/SQL procedure to WebADI Excel template?
TIA
NarasimhaThe custom API errors are visible in the BNE log but not on the Excel.
BNE Log=>
12/10/13 2:52 PM Web ADI Upload Job 13008 ERROR BnePLSQLUpload.doUpload: Exception while uploading to PL/SQL API. Error Code: 20001, Message: ORA-20001: -Please enter CONTAINER_ID - Enter PO_NO -
ORA-06512: at "APPS.XXPO_COSTFACTS_WEBADI_PKG", line 264
ORA-06512: at line 1
12/10/13 2:52 PM Web ADI Upload Job 13008 ERROR BnePLSQLUpload.doUpload: Stack trace: java.sql.SQLException: ORA-20001: -Please enter CONTAINER_ID - Enter PO_NO -
ORA-06512: at "APPS.XXPO_COSTFACTS_WEBADI_PKG", line 264
ORA-06512: at line 1
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:202)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1005)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3550)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4710)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
at oracle.apps.bne.integrator.upload.BnePLSQLUpload.doUpload(BnePLSQLUpload.java:284)
at oracle.apps.bne.integrator.upload.BneSAXUploader.processDeepestLevel(BneSAXUploader.java:2346)
at oracle.apps.bne.integrator.upload.BneSAXUploader.startElement(BneSAXUploader.java:1182)
at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:181)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1288)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:234)
at oracle.apps.bne.integrator.upload.BneUploader.processUpload(BneUploader.java:301)
at oracle.apps.bne.integrator.upload.BneAbstractUploader.processUpload(BneAbstractUploader.java:114)
at oracle.apps.bne.integrator.upload.async.BneAsyncUploadThread.run(BneAsyncUploadThread.java:140)
12/10/13 2:52 PM AJPRequestHandler-HTTPThreadGroup-5 WARNING BneOracleWebAppsContext.getTimeZone CLIENT_TIMEZONE_ID has not been set
12/10/13 2:52 PM AJPRequestHandler-HTTPThreadGroup-5 ERROR BneOracleWebAppsContext.getExtraJDBCConnection recieved the same connection as the base connection. There may be transaction problems.
How to show the same error in the excel template?
Here is the package:
CREATE OR REPLACE PACKAGE BODY APPS.XXPO_COSTFACTS_WEBADI_PKG
AS
PROCEDURE upload_data (
P_CONTAINER_ID IN VARCHAR2
, P_SAIL_DATE IN DATE
, P_PO_NO IN VARCHAR2
) IS
--declare
lv_err_msg VARCHAR2(240);
lf_err_flag NUMBER := 0;
ln_temp NUMBER;
BEGIN
--------------------- checking for mandatory parameters---------------------------
IF (P_CONTAINER_ID IS NULL) THEN
lf_err_flag := 1;
lv_err_msg := lv_err_msg||'-'||'Please enter CONTAINER_ID - ';
END IF;
-------------Validation for Sail Date Format----------------------
IF (P_SAIL_DATE IS NULL) THEN
lf_err_flag := 1;
lv_err_msg := lv_err_msg || ' ' || 'Enter Sail Date - ';
ELSE
BEGIN
SELECT 1
INTO ln_temp
FROM DUAL
WHERE P_SAIL_DATE = TO_DATE (TO_CHAR (P_SAIL_DATE, 'DD-MON-YYYY'), 'DD-MM-YYYY');
EXCEPTION
WHEN NO_DATA_FOUND THEN
lf_err_flag := 1;
lv_err_msg := lv_err_msg || ' Enter Sail date in DD-MON-YYYY Format';
WHEN OTHERS THEN
lf_err_flag := 1;
lv_err_msg := lv_err_msg || ' Enter Sail date in DD-MON-YYYY Format'|| SQLERRM;
END;
END IF;
-------------Validation for PO_Number----------------------
IF (P_PO_NO IS NULL) THEN
lf_err_flag := 1;
lv_err_msg := lv_err_msg || ' ' || 'Enter PO_NO - ';
ELSE
BEGIN
SELECT count(1)
INTO ln_temp
FROM PO_HEADERS
WHERE Attribute4 = P_PO_NO;
EXCEPTION
WHEN NO_DATA_FOUND THEN
lf_err_flag := 1;
lv_err_msg := lv_err_msg || ' No Oracle PO for Biceps PO#'||P_PO_NO;
WHEN OTHERS THEN
lf_err_flag := 1;
lv_err_msg := lv_err_msg || ' Error getting the Oracle PO for Bicpes PO#'||P_PO_NO||' Error-' || SQLERRM;
END;
END IF;
-----------------------Insert Record----------------------------
IF lv_err_msg is NULL THEN
BEGIN
INSERT
INTO XXP2P_HW_COST_FACTORS_STG
CONTAINER_ID
,SAIL_DATE
,PO_NO
, ERROR_FLAG
, ERROR_MSG
,CREATED_BY
,CREATION_DATE
,LAST_UPDATED_BY
,LAST_UPDATE_DATE
,LAST_UPDATE_LOGIN
VALUES
P_CONTAINER_ID
,P_SAIL_DATE
,P_PO_NO
,lf_err_flag
,lv_err_msg
,FND_GLOBAL.USER_ID
, trunc (sysdate)
,FND_GLOBAL.USER_ID
, trunc (sysdate)
,FND_GLOBAL.LOGIN_ID
-- commit;
DBMS_OUTPUT.put_line
'-' || 'After ap_invoices_interface'
EXCEPTION
WHEN OTHERS THEN
ROLLBACK;
lf_err_flag := 1;
lv_err_msg := lv_err_msg || ' ' || 'error loading CONTAINER_ID-' || P_CONTAINER_ID || SQLERRM;
raise_application_error(-20001, lv_err_msg);
END;
ELSE
raise_application_error(-20001, lv_err_msg);
END IF;
END upload_data;
END XXPO_COSTFACTS_WEBADI_PKG; -
How to show modal window without popup in a web page using javascript
Hi,
How to show modal window without popup in a web page using javascript, means when the modalwindow is opened it should not ask for popup blocker alert......
pls help me.....Thanx for ur reply,
Actually the senario is when i click on a button, another jsp page should be displayed in a modal window without popup, but the functions alert() and confirm() will not accept the url path of the another jsp page... -
How to show "ALL" Values by default in Page Drop-Down Lists in Pivot Tables
Hi Everyone,
Iam stuck with 1 problem please can any 1 help me if u know the solution.
Here is my problem:
How to show "ALL" Values by default in Page Drop-Down Lists in Oracle BI Pivot Tables?
For example, if you place Region in the pages area, a Region drop-down list allows the user to select a particular region, and see the data for only that region, rather than seeing all the Regions,But by default its not showing "ALL" option in the drop down list ,rather than doing that its showing result for only 1 region by default.
And an other problem with this pages area is, if we palce the multiple attributes in the Pages area in the pivot table, the (Fields)result is showing in vertically, the attributes 1 by 1(Every attribute in a new line) ,rather than showing like that, is there any way to show the results in horizantally?(We want to have it as a seperate drop drown list for every field horizantally not as a concatenated list).Thanks Nikhil. But I am fetching the values from the LOVCache.java.
I am using <af:selectManyChoice>. Is there any way I can use LOVCache.java value for selecting default values instead of hard coding?
I mean to say can I write
unselectedLabel="#{LOVCache.entityTypeSelectionList.anyValue}"
where LOVCache.entityTypeSelectionList is used to populate the drop down box.
Regards,
Aseet -
How to show all view tab (Main Report and all Sub Report) in Visual FoxPro 9
I use ActiveX from Crystal Report Developer XI for viewer in Visual FoxPro 9 and I already know how to show Main Report by using command:
oRptRun=createobject("CrystalRuntime.Application")
oRptView=thisform.oleRptViewer
oRptOpen=oRptRun.OpenReport('MyReport.rpt')
oRptView.ReportSource=oRptOpen
oRptView.ViewReport
Inside the MyReport.rpt there is two subreport name :
1. MySubReport1
2. MySubReport2
My Question is :
How to show all view tab (Main Report and all Sub Report) at the 1st time we call ViewReport?
I try to using command :
oRptRun=createobject("CrystalRuntime.Application")
oRptView=thisform.oleRptViewer
oRptOpen=oRptRun.OpenReport('MyReport.rpt')
oRptSub=oRptOpen.OpenSubreport("MySubReport1")
oRptSub=oRptOpen.OpenSubreport("MySubReport2")
oRptView.ReportSource=oRptOpen
oRptView.ViewReport
but only show Main Report (view tab name : Preview)?
Did I miss any command before I call oRptView.ViewReport?Your right, there is only one tab to view the report.
To open the subreports you will need to click on them in the main report. I don't know of a way to open them programmatically like you are doing here
http://diamond.businessobjects.com/robhorne</a>
Maybe you are looking for
-
IPhone 4 phones calls interrupted by music
When I'm making a phone call I will suddenly be cut off and the Phone starts to play the music that is on the device. I'm not doing anything to the phone, not pressing buttons shaking it or anything. I can be talking to somebdoy and then suddely the
-
I have recently bought a new laptop with windows 7 and when i have tried to install and open itunes i keep getting the message 'itunes has stopped working' itunes then shuts down before i can do anything to fix it. This happens every time I try to op
-
How can I display separate hd and sd movie icons for same movie?
Hello, I downloaded (bought, not rented) an HD movie. I saw the HD file download and SD file download; both are in the itunes music library. However, only an HD/SD icon displays in itunes. No matter what I try I can't get the SD version to display
-
Test touch events in SWF file?
I'm sure this is one of those "Oh, press this button in Preferences" type of questions, but I have googled to no avail which makes me think I'm either missing something so simple no one has even bothered saying it or I'm asking the wrong question. I
-
ITune Purchases did not import over to iTune 7.2
Just updated to iTune 7.2 and all library items imported OK, however, none of my purchased movies imported, says that I am not authorized to play on my iPod? What gives with this? PLEASE HELP