ID CS3: how to input new data into already formatted table
Hi, I have a table that's already formatted, and every month it needs to be renewed with new data that's delivered in an Excel document
How can I just repopulate the table with the new data without modifying the table style in any way?
I read that this is possible in ID CS3 but I don't know how to implement this.
Many thanks!
The InDesign Help app details how to import Microsoft Excel files. Search for Microsoft Excel import options. Everything you need should be there.
If you use the same table each week, you can make a link to the excel file and simply update it each time it changes, without having to import it each time. In Preferences > Type, under the Links option check the box and InDesign will treat placed text/excel files like images, that can be updated when they change.
Similar Messages
-
How to add new field into dynamic internal table
Hello Expert.
how to add new field into dynamic internal table.
PARAMETERS: P_TABLE(30). "table name
DATA: I_TAB TYPE REF TO DATA.
FIELD-SYMBOLS: <TAB> TYPE standard TABLE.
*Create dynamic FS
create DATA I_TAB TYPE TABLE OF (p_table).
ASSIGN I_TAB->* TO <TAB>.
SELECT * FROM (p_table) INTO TABLE <TAB>.
here i want to add one more field into <TAB> at LAST position and my
Field name = field_stype and
Field type = 'LVC_T_STYL'
could you please helpme out .Hi,
Please find the code below.You can add the field acc to your requirement.
Creating Dynamic internal table
TYPE-POOLS: slis.
FIELD-SYMBOLS: <t_dyntable> TYPE STANDARD TABLE, u201C Dynamic internal table name
<fs_dyntable>, u201C Field symbol to create work area
<fs_fldval> type any. u201C Field symbol to assign values
PARAMETERS: p_cols(5) TYPE c. u201C Input number of columns
DATA: t_newtable TYPE REF TO data,
t_newline TYPE REF TO data,
t_fldcat TYPE slis_t_fldcat_alv,
t_fldcat TYPE lvc_t_fcat,
wa_it_fldcat TYPE lvc_s_fcat,
wa_colno(2) TYPE n,
wa_flname(5) TYPE c.
Create fields .
DO p_cols TIMES.
CLEAR wa_it_fldcat.
move sy-index to wa_colno.
concatenate 'COL'
wa_colno
into wa_flname.
wa_it_fldcat-fieldname = wa_flname.
wa_it_fldcat-datatype = 'CHAR'.
wa_it_fldcat-intlen = 10.
APPEND wa_it_fldcat TO t_fldcat.
ENDDO.
Create dynamic internal table and assign to FS
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = t_fldcat
IMPORTING
ep_table = t_newtable.
ASSIGN t_newtable->* TO <t_dyntable>.
Create dynamic work area and assign to FS
CREATE DATA t_newline LIKE LINE OF <t_dyntable>.
ASSIGN t_newline->* TO <fs_dyntable>.
Populating Dynamic internal table
DATA: fieldname(20) TYPE c.
DATA: fieldvalue(10) TYPE c.
DATA: index(3) TYPE c.
DO p_cols TIMES.
index = sy-index.
MOVE sy-index TO wa_colno.
CONCATENATE 'COL'
wa_colno
INTO wa_flname.
Set up fieldvalue
CONCATENATE 'VALUE' index INTO
fieldvalue.
CONDENSE fieldvalue NO-GAPS.
ASSIGN COMPONENT wa_flname
OF STRUCTURE <fs_dyntable> TO <fs_fldval>.
<fs_fldval> = fieldvalue.
ENDDO.
Append to the dynamic internal table
APPEND <fs_dyntable> TO <t_dyntable>.
Displaying dynamic internal table using Grid.
DATA: wa_cat LIKE LINE OF fs_fldcat.
DO p_cols TIMES.
CLEAR wa_cat.
MOVE sy-index TO wa_colno.
CONCATENATE 'COL'
wa_colno
INTO wa_flname.
wa_cat-fieldname = wa_flname.
wa_cat-seltext_s = wa_flname.
wa_cat-outputlen = '10'.
APPEND wa_cat TO fs_fldcat.
ENDDO.
Call ABAP List Viewer (ALV)
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = fs_fldcat
TABLES
t_outtab = <t_dyntable>. -
How to convert BLOB data into string format.
Hi,
I have problem while converting blob data into string format.
for example,
Select dbms_lob.substr(c.shape.Get_wkb(),4000,1) from geotable c
will get me the first 4000 byte of BLOB .
When i using SQL as i did above,the max length is 4000, but i can get 32K using plsql as below:
declare
my_var CLOB;
BEGIN
for x in (Select X from T)
loop
my_var:=dbms_lob.substr(x.X,32767,1)
end loop
return my_var;
I comfortably convert 32k BLOB field to string.
My problem is how to convert blob to varchar having size more than 32K.
Please help me to resolve this,
Thanx in advance for the support,
NileshNilesh,
. . . .The result of get_wkb() will not be human readable (all values are encoded into some binary format).
SELECT utl_raw.cast_to_varchar2(tbl.geometry.get_wkt()) from FeatureTable tbl;
-- resulting string:
☺AW(⌂özßHAA
Å\(÷. . . .You may also want to have a look at { dbms_lob | http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lob.htm#i1015792 } "The DBMS_LOB package provides subprograms to operate on BLOBs, CLOBs, NCLOBs, BFILEs, and temporary LOBs."
Regards,
Noel -
How to read RMAN data into an ORACLE Table?
Hallo,
With regards to RMAN, how should we store the data into a database table, from the commands which can run only on RMAN prompt without using Recovery Catalog?
For Example:
RMAN> Report need backup days 3;
RMAN DATA:
RMAN-03022: compiling command: report
Report of files whose recovery needs more than 3 days of archived logs
File Days Name
1 1203 D:\ORACLE\ORADATA\TEST\SYSTEM01.DBF
2 1203 D:\ORACLE\ORADATA\TEST\RBS01.DBF
3 1203 D:\ORACLE\ORADATA\TEST\USERS01.DBF
Should it done via UTL_FILE?
If so, could someone give simple example/code how to do that, in order to write this RMAN data into an Oracle Database table?
I also set the utl_file_dir parameter to a particular directory in my database.
Thanks
W.BenvortActually, I am not using Recovery Catalog, so the views like RC_database, Rc_tablespaces etc , which are specific to recovery catalog are not available.
r.- this make sense at 100% because those views belong to the recovery catalog.
So, I wanted that these information, which we can get via using the commands like above, transfer into an Oracle table
r.- If you want to access the views of the Recovery Catalog to store part of that information in tables you have to have the database registered in a Recovery Catalog.
Should we keep the Recovery Catalog in Control file? Instead of using separate Schema.
r.- I recommend you to create a catalog for your database because the space the controlfile to store information regarding RMAN is reused and you can lose important information about your backups.
Can we run Catrman.sql script as a sys in order to keep the recovery catalog in sys schema?
r.- As you know, this is not recommended at all.
Conclusion : Create a Recovery Catalog and you will be able to perform all that you want regardind what you mentioned above.
I have a thread for this:
RMAN ( CATALOG CREATION ) STEP BY STEP by Joel Pérez
Joel Pérez
http://otn.oracle.com/experts -
How to store context data into a database table?
Hi All,
I am very new to Web Dynpro ABAP.
I am trying to store context data into database table. For this i need to write some code.
I have created one context attribute to store data and i have one database table.
Know i want to store that context attribute's data into database table.
Can anyone provide me necessary code to do this.
Thanks in Advance!
Regards,
Sreelakshmi.Hello Sreelakshmi,
i think there would be some button and when u click that, the data of the context need to get saved into the database.
For the button,create an action.
in the action handler write the following code.
DATA lo_nd_kna1 TYPE REF TO if_wd_context_node.
DATA lo_el_kna1 TYPE REF TO if_wd_context_element,
DATA lt_kna1 TYPE wd_this->elements_znode.
DATA ls_kna1 TYPE wd_this->element_znode.
lo_nd_kna1 = wd_context->get_child_node( name = wd_this->wdctx_znode ).
lo_el_kna1 = lo_nd_kna1->get_element( ).
lo_el_kna1->get_static_attributes( IMPORTING static_attributes = ls_kna1 ).
modify kna1 from ls_kna1.
Regards
Sajid -
How to load xml data into a database table....
Hi All,
Iam new to this forum.I have an xmldoc table of xmltype(datatype).Iam able to insert xml data to it.I have another table called new_books.sql:
CREATE TABLE NEW_BOOKS
TITLE VARCHAR2(255) NOT NULL,
LINK VARCHAR2(80) NULL,
PUBLISHER VARCHAR2(255) NULL,
SUBJECT VARCHAR2(80) NULL,
PUBDATE VARCHAR2(40) NULL,
DESCRIPTION VARCHAR2(4000) NULL,
AUTHOR VARCHAR2(80) NULL,
PRIMARY KEY(TITLE)
Now i want to copy the data in the xmldoc table into the table new_books.sql.Is there any procedure to do that in PL/SQL?
Given below is the xmlfile:
- <rdf>
- <item>
<title>Enterprise SOA: Designing IT for Business Innovation</title>
<link>http://safari.oreilly.com/0596102380?a=102682</link>
<publisher>O'Reilly</publisher>
<creator>Thomas Mattern</creator>
<creator>Dan Woods</creator>
<subject>IT Infrastructure</subject>
<date>April 2006</date>
</item>
</rdf>
Thanks in Advance,
Gita.Assuming the table xmldoc(of xmltype) has this XML
SQL> select * from xmldoc;
SYS_NC_ROWINFO$
<rdf>
<item>
<title>Enterprise SOA: Designing IT for Business Innovation</title>
<link>http://safari.oreilly.com/0596102380?a=102682</link>
<publisher>O'Reilly</publisher>
<creator>Thomas Mattern</creator>
<creator>Dan Woods</creator>
<subject>IT Infrastructure</subject>
<date>April 2006</date>
</item>
</rdf>
SQL> INSERT INTO NEW_BOOKS(TITLE, LINK, PUBLISHER, SUBJECT)
2 select extractvalue(value(x),'/rdf/item/title') as title,
3 extractvalue(value(x),'/rdf/item/link') as link,
4 extractvalue(value(x),'/rdf/item/publisher') as publisher,
5 extractvalue(value(x),'/rdf/item/subject') as subject
6 from xmldoc x
7 ;
1 row created. -
How to save LabView data into diadem format ?
I have a project that needed me to save in Diadem format.
Is it the correct way to save in Diadem format ?
Why the length of the data is only limited to 10000 and then will create another tab ? And how to edit the header name ( what I want is Time,Channel0,Channel1,etc) ?
Attachments:
TDMS.vi 493 KB
TDMS.zip 774 KBYour question makes no sense since that VI does not have any TDMS file functions. You are also creating a header in the text file but not according to what you say you want the column names to be.
-
How to convert LRAW data into the Format of JPEG TIF
Hi All,
I am getting data in LRAW from the table DRAO i want to change it into Binary for display,
I want to display the content into JPEG TIF
I am getting error when display that format is not suitable.
Thanks,Hello Shilpi,
you can use SCMS_XSTRING_TO_BINARY to convert the RAW data to Binary.
BR, Saravanan -
How to convert xml data into html format in bpel
Hi ,
Can any one tel me how to conevrt xml into html in oracle bpel.
Does bpel support this functionality or not.
Regards,
Ana
Edited by: user10181991 on Apr 5, 2009 11:16 PMAna,
We are doing the same thing--using one variable with the schema as the source of the .xsl and assigning the resulting html to another variable--the content body of the email, in our case. I just posted how we did it here: Re: Using XSLT to generate the email HTML body
Let me know if this helps. -
How to input sound file into MS Access Database, not random folder?
Hi, I am trying to input a sound file into an MS Access 2000 database, I know it can be copied and pasted into there, but how can u input into the database with a user record, i also need the code to extract it as well as inputting it....at the moment it records the sound and stores it as test.wav on the local drive....
here is my code for my applet do far....
compile this file first....
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import java.io.IOException;
import java.io.File;
import java.net.URL;
import javax.sound.sampled.DataLine;
import javax.sound.sampled.TargetDataLine;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.LineUnavailableException;
import javax.sound.sampled.AudioFileFormat;
public class VoicePasswordRecorder extends Thread {
private TargetDataLine m_line;
private AudioFileFormat.Type m_targetType;
private AudioInputStream m_audioInputStream;
private File m_outputFile;
public VoicePasswordRecorder(TargetDataLine line,
AudioFileFormat.Type targetType,
File file)
m_line = line;
m_audioInputStream = new AudioInputStream(line);
m_targetType = targetType;
m_outputFile = file;
/** Starts the recording.
(i) The line is started,
(ii) The thread is started,
public void start()
/* Starting the TargetDataLine. It tells the line that
data needs to be read from it. If this method isn't
called then it won't be able to read data from the line.
m_line.start();
/* Starting the thread. This call results in the
method 'run()'being called. There, the
data is actually read from the line.
super.start();
/** Stops the recording.
Note that stopping the thread is not necessary. Once
no more data can be read from the TargetDataLine, no more data
can be read from the AudioInputStream. The method 'AudioSystem.write()'
(called in 'run()' returns. Returning from 'AudioSystem.write()'
is followed by returning from 'run()', and then the thread
stops automatically.
public void stopRecording()
m_line.stop();
m_line.close();
/** Main working method.
'AudioSystem.write()' is called.
Internally, it works like this: AudioSystem.write()
contains a loop that is trying to read from the passed
AudioInputStream. Since there is a special AudioInputStream
that gets data from a TargetDataLine, reading from the
AudioInputStream leads to reading from the TargetDataLine. The
data read this way is then written to the passed File. Before
writing of audio data starts, a header is written according
to the desired audio file type. Reading continues until no
more data can be read from the AudioInputStream. In this case,
it happens if no more data can be read from the TargetDataLine.
This happens if the TargetDataLine is stopped. Then,
the file is closed and 'AudioSystem.write()' returns.
public void run()
try
AudioSystem.write(
m_audioInputStream,
m_targetType,
m_outputFile);
catch (IOException e)
e.printStackTrace();
public static void main(String[] args)
if (args.length != 1 || args[0].equals("-h"))
printUsageAndExit();
/* There is only one command line argument.
This is taken as the filename of the soundfile
to store to.
String strFilename = args[0];
File outputFile = new File(strFilename);
/* For simplicity, the audio data format used for recording
is hardcoded here. The PCM 44.1 kHz, 16 bit signed,
stereo was used.
AudioFormat audioFormat = new AudioFormat(
AudioFormat.Encoding.PCM_SIGNED,
44100.0F, 16, 2, 4, 44100.0F, false);
/* Here, the TargetDataLine is being received. The
TargetDataLine is used later to read audio data from it.
If requesting the line was successful, it will open it.
DataLine.Info info = new DataLine.Info(TargetDataLine.class, audioFormat);
TargetDataLine targetDataLine = null;
try
targetDataLine = (TargetDataLine) AudioSystem.getLine(info);
targetDataLine.open(audioFormat);
catch (LineUnavailableException e)
out("unable to get a recording line");
e.printStackTrace();
System.exit(1);
AudioFileFormat.Type targetType = AudioFileFormat.Type.WAVE;
/* The creation of the VoicePasswordRecorder object.
It contains the logic of starting and stopping the
recording, reading audio data from the TargetDataLine
and writing the data to a file.
VoicePasswordRecorder recorder = new VoicePasswordRecorder(
targetDataLine,
targetType,
outputFile);
/* It is waiting for the user to press ENTER to
start the recording.
out("Press ENTER to start the recording.\n");
try
System.in.read();
catch (IOException e)
e.printStackTrace();
/* Here, the recording is actually started.
recorder.start();
out("Recording...\n");
/* It is waiting for the user to press ENTER,
this time to signal that the recording should be stopped.
out("Press ENTER to stop the recording.\n");
try
System.in.read();
catch (IOException e)
e.printStackTrace();
/* Here, the recording is actually stopped.
recorder.stopRecording();
out("Recording stopped.\n");
private static void printUsageAndExit()
out("VoicePasswordRecorder: usage:");
out("\tjava VoicePasswordRecorder -h");
out("\tjava VoicePasswordRecorder <audiofile>");
System.exit(0);
private static void out(String strMessage)
System.out.println(strMessage);
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.*;
import javax.sound.sampled.*;
import javax.swing.*;
public class AppletTest extends JApplet
implements ActionListener
public AppletTest()
comp = null;
startrecording = null;
stoprecording = null;
recorder = null;
public void init()
Panel panel = new Panel(new FlowLayout(1));
comp = new JTextArea(50, 50);
comp.setPreferredSize(new Dimension(50, 50));
comp.setEditable(false);
JButton startrecording = new JButton("Start");
JButton stoprecording = new JButton("Stop");
comp.append("Please record your Voice Password...\n");
GridBagLayout gridbag = new GridBagLayout();
GridBagConstraints c = new GridBagConstraints();
getContentPane().setLayout(gridbag);
c.weightx = 1.0D;
c.weighty = 1.0D;
gridbag.setConstraints(comp, c);
gridbag.setConstraints(panel, c);
getContentPane().add(comp, c);
getContentPane().add(panel, c);
c.weightx = 0.0D;
c.weighty = 0.0D;
startrecording.setEnabled(true);
stoprecording.setEnabled(true);
startrecording.addActionListener(this);
gridbag.setConstraints(startrecording, c);
getContentPane().add(startrecording, c);
stoprecording.addActionListener(this);
gridbag.setConstraints(stoprecording, c);
getContentPane().add(stoprecording, c);
int width = 300;
int height = 200;
setSize(width, height);
setVisible(true);
boolean looping = false;
public void actionPerformed(ActionEvent ae)
if(ae.getActionCommand().equals("Start"))
createRecorder();
recorder.start();
System.out.println("Start Button Clicked");
} else
if(ae.getActionCommand().equals("Stop"))
recorder.stopRecording();
System.out.println("Stop Button Clicked");
private void createRecorder()
String strFilename = "C:\test.wav";
File outputFile = new File(strFilename);
AudioFormat audioFormat = new AudioFormat(javax.sound.sampled.AudioFormat.Encoding.PCM_SIGNED, 44100F, 16, 2, 4, 44100F, false);
javax.sound.sampled.DataLine.Info info = new javax.sound.sampled.DataLine.Info(javax.sound.sampled.TargetDataLine.class, audioFormat);
TargetDataLine targetDataLine = null;
try
targetDataLine = (TargetDataLine)AudioSystem.getLine(info);
targetDataLine.open(audioFormat);
catch(LineUnavailableException e)
comp.append("unable to get a recording line\n");
e.printStackTrace();
System.exit(1);
javax.sound.sampled.AudioFileFormat.Type targetType = javax.sound.sampled.AudioFileFormat.Type.WAVE;
recorder = new SimpleAudioRecorder(targetDataLine, targetType, outputFile);
comp.append("Press ENTER to start the recording.\n");
try
System.in.read();
catch(IOException e)
e.printStackTrace();
comp.append("Recording...\n");
comp.append("Press ENTER to stop the recording.\n");
try
System.in.read();
catch(IOException e)
e.printStackTrace();
comp.append("Recording stopped.\n");
private JTextArea comp;
private JButton startrecording;
private JButton stoprecording;
private SimpleAudioRecorder recorder;
}I intend to use this for verifying the username, password and a voice password over the web....as shown in the following code...
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<title>Home Page</title>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta name="Microsoft Theme" content="artsy 011, default">
<meta name="Microsoft Border" content="tl, default">
</head>
<body background="arttilea.jpg" bgcolor="#000000" text="#FFFFCC" link="#FF9900" vlink="#999900" alink="#669933">
<!--mstheme--><font face="Arial, Helvetica">
<p align="left"><font size="4" color="#FFFFFF">Please enter login
details below:</font></p>
<form>
<!--mstheme--></font><table border=0 cellpadding=3 cellspacing=3>
<tr>
<td align=right width="74"><!--mstheme--><font face="Arial, Helvetica">
<p align="left"><font face="Arial, Helvetica, sans-serif"><b><i>Username</i></b></font></p>
<!--mstheme--></font></td>
<td width="335"><!--mstheme--><font face="Arial, Helvetica">
<p align="left"><input type=text
name=username size="20"></p>
<!--mstheme--></font></td>
</tr>
<tr>
<td align=right width="74"><!--mstheme--><font face="Arial, Helvetica">
<p align="left"><font face="Arial, Helvetica, sans-serif"><b><i>Password</i></b></font></p>
<!--mstheme--></font></td>
<td width="335"><!--mstheme--><font face="Arial, Helvetica">
<p align="left">
<input
type=password name=password size="20"></p>
<!--mstheme--></font></td>
</tr>
<tr>
<td align=center width="74"><!--mstheme--><font face="Arial, Helvetica">
<p align="left"><font face="Arial, Helvetica, sans-serif"><b><i>Voice
Password Check</i></b></font></p>
<!--mstheme--></font></td>
<td width="335"><!--mstheme--><font face="Arial, Helvetica">
<p align="left">
<APPLET CODE="AppletTest.class" ALIGN="MIDDLE" WIDTH=272 HEIGHT=38 NAME="AppletTest.class"></APPLET> </p>
<!--mstheme--></font></td>
</tr>
<tr>
<td colspan=2 align=center><!--mstheme--><font face="Arial, Helvetica">
<p align="left"><font face="Arial Narrow"><input type=submit value="Enter Website" name="Submit"></font></p>
<!--mstheme--></font></td>
</tr>
</table><!--mstheme--><font face="Arial, Helvetica">
</form>
<p align="left">This page was last updated on <!--webbot bot="Timestamp" s-type="EDITED" s-format="%d/%m/%y" startspan -->25/03/04<!--webbot bot="Timestamp" endspan i-checksum="12776" -->.</p>
<!--mstheme--></font></body>
</html>I will be very grateful if somebody could help me out....as this is my first time at java programming ....also my first time for using this forum!
Thanks,
Regards,
Mayur PatelHi
I Learned how to read a file text and Parse as StringTokenizer. But still i don't know how to read the Individual tokens into to database.
But now i face a new Problem, i am not able to sort it out.
i am posting my code
import java.io.FileReader;
import java.io.FileWriter;
import java.io.BufferedReader;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.*;
import java.util.*;
public class CSVExample {
public static void main(String[] args) throws IOException {
BufferedReader inputStream = null;
PrintWriter outputStream = null;
try {
inputStream = new BufferedReader(new FileReader("file.csv"));
String text;
while((text=inputStream.readLine())!= null)
StringTokenizer st = new StringTokenizer(text);
if(st.hasMoreTokens())
System.out.println(st.nextToken());
} finally {
if (inputStream != null) {
inputStream.close();
}Here the Problem is The file.csv has got two fields ID, NAME The content of this file is as follows
T12,MR.RAJ KUMAR
T13,MR.EARNEST DIES
T14,MR.MATHEW HYDEN
Now when i StringTokenize this File The Output printed as follows
T12,MR.RAJ
T13,MR.EARNEST
T14,MR.MATHEW
That means when it finds the Space it is not printing the Remaining Text.
Please Help me in this and then Tell me how to INSER The Tokens into the Database Table
Thank you for your service
Cheers
Jofin -
How to copy actual data into current forecast period
Hi gurus.
I need your guidance on how to copy actual data into current forecast period.
This is my case. Let's say I have the following figures for my actuals:
January 2007 Actual = $110,000.
February 2007 Actual = $120,000.
March 2007 Actual = $80,000.
April 2007 Actual = $100,000.
Now, my user want to choose any month as the basis for her forecast for the remaining periods. Let's say, she wanted to choose April 2007 Actual as the basis for the remaining forecast periods, so I should be able to display the following figures in my planning folder:
May 2007 Forecast = $100,000.
June 2007 Forecast = $100,000.
July 2007 Forecast = $100,000.
August 2007 Forecast = $100,000.
September 2007 Forecast = $100,000.
October 2007 Forecast = $100,000.
November 2007 Forecast = $100,000.
December 2007 Forecast = $100,000.
Can someone guide me on how to do that?
Points will be given to good and best answers.
Thanks.Hi Fulham,
Technical answer:
First, you need to allow your user to indicate wich month is the reference for the copy. I suggest you to add a new key figure in your actual layout (a 'customizing' layout) that your user will use as a flag:
January 2007 Actual = $110,000
January 2007 Flag = 0
February 2007 Actual = $120,000
February 2007 Flag = 0
March 2007 Actual = $80,000
March 2007 Flag = 0
April 2007 Actual = $100,000
April 2007 <b>Flag = 1</b>
<i>(Help to a fox or an abap exit you can check that only one month is 'flagged')</i>
Then, in the corresponding level for the data input, you use a function exit in Abap, which will:
- read the previous customizing layout help to API_SEMBPS_GETDATA so you can get the flagged month and its actual amount ($100,000)
- generate the news rows into the table XTH_DATA which will be automatically posted in the level with the actual amount
Is that clear?
Regards, -
How to insert data into the mysql table by giving as a text file
Hi,
Any one know's how to insert data into the mysql table by giving as a text file as the input in JSP.Please respond ASAP.
Thanks:)At least you can try StringTokenizer to parse your text files. Or download a text JDBC driver to parse your files, for instance, HXTT Text(www.hxtt.net) or StelsCSV(www.csv-jdbc.com).
-
How to display the data in PDF format : problem is splitting into 2 lines
Hi ,
I developed one report which downloads the data into PDF format and saved in C drive but my problem is
in my program : Line size of the report is 255 in PDF it is splitting into 2 lines. it has to show in a single line. how to do it. how to reduce the width of the output? i am sending my code below. anybody can suggest me how to do it. if possible please send me the code.
my code:
report zmaheedhar.
maheedhar-start
TABLES : vbak.
parameters : p_vbeln type vbak-vbeln.
data : begin of itab occurs 0,
vbeln type vbak-vbeln,
ERDAT type vbak-erdat,
ERZET type vbak-erzet,
ERNAM type vbak-ernam,
ANGDT type vbak-angdt,
BNDDT type vbak-bnddt,
AUDAT type vbak-audat,
VBTYP type vbak-vbtyp,
TRVOG type vbak-trvog,
AUART type vbak-auart,
AUGRU type vbak-augru,
GWLDT type vbak-gwldt,
SUBMI type vbak-submi,
LIFSK type vbak-lifsk,
FAKSK type vbak-faksk,
NETWR type vbak-netwr,
WAERK type vbak-waerk,
VKORG type vbak-vkorg,
end of itab.
maheedhar-end
DATA: pripar TYPE pri_params,
arcpar TYPE arc_params,
lay TYPE pri_params-paart,
lines TYPE pri_params-linct,
rows TYPE pri_params-linsz.
DATA: val(1), val1(1).
*---> Local Printer Name defined in SAP, Change NHREMOTE to your local printer
DATA: dest TYPE pri_params-pdest VALUE 'ZNUL'.
DATA: name TYPE pri_params-plist VALUE 'Testing'.
DATA: i_pdf TYPE STANDARD TABLE OF tline.
DATA: spono TYPE tsp01-rqident.
maheedhar-start
top-of-page.
write: 'Sales Document' , 'C Date', 'Entry time', 'Created By','Quotation date',
'Date','Document Date','SD document category','Transaction group','Sales Document Type',
'Order reason'.
start-OF-SELECTION.
select vbeln ERDAT ERZET ERNAM ANGDT BNDDT AUDAT
VBTYP TRVOG AUART AUGRU GWLDT SUBMI LIFSK
FAKSK NETWR WAERK VKORG from vbak
into table itab
where vbeln = p_vbeln.
maheedhar-end
--- Retreive local printer details
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = dest
no_dialog = 'X'
immediately = ' '
IMPORTING
out_archive_parameters = arcpar
out_parameters = pripar
valid = val
valid_for_spool_creation = val1
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*-- Set Spool printer details w.r.t local printer
pripar-prdsn = 'DSN'.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = arcpar
in_parameters = pripar
no_dialog = 'X'
list_name = name
IMPORTING
out_archive_parameters = arcpar
out_parameters = pripar
valid = val
valid_for_spool_creation = val1
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc EQ 0.
---> Triggers the spool creation in the sense all the write statements from hereon will be written to spool instead of screen
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS pripar
ARCHIVE PARAMETERS arcpar
NO DIALOG.
ELSE.
WRITE:/ 'Unable to create spool'.
ENDIF.
*--- Output statements
*WRITE:/ 'First Line', 'mahee','lklk','kikik','lokiuj','fffff','kijuyh','fgfgfgfg','gtgtgtgtgtgtgtgtggggggggggggggggggggggggggggggg'.
*WRITE:/ 'Second Line'.
LOOP at itab.
write: itab-vbeln,
itab-ERDAT,
itab-ERZET,
itab-ERNAM,
itab-ANGDT,
itab-BNDDT,
itab-AUDAT,
itab-VBTYP.
ENDLOOP.
"---> Close spool
NEW-PAGE PRINT OFF.
spono = sy-spono.
Convert ABAP Spool to PDF
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spono
no_dialog = 'X'
TABLES
pdf = i_pdf
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
Download PDF contents to presentation server
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'c:\test.pdf'
filetype = 'BIN'
TABLES
data_tab = i_pdf
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
thanks,
maheedharhi tripat,
actual problem is what u said it is decreased the wiidht of the output.
now the output is:
Sales Document C Date Entry time Created By Quotation date Date Document Date
SD document category Transaction group Sales Document Type Order reason
62741 07/29/1996 11:54:38 DARLENE 00/00/0000 00/00/0000 07/29/1996 C
actual output is:
output should come in a single line. it is splitting into 2 lines.
thanks,
maheedhar -
How can I Insert data into my msaccess Database table
Hello all,
I am new to Java programming and I have problem that how can i insert name into my database table.
The code which i have written is following:
String filename = "d:/test.mdb";
String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
database+= filename.trim() + ";DriverID=22;READONLY=true}";
Connection con = DriverManager.getConnection(database,"","");
String s = String.valueOf(text.getText());
int k =10;
Statement st = con.createStatement();
st.execute("create table Test123(name text)");
st.execute("INSERT INTO Test123 values" +s);
on the INSERT program throws exception???
can any one help me how to insert data into tabel.
Thankshe INSERT program throws exception???
can any one help me how to insert data into tabel.I have never used the jdbc driver to access, but what do you think that the flag READONLY=true means? An insert is not a read.
Kaj -
How to add a new data element for existing table filed(Primary key field)
Hi Experts,
How to add a new data element for existing table field(Primary key field)
For this filed ther is no foreign key relation ships and even check table.
while activating table it is giving message like below.
can you help any one to solve this and wil steps to add new dataelement for existing primary key filed of a table.
Check table (NAMING SPACE/TABLE NAME(EX:/TC/VENDOR)) (username/19.02.10/03:29)
Primary key change not permitted for value table /TC/VENDOR
Check on table /TC/VENDOR resulted in errors
Thanks
RaviHi,
Easiest way is to download the table eg into an Excel table (if possible) or text table. Drop the table from the database. Build your table with the new key field. Build the database table again and fill it.
You can do it also over the database into a new table. Drop the old one. Build the enhanced one and fill it. Afterwards drop your (temporary) table.
Maybe there are other ways, but this works.
Success,
Rob
Maybe you are looking for
-
Connecting HP Laserjet 1010HB with Macbook Pro via D-Link Network!?
Good evening, I have a MacBook Pro and I want to be able to print via WiFi. The Printer is hosted by a Windows Computer via D-Link Router Network My sister who has a Windows Laptop is able to print. I read about Bonjour but this seems to be a softwar
-
I have no audio playback in Garageband 10.0.1
I have a strange issue. I have been working on a project in Garageband 10.0.1, and while trying to get some final mixes done, my audio isn't working. Some details: Each track is showing that it is playing I have tried to start a new basic track, the
-
Hey, I've recently started using social apps a lot(things like Facebook, Twitter and Tumblr) but I've been having an annoying problem, whenever I disable wi-fi and use 3G, the apps don't work and I get an error that says "You are currently on a data
-
hi all, at present iam working in jdev 11.1.1.3 i write one method in application module,add to the client interface also and when i click one button in my page(.jspx)that method is exectuted automatically ,how to navigation to the button and my code
-
When i run my program, i get the following Error:
" Error 7 occoured at Open File+.vipen File. Possible reasons: Labview: File not Found . or NI-488: Non-existent board. Please Help?