Text to DBF format conversion
Hi All,
Can we convert text file into DBF Format for Foxpro, Actually Client want to directly use it as a database file.
Thanks in Advance
Hi,
Go thru the Following Link,
http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb40cb455611d189710000e8322d00/frameset.htm
You try this,
DATA: BEGIN OF ITAB_MATNR OCCURS 0,
MATNR LIKE MARA-MATNR,
COUNT TYPE I,
END OF ITAB_MATNR.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = P_FILE
<b>filetype = 'DBF'</b>
TABLES
DATA_TAB = ITAB_MATNR
EXCEPTIONS
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TABLE_WIDTH = 4
INVALID_TYPE = 5
NO_BATCH = 6
UNKNOWN_ERROR = 7
GUI_REFUSE_FILETRANSFER = 8
OTHERS = 9.
IF SY-SUBRC <> 0.
MESSAGE E699(PP) WITH 'Unable to load input file' P_FILE.
ENDIF.
Regards,
Padmam.
Similar Messages
-
Regarding Date Format Conversion
Hi,
In my project i am picking the date from the date picker which is a javascript program . Then i am displaying it on a jsp page .It is coming in mm/dd/yyyy format .I have to change it to dd/mm/yyyy format .
I have the code for date formatting conversion .
What my doubt is whether the code should be written inside the jsp page or in the javascript .
Thanks .Hi
<%@page language="java" import="java.sql.*,java.util.*,java.text.*" %>
<%SimpleDateFormat sdf= new SimpleDateFormat(dd/mm/yyyy );%>
<% java.util.Date temp_date = sdf.parse(PassYourDateHere); %>
use this with your jsp
Regards
Abhijith YS -
How to Print a text in bold format in a classic report ??
How to Print a text in bold format in a classic report ??
hi
u can use
<b>FORMAT INTENSIFIED ON.</b>
regards
ravish
reward if useful -
How to ouput a text as xhtml format in AIF
Dear Gurus:
Would you like to help me on output a text as xhtml format in AIF?
E.g. i would like to output a text as "M2M" ,the text is passed from one field of interface structure, I try to put the text as "M<sup>2</sup>M" in the field of interface structure , but it just outputs full text "M<sup>2</sup>M" , doesn't show "M2M" as my expectation, I already set the field format as "Rich Text" and data format as "XHTML" for the object of text field in AIF.
Please help. thank you very much .Hi Naveen:
please find below screen-shots , thanks
1) the content from interface
2)Output in the AIF form
My requirement is Prize is M2M, like left cell Prize2
3) field property -
How to print text in paper format iin smartforms
Hi all,
I want a question that how to print text in paper format like paper divides into 2 parts and if the firstpart is full of text i.e., it exceeds the first page the text will be displyed in the second part of the first page.
Usefull answers will be awarded.
Thanks all...Hi,
U create two windows in the page and same as like second page.
but in first page first window select the condition print only on first page.
in second window select conditin print only on second page.
first try without creating a secondpage. if that doesn't workout create secondpage and try.
Assign points if useful.
Regards
(YUGANDHAR.P) -
How to burst reports in text and XML format using API
Hi there,
I need to be able to burst PDF, Excel etc reports and at the same time, generate XML files containing metadata that will accompany the PDF files to their destination. The reason for this, is that the destination requires metadata to class the documents in the content management system.
My issue is that I just cannot get bursting to XML, text or HTML format right. There is very little documentation available around creating reports in these formats using the API's and perhaps someone who has gotten this right can, once and for all, solve this issue where others can find the solution.
Alright, here is some sample supporting documentation (For the sake of the question, I have removed the bursting to PDF, Excel etc. formats and I am just focusing on the XML output):
In my code for bursting, I make use of the following constructor...
DocumentProcessor dp =
new DocumentProcessor("ControlFile.xml", "TestData.xml", "temp");
The ControlFile.xml looks like this...
<?xml version="1.0" encoding="UTF-8"?>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
_<xapi:request select="/DATA/LIST_BRANCH/BRANCH">
___<xapi:delivery>
______<xapi:filesystem id="dst" output="C:\${BRANCH_NAME}.xml"/>
___</xapi:delivery>
___<xapi:document output-type="text" delivery="dst">
______<xapi:template type="xsl-fo" location="Template.xsl"></xapi:template>
___</xapi:document>
_</xapi:request>
</xapi:requestset>
The data in my TestData.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<DATA>
___<LIST_BRANCH>
______<BRANCH>
__________<BRANCH_NAME>BRANCH 1</BRANCH_NAME>
______________ OTHER IRRELEVANT DATA
______</BRANCH>
______<BRANCH>
__________<BRANCH_NAME>BRANCH 2</BRANCH_NAME>
______________ OTHER IRRELEVANT DATA
______</BRANCH>
___</LIST_BRANCH>
</DATA>
In my ControlFile.xml, I reference my XSL file called Template.xsl which should do my transformations into XML. That file looks like:
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
__<xsl:output method="xml" indent="yes">
__<xsl:template match="/">
____<METADATA>
_______<BRANCH>
___________<xsl:value-of select="BRANCH_NAME"/>
_______</BRANCH>
____</METADATA>
__</xsl:template>
</xsl:stylesheet>
I have tried about forty variations of the ControlFile.xml and Template.xsl and have had no luck. Among the various error messages that the compiler has reported to me, these are the most common:
[101507_055953158][][EXCEPTION] Error while generating the Document...
[101507_055953158][][EXCEPTION] org.xml.sax.SAXException: element metadata is not supported yet.
[101507_061037084][][EXCEPTION] Error while generating the Document...
[101507_061037094][][EXCEPTION] oracle.xml.parser.v2.XMLParseException: Start of root element expected.
I have managed in some cases to get the API code to compile, but the outputs are empty 0kb files.
I have also exported an XSL-FO file from word, but the output is always PDF even with tweaking.
I have wasted about 9 hours on this problem and it is driving me mad! If anyone has ideas, tips and/or solutions, they would be very welcome.
Thanks in advance,
AndrewFor anyone interested... here it is!
Format Setup:
<TEMPLATE TYPE> DELIMITER_BASED
<OUTPUT CHARACTER SET> iso-8859-1
<NEW RECORD CHARACTER> Carriage Return
Sequences:
<DEFINE SEQUENCE> MetaDataSeq
<RESET AT LEVEL> BRANCH
<INCREMENT BASIS> LEVEL
<END DEFINE SEQUENCE> MetaDataSeq
Format Data Records:
<LEVEL> BRANCH
<MAXIMUM LENGTH><FORMAT><DATA>
<NEW RECORD> FileHeaderRec
16_________________Alpha_____‘<REPORT_SUMMARY>’
22_________________Alpha_____‘<TYPE>1</TYPE>’
255________________Alpha_____'<NAME>’ || BRANCH_NAME || ‘.pdf</NAME>’
255________________Alpha_____'<DESC>NON-MOTOR VEHICLE CLAIMS</DESC>’
10_________________Alpha_____‘<METADATA>’
255________________Alpha_____‘<CONTROL_AREA>MAIN CONTROL AREA</CONTROL_AREA>’
255________________Alpha_____‘<BRANCH_CODE>’ || BRANCH_CODE || ‘</BRANCH_CODE>’
255________________Alpha_____‘<BRANCH_NAME>’ || BRANCH_NAME || ‘</BRANCH_NAME>’
255________________Alpha_____'<DIVISION_CODE>1</DIVISION_CODE>’
255________________Alpha_____‘<DIVISION_NAME>PERSONAL</DIVISION_NAME>’
11_________________Alpha_____‘</METADATA>’
17_________________Alpha_____‘</REPORT_SUMMARY>’
<END LEVEL> BRANCH -
Import tagged text without overwriting formatting?
When processing an INDD file in InDesign Server CS5, we are importing text that contains Tagged Text tags. The tags are being properly applied, but we are having an issue with the formatting in the INDD file being overwritten.
For example: We have a selection of text that is formatted using a specific font type in the INDD file. The tagged text being imported only has tags that defines the size of the font. When the selection of text is replaced with the tagged text, the font type is replaced with the default font, rather than leaving it as it was even though we never defined the font type in the tagged text.
Any ideas on how we can apply tagged text but still retain any text formatting that was not specifically defined in the tagged text?
Thanks!I am using
InterfacePtr<IK2ServiceProvider> service(registry->QueryServiceProviderByClassID( kImportProviderService, kTaggedTextImportFilterBoss)); -
In our current implementation we have a Blank page with Text Field [field format Rich Text] on generated PDF Document.
Once the PDF document is generated, user can copy paste content form any word/rtf document to into the Text Field.
Pasted content retains all text formatting [Bold, Italic, Underline, Indentation] except the Table format. Text Field is removing table metadata from the content and converting it into plant text.
Is there anyway to copy paste table structure as it is from word document into Text Field?Hi,
I don't think you can! While you can paste formatted text into the rich text field, the table metadata means nothing to the textfield.
Niall -
How do I mix text and Html format in a java mail?
How do I mix text and Html format in a java mail? some part I want to keep the text format, the other part I want to use Html functions(like fond, color, etc)
You don't mix them. Pick one or the other.
However if you want to have a text version and an HTML version, so that mail readers that don't handle HTML can see regular text instead, then you could produce a "multipart/alternative" message. There's an explanation of how to do that in this article:
http://www-128.ibm.com/developerworks/java/library/x-xmlist2/ -
Printing the text in vertical format in Smartforms?
Hi,
How to print a text in vertical format from bottom to top?
just like this..........
S
M
E
T
S
Y
S
Thanks.Hi
If u want to print data in vertical format, just create one style , in that create paragraph format as left justfied 0 and right justified as windowlength-1.use this paragraph format for u r text.
OR
Have to create command within a window (window would be containingtexts which you want to print vertically).Within Command on General Attributes you will have to specify appropriateprint control one which is useful for your requirement.
Regards
Raj -
Seeburger EDI Text to EDI XML conversion failure should throw an error
Hi,
I am expecting an error message to be thrown when EDI Text to EDI XML conversion fails at Message splitter of Seeburger module. I am getting the following error in the log.
"2012-01-19T01:46:08.032-0800 ERROR [Error:ID=2150;LEVEL=3] counter value (41) of incoming field (UNB.UNH.UNT:0074) doesnt match the calculated value (39).
DESCRIPTION: Either the counter value is not filled in the source file or the counter field value is wrong. "
But my expectation is that the channel should show some error in Adapter Engine monitoring itself. As shown below, it is just showing some warning that because of above error, it is not creating the attachment. Now I am expecting the the following warning to be an error rather than just warning. Please let me know if any idea on the same.
19.01.2012 01:46:08 Information SEEBURGER/MESSAGESPLITTER: Trying to establish CCI Connection to Message Splitter Adapter
19.01.2012 01:46:08 Information SEEBURGER/MESSAGESPLITTER: Creating CCI Interaction
19.01.2012 01:46:08 Warning SEEBURGER/MESSAGESPLITTER: There is no attachment to split. So there is nothing to do.
19.01.2012 01:46:08 Information SEEBURGER/MESSAGESPLITTER: Finished splitting!
BR,
AmanThanks you all for your inputs..
I got the solution for the same.
I need to set the mapping program name specifically rather than AUTO for bic mappingName parameter. This has turned my communication channel status in RWB into Red for errors.
Closing this thread ...
Regards,
Aman -
I have a acrobat reader, can I import text delimited data format to a PDF Form so that it can auto fill into forms that was created? If not, what about FDF and XML data
Yes, you can do all of that via Tools - Forms - More Form Options - Import Data, if you have Acrobat.
If you only have the free Reader then you can still do it, but it requires a script. -
RE: Oracle DATE data format conversion..
<C.M> Motta's question about dates and oracle>
Dealing with dates and Oracle is somewhat of a nuisance. Oracle is very
particular about how date strings are formatted, and if you get it wrong,
you get the (unhelpful) message that C.M. Motta showed us. However, if
you pass a DateTimeData to Oracle, Forte' does the right formatting for you.
If you do need to format the date prior to interacting with Oracle, use the
following format:
dd-mmm-yy <time component>
You can change the default format, but it is not easy.
If you customise Express generated code that interacts with an Oracle
database, again, make sure that you pass a DateTimeData, and not the
.TextValue.
Good luck!
Richard KirkDate: Wed, 06 Nov 1996 08:18:37 -0500
To: "C. M. Motta" <[email protected]>
From: Jim Milbery <[email protected]>
Subject: Re: Oracle DATE data format conversion..
Cc: [email protected]
Cheers:
Most likely what is happening is that you are using the default date
format of Oracle, and you are sending a four-character year. As follows:
SQL> insert into jimbo values ('01-dec-1997')
2 /
insert into jimbo values ('01-dec-1997')
ERROR at line 1:
ORA-01830: date format picture ends before converting entire inputstring
>
Oracle defaults to a format of 'dd-MON-yy'
You can either truncate the year, or manipulate the date to match the standard
database as follows:
insert into jimbo values (to_Date('01-jan-1997', 'DD-MON-YYYY'))
\jimbo
At 09:21 AM 11/6/96 -0200, you wrote:
Forte Users,
First, Id like to thank all those who answered my question on
droplist & SQL. I got just what I was looking for: its up and runnunig
now.
I have another question: Im trying to insert a DATE into an Oracle
database. The source date is:
data : DateTimeData = new;
data.SetCurrent();
So, when I try to insert data.Value or data.textvalue into DB, I
get the following exception:
ORA-01830: date format picture ends before converting entire
input string.
Are there any suggestions?
Thanks for your help,
C.M. Motta
====================================================================
Jim Milbery
Milbery Consulting Group
132 N. West St., Allentown, PA 18102
O: 610 - 432 - 5350 F: 610 - 432 - 5380
E-Mail : [email protected]
==================================================================== -
Hi, I am unable to paste my text in Table format from MS Word
like I use to in Dir MX 2004...
Do I need a plug-in now or do I need to do it the long way
round, 1st make the text into HTML then do some scripting in Flash,
export it and import it into Director?
Please help?
http://justkuankuan.bravehost.com/Table.zipThings I have tried...
Copy the text in MS Expressions/Dreamwaver and importing the
html in Dir, result: text not align.
Exporting text in rtf, html from MS Word, result: error 85,
or -1.
Please Help? -
Advanced Format Conversion - PAL - NTSC question
I need to convert from DV PAL (@ 25fps) to DV NTSC (@ 23.98fps).
My first test conversion resulted in a DV file running at 29.97 fps.
Also, I seem unable to modify the speed settings in order to re-time from PAL to NTSC, which should run approximately 4% longer.
Can somebody guide me through how to achieve this?
G5, dual 2.7 Mac OS X (10.4.9) Final Cut Studio 2.0Marc:
AFAIK standard DV NTSC is 23.97 fps, why do you need 23.98?
The best free way I found is with Compressor Advanced format conversion, using the settings you'll find in this thread posted by Andynick:
http://discussions.apple.com/thread.jspa?messageID=3055477�
Export your timeline as Quicktime Movie, same settings (self contained if you have space) and use that in Compressor.
Hope that helps !
Alberto
Maybe you are looking for
-
I have been with Verizon for many years and I am very disappointed with the service I am receiving with my daughter's phone. She has been having problems with her phone which is a Palm Pre 2. Last month she was shipped what was supposed to be a "ne
-
Table or FM for Cost Distribution in ABAP-HR
Hi Experts, I need to find Cost Center and Internal order for an employee based on his organisation Unit. I have organisation unit ( ex: 608), they are maintaining cost center and Internal Order in PO10 tcode. Could you please let me know table or FM
-
Multi Value PS Query Works in v2, but not v3 or 4
I have been using the query below (and others like it) for a few years, but it didn't work on v3, and now it doesn't work on v4--which is supposed to be backwards compatible. Get-ADUser test01 –properties memberof, DisplayName, employeeID | Select-Ob
-
I have Photoshop CS5, version 12.0.4x32. I want to update it to Photoshop Camera Raw plug-in version 7.3.071, at the moment I have version 6.7.0339, but for some reason I am always receiving message unsuccesfull update. What could be wrong? Also I do
-
REUSE_ALV_LIST_DISPLAY print to spool without out
Hello, we need to print an ALV using REUSE_ALV_LIST_DISPLAY to PDF. We use the following code: data: l_params type pri_params, l_valid type string, l_print type slis_print_alv. CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING IMMEDIATELY