Writing smartform output in application server
Hi,
i have a smartform output having logo and other details. After this i am converting the smartform output to PDF file and i tried write into application server using Open Dataset, Close Dataset. The thing is i am unable to see the output in pdf file and when i tried to open am getting some error. Is there any way to write pdf file which having logo into application server.
please guide me.
what mode did you use in th open dataset statement?
You should use BIN mode in open dataset statement.
Regards,
Ravi
Similar Messages
-
Writing smartform output into application server.
Hi,
i have a smartform output having logo and other details. After this i am converting the smartform output to PDF file and i tried write into application server using Open Dataset, Close Dataset. The thing is i am unable to see the output in pdf file and when i tried to open am getting some error. Is there any way to write pdf file which having logo into application server.
i tried for both binary mode as well as for text mode of open dataset.
please guide me.Hi Subas.
I would like to suggest a couple of references,
[SDN - Reference for Issue regarding the uploading the pdf file to the application server|regarding the uploading the pdf file to the application server;
Hope that's usefull.
Good Luck & Regards.
Harsh Dave -
Output to application server.
Hello All,
I have ouput in HIERARCHIAL LIST. Im displaying Header table G_T_VBAK and Item table G_T_VBAP.
I want to save this output in application server. Can any one help?
My code is as follows.
OPEN DATASET g_f_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
MESSAGE e899(mm) WITH 'not possible' space space space.
EXIT.
ELSE.
LOOP AT g_t_vbak.
TRANSFER g_t_vbak TO g_f_file.
LOOP AT g_t_vbap.
TRANSFER g_t_vbap TO g_f_file.
ENDLOOP.
ENDLOOP.
ENDIF.
It is giving dump at the line TRANSFER g_t_vbap TO g_f_file. (second loop statement).
Good answers will be appriciated with points.
Thanks in advance.
Best Regards,
Sasidhar Reddy Matli.Hello Kris,
The dump message is as follows:
What happened?
Error in ABAP application program.
The current ABAP program "ZSSR_ORDER_DETAILS_HIER1" had to be terminated
because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
Error analysis
Only character-type data objects are supported at the argument
position "f" for the statement
"TRANSFER f TO ...".
In this case, the operand "f" has the non-character-type "u". The
current program is flagged as a Unicode program. In the Unicode context,
type X fields are seen as non-character-type, as are structures that
contain non-character-type components.
Source code extract
002370 FORM download_to_application_server .
002380
002390 OPEN DATASET g_f_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
002400
002410 IF sy-subrc NE 0.
002420
002430 MESSAGE e899(mm) WITH 'not possible' space space space.
002440 EXIT.
002450
002460 ELSE.
002470
002480 LOOP AT g_t_vbak.
002490
002500 TRANSFER g_t_vbak TO g_f_file.
002510
002520 LOOP AT g_t_vbap.
> TRANSFER g_t_vbap TO g_f_file.
002540 ENDLOOP.
002550
002560 ENDLOOP.
002570
002580 ENDIF.
002590
002600 ENDFORM. " download_to_application_server
Best Regards,
Sasidhar Reddy Matli. -
Error writing XML Table on application server
Hi All ,
I am converting a internal table into a XML table using Fm SAP_CONVERT_TO_XML_FORMAT, And then writing it to the application server ,
at the end of the file which is written to application server there are some junk characters .
when i download the same xml table to PC using gui_download there is no problem atr all .
Its only when i using
TRANSFER ls_XMLTAB-data TO lv_filename. i get junk characters at the end and the error on the xml page is
" An invalid character was found in text content. Error processing resource 'file:///C:/Documents and Settings..."
This i guess is due to the line break ,
Any help on resolving would be great thanks
Regards
Vinay Kolla1) Are you asking me to create a folder on Database directory which points to a folder on the Apps server ?I suggest creating an Oracle directory object (a database object) pointing to a real location (folder) on Application server.
we DONOT want a hand shake between the DB Server and the APPS server.I don't see where the problem is.
I'm not familiar with Apps R12 but there's no doubt the two servers are already communicating, at least App server should be able to access the DB for the whole thing to run.
As I said :
One way or another, the data has to make its way to the database, there's no workaround to that.How do you imagine the data will end up in a database table if it doesn't come to the DB server?
There's no magical method out there, both servers have to communicate at some point.
About client-server approaches (client being here the App server), you can read about accessing the XML DB repository in the XML DB Developer's Guide : http://download.oracle.com/docs/cd/E11882_01/appdev.112/e23094/toc.htm
Other option : SQL*Loader can load a CLOB, or an XMLType column too
Edited by: odie_63 on 19 déc. 2011 20:22 -
Problem in executing query in RSCRM_BAPI & output in application server!
hi Experts,
We executed a query using RSCRM_BAPI transaction and write it to the application server.We found the following problem.
In the query we have restricted the keyfigures such that each have 2 decimal places but when we execute the query using RSCRM_BAPI and writing into the application server the more than 2 decimal places are coming in to the file.
For example:
In the query the value is 12.12 but in the application server its written as 12.1200000
So the width gets elongated and some of the keyfigures are truncated.
We have already have gone through the restrictions in the SAP Note Number 605208
Please help us to find a solution to get output of keyfigures same as whatever coming in the output of query.
Thanks in advance
Somenathsorry, i mistakenly sent it in different id....this is my id.......if it is useful assign points to this id...
Using RSCRM_BAPI, RSCRM_REPORT, suitable for simple query.
In your query you are using Restricted, calculated keyfigure.in that case RSCRM_BAPI, RSCRM_REPORT has some restriction.
Check OSS 605208 which describes RSCRM_BAPI restrictions .
Re: Master Data Datasources
You can Modify the Wrtiequery abap program for your requirement.
or
Create a ABAP program for extracting a bw query and upload it in Application server in csv format.
Thanks,
senthil kumar -
Spool to PDF output in application server
Hi Experts,
I have a problem with converting spool to PDF. If I download the spool to presentation, the outputs is fine, BUT when I download it to application server and try to view it in al11, a set of characters comes out and if I try to save it on my local drive, an error message pops out stating that it could not read the file because it is either not a supported file type or because the file has been damaged. Please help me. I've tried doing everything I can already. I cannot run the convertion of spool file to presentation because it always ends up as run time error, that's why I have no choice but to run it in background. These files needs to be distributed to all branch offices. Please, please.......help......I'm desperate......Hi Nikhil,
I'm sorry....but I'm still stucked. If I try to view the pdf output in AL11 this characters are still displayed "═䑆ⴱ⸳ഊ◢팍ਲ扪ഊ⽗楮䅮獩䕮捯摩湧ഊ敮摯扪ഊ㌠〠潢樍਼㰍ਥ䑥癴祰攠偏協㈠⁆潮琠䍏啒䥅删潲浡氠䱡湧⁅不ਯ呹灥 䙯湴ഊ⽓畢瑹灥 呹灥ㄍਯ䉡獥䙯湴 䍯畲楥爍ਯ乡浥 䘰", and when the basis transferred it to the local folder the same error came out that the file could not be read either it is corrupted or file type is not supported. Please.....I've been on it for hours and can't seem to get the problem. Here's what I did with the program....Please tell me where I went wrong.....Help......
PARAMETERS: p_file TYPE LOCALFILE DEFAULT TEXT-F02 OBLIGATORY.
DATA: gd_buffer TYPE STRING OCCURS 0 WITH HEADER LINE.
lt_conv LIKE gd_buffer OCCURS 0 WITH HEADER LINE.
DATA lv_string TYPE string.
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING '~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~'.
APPEND gd_buffer.
DO.
counter = strlen( gd_buffer ).
IF counter GE 255.
lt_conv = gd_buffer(255).
APPEND lt_conv.
SHIFT gd_buffer LEFT BY 255 PLACES.
ELSE.
lt_conv = gd_buffer(counter).
APPEND lt_conv.
EXIT.
ENDIF.
ENDDO.
IF lt_conv[] IS NOT INITIAL.
OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc EQ 0.
IF sy-subrc <> 0.
MESSAGE e398(00) WITH 'Error creating file' p_file.
ENDIF.
LOOP AT lt_conv INTO lv_string.
TRANSFER lv_string TO p_file.
ENDLOOP.
CLOSE DATASET p_file.
IF sy-subrc EQ 0.
ELSE.
MESSAGE e398(00) WITH 'Error closing file' p_file.
ENDIF.
ELSE.
MESSAGE e398(00) WITH 'Error creating file' p_file.
ENDIF.
ENDIF. -
Not displaying the actual output in application server.
HI expert's,
thanks in advance.
i am getting output in grid format, it displaying data in grid format,but i am trying to pass this grid internal table into application server , my file is going to application server but there output coming in row wise, not in colum wise.
how i will get same output wat i am getting in grid output, in to application server.
i have an internal table that data is storing in that,i am thinking we have to convert grid to normal display is it correct ? or not( )
please response as soon as possibe please.yes, i tried like this also,
but my output what iam getting in grid format , not exactly getting in application server
just find below ex.
(ex: grid output: aaa bbb cccc dddd
111 222 3333 4444)
in application server output like below.
aaa
bbb
ccc
ddd
111
like so on)
i need same output wat i am getting in grid output, in to application server. -
Problem in French translation while writing a file on application server
I am writing some text symbols to a file on application server using Transfer statement. But for some french characters the data is not transleted correctly. I have maintained the french translation for these text symbols.
Hi,
Make sure you use the correct encoding while writing your file.
Regards. -
Download PrintWork Bench Output on Application Server
Hi Experts,
My requirement goes like this.
I have to download the output of the form IS_U_METER_READING_DOWNLOAD into .txt files on application server.
and Also, these files should be named as "CCYYMMCitycodePORTIONMRUD.txt"
How do I do it?
Even a small help will also be appreciated.
Thank you!Hi Sabu,
IS_U_METER_READING_DOWNLOAD is an application form for PrintWork Bench.
and it has SAP Script.
Appreciate ur time and concern.
Thanks.
Regards,
Dev! -
1099 MISC output to Application Server Issue 2010 DME file
Dear all,
I have an issue where I cannot output my clients IRS file to our application server. Using program RFIDYYWT we enter the parameters. The output group is supposed to place the file on the application server, and create using the 2010 DME file.
However, this is not happening.
The strange thing is, I can use the 2009 DME file and create data for 2010. However, this will create it in the 2009 format which is not valid this year.
The most interesting piece is that all of my output groups point to the application server, however I do not specify the file to go there during the program (RFIDYYWT) parameters. I just give my desktop. Still, the file will create on the application server using the 2009 DME.
Again, this does not happen with the 2010 DME. Where is the program pulling the file path from?
If I do specify the file path to the app server during the program parameters, it just creates it in binary. This is true for both the 2009 DME and the 2010 DME. Therefore, I am sure it is pulling a file path from somewhere else.
Any suggestions?
Thanks,Thanks Shannon, that was very helpful. We're going to go down the route of the OSS note which should address the issue.
We still don't know why the system, in its as is state, acts the way it does. But with the FAQ attached to one of the notes I at least see how to fix it and go about it another way.
Thanks again,
David L. -
How to Programatically send adobe form output to Application Server?
Has anyone got a program which calls adobe form function module and then dumps the output to App Server?
used function 'ADS_WRITE_TO_FILE'
-
Dump when writing a file to application server
Hi,
I am developing a customer statement report and putting the data into application server.
if the data is less - the file is getting created in application server.
if there is huge amount of data - the back job gets cancelled
The error description/dump is as follows :
Runtime Errors DATASET_WRITE_ERROR
Except. CX_SY_FILE_IO
The current program "ZCUST_STMT" had to be terminated because
a capacity limit has been reached.
The dump points in the line at TRANSFER STATEMENT
>>>>> TRANSFER lv_string TO v_file.
Is there any memeory space (Max limit ) specified for application server for a single file ?
How can we solve this issue ?
Thanks
SenthilHello Senthil,
Is the program terminating in the DEV box or in another subsequent system?
If in DEV, you can try to catch the exception & get the exception text. Something like this:
DATA: lx_file_err TYPE REF TO cx_root, "File Exceptions
lv_msg_txt TYPE string.
TRY.
TRANSFER x_data TO x_filepath.
CATCH cx_sy_file_io INTO lx_file_err.
lv_msg_txt = lx_file_err->get_text( ). "Get the error text
ENDTRY.
BR,
Suhas -
Error Writing Xml Table to the application server
Hi All ,
I am converting a internal table into a XML table using Fm SAP_CONVERT_TO_XML_FORMAT, And then writing it to the application server ,
at the end of the file which is written to application server there are some junk characters .
when i download the same xml table to PC using gui_download there is no problem atr all .
Its only when i using
TRANSFER ls_XMLTAB-data TO lv_filename. i get junk characters at the end and the error on the xml page is
" An invalid character was found in text content. Error processing resource 'file:///C:/Documents and Settings..."
This i guess is due to the line break ,
Any help on resolving would be great thanks
Regards
Vinay KollaI would simply suggest to convert xml xstring to binary table, then transfer the file in binary mode. This way you avoid character conversions which might lead to inconsistencies. So you need the following
CALL TRANSFORMATION ...
DATA ex_tab TYPE TABLE OF x255.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = ostream_xml
TABLES
binary_tab = ex_tab.
OPEN DATASET dset FOR OUTPUT IN BINARY MODE.
"now transfer ex_tab to dset
Regards
Marcin -
Output in the application server
hi friends ,
i am displaying a graph in my out put .same time i want to place the graph in application server .
and i want to display this in a smart form.how can i place this out put in the application server.hi
this can be done by writing the file to Application server through SE38 program.you can use CG3Y and CG3Z transaction.use AL11 to view file
hope this helps
regards
Aakash Banga -
How to Increase the memory size of a File in the Application Server
Hello Abaper's
I have generated a XML file for the data of internal table (with 10 Records). When i download , i can see the XML file for the Entire 10 Records.
But , while transferring the XML file to Applicationserver , it's transferring only upto max 4 Records.I assume that the memory is insufficient to allocate 10 Records. Can we Increase the Memory size of the File on Application server. OR, is there any error in My Source Code.
Code i used to Transfer the XML File to Application server.
OPEN DATASET FNAME FOR OUTPUT IN BINARY MODE.
IF sy-subrc EQ 0.
LOOP AT it_xmltab INTO wa_xmltab.
TRANSFER wa_xmltab TO FNAME.
ENDLOOP.
ELSE.
MESSAGE e004(zmsg5) WITH 'File FNAME not opened'.
ENDIF.
CLOSE DATASET FNAME.
Regards
JvHi,
DATA : filename TYPE rlgrap-filename.
DATA : doc_name TYPE char30.
DATA : bin_size TYPE i.
SELECT matnr matkl meins
FROM mara INTO TABLE it_mara
UP TO 10 ROWS.
CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
EXPORTING
i_filename = filename
i_xml_doc_name = doc_name
IMPORTING
pe_bin_filesize = bin_size
TABLES
i_tab_sap_data = it_mara " contains 10 Records
CHANGING
i_tab_converted_data = it_xmltab.
placing XML File in Appl. Server
DATA : FNAME(60) VALUE 'xyz_File'.
DATA : num TYPE i.
DATA : xmldata(256) TYPE x.
For Writing The data in Application Server
OPEN DATASET FNAME FOR OUTPUT IN BINARY MODE. " ENCODING DEFAULT.
IF sy-subrc EQ 0.
LOOP AT it_xmltab INTO wa_xmltab.
TRANSFER wa_xmltab TO FNAME.
ENDLOOP.
ELSE.
MESSAGE e004(zmsg5) WITH 'File FNAME not opened'.
ENDIF.
CLOSE DATASET FNAME.
For Reading The data in Application Server
OPEN DATASET FNAME FOR INPUT IN BINARY MODE. " ENCODING DEFAULT.
DO.
IF sy-subrc EQ 0.
READ DATASET fname INTO xmldata.
WRITE :/ xmldata.
Clear xmldata.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET FNAME.
at runtime i can see
it_mara --> contain 10 records
it_xmltab --> contain 7 lines (Each line size is 255 char). This table have XML format data, (unknow format , with all numeric
digits)
it_xmltab is trasferred to application server , but the xml format is generated upto 4 records, and for the remaining records
the XML format is not generated.
the XML data in application server file is
<?xml version="1.0"?><TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">0-BUY1</MATNR><MATKL Datatype="C" Length="18">012</MATKL><MEINS Datatype="C" Length="6">PC
</MEINS>
</TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">0-BUY2</MATNR><MATKL Datatype="C" Length="18">012</MATKL><MEINS Datatype="C" Length="6">
PC </MEINS>
</TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">000000000000000001</MATNR><MEINS Datatype="C" Length="6">EA</MEINS>
</TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">000000000000000002</MATNR
Regards
JV
Maybe you are looking for
-
My iPhone 5c will no longer connect to iTunes?
Hello there! I bought my new iPhone 5c about 2 months ago and have had no problems until now. I used to be able to connect my iPhone to my Windows 8 laptop, but now when I hook it up, my iTunes doesn't even see my phone. There's not even a notificati
-
Recommended way to unit test mobile cross platform C++ in Visual Studio 2015
Hello, I'm playing with the new Visual Studio 2015 to check its capabilities for cross platform development using C++ as coding language. I've seen several videos in Channel9 about this feature but I don't remember hearing in any of these a word abou
-
I want to know how to set file watcher for my sql database using java. my doubt is i am running an web application in a web server. the user information are stored one databse. i want that user details in other databases. it will do automatically. wh
-
Is IEMI number: ****** a valid IEMI for an Iphone 5? <Personal Information Edited by Host>
-
I am writing this question on my old MacBook. Since it's Friday night, I can't reach customer support by phone. Just want to send some email to them. This is really upsetting and disappointing. Thank you in advance for your helps