FORM inconsistent in the text file
Hi Experts,
Thre is one SAP script form by name "YF_SS_SD_002" which is developed in client 301, which is development client & I want to test that in 302. But in 302 client when i tried to open that form using SE71 it says "Form YF_SS_SD_002 language EN is inconsistent in the text file".
So by this i am not able to enter inside the form & see the changes in 302 for the changes which I made in 301 client.
So please help me to reslove this.
Thanks in advance,
Santhosh
import the version from 301 by logging into 302 and using teh copy from client option form the Utilities menu in SE71
Similar Messages
-
How to upload the text file into smart forms
Hi Experts,
can any one tell me that how to upload the text file or html file to SAP Script form or smart forms
i have download the form info from SAPscript form.to text file.
now i want to upload the text file to smartforms.
is it possible ? if it is possible, then how can i do that ?
Thanks in Advance.
Regards,
Mani<b>For Scripts</b>
Go to SE38. Put in the program name RSTXSCRP. Execute it.
Mode(Export/Import) : Import.
Give the file name from which you want to upload and execute it.
<b>For Smartforms</b>
TCode : smartforms.
Give the form name.
Utilities-->Upload form.
Reward points if helpful.
Thanks
Aneesh. -
Problen when Sending the text file as attachment to the external mail
HI,
I am sending the text file as an attachment to a aexternal mai. mailing is going with text file attachment, but text file is empty. No information in the file is going, only empty text file is going. I am sending the code iam using. Please suggest, if I need to change any passing parameters orany other other solution.
tables: knb1,kna1,adr6,ITEMSET,bsid,TSP01.
INTERNAL TABLES
DATA: BEGIN OF it_kna1 occurs 0,
KUNNR LIKE KNA1-KUNNR,
ADRNR LIKE KNA1-ADRNR,
END OF it_kna1.
DATA: BEGIN OF it_email occurs 0,
ADDRNUMBER LIKE ADR6-ADDRNUMBER,
SMTP_ADDR LIKE ADR6-SMTP_ADDR,
END OF it_email.
DATA: BEGIN OF it_bsid occurs 0,
KUNNR LIKE BSID-KUNNR,
BUKRS LIKE BSID-BUKRS,
END OF it_bsid.
DATA: BEGIN OF it_final occurs 0,
KUNNR LIKE KNA1-KUNNR,
ADRNR LIKE ADR6-ADDRNUMBER,
EMAIL LIKE ADR6-SMTP_ADDR,
END OF it_final.
DATA: BEGIN OF BUFFER OCCURS 10000,
TEXT(255) TYPE C,
END OF BUFFER.
data:xtext type solix_tab." occurs 0 with header line."line.
data:xi_pdf type soli_tab.
DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE,
OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE,
OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE,
RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE,
DOC_CHNG LIKE SODOCCHGI1,
PARAMS LIKE PRI_PARAMS,
ARPARAMS LIKE ARC_PARAMS,
DAYS(1) TYPE N VALUE 8,
COUNT(3) TYPE N VALUE 1,
VALID TYPE C,
RECEIVER(30),
STR(256).
data: spoolid type tsp01-rqident,
pdf_table like tline occurs 0 with header line,
v_bytecount type i,
itab_pdf like tline occurs 10 with header line,
xi_pdf like tline occurs 0 with header line,
xi_pdf like buffer occurs 0 with header line,
xi_pdf_1 like xi_pdf,
v_length(2) type p,
html like solisti1 occurs 0 with header line,
xi_temp like bapiqcmime occurs 0 with header line,
xi_mime(255) type c occurs 0 with header line.
VARIABLES
data: g_email type adr6-smtp_addr,
TAB_LINES LIKE SY-TABIX,
G_FLAG(1) TYPE C.
g_norm(1) TYPE C,
g_shbv(1) TYPE C,
g_merk(1) TYPE C,
g_park(1) TYPE C,
g_apar(1) TYPE C.
data: l_lines type i,
line1 type i,
l_temp(500) type c,
l_offset type p,
l_lineslen(2) type p,
l_mimelen(2) type p,
v_spono like tsp01-rqident,
l_tabix like sy-tabix.
*****VIA SELECTION-SCREEN
ENDFORM. " SEND_TO_SPOOL
*& Form GET_SPOOL_ID
*& Form CONVERT_SPOOL_TO_PDF
*& Form SEND_MAIL
FORM SEND_MAIL .
data:l_lin like sy-tabix,
l_lint like sy-tabix,
it_list like abaplist occurs 0,
l_newline(2) type x value '0D0A'.
*--Data for the status output after sending
data: user_address like sousradri1 occurs 1 with header line,
sent_to_all like sonv-flag.
clear: reclist, reclist[],
objtxt , objtxt[],
objpack, objpack[],
objbin , objbin[],
doc_chng.
*--move list to office table objbin
*--Start of Changes to support PDF attachments - UB20030116
loop at html.
objbin-line = html-line.
append objbin.
clear objbin.
endloop.
loop at xi_pdf.
objbin-line = xi_pdf-text.
append objbin.
clear objbin.
endloop.
*--We may write additional text to the main document
*--For faxing this will be the cover page. Like sending from SAPoffice
*--the layout set Office-Telefax will be used.
objtxt-line = 'NOTE : Please Consider the below Headers'.
append objtxt.
clear objtxt.
objtxt-line = 'Assignment --> Purchase order number '.
append objtxt.
clear objtxt.
objtxt-line = 'Document --> Invoice No '.
append objtxt.
clear objtxt.
objtxt-line = 'Amount In DC --> Amount Due '.
append objtxt.
clear objtxt.
objtxt-line = ' '.
append objtxt.
clear objtxt.
objtxt-line = ' '.
append objtxt.
clear objtxt.
objtxt-line = 'Please find attached statement for this week'.
append objtxt.
clear objtxt.
objtxt-line = ' '.
append objtxt.
clear objtxt.
objtxt-line = 'This is an AUTO GENERATED MAIL'.
concatenate objtxt-line 'Please Do not reply to this mail' into
objtxt-line separated by ' '.
append objtxt.
clear objtxt.
describe table objtxt lines tab_lines.
read table objtxt index tab_lines.
*--Create the document which is to be sent
doc_chng-obj_name = 'List'.
doc_chng-obj_name = 'SAPRPT'.
doc_chng-obj_descr = 'Customer statement for the week'.
concatenate 'Customer statement for '
sy-datum into
doc_chng-obj_descr
separated by ' '.
doc_chng-doc_size = ( tab_lines - 1 ) * 255 + strlen( objtxt ).
*--Fill the fields of the packing_list for the main document:
*--It is a text document
clear objpack-transf_bin.
*--The document needs no header (head_num = 0)
objpack-head_start = 1.
objpack-head_num = 0.
*--but it has a body
objpack-body_start = 1.
objpack-body_num = tab_lines.
*--of type RAW
objpack-doc_type = 'RAW'.
append objpack.
*--Create the attachment (the list itself)
describe table objbin lines tab_lines.
*--Fill the fields of the packing_list for the attachment:
*--It is binary document
objpack-transf_bin = 'X'.
*--we need no header
objpack-head_start = 1.
objpack-head_num = 0.
*--but a body
objpack-body_start = 1.
objpack-body_num = tab_lines.
*--of type G_DOC_TYPE
objpack-doc_type = 'PDF'. "commented on 12/13/2007
objpack-doc_type = 'TXT'. "commented on 12/13/2007
objpack-obj_name = 'Attachment'.
objpack-obj_descr = 'Customer Statement'.
concatenate 'Customer Statement' sy-datum into objpack-obj_descr.
objpack-doc_size = tab_lines * 255.
append objpack.
reclist-receiver = g_email.
reclist-rec_type = 'U'.
reclist-com_type = 'FAX'.
append reclist.
data:xi type soli.
xi-line = 'haisdgsfsdf'.
append xi to xi_pdf.
xi-line = 'haisdfdsfd'.
append xi to xi_pdf.
xi-line = 'haisfgsdfsd'.
append xi to xi_pdf.
xi-line = 'haisdfsgfsdgg'.
append xi to xi_pdf.
*xi_pdf-text = 'hai'.
*append xi_pdf.
*xi_pdf-text = 'hai'.
*append xi_pdf.
*xi_pdf-text = 'hai'.
*append xi_pdf.
*xi_pdf-text = 'hai'.
*append xi_pdf.
CALL FUNCTION 'SO_SOLITAB_TO_SOLIXTAB'
EXPORTING
ip_solitab = xi_pdf[]
IMPORTING
EP_SOLIXTAB = xtext[].
**--Send the document by calling the SAPoffice API1 module for sending
**--documents with attachments
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
IMPORTING
sent_to_all = sent_to_all
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
contents_hex = xtext
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
others = 99.HI,
There are lots of bugs.
Please refer this sample program to fix it.
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Best regards,
Prashant -
I'm creating an epk and I need to add a bio to the menu. Can I import the text file or do I need to retype the bio somewhere? What is the best way to proceed?
Electronic Press Kit.
Usually in the form of video outtakes, movie trailers, cast and crew interviews. Basically, the stuff that gets bunged onto commercial DVDs as extras or ends up on late night TV "Making Of..." shows.
To answer the OP, you want a button on the menu that leads to a still image, or series of them, set up as a slide show. You can copy/paste the text in DVD Studio and then add formatting via the Text menu. (Highlight the text and right click to access formatting controls). Or do it in a graphics application using the appropriate video image preset. -
Hi All,
powershell script Method required to read a value from registry and then taking the backup of that values in some text file.
For example the hive is
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path
and under path i need to take back up of values in some text file and then put some value in the registry after back is taken in text file.
Also how to read the text file values so that we can again write to registry hive back from the back up text file.
Your help is much appreciated.
Umeed4uI think you need to read this first:
http://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
Don't retire TechNet! -
(Don't give up yet - 12,830+ strong and growing) -
How to make an applet to read the Text file present inside a jar
Hi All,
I have writen one applet named ReadFile.java which reads a text file present in the same directory and does some manipulation of text file contents.
The applet code runs successfully when i run the applet in command prompt like
{color:#ff0000}*java ReadFile*{color}
And i am getting the needed results.
Then i made a jar file with the applet code and text file as
{color:#ff0000}*jar cvf rf.jar ReadFile.class File1.txt*{color}
Then i have inlcuded this applet inside a html file as
{color:#ff0000}*<applet code= "ReadFile.class" width= "500" height= "300" archive = "rf.jar" ></applet>*{color}
after this when i load the html file, the applet code is not executed fully. Its throwing FileNotFoundException: File1.txt.
Applet is not recognizing trhe text file present inside the jar file.
Can any body explain me how to overcome this problem. Any setting needs to be done for making the applet indicate the presence of Text file inside the jar file.what code in your applet gets the text file and reads it? are you using getResource or something similar?
-
To get a word in the text file
Hi,
I m beginner to java.
HOw i get a word in the text file.
I used this code, it is only display the all sentence which are available in the text file.
But , I need to print particular word (if it is available in that text file)
package com.beryl;
import java.io.*;
class FileReadTest {
public static void main (String[] args) {
FileReadTest f = new FileReadTest();
f.readMyFile();
void readMyFile() {
BufferedReader dis =null;
String record = null;
int recCount = 0;
try {
File f = new File("E:/hello/abc.txt");
FileInputStream fis = new FileInputStream(f);
BufferedInputStream bis = new BufferedInputStream(fis);
dis
= new BufferedReader(new InputStreamReader(bis));
while ( (record=dis.readLine()) != null ) {
recCount++;
System.out.println(recCount + ": " + record);
} catch (IOException e) {
// catch io errors from FileInputStream or readLine()
System.out.println("Uh oh, got an IOException error!" + e.getMessage());
} finally {
// if the file opened okay, make sure we close it
if (dis != null) {
try {
dis.close();
} catch (IOException ioe) {
Thanks & Regards,
kumarI used this code, it is only display the all
sentence which are available in the text file.
But , I need to print particular word (if it
is available in that text file)if
String.indexOf() -
Error in Downloading the Text file on Application Server
Hi All,
I am working on ECC6.0. I have written a program in whcih I am downloading the text file on
application server in UTF-8 format. However when I am opening this file in Excel I am getting
garbage value for some characters(as Excel does not support UTF-8 format). So now I
want to download the data on application server in text file in non unicode format(Like ANSI or
other non unicode format) which is supported by excel. When I am writing the code as
OPEN DATASET DN_FILE FOR OUTPUT IN LEGACY TEXT MODE it is giving me dump saying
CHARACTER CONVERSION FROM CODE PAGE '4102' to CODEPAGE '1100' NOT POSSIBLE.
Same in case if I add the code OPEN DATASET DN_FILE FOR OUTPUT IN LEGACY TEXT
MODE CODE PAGE '8000' is also giving dump.
So please let me know how can I download the file in non unicode format ?
Any help would be greatly appricated.
Thanks & Regards
Jitendra Gujarathi.OPEN DATASET l_filename FOR INPUT IN TEXT MODE ENCODING NON-UNICODE IGNORING CONVERSION ERRORS.
CHECK sy-subrc EQ 0.
DO.
CLEAR wa_file_content.
READ DATASET l_filename INTO wa_file_content.
IF sy-subrc EQ 0.
APPEND wa_file_content TO it_file_content.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET l_filename.
t_filedata[] = it_file_content[].
can you use like this. -
Sending the text file in ECC 6.0
Hi All ,
Note: I searched the so many forums about this but didnt not get the correct solution so I am posting this.
In 4.7 version i used the FM SO_NEW_DOCUMENT_ATT_SEND_API1 to generate the Text file, and it is working good. but now after the upgrdation to ECC 6.0 version , same program with this FM is not working same like 4.7 version.
Is there any thing need to add or remove or Any SAP NOTE related to this?
Thanks in advance.
Regards,
BharaniBharani,
I am using the same FM in ECC 6.0. Check your data declarations. There may be a change there.
Regards
MPersson
* data declarations for sending Email
DATA: w_text(100) TYPE c.
DATA w_date(10) TYPE c.
DATA w_url(25) TYPE c.
DATA: w_subject(50) TYPE c.
DATA: it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
it_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
it_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_cnt TYPE i,
gd_sent_all(1) TYPE c,
gd_doc_data LIKE sodocchgi1,
gd_error TYPE sy-subrc.
DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
* ~~~~~~~~~~~~~~ further along in your program ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CLEAR w_url.
* (SENDS Copy TO USER - confirms email )
it_receivers-receiver = w_url.
it_receivers-rec_type = 'U'.
it_receivers-com_type = 'INT'.
it_receivers-notif_del = 'X'.
it_receivers-notif_ndel = 'X'.
APPEND it_receivers.
CLEAR gd_error.
* Call the FM to post the message to SAPMAIL
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = gd_doc_data
put_in_outbox = 'X'
commit_work = 'X'
IMPORTING
sent_to_all = gd_sent_all
TABLES
packing_list = it_packing_list
contents_txt = it_message
receivers = it_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
* Store function module return code
gd_error = sy-subrc. -
Formatting lost in the text file, got after zipping.
Hello ABAP gurus,
A text file has to be zipped .I have used the class method CL_ABAP_ZIP-SAVE() to create a zip file in the application server. The zip file is double clicked and the text file is opened.
The formatting is lost in the text file, got after zipping.
Please let me know how I maintain the formatting in the zip file.
Thanks.
Edited by: GVVisweswara . on May 5, 2011 5:17 PMHi.,
Check this link: [Zip text file using Cl Zip|http://www.saptutor.org/?p=59]
also this wiki., http://wiki.sdn.sap.com/wiki/display/ABAP/CL_ABAP_ZIPusage-ZippingABAPreportoutput
hope this helps u.,
Thanks & Regards
Kiran -
hi folks,
I have an text file with records, each record has several field values and there is blank space between them, I need to remove the blank spaces, is there a way that i can do with all records at one stretch? Instead doing it for each record.
I know it is not related to SAP but I need some help in this regard as there are a lot of records and formatting each record manually is extremely painful. This is a corrected file manually on a spreadsheet and converted into the text file from thereon.
Any help is really appreicated.
Thanks,
SKHi,
What you are trying to do with the text file after removing the spaces?
Are you going to use in SAp Upload? or just to remove the spaces in text fiel?
If you are using it for other purposes, you should not remove the spaces, because for that particular field no data will be entered.
(generally we remove the other chars's like " by Find and Replace method)
Generally we format the text files from the Excel to utilise it somewhere?
And we won't remove the spaces for surther uses.
Regards,
Anji -
Log Error Messages in the Text File using Flex
Hi,
I am using try/Catch block to catch exception and am trying to write these error messages in the text file.
I do not know how to achive such funcionality.
looking forward for your help in this regard. Please have a look on the code as pasted below:
private function onItemRollOver(evt : ListEvent) : void
try
var s:String= evt.target.Participation;
var partRange:Number = evt.rowIndex;
if (partRange == 2)
dgCohorts.setStyle( "rollOverColor", "red" );
if (partRange == 7)
dgCohorts.setStyle( "rollOverColor", "green" );
dgCohorts.validateNow();
catch(e:Error)
var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");
callLaterErrorEvent.error = e;
systemManager.dispatchEvent(callLaterErrorEvent);
Thanks,
Vivek JainHi,
I am using try/Catch block to catch exception and am trying to write these error messages in the text file.
I do not know how to achive such funcionality.
looking forward for your help in this regard. Please have a look on the code as pasted below:
private function onItemRollOver(evt : ListEvent) : void
try
var s:String= evt.target.Participation;
var partRange:Number = evt.rowIndex;
if (partRange == 2)
dgCohorts.setStyle( "rollOverColor", "red" );
if (partRange == 7)
dgCohorts.setStyle( "rollOverColor", "green" );
dgCohorts.validateNow();
catch(e:Error)
var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");
callLaterErrorEvent.error = e;
systemManager.dispatchEvent(callLaterErrorEvent);
Thanks,
Vivek Jain -
I can´t edit the text files with SAP BODS 3.2
Hello
I can not edit some text files 9-20 megabytes to replace two words in each file, the source is a text file and the same destination but with different name, because with the same name have been unable . My idea is to remove the original and stay with the new performing edition but that if he does , let me file this way:
SALES_ORDERS_FULL_20140223_150051_006.xml ( ORIGINAL )
should leave it with me so : SALES_ORDERS_FULL_20140223_150051_006.xml _OLD (AMENDED )
but strangely leaves me so :
MICROSOFT_SQL_SERVER_KCC-BI_REPO_KHSA_XI_REPO_KHSA_XI_1543_5434_2_3_Long_INVOICES_INCREMENTAL_20140225_034004_001_xml_dat.txt (not deseased)
The type of data you use is long since varchar not allow me because it cuts my data file , use varchar (50000000) but takes the information and short .
I am using long data type , modify the file and I pass the name of the text files of sap bods for global variables. They are a series of files that are called by a while loop
Thanks for your answers
regardsHIr
Yes, first I convert long_to_varchar for edit, and convert varchar_to_long.
I edit before before and later
Thanks -
How can i insert the text file in a hashSet???
Hi, here's the code to feed the text file into the program, i need to put the words from the text file into a hashSet, im not too sure how to go about doing this, can anyone help please?
import java.io.*;
public class FileIn {
BufferedReader in;
public FileIn() {
try {
in = new BufferedReader(new FileReader("\\C:\\Program Files\\java.txt\\"));
String line = in.readLine();
System.out.println(line);
in.close();
} catch(IOException ioe) {
System.out.println(ioe.toString());
public static void main(String args[]) {
FileIn newFile = new FileIn();
}First you need to break each line into words. You'll need to decide on your rules for doing that. A simple approach would be to just break on whitespace. This assumes there are no hyphenated words at the end of a line. You'll also want to strip out punctuation.
Once you've got a word (or an array of them, if you used String.split), then just iterate over it and call HashSet.add for each one. There might even be a helper function in java.util.Arrays or java.util.Collections or in HashSet to add everything from an array.
http://java.sun.com/docs/books/tutorial/collections/ -
Batch list import is picky about line terminations in the text file
After running into trouble trying to compose a batch list for import, I isolated the issue:
The text file that you attempt to import must have "carriage return" characters at the end of each line. It can have a "carriage return" and a "line feed", but it cannot have only a "line feed".
If you feed Final Cut a text file that does not meet this criteria, it will barf up this error message:
One or more items on the header line do not match valid Browser column headers.
Line terminators have been the cause of many a problem over the years! Typically, MSDOS/Windows systems tend to create text files that use a CR-LF combo. While Mac OS was typically just a CR. And UNIX systems have typically been just an LF. However, since Mac OS X is now a hybrid of older Mac ways, and UNIX ways, you can find mixed situations there. For example, the Mac OS X Text Edit program saves out files with just an LF, and thus can't be directly used to create batch lists for Final Cut.
So, you need to be careful what means you use to create batch list text files.
Hope this helps some poor soul some day!
-RickI am trying to export a batch list created in FCP 5.1 to someone with 6. I follow directions, export and save and then e-mail the file. When he tries to import it, he gets that message ("One or more items on the header line do not match valid Browser column headers"). But I have tried re-importing it from my desktop and have no problem. Is there a problem going with such simple data from 5.1 to 6? Is it possible that the e-mail transmission is corrupting the files?
Thanks for suggestions.
Maybe you are looking for
-
Safari 6.0, what happened with option to open with windows from last session?
Made the upgrade from Snow Leopard to Mountain Lion and realized that I don't longer have the option to open Safari with windows from last session (Preferences->General). The option has been removed:
-
With PPT 2007 when I print my PPT file to Notes view why does the slide portion become an image
I am trying to print a ppt file using PowerPoint 2007 notes view to PDF with Distiller and create a full text searchable PDF. Everytime I do, the slide portion becomes an image. The only textual portion of the PDF are the page numbers and the actual
-
Dynamic call for records in a table
hI, Im having a ztable, the structure is as follows: tabold fldold tabnew fldnew The records in this table is are: 1.yvbap posnr xvbap posnr 2.yvbak auart xvbak auart 3.yvbak augru xvbak augru. Now, i have to use this table dynamically to check ea
-
Forcing Points to be in Polygon
Hi, I have point soutside of boundaries(polygons) which may be caused by wrong geocoding. I need to snap these points back to teh boundary so i can caluclate distance from teh boundaries centroid to teh point. How can tolerance help me in this?
-
Hi All, Does anyone know if tethered shooting works with the Nikon D7000 in Lightroom 3.3? If not, is it already announced when? Thanks