Codepage conversion problem
Hello,
In a DB to DB scenario, I am getting this error "Error: Unexpected error converting database resultset to XML, codepage conversion problem?" on the side of the sender adapter. I am not able to see any messages or trace in IE-Monitoring. Is there any log wherein I can find out the problem as to where it is occuring?
Regards,
Sanjay
Hi Sanjay,
The JDBC sender adapter returns the rows selected from the database in the follwoing format.
<resultset>
<row>
<column-name1>column-value</ column-name1>
<column-name2>column-value</ column-name2>
<column-name3>column-value</ column-name3>
</row>
<row>
<column-name1>column-value</ column-name1>
<column-name2>column-value</ column-name2>
<column-name3>column-value</ column-name3>
</row>
</resultset>
This error occurs , when the source datatype you have created for the JDBC adapter does not match with this format. I would suggest that you check the source format along with the occurence of your field.
Regards,
Bhavesh
Similar Messages
-
Conversion problem in PURCHASE ORDER
Hi all,
wrong conversion was done in Quantities/Weights tab of item overview during creation of Purchase Order,instead of putting order unit " 1 tonne = 1000kg" it was wrongly fix as "5 tonne = 4536kg", the order has been receive and issue , but during stock taking this conversion problem is giving wrong Quantity for the material in MB5B . Pls what can i do to resolve this.Hi
If stock exists then kindly do the reverse process as below
1.Cancel material docuemt---MBST (Material document no and fiscial year)
2.Delete the P.O line items --Me22n
3.Enter the fresh line items in the same P.O
If partial stock Exists then do the Physical inventory process to adjust the Stock
Regards
Damu -
How to debug file content conversion problems?
Hi,
I'm trying to debug a file content conversion problem. I'm mapping a few nodes in an IDOC to a file of fixed length fields. I'm using the "<Node A>.fieldFixedLengths", "<Node B>.fieldFixedLengths", "<Node C>.fieldFixedLengths", etc. parameters to specify the fixed length records.
However, a certain node (for e.g. Node B) is causing a problem and if it is present in the IDOC, the output file does not get created. Upon checking the XI monitor, I notice that the file gets mapped correctly and thus the problem lies when the file adapter does the file content conversion. How do I debug this because there is no descriptive error in the XI log? If this node is not present, the file gets generated fine.
Thanks,
Basant GuptaHi,
If your SXMB_MONI shows, success status, then go to RWB->Message Monitoring->Message display tool and then check Audit log for the analysis,
So it wil help you debug the situation.
If there is no error, then check RWB->Component Monitoring->Adapter Monitoring for you file communciation channel..
/people/michal.krawczyk2/blog/2005/01/02/simple-adapter-and-message-monitoring
Regards,
Moorthy -
Oracle to Mysql character set conversion problem!!! PLZ IGNORE
Hi Experts,
I have created a database link from Oracle 10g to Mysql 5.
I have installed Oracle Gateway 11g for this purpose.
When i retreive the data from sql plus the text is displayed as question marks.
Oracle 10g Database character set is WE8MSWIN1252
Mysql character set --->latin1
Character set of ODBC connector for mysql is latin7
Character set in the parameter file of HS folder is WE8MSWIN1252When i retrieve data from sql developer the text is fine(as i think it directly takes the character set of target) but
when i login from sqlplus i get question marks!
I have another post in Heterogeneous Connectivity forum
Re: Oracle to Mysql character set conversion problem!!! PLZ HELP
Kindly update your comments there,
@@@@@@@@@@@@@@2
Appreciate your help,
regards
Edited by: user10243788 on Apr 21, 2010 3:25 AMIt is OK to post a globalization-related question in this forum in addition to the forum pertaining to the main technology. Not all experts follow all possible forums on OTN. Of course, you should cross-link the posts to let people merge the answers.
Regarding the problem itself, make sure that SQL*Plus has the right NLS_LANG setting in the environment. On Windows, in the Command Prompt:
C:\> set NLS_LANG=.WE8PC850
C:\> sqlplus ...On Unix:
$ setenv NLS_LANG .WE8ISO8859P1 (or NLS_LANG=.WE8ISO8859P1; export NLS_LANG)
$ sqlplus ...-- Sergiusz -
Dears,
we could input codepage in Function GUI_DOWNLOAD, and the conversion is done .
Now i want to do the conversion in my program, is there any funnctions to be called or other ways /
Ths.Hi,
Use the class <b>cl_abap_conv_obj</b>
and method <b>convert</b> for codepage conversion.
Use this FM's to get code page for any given language
<b>SCP_CODEPAGE_FOR_LANGUAGE.
SCP_GET_CODEPAGE_NUMBER.</b>
Regards,
Sesh -
I have Photoshop Elements 6 (Camera Raw 4.2) and a Nikon D7000 (Camera Raw 6.3 minimum). I am using DNG converter 8.1 to create DNG files, but these still will not open in Elements. I am selecting compatibility of Camera Raw 4.1 in the conversion program. What else can I do?
Sorry it took me a long time to reply. If I send to dropbox (which I can), can I restrict the images to specific email addresses, or will it be accessible to anyone? Not that I care about the image particularly, as it was only a test.
Once I have an idea of this, I will do a final test & send the data to dropbox.
Date: Wed, 19 Mar 2014 15:12:51 -0700
From: [email protected]
To: [email protected]
Subject: Raw conversion problem
Re: Raw conversion problem
created by ssprengel in Photoshop Elements - View the full discussion
It seems like you're doing everything that you're supposed to be doing, and it is not working. I don't have an explanation why that is, but can you share an original NEF and its DNG via www.dropbox.com or similar and others can test with a newer version of ACR to make sure there isn't something corrupted wtih the files.
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6225513#6225513
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6225513#6225513
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6225513#6225513. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Photoshop Elements at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0. -
Journals conversion problem.
Hello,
We have a currency conversion problem with the journals table.
Steps:
1.- We insert a journal in Local Currency (LC) with the journals functionality. Both convert at average rate (for example), so when we run currency conversion rules the value is converted in Legalapp application, but not in Journal Table. So if the users or auditors need to see all the journals in EUR is not possible to extract with the journals reports.
2.- Also we have the problem when we apply the carry forward rules for the next year, and the RE-Open functionality. Example, the flow of the year N applies at average rate, when we make the carry forward rule it goes to Opening Balance flow, and this opening balance doesn´t have currency conversion rule (AS-IS)(we cannot use an OPEAVG rule because we need the historical value in the opening balance flow). So we lose the EUR position value because we don´t have a journal to apply the RE-OPEN functionality.
3.- We have the possibility of inserting the Journal in LC and EUR (Group Currency) also, but here you are obligating to the users to manually convert the values of each account of each journal, and can be mistakes of the value that the user insert in the Journal Entry, with the values of the application (converted with the currency conversion functionality).
Do you know how can we solve this error?
Regards,Hi,
1. Journal tables contains just values for LC and only the posted journals are converted.
The Corrency conversion will be applied just for journal posted not for all journals.
You can see the value reflected into application just checking the the reports for special Data Source used by journal.
Journal module is used for adjustment which means the auditors can see the adjustment into local cuurency and just the final value posted. The rest of journal not posted has no importance because they don't have any impact for database values.
2. I don't think I understand the point which means I will leave other people to help ou with this poin
3. I don't understand why you have to run Currency Conversion manually.
When you input the journal you will execute default logic or you can execute journal.lgx logic.
In any of these module if you place currency translation you will have your figures automat converted.
Regards
Sorin Radulescu
Edited by: Sorin Radulescu on Dec 2, 2009 3:35 PM -
Dreamweaver cc html entity conversion problem in mac -NO utf-8 related answer please
I probably am fighting against a bug existing in DW for a while, and i'm really on the edge of bursting out!
Here are the specifications:
Dreamweaver CC from creative cloud (also tested w/ CS5.5 too) installed on mac, OS and DW user interfaces are english, and on mac turkish keyboard layout is also installed.
I have been using DW for maybe 15 years, since it was macromedia.. But was always on windows. This is the first time I use it on mac. Here is my problem step by step:
1- Dreamweaver > Pereferences > New Document > Default Encoding: Western (ISO Latin 1) (NOT UTF-8 PLEASE, IT KEEPS THE CHARS UNCHANGED, ISO LATIN1 IS IMPORTANT)
2- Go to Design View,
3- There are 6 special characters in Turkish (times 2 for the caps versions of course), type:
ĞÜŞİÖÇğüşıöç
4- Go back to code view, what i should have seen was:
ĞÜŞİÖÇğüşıöç
But I see:
ĞÜŞİÖÇğüşıöç
There are 3 chars (and capital versions) NOT converted to html entity at all. Which were: ĞŞİğşı
But I should have seen them as: ĞŞİğşı
Any help would be appreciated, I do not want to leave my old friend DW just because of a weird conversion problem...Ok, when you look at the code view, what do you see exactly?
do you see unconverted
ĞÜŞİÖÇğüşıöç
or converted
ĞÜŞİÖÇğüşıöç
Here is one of my reasons:
I sometimes create newsletters in turkish for my customers, and the html files i prepare are sent to customers attached as inline through various versions of outlook or thunderbird, or through i completely different email sender company (none is sent by me, i only create the html file). And most of the time the headers and some coding are cut off from the code when used to send as newsletter, and i have no control at all on it. so i have to create absolute correct viewed/rendered html files since i have no control at all on which sending method will be used or which os or browser or mail system will be used to open it... -
Hi ABAPers
While sending smartform as a mail attachment(PDF Format) i am facing problem.
While opening the PDF attachment in SOST (T-code), It shows a error pop up.(I.e., Conversion Problem in PDF). Some pages are getting opened as a blank page and some are not getting opened.
What may be the prolem.
Please help Me out ............
But it works properly in IDES version.
In IDES i have ADOBE 5.0 Version, In Live server it is ADOBE 6.0 ,7.0.Hi,
Thanks for your feedback
There is no problem in the coding , is there any thing we have to do in configuration level regarding PDF ?????
*& Report ZVNPAML
REPORT zvnpaml.
TABLES: somlrec90.
DATA: it_zvnpa TYPE TABLE OF zvnpa,
it_zvnpa1 TYPE TABLE OF zvnpa,
wa_zvnpa TYPE zvnpa,
it_head TYPE TABLE OF zvnpa,
it_head1 TYPE TABLE OF zvnpa,
wa_head TYPE zvnpa,
wa_head1 TYPE zvnpa,
fmname TYPE rs38l_fnam,
tot TYPE zvnpa-wrshb,
otfout TYPE ssfcrescl,
outopt type SSFCRESOP,
pdftab TYPE TABLE OF tline WITH HEADER LINE,
datab TYPE TABLE OF itcoo WITH HEADER LINE,
conpar TYPE ssfctrlop,
mailrec TYPE swotobjid,
outopt TYPE ssfcompop,
jobopt TYPE ssfcresop,
jobout TYPE ssfcrescl,
w_return TYPE ssfcrescl,
it_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
binsz LIKE sood-objlen,
i_tline TYPE TABLE OF tline WITH HEADER LINE,
wa_buffer TYPE string,"To convert from 132 to 255
i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE.
DATA: wa_doc_data TYPE sodocchgi1,
it_pack TYPE TABLE OF sopcklsti1,
wa_pack TYPE sopcklsti1,
it_mailhead TYPE TABLE OF solisti1, " OCCURS 1 WITH HEADER LINE,
wa_mailhead TYPE solisti1,
it_mailbody TYPE TABLE OF solisti1, " OCCURS 0 WITH HEADER LINE,
wa_mailbody TYPE solisti1,
it_receiverid TYPE TABLE OF somlrec90, " OCCURS 10 WITH HEADER LINE.
wa_receiverid TYPE somlrec90,
it_attach LIKE solisti1 OCCURS 0 WITH HEADER LINE,
wa_attach TYPE solisti1,
lncnt TYPE i.
DATA: lv_spool TYPE tsp01-rqident,
wa_line TYPE tsp01-rqident,
it_pdf_output TYPE TABLE OF tline.
SELECTION-SCREEN BEGIN OF BLOCK vendor WITH FRAME TITLE text-w03.
*PARAMETERS: pa_lifnr TYPE lfa1-lifnr,
pa_bukrs TYPE zvnpa-bukrs,
PARAMETERS: pa_augdt TYPE zvnpa-augdt.
SELECT-OPTIONS: pa_mail FOR somlrec90-receiver NO INTERVALS.
SELECTION-SCREEN END OF BLOCK vendor.
SELECT * FROM zvnpa INTO CORRESPONDING FIELDS OF TABLE it_zvnpa1
WHERE augdt = pa_augdt
AND bukrs = '2000'
AND flag <> 'X'.
konto = pa_lifnr AND
bukrs = pa_bukrs AND
IF it_zvnpa1 IS NOT INITIAL.
SORT it_zvnpa1 BY konto.
LOOP AT it_zvnpa1 INTO wa_zvnpa.
APPEND wa_zvnpa TO it_zvnpa.
CLEAR: wa_zvnpa.
AT END OF konto.
SORT it_zvnpa BY ttref augbl wrshb shkzg.
*it_head[] = it_zvnpa[].
LOOP AT it_zvnpa INTO wa_zvnpa WHERE shkzg = 'S'.
APPEND wa_zvnpa TO it_head1.
CLEAR: wa_zvnpa.
ENDLOOP.
*delete adjacent duplicates from it_head comparing ttref.
SORT it_head1 BY ttref augbl wrshb shkzg.
LOOP AT it_head1 INTO wa_head1.
tot = tot + wa_head1-wrshb.
wa_head = wa_head1.
AT END OF ttref.
wa_head-wrshb = tot.
APPEND wa_head TO it_head.
CLEAR: wa_head,tot.
ENDAT.
CLEAR: wa_head1.
ENDLOOP.
SORT it_head BY ttref augbl wrshb shkzg.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZVNPASF'
IMPORTING
fm_name = fmname.
conpar-no_dialog = 'X'.
conpar-getotf = 'X'.
outopt-tddest = 'LOCL'.
outopt-urlcall = fmname.
outopt-tdnoprev = 'X'.
outopt-tdnewid = 'X'.
CALL FUNCTION fmname
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = conpar
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = outopt
user_settings = ' '
IMPORTING
DOCUMENT_OUTPUT_INFO =
job_output_info = w_return
JOB_OUTPUT_OPTIONS =
TABLES
it_zvnpa = it_zvnpa
it_head = it_head.
READ TABLE w_return-spoolids INTO wa_line INDEX 1.
IF sy-subrc = 0.
lv_spool = wa_line.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = lv_spool
no_dialog = ' '
dst_device = 'LOCL'
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 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.
it_otf[] = w_return-otfdata[].
IF it_otf[] IS NOT INITIAL.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = binsz
TABLES
otf = it_otf
lines = i_tline.
LOOP AT i_tline.
TRANSLATE i_tline USING ' ~'.
CONCATENATE wa_buffer i_tline INTO wa_buffer.
ENDLOOP.
TRANSLATE wa_buffer USING '~ '.
DO.
i_record = wa_buffer.
APPEND i_record.
SHIFT wa_buffer LEFT BY 255 PLACES.
IF wa_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDIF.
IF i_record[] IS NOT INITIAL.
it_attach[] = i_record[].
CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
EXPORTING
LINE_WIDTH_SRC = '132'
LINE_WIDTH_DST = '255'
TRANSFER_BIN = ' '
TABLES
content_in = i_tline[]
content_out = IT_ATTACH[]
EXCEPTIONS
ERR_LINE_WIDTH_SRC_TOO_LONG = 1
ERR_LINE_WIDTH_DST_TOO_LONG = 2
ERR_CONV_FAILED = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
it_attach[] = w_return-otfdata[].
IF it_pdf_output[] IS NOT INITIAL.
it_attach[] = it_pdf_output[].
wa_mailbody-line = 'Dear Sir / Madam,'.
APPEND wa_mailbody TO it_mailbody.
wa_mailbody-line = 'Please be informed that we have remitted the payment towards your outstanding bills as per the attachment:'.
APPEND wa_mailbody TO it_mailbody.
wa_mailbody-line = ' '.
APPEND wa_mailbody TO it_mailbody.
wa_mailbody-line = ' '.
APPEND wa_mailbody TO it_mailbody.
wa_mailbody-line = 'Best Regards,'.
APPEND wa_mailbody TO it_mailbody.
wa_mailbody-line = 'Mary. G '.
APPEND wa_mailbody TO it_mailbody.
wa_mailbody-line = 'Finance department'.
APPEND wa_mailbody TO it_mailbody.
wa_mailbody-line = 'Intimate Fashions (I) Pvt Ltd'.
APPEND wa_mailbody TO it_mailbody.
wa_mailbody-line = ' '.
APPEND wa_mailbody TO it_mailbody.
wa_mailbody-line = 'Please do not print this email unless it is absolutely necessary. Become environment friendly.'.
APPEND wa_mailbody TO it_mailbody.
wa_mailbody-line = 'E-MAIL DISCLAIMER.'.
APPEND wa_mailbody TO it_mailbody.
wa_mailbody-line = 'If you are not the addressee of this mail, please delete this. Intimate Fashions does not accept any liability on the improper usage of this mail. It may also be legally '.
APPEND wa_mailbody TO it_mailbody.
wa_mailbody-line = 'privileged. Internet communications cannot be guaranteed to be timely, secure or virus free'.
APPEND wa_mailbody TO it_mailbody.
DESCRIBE TABLE it_mailbody LINES lncnt.
wa_doc_data-obj_descr = 'Remittance details - Brunet'.
wa_doc_data-expiry_dat = sy-datum + 10.
wa_doc_data-obj_name = 'TRIAL'.
wa_doc_data-sensitivty = 'F'.
wa_doc_data-doc_size = lncnt * 255.
CLEAR wa_pack.
CLEAR wa_pack-transf_bin.
wa_pack-doc_type = 'RAW'.
wa_pack-transf_bin = ' '.
wa_pack-head_start = 1.
wa_pack-head_num = 0.
wa_pack-body_start = 1.
wa_pack-body_num = lncnt.
wa_pack-doc_size = lncnt * 255.
APPEND wa_pack TO it_pack.
CLEAR: lncnt,wa_pack.
DESCRIBE TABLE it_attach LINES lncnt.
wa_pack-transf_bin = 'X'.
wa_pack-head_start = 1.
wa_pack-head_num = 1.
wa_pack-body_start = 1.
wa_pack-body_num = lncnt.
wa_pack-doc_type = 'PDF'.
wa_pack-obj_name = 'VNPA'.
CONCATENATE 'Vendor Payment Advice' '.PDF' INTO wa_pack-obj_descr.
wa_pack-obj_descr = 'Vendor Payment Advice'.
READ TABLE it_attach INDEX lncnt. "INTO WA_ATTACH
wa_pack-doc_size = ( lncnt - 1 ) * 255 + STRLEN( it_attach ).
wa_pack-doc_size = lncnt * 255.
APPEND wa_pack TO it_pack.
CLEAR: lncnt,wa_pack.
wa_mailhead = 'Vendor Payment Advice'.
APPEND wa_mailhead TO it_mailhead.
CLEAR: wa_mailhead.
LOOP AT pa_mail.
wa_receiverid-receiver = pa_mail-low.
wa_receiverid-rec_type = 'U'.
APPEND wa_receiverid TO it_receiverid.
CLEAR:wa_receiverid.
ENDLOOP.
wa_receiverid-receiver = 'xxxxx'. "(I have given mail id here )
wa_receiverid-rec_type = 'U'.
APPEND wa_receiverid TO it_receiverid.
wa_receiverid-receiver = 'xxxxx'. "(I have given mail id here )
wa_receiverid-rec_type = 'U'.
APPEND wa_receiverid TO it_receiverid.
wa_receiverid-receiver = 'xxxxx'. "(I have given mail id here )
wa_receiverid-rec_type = 'U'.
APPEND wa_receiverid TO it_receiverid.
CLEAR:wa_receiverid,lncnt.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_data
put_in_outbox = 'X'
commit_work = 'X'
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
TABLES
packing_list = it_pack
object_header = it_mailhead
contents_bin = it_attach[]
contents_txt = it_mailbody
CONTENTS_HEX = it_attach
OBJECT_PARA =
OBJECT_PARB =
receivers = it_receiverid
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.
IF sy-subrc = 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
LOOP AT it_zvnpa INTO wa_zvnpa.
wa_zvnpa-flag = 'X'.
MODIFY it_zvnpa FROM wa_zvnpa TRANSPORTING flag.
ENDLOOP.
MODIFY zvnpa FROM TABLE it_zvnpa.
ENDIF.
ENDIF.
CLEAR: wa_zvnpa,it_zvnpa,it_otf,it_otf[],w_return,lncnt,
wa_doc_data,
wa_head,it_head,it_head1,
i_record,i_record[],
i_tline,i_tline[],
it_pack,
wa_pack,
it_mailhead,
wa_mailhead,
it_mailbody,
wa_mailbody,
it_receiverid,
wa_receiverid,
it_attach.
ENDAT.
ENDLOOP.
ENDIF. -
EBCDIC- ASCII codepage conversion
Hi folks,
Please be patient enough to answer my queries. We are planning to upgrade either to 4.7 or ERP2005. Please let me know if I'm on track as well as answer some of my queries:
We are on 4.6C with 46D_EXT kernel, OS release V5R3. We have DEV & TST system on one partiton(LPAR1) of I550 server while PRD is on the second partition(LPAR2).
LPAR1 -> 6GB Ram -> 700 GB disk space -> 2.5 memory units(out of 5)
LPAR2 -> 9GB Ram -> 700 GB disk space -> 3.5 memory units.
1. How much disk space should be added in figures for Codepage conversion and Upgrade?
70% disk is used up as of now in each partition.
2. Is the memory, OS release enough?
3. What is the time required for Code page conversion for 100 GB database? Is time taken relative to database, OS or memory? Is the SAP CPC guide enough to get started? Which procedure should I choose - InPlace or Export/Import.
Please post some suggestions too.
Thanks!
Nick RonHi Nick,
a lot of questions ...
1. How much disk space should be added in figures for Codepage conversion and Upgrade?
70% disk is used up as of now in each partition.
>>> ebcdic-ascii CPC & Upgrade typically double the database size ...
=> it might become a little bit full ...
2. Is the memory, OS release enough?
>>> memory for DEV & TST will be far too short ... for PRD perhaps OK - you will have to test.
3. What is the time required for Code page conversion for 100 GB database? Is time taken relative to database, OS or memory? Is the SAP CPC guide enough to get started? Which procedure should I choose - InPlace or Export/Import.
>>> You need to be certifiedfor the CPC => Then you should know how to handle these kind of questions ...
Regards
Volker Gueldenpfennig, consolut.gmbh
http://www.consolut.de - http://www.4soi.de - http://www.easymarketplace.de -
MDMP Unicode Conversion problem during ECC upgrade
hi Experts,
I met a problem when upgrade from 4.6c to ecc 6.
in 4.6c, some key users made some chinese written entries in table field while he/she was logon as English, so, the language field in this entry is "EN" although the actual language was written by chinese, after upgrade to ECC6, we found the chinese words became messy code, maybe it was due to the chinese were encoded by english codepage during conversion, my question is, how can I avoid this? I really don't want this happen in our PRD upgrade.
The second question is: if a field contains both chinese and english, then, which language should it be assigned? english or chinese? I'm afraid if we assign this word as "EN" in vocabulary, then, after upgrade, the chinese part will be messy code.
Thank you for your kind suggestions.
FreshmanHi,
you can either use transaction SUMG (manually) to repair the entries ( you have to add the according table - please check unicode conversion guide for details) or you need to change the language key in the table to Chinese if you want the Unicode conversion to convert the data correctly.
To your second question: If the English texts are restricted to US7ASCII characters ("normal" English without special characters) those texts containing Chinese and English words can (and must !) be assigned to ZH, as US7ASCII characters are included in the Chinese code page.
Best regards,
Nilsn Buerckel -
Codepage conversion from multi-lingual table using JDBC
Hello,
I have an Oracle database that has been around since before any unicode was available. It is currently 9.2.0.7.0 and the charset is WE8ISO8859P1. I am trying to port all of the data in the 'Translation' table to a UTF-8 database. The problem is that each of the translated strings is stored in its own native MS Windows codepage. This table was populated over the years via OCI connections in C/C++, and this method worked. But now we need it moved to UTF-8 and are using JAVA. Obviously, all the cp1252 languages come over just fine, but all the other languages get converted to garbage by JDBC, since it is auto-converting them and assumes the source is 8859. I could do it with OCI, as I mentioned, but I am mandated to use JAVA and a web interface, so users can choose what data to move/convert to the new DB (on-demand) from a web page.
Is there a way to force the Oracle connection to think the database is in a different codepage so that the conversion comes out correct? OR
Is there a way to get the data from Oracle as unconverted chars, or generic binary, or something, and then have JAVA convert it to UTF-8 from the correct codepage before writing it to the new table?
Any help is appreciated.
Monte
Message was edited by:
Wookie## Is there a way to force the Oracle connection to think the database is
## in a different codepage so that the conversion comes out correct?
No.
## Is there a way to get the data from Oracle as unconverted chars,
## or generic binary, or something, and then have JAVA convert it
## to UTF-8 from the correct codepage before writing it to the new table?
Yes. Use:
SELECT UTL_RAW.CAST_TO_RAW(col) FROM tab;
and retrieve the value with ResultSet.getBytes. Then convert the retrieved byte[] to java.lang.String using String(byte[] bytes, String charsetName) constructor. Note, charsetName is Java name. Then, you can use setString() on PreparedStatement containing the INSERT for the converted value.
-- Sergiusz -
Codepage conversions for Webdynpro Jcodestinations
Hi folks,
I encountered a problem with creation of JCOdestinations for webdynpro. We have a backend system which is nonunicode and have a "home made" codepage. When I try to test and use the JCOdestination created on the J2EE server in the webdynpro parts of the server administration I get this error:
#1.5#0016D40D663500760000001F00000B4C00042F8AAF1002DD#1178172594644#com.sap.i18n.cp.ConvertSimpleBase#sap.com/tcwddispwda#com.sap.i18n.cp.ConvertSimpleBase.ConvertInit failed#Administrator#341##nc35946.ELFA.SE_JD1_17089950#Administrator#d4fa0270f93c11dbae0f0016d40d6635#SAPEngine_Application_Thread[impl:3]_17##0#0#Error#1#/System/Server#Java#ConvertInit failed. RscpInfo: ###1#Init converter object failed.
InCp: 9491 OutCp: 0000
Rscp return code: 2048
Rscp error info: .--============--
RSCP - Error
Error from: Codepage handling (RSCP) 5
code: 2048 RSCPENOCONV Wanted conversion not available.
in character code "9491" unknown
module: rscpc no: 22 line: 14541 T100: TS012
TSL01: F43 p3: 9491
`----
When you use the java classes for "Jco" directly you can set the attribute "codepage" manually, but is there a way to do this for the webdynpro destinations?
Or does anyone have another solution?Hi Balan,
no, it didn't.
I did as you said (in ume) - still the same error when i try to use a JCODestination.
Actually i think what you did suggest is the same i did in Visual Admin before.
Any other idea?
Thanks, Christian -
FIle Content Conversion Problem in IDOC-XI-File Scenario
Dear All,
I am doing IDOC-XI-FILE scenario.
I am facing one problem related to File Content Coversion.My requirement was to generate a dynamic file like <b>%store_code%_%current_date%_sitemaster.xml</b> , I have completed the dynamic generation successfully .
Now there is slight change in the requirement ,<b>we have to suppress the current_date node of the xml content</b> . i have tried to suppress the current_date using these <b>DATE.fieldFixedLengths 0 , Date.fixedLengthTooShortHandling Cut</b> , But I am unable to suppress it Can some body provide me the details on this .
The output xml version generated by Reciever file adapter is as below :
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
- <SITE_DATA>
<STORE_CODE>N002</STORE_CODE>
<TITLE_MEDI>Company</TITLE_MEDI>
<STORE_NAME>Mount Road</STORE_NAME>
<STREET>Chennai</STREET>
<COUNTRY>IN</COUNTRY>
<SALES_TAX_NO>12345678910</SALES_TAX_NO>
</SITE_DATA>
</ns0:MT_SITE_MASTER>
Plz provide me the code I have to write in the file content conversion .
Thanks in advance
Regards
PrabhatIf u see my earlier reply, I mentioned that u can not suppress the field from the one node.i.e Form SITE_DATA data type u can not suppress the field called CURRENT_DATE.
My suggestion is that , modify the Data type in such a way that you will be having two nodes as I have mentioned earlier. Then use the Suppress Logic for the Current Date.
So it will look like this-
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
- <SITE_DATA>
<STORE_CODE>N002</STORE_CODE>
<TITLE_MEDI>Company</TITLE_MEDI>
<STORE_NAME>Mount Road</STORE_NAME>
<STREET>Chennai</STREET>
<COUNTRY>IN</COUNTRY>
<SALES_TAX_NO>12345678910</SALES_TAX_NO>
</SITE_DATA>
<CURR_DATE>
<CURRENT_DATE>20051105</CURRENT_DATE>
</CURR_DATE>
</ns0:MT_SITE_MASTER>
So ur SITE_DATA is not having a field called CURRENT_DATE. This field is in separate node (segment ) called CURR_DATE. Now u can use the Suppress Logic for the same like this.
CURR_DATE.fieldFixedLengths - 0
CURR_DATE.fixedLengthTooShortHanling - Cut
And in your Variable Substitution you can use the date from the other segment called CURR_DATE.
Hope this solves ur problem.
Regards,
Moorthy -
Smartforms o/p 2 PDF conversion problem , plz see my code
Hi Smartform Guys
1)I m getting error <b>"CONVT_NO_NUMBER "</b> in converting my Smartform output to PDF.
*Printing of Export Invoice, Packing List,Enclosure to Packing List & *
*Case Marking in one SMART FORMS Layout *
REPORT ZSD_REP_MULTI_PRINT.
TABLES :
vbak,
vbap,
vbpa,
vbfa,
VBRK,
VBRP,
LIKP,
LIPS,
KONV,
objk,
tvko,
ser01,
sadr,
equi,
makt,
mast,
t005t,
kna1,
t001w,
T001,
ADRC,
sscrfields,
zpp_plcmi, "Packing list history For Conf: Item data
zplh, "PACKING LIST HISTORY : HEADER DATA
zpli. "PACKING LIST HISTORY : ITEM DATA
DATA: FM_NAME TYPE RS38L_FNAM,
P_E_DEVTYPE TYPE RSPOPTYPE,
P_JOB_OUTPUT_INFO TYPE SSFCRESCL OCCURS 2000 WITH HEADER LINE,
P_OUTPUT_OPTIONS TYPE SSFCOMPOP OCCURS 0 WITH HEADER LINE,
P_CONTROL_PARAMETERS TYPE SSFCTRLOP OCCURS 0 WITH HEADER LINE ,
P_DOC LIKE DOCS OCCURS 2000 WITH HEADER LINE,
P_LINES LIKE TLINE OCCURS 200,
P_BIN_FILESIZE TYPE I,
P_LANGUAGE TYPE SFLANGU,
P_BIN_FILE TYPE XSTRING.
DATA: T_ITEM TYPE ZSD_TABL_LITEM,
WA_ITEM TYPE ZSD_STRUCT_LITEM,
T_ADRS LIKE ZSD_STRUCT_ADRS OCCURS 0 WITH HEADER LINE,
MSLINES LIKE TLINE OCCURS 1 WITH HEADER LINE,
TIDNO LIKE STXL-TDID,
TNAME LIKE STXL-TDNAME,
TOBJT LIKE STXL-TDOBJECT,
SSORD LIKE VBAK-VBELN,
TOT LIKE VBAK-NETWR,
WORD LIKE SPELL.
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
PARAMETERS: P_DELNO LIKE LIKP-VBELN OBLIGATORY,
P_INVNO LIKE VBRK-VBELN OBLIGATORY,
P_DATE LIKE SY-DATUM.
SELECTION-SCREEN END OF BLOCK blk1.
AT SELECTION-SCREEN.
CLEAR T_ADRS.
REFRESH T_ITEM.
T_ADRS-INVNO = P_INVNO.
T_ADRS-INVDAT = P_DATE.
SELECT SINGLE VBELV INTO VBFA-VBELV
FROM VBFA
WHERE VBELN = P_DELNO
AND VBTYP_N = 'J' .
SSORD = VBFA-VBELV.
*Exporter's Address
SELECT SINGLE BUKRS_VF INTO VBAK-BUKRS_VF
FROM VBAK
WHERE VBELN = VBFA-VBELV.
SELECT SINGLE ADRNR
INTO T001-ADRNR
FROM T001
WHERE BUKRS = VBAK-BUKRS_VF.
SELECT SINGLE NAME1 STREET CITY1 POST_CODE1 COUNTRY
INTO (T_ADRS-NAME1,T_ADRS-STREET,T_ADRS-CITY1,
T_ADRS-POST_CODE1, ADRC-COUNTRY)
FROM ADRC
WHERE ADDRNUMBER EQ T001-ADRNR.
SELECT SINGLE LANDX
INTO T_ADRS-COUNTRY
FROM T005T
WHERE SPRAS = 'EN'
AND LAND1 = ADRC-COUNTRY.
**BUYERS NO & DATE
SELECT SINGLE BSTNK BSTDK INTO (T_ADRS-BSTNK,T_ADRS-BSTDK)
FROM VBAK
WHERE VBELN = VBFA-VBELV.
*Consignee Address & Buyer Other Than Consignee
SELECT SINGLE KUNNR KUNAG INTO (LIKP-KUNNR, LIKP-KUNAG)
FROM LIKP WHERE VBELN = P_DELNO.
IF LIKP-KUNNR = LIKP-KUNAG.
SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
INTO (T_ADRS-CNAME1, T_ADRS-CNAME2, T_ADRS-CSTREET,
T_ADRS-CCITY, T_ADRS-CPCODE, T_ADRS-CREGIO,
T_ADRS-CTELF1, KNA1-ADRNR)
FROM KNA1
WHERE KUNNR = LIKP-KUNNR.
SELECT SINGLE COUNTRY INTO ADRC-COUNTRY
FROM ADRC
WHERE ADDRNUMBER EQ KNA1-ADRNR.
SELECT SINGLE LANDX
INTO T_ADRS-CCOUNTRY
FROM T005T
WHERE SPRAS = 'EN'
AND LAND1 = ADRC-COUNTRY.
T_ADRS-ONAME1 = T_ADRS-CNAME1 .
T_ADRS-ONAME2 = T_ADRS-CNAME2 .
T_ADRS-OSTREET = T_ADRS-CSTREET .
T_ADRS-OCITY = T_ADRS-CCITY.
T_ADRS-OPCODE = T_ADRS-CPCODE .
T_ADRS-OREGIO = T_ADRS-CREGIO.
T_ADRS-OTELF1 = T_ADRS-CTELF1 .
T_ADRS-OCOUNTRY = T_ADRS-CCOUNTRY.
ELSE.
SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
INTO (T_ADRS-CNAME1, T_ADRS-CNAME2, T_ADRS-CSTREET,
T_ADRS-CCITY, T_ADRS-CPCODE, T_ADRS-CREGIO,
T_ADRS-CTELF1, KNA1-ADRNR)
FROM KNA1
WHERE KUNNR = LIKP-KUNNR.
SELECT SINGLE COUNTRY INTO ADRC-COUNTRY
FROM ADRC
WHERE ADDRNUMBER EQ KNA1-ADRNR.
SELECT SINGLE LANDX
INTO T_ADRS-CCOUNTRY
FROM T005T
WHERE SPRAS = 'EN'
AND LAND1 = ADRC-COUNTRY.
*Buyer Other than Consignee
SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
INTO (T_ADRS-ONAME1, T_ADRS-ONAME2, T_ADRS-OSTREET,
T_ADRS-OCITY, T_ADRS-OPCODE, T_ADRS-OREGIO,
T_ADRS-OTELF1, KNA1-ADRNR)
FROM KNA1
WHERE KUNNR = LIKP-KUNAG.
SELECT SINGLE COUNTRY INTO ADRC-COUNTRY
FROM ADRC
WHERE ADDRNUMBER EQ KNA1-ADRNR.
SELECT SINGLE LANDX
INTO T_ADRS-OCOUNTRY
FROM T005T
WHERE SPRAS = 'EN'
AND LAND1 = ADRC-COUNTRY.
ENDIF.
*Other's Ref
TIDNO = 'Z071'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-OREF = mslines-tdline(25).
EXIT.
ENDLOOP.
*Buyer's Order No Ref
TIDNO = 'Z023'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-BUYER = mslines-tdline(25).
EXIT.
ENDLOOP.
*Exporter Ref
TIDNO = 'Z072'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-XPREF = mslines-tdline(25).
EXIT.
ENDLOOP.
*Pre-Carraige By
TIDNO = 'Z074'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-PCRG = mslines-tdline(25).
EXIT.
ENDLOOP.
*Place Of reciept by Pre-Carraige
TIDNO = 'Z073'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-PLPCRG = mslines-tdline(25).
EXIT.
ENDLOOP.
*Vessel/Flight No
TIDNO = 'Z075'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-VFNO = mslines-tdline(25).
EXIT.
ENDLOOP.
*Port Of Loading
TIDNO = 'Z077'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-PLOAD = mslines-tdline(25).
EXIT.
ENDLOOP.
*Port Of Discharge
TIDNO = 'Z076'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-PDISG = mslines-tdline(25).
EXIT.
ENDLOOP.
*Final Destination
TIDNO = 'Z070'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-FDEST = mslines-tdline(25).
EXIT.
ENDLOOP.
*Terms Of Delivery & Payment
TIDNO = 'Z080'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-TERMS = mslines-tdline(50).
EXIT.
ENDLOOP.
APPEND T_ADRS.
*BODY SECTION FOR LINE ITEMS
SELECT POSNR KWMENG VRKME WAERK
INTO (VBAP-POSNR, VBAP-KWMENG, VBAP-VRKME, VBAP-WAERK)
FROM VBAP
WHERE VBELN = SSORD.
*Mark/Case No
TIDNO = '0002'.
CONCATENATE SSORD
VBAP-POSNR
INTO TNAME.
TOBJT = 'VBBP'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
WA_ITEM-MARKNO = mslines-tdline(40).
EXIT.
ENDLOOP.
*Packing Type
TIDNO = '0003'.
CONCATENATE SSORD
VBAP-POSNR
INTO TNAME.
TOBJT = 'VBBP'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
WA_ITEM-PACKTYP = mslines-tdline(40).
EXIT.
ENDLOOP.
*Goods Description
TIDNO = '0001'.
CONCATENATE SSORD
VBAP-POSNR
INTO TNAME.
TOBJT = 'VBBP'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
WA_ITEM-PACKTYP = mslines-tdline(40).
EXIT.
ENDLOOP.
*Goods Quantity
WA_ITEM-QTY = VBAP-KWMENG.
WA_ITEM-VRKME = VBAP-VRKME.
*Goods Rate
SELECT SINGLE KNUMV INTO VBAK-KNUMV FROM VBAK WHERE VBELN = SSORD.
SELECT SINGLE KBETR WAERS
INTO (WA_ITEM-RATE, WA_ITEM-WAERS)
FROM KONV
WHERE KNUMV = VBAK-KNUMV
AND KPOSN = VBAP-POSNR
AND KSCHL = 'PR00'.
*Goods Amount
WA_ITEM-AMOUNT = WA_ITEM-QTY * WA_ITEM-RATE.
WA_ITEM-WAERK = VBAP-WAERK.
TOT = TOT + WA_ITEM-AMOUNT.
APPEND WA_ITEM TO T_ITEM.
ENDSELECT.
T_ADRS-TOT = TOT.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = TOT
CURRENCY = VBAP-WAERK
FILLER = ' '
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = WORD
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
TEXT = WORD-WORD.
CONCATENATE TEXT
'DECIMAL'
WORD-WORD
INTO TEXT
SEPARATED BY ' '.
T_ADRS-TOT_WORDS = WORD-WORD.
APPEND T_ADRS.
START-OF-SELECTION.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'Z_SD_REP_MULTI_PRINT'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
P_LANGUAGE = 'EN'.
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
I_LANGUAGE = P_LANGUAGE
I_APPLICATION = 'SAPDEFAULT'
IMPORTING
E_DEVTYPE = P_E_DEVTYPE.
P_OUTPUT_OPTIONS-XSFCMODE = 'X'.
P_OUTPUT_OPTIONS-XSF = SPACE.
P_OUTPUT_OPTIONS-XDFCMODE = 'X'.
P_OUTPUT_OPTIONS-XDF = SPACE.
P_OUTPUT_OPTIONS-TDPRINTER = P_E_DEVTYPE.
P_OUTPUT_OPTIONS-TDDEST = 'LOCL'.
APPEND P_OUTPUT_OPTIONS.
P_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
P_CONTROL_PARAMETERS-GETOTF = 'X'.
P_CONTROL_PARAMETERS-NO_CLOSE = SPACE.
APPEND P_CONTROL_PARAMETERS.
CALL FUNCTION FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = P_CONTROL_PARAMETERS
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = P_OUTPUT_OPTIONS
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = P_JOB_OUTPUT_INFO
JOB_OUTPUT_OPTIONS =
TABLES
T_ADRS = T_ADRS
T_ITEM = T_ITEM
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
EXPORTING
USE_OTF_MC_CMD = 'X'
ARCHIVE_INDEX =
IMPORTING
BIN_FILESIZE = P_BIN_FILESIZE
TABLES
OTF = P_JOB_OUTPUT_INFO-OTFDATA
DOCTAB_ARCHIVE = P_DOC
LINES = P_LINES
EXCEPTIONS
ERR_CONV_NOT_POSSIBLE = 1
ERR_OTF_MC_NOENDMARKER = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
BREAK-POINT.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = P_BIN_FILESIZE
CODEPAGE = ' '
FILENAME = 'C:\TEMP.PDF'
FILETYPE = 'BIN'
MODE = ''
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH = P_BIN_FILESIZE
TABLES
DATA_TAB = P_LINES
FIELDNAMES =
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
NO_AUTHORITY = 10
OTHERS = 11
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = P_BIN_FILESIZE
FILENAME = 'C:\Documents and Settings\pvipin\Desktop\sd.pdf'
FILETYPE = 'BIN'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
IMPORTING
FILELENGTH =
*TABLES
DATA_TAB = P_LINES.
FIELDNAMES =
**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 .
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*& Form FINDTEXT
text
FORM FINDTEXT.
REFRESH mslines.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = tidno
language = sy-langu
name = tname
object = tobjt
TABLES
lines = mslines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
DELETE mslines WHERE tdline IS INITIAL.
ENDFORM. "FINDTEXTThnx in Advnce
Moni
Message was edited by: md monirujjaman
Message was edited by: md monirujjaman
Message was edited by: md monirujjaman
Message was edited by: md monirujjaman
Message was edited by: md monirujjaman
Message was edited by: md monirujjaman
Message was edited by: md monirujjaman
Message was edited by: md monirujjaman
Message was edited by: md monirujjamanHello,
I think the following statement is causing problem.
P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA.
either give:
P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA[].
or
directly pass P_JOB_OUTPUT_INFO-OTFDATA into FM parameter.
This is because you are filling only header into P_OTF and NOT the Contents of internal table by the statement
P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA.
let me know whether it works.
Regards, Murugesh AS
have alook at this thread:
Re: SX_OBJECT_CONVERT_OTF_PDF
this may help you
Message was edited by: Murugesh Arcot
Message was edited by: Murugesh Arcot
Maybe you are looking for
-
How to use methods when objects stored in a linked list?
Hi friend: I stored a series of objects of certain class inside a linked list. When I get one of them out of the list, I want to use the instance method associated with this object. However, the complier only allow me to treat this object as general
-
How to delete the duplicate copy in version management?
Hi, I have reverted the previous version. it is getting back the version on my user id. but i selected the active version again and clicking on RETRIVE button..now it is creating another duplication version. so i want to delete that one. anybody can
-
Problems opening attachments from outlook
This week I have been unable to open attachments from Outlook 2010. I use Firefox as my browser and for some reason when I click on an attachment it is downloaded into Firefox. This has only just started to happen. If I try to open a PDF document I w
-
hi could anyone tell me how to use authority check in report program. please provide me with code in report only. thanx rocky robo
-
In iOS8 on iPhone 6, I have 3 email accounts, 1 Gmail, 1 icloud, and one through my own domain. I am not able to quickly (in one step) empty the junk mailbox on the account from my domain. "Select all" > delete is what I'm looking for but it's not av