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
Similar Messages
-
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 -
Write PDF file into application server.
Hi Gurus,
I have created a smartform and converted into PDF using function module as given below. Now I want to write this generated PDF file into application server. I am not generating any spool request too. How can I proceed from here? Pls advice..
CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
bin_filesize = lv_bin_filesize
TABLES
otf = ls_job_output_info-otfdata
doctab_archive = lt_docs
lines = lt_lines
EXCEPTIONS
err_conv_not_possible = 1
err_otf_mc_noendmarker = 2
OTHERS = 3.
Thanks..
Sajtransfer all the data from ur itabs to one final itab declared as follow
DATA: BEGIN OF final_itab OCCURS 0,
document TYPE string,
END OF final_itab.
then finally,
OPEN DATASET 'yourfile.pdf' FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
len = strlen( final_itab-DOCUMENT ).
TRANSFER final_itab-DOCUMENT TO 'yourfile.pdf' LENGTH len.
CLOSE DATASET 'yourfile.pdf'.
This ends the coding mate.
Enjoy it n have a good day.
Cheers -
Special characters downloading file into application server
Dear Friends,
i have to download records into excel sheet through back ground job, while downloading records into applications server.
all records are downloading properly up to here fine but some special characters also downloading. i had downloaded same records in debugging mode from the same internal table here no special characters.
i found that the structure(standard ( /SCWM/S_LIME_ALL_MON )) which is being used in that some fields are defined as RAW data type this may be the problem.but i tried to convert them using some function modules no result getting dump only.
i am using data sets to download data into application server here gui_download will not work because it is back ground job.
can any one please help me in this. its urgent...
please please help me in this it has been pending since DEC-01-11.
extra characters like ( #v#M?LQia#####
#v#M?LQia#####
#v#)
my code
open DATASET LV_FLNAM for OUTPUT in LEGACY BINARY MODE .
IF sy-subrc EQ C_ZERO.
LOOP AT LT_TAB INTO WA_TAB.
transfer WA_TAB to LV_FLNAM.
ENDLOOP.
CLOSE DATASET LV_FLNAM.
ENDIF.
Edited by: sairam.kusuma on Dec 16, 2011 6:26 AM
Edited by: sairam.kusuma on Dec 16, 2011 6:38 AM
Edited by: sairam.kusuma on Dec 16, 2011 6:39 AMTYPES:BEGIN OF ty_stru,
LGTYP TYPE /SCWM/LGTYP,
LGPLA TYPE /SCWM/LGPLA,
MATNR TYPE /SCWM/DE_MATNR,
MAKTX TYPE /SCWM/DE_UI_MAKTX,
QUAN(13) TYPE C,"/SCWM/DE_UI_QUAN,
UNIT TYPE /SCWM/DE_BASE_UOM,
CAT TYPE /SCWM/DE_CAT,
CAT_TXT TYPE /SCWM/DE_CAT_TXT,
CHARG TYPE /SCWM/DE_CHARG,
OWNER TYPE /LIME/OWNER,
ENTITLED TYPE /SCWM/DE_ENTITLED,
UI_WDATT TYPE /SCWM/DE_UI_WDATT,
UI_WDATU TYPE /SCWM/DE_UI_WDATU,
SKZSI TYPE /SCWM/LQUA_SKZSI,
QUANA(13) TYPE C,"/SCWM/DE_UI_QUAN_PACKED,
ALTME TYPE /SCWM/DE_AUNIT,
ITMNO TYPE /SCDL/DL_ITEMNO,
WEIGHT(15) TYPE C,"/SCWM/DE_NWEIGHT,
UNIT_W TYPE /SCWM/DE_WGT_UOM,
VOLUM(15) TYPE C,"/SCWM/DE_NVOLUME,
UNIT_V TYPE /SCWM/DE_VOL_UOM,
CAPA(15) TYPE C,"/SCWM/DE_CAPAUSE,
SN_STOCK TYPE /SCWM/DE_SER_STOCK,
END OF ty_stru.
DATA: LV_LGNUM TYPE /SCWM/LGNUM VALUE 'R10',
LV_FLNAM TYPE rlgrap-filename VALUE '/tmp/RAMA.xls'.
CONSTANTS: C_ZERO TYPE I VALUE '0'.
DATA: LT_TAB TYPE STANDARD TABLE OF /SCWM/S_LIME_ALL_MON,
WA_TAB TYPE /SCWM/S_LIME_ALL_MON,
i_stru TYPE STANDARD TABLE OF ty_stru,"
wa_stru TYPE ty_stru.
REFRESH LT_TAB.
CLEAR: WA_TAB.
*this is modified function module from /SCWM/S_LIME_ALL_MON
CALL FUNCTION 'ZEWM_F_PHYSICAL_INVENTORY_STOC'
EXPORTING
IV_LGNUM = LV_LGNUM
IV_VARIANT =
IV_MODE = '1'
IT_DATA_PARENT =
IMPORTING
ET_DATA = LT_TAB
EV_RETURNCODE =
EV_VARIANT =
CHANGING
CT_TAB_RANGE =
i have to download what are the fields defined as structure.
1)when ever i am using the internal table(LT_TAB) to download getting specials characters(####) with all records for the fields QUAN, QUANA, WEGHT,VOLUM and CAPA.
open DATASET LV_FLNAM for OUTPUT in LEGACY BINARY MODE .
IF sy-subrc EQ C_ZERO.
CLEAR: WA_stru,
wa_tab.
LOOP AT LT_TAB INTO WA_TAB.
transfer WA_TAB to LV_FLNAM.
CLEAR: WA_TAB.
ENDLOOP.
CLOSE DATASET LV_FLNAM.
ENDIF.
2)if i take another internal table with converting them as char file is downloading with out special characters but it is downloading single line only but not the hole data.
if i have the below code getting only single line records not total records without special characters.
open DATASET LV_FLNAM for OUTPUT in LEGACY BINARY MODE .
IF sy-subrc EQ C_ZERO.
CLEAR: WA_stru,
wa_tab.
LOOP AT LT_TAB INTO WA_TAB.
wa_stru-LGTYP = wa_tab-LGTYP.
wa_stru-LGPLA = wa_tab-LGPLA.
wa_stru-MATNR = wa_tab-MATNR.
wa_stru-MAKTX = wa_tab-MAKTX.
wa_stru-QUAN = wa_tab-QUAN.
wa_stru-UNIT = wa_tab-UNIT.
wa_stru-CAT = wa_tab-CAT.
wa_stru-CAT_TXT = wa_tab-CAT_TXT.
wa_stru-CHARG = wa_tab-CHARG.
wa_stru-OWNER = wa_tab-OWNER.
wa_stru-ENTITLED = wa_tab-ENTITLED.
wa_stru-UI_WDATT = wa_tab-UI_WDATT.
wa_stru-UI_WDATU = wa_tab-UI_WDATU.
wa_stru-SKZSI = wa_tab-SKZSI.
wa_stru-QUANA = wa_tab-QUANA.
wa_stru-ALTME = wa_tab-ALTME.
wa_stru-ITMNO = wa_tab-ITMNO.
wa_stru-WEIGHT = wa_tab-WEIGHT.
wa_stru-UNIT_W = wa_tab-UNIT_W.
wa_stru-VOLUM = wa_tab-VOLUM.
wa_stru-UNIT_V = wa_tab-UNIT_V.
wa_stru-CAPA = wa_tab-CAPA.
wa_stru-SN_STOCK = wa_tab-SN_STOCK.
transfer WA_stru to LV_FLNAM.
CLEAR: WA_stru.
ENDLOOP.
CLOSE DATASET LV_FLNAM.
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. -
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 -
FM to upload the Internal table data into application server.
Hi,
Could you please give me Function module to Upload the Internal table data into Application server ie., in Tcode AL11.
I know for downloading the Application server file into itab is "SUBST_GET_FILE_LIST" FM and using open dtaa set we get the data.
Regards,
deepthi.Hi Deepthi
Incase you are looking to upload data in the AL11 through a program , then you can make use of OPEN DATASET...CLOSE DATASET statements.
Here's the code snippet:
IF tb_alvdisplay[] IS INITIAL.
MESSAGE e999(/dcsea/zais_msg) WITH text-e01.
ELSE.
IF NOT cb_ufile IS INITIAL "Download to file
AND sy-pagno = 0. "Only down page headers for first page
PERFORM fm_concatenate_path_name USING p_path
p_file
CHANGING v_file.
*Open file for download.
PERFORM fm_open_file USING v_file .
ENDIF.
LOOP AT tb_alvdisplay.
IF NOT cb_ufile IS INITIAL.
*Passing the values of the respective headings to the structure.
ws_rec-vend_no = tb_alvdisplay-vendno.
ws_rec-vend_nm = tb_alvdisplay-vendnm.
ws_rec-title = tb_alvdisplay-vendtl.
ws_rec-add = tb_alvdisplay-add.
ws_rec-city1 = tb_alvdisplay-city1.
ws_rec-region = tb_alvdisplay-region.
ws_rec-country = tb_alvdisplay-country.
ws_rec-pobox = tb_alvdisplay-po.
ws_rec-phone = tb_alvdisplay-telf1.
ws_rec-extn = tb_alvdisplay-extn.
ws_rec-fax = tb_alvdisplay-telfx.
ws_rec-zterm = tb_alvdisplay-zterm.
ws_rec-remark = tb_alvdisplay-remark.
ws_rec-email = tb_alvdisplay-email.
*Passing the separator 'PIPE' to the structure.
ws_rec-sep01 = co_sep.
ws_rec-sep02 = co_sep.
ws_rec-sep03 = co_sep.
ws_rec-sep04 = co_sep.
ws_rec-sep05 = co_sep.
ws_rec-sep06 = co_sep.
ws_rec-sep07 = co_sep.
ws_rec-sep08 = co_sep.
ws_rec-sep09 = co_sep.
ws_rec-sep10 = co_sep.
ws_rec-sep11 = co_sep.
ws_rec-sep12 = co_sep.
ws_rec-sep13 = co_sep.
TRANSFER ws_rec TO v_file.
ENDIF.
AT LAST.
IF NOT cb_ufile IS INITIAL.
*Closing the DATASET file.
CLOSE DATASET v_file.
IF sy-subrc <> 0.
*Failure Message.
MESSAGE e999(/dcsea/zais_msg) WITH text-t04 text-t06.
ELSE.
*Success message.
MESSAGE s999(/dcsea/zais_msg) WITH text-t05.
ENDIF.
ENDIF.
ENDAT.
ENDLOOP.
ENDIF.
Also as Gautham suggested you can use tcode CG3Z or CG3Y incase you are looking to upload the data directly.
FInally, you can search SCN using the keywords, "Upload to AL11" and you'll get loads of results.
Hope this helps.
Harsh -
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. -
Converting smartforms output into PDF
Hi ALL,
How to convert the smartforms output into PDF based form. After executing the form, it should directly open in PDF. How to do this?
Points will be awarded.
Thanks and regards,
vinoth.Hi Vinoth Kumar,
Please go throuh the below procedure and sample Code, this might help you.
Procedure
When we activate the Smartform the system generates a Function Module. The function module name we can get from Smartfrom screen from menubar
Environment => Function Module_Name . In a report we can get this Function module name by calling a Function Module standard SSF_FUNCTION_MODULE_NAME. This function module at runtime calls the FM generated by smartform, which in turn is then used to pass data from the report to Smartform. In the report given below the FM generated is /1BCDWB/SF00000152 . In this FM we can see CONTROL_PARAMETERS in import tab. This is of type SSFCTRLOP. We need to set the GETOTF of this to be X. Setting this field will activate the OTF field in smartform.
In export tab of the FM generated by smartform we can see a parameter JOB_OUTPUT_INFO which is of type SSFCRESCL. The SSFCRESCL is a structure of having one of fields as OTFDATA. OTFDATA in turn is a table of type ITCOO. ITCOO has two fields TDPRINTCOM and TDPRINTPAR. TDPRINTCOM represents command line of OTF format data and TDPRINTPAR contains command parameters of OTF format data.
In every Smartform output in OTF format, TDPRINTCOM begins and ends with //. EP represents the end-of-page value for TDPRINTCOM field.
In addition we need to set few fields at the place where we call this FM(generated by smartform) in our program. While calling this FM we should set control_parameters, output_options, user_settings and job_putput_info fields as shown in program.
Once these settings are done we can call Function Module CONVERT_OTF to convert the OTF data of smartfrom output to PDF data format. Once these are done we can call method cl_gui_fronted_services=>file_save_dialog to specify the directory path where we want to save the output PDF file. After this we can call Function Module GUI_DOWNLOAD to download the PDF file on our local system.
Here is a sample code of program to perform the function.
SAMPLE CODE
*& Report ZAMIT_SMART_FORM_PDF *
REPORT ZAMIT_SMART_FORM_PDF .
data: carr_id type sbook-carrid,
cparam type ssfctrlop,
outop type ssfcompop,
fm_name type rs38l_fnam.
DATA: tab_otf_data TYPE ssfcrescl,
pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE,
tab_otf_final TYPE itcoo OCCURS 0 WITH HEADER LINE,
file_size TYPE i,
bin_filesize TYPE i,
FILE_NAME type string,
File_path type string,
FULL_PATH type string.
parameter: p_custid type scustom-id default 1.
select-options: s_carrid for carr_id default 'LH' to 'LH'.
parameter: p_form type tdsfname default 'ZAMIT_SMART_FORM'.
data: customer type scustom,
bookings type ty_bookings,
connections type ty_connections.
start-of-selection.
suppressing the dialog box for print preview****************************
outop-tddest = 'LP01'.
cparam-no_dialog = 'X'.
cparam-preview = SPACE.
cparam-getotf = 'X'.
select single * from scustom into customer where id = p_custid.
check sy-subrc = 0.
select * from sbook into table bookings
where customid = p_custid
and carrid in s_carrid
order by primary key.
select * from spfli into table connections
for all entries in bookings
where carrid = bookings-carrid
and connid = bookings-connid
order by primary key.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting formname = p_form
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.
exit.
endif.
Hope this resolves your query.
Reward all the helpful answers.
Regards
calling the generated function module
call function fm_name
exporting
archive_index =
archive_parameters =
control_parameters = cparam
mail_appl_obj =
mail_recipient =
mail_sender =
output_options = outop
user_settings = SPACE
bookings = bookings
customer = customer
connections = connections
importing
document_output_info =
job_output_info = tab_otf_data
job_output_options =
exceptions formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
if sy-subrc <> 0.
error handling
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
tab_otf_final[] = tab_otf_data-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
ARCHIVE_INDEX = ' '
COPYNUMBER = 0
ASCII_BIDI_VIS2LOG = ' '
IMPORTING
bin_filesize = bin_filesize
BIN_FILE =
TABLES
otf = tab_otf_final
lines = pdf_tab
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 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.
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
WINDOW_TITLE =
DEFAULT_EXTENSION =
DEFAULT_FILE_NAME =
FILE_FILTER =
INITIAL_DIRECTORY =
WITH_ENCODING =
PROMPT_ON_OVERWRITE = 'X'
CHANGING
filename = FILE_NAME
path = FILE_PATH
fullpath = FULL_PATH
USER_ACTION =
FILE_ENCODING =
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 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.
************downloading the converted PDF data to your local PC*******
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = bin_filesize
filename = FULL_PATH
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 = file_size
TABLES
data_tab = pdf_tab
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.
ENDIF. -
Function Module for putting Flat File into Application Server
Hi Pals,
what is the Function module for putting my flatfile into application server..
because i dont have authorizations to put my flatfile into application server directly..
I know one function mudule is there for that ...so, can you suggest me.. what is the function module... for that..
thanks.. and points will be assigned..
chittiHi,
well normally you use the method GUI_UPLOAD of class CL_GUI_FRONTEND_SERVICES to upload a file from your client pc. Then you use the abap statements open dataset, transfer and close dataset to put the file to the app-server.
kind regards
Siggi -
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 -
How to Post a file(Flat File ) into Application server of the XI(AL11)?
How to Post a file(Flat File ) into Application server of the XI(AL11)?
Best Regards,
JoseHi,
1) goto SXDA_TOOLS Transaction code
2) Provide the Following details
Object Type : DXPROJECT
Program Type: BAPI
Program/Method: CREATE
3) Click on Copy Button
4) Select the Source as Presentation Server
a) Select the File where you saved in your Local machine
5) Select the Target as Application server
a) Check the check box Remote Server
b) Select the File type as Physical
c) In File name give /usr/sap/SSD/DVEBMGS00/work\Your file name (This the Server path
Where the file is going to save)
6) Click on Continue
Go to AL11 and check whether the File has been create in the following path /usr/sap/SSD/DVEBMGS00/work
Provide this path in the Communication channel path when you select the Transport Protocol as NFS and you place the file in AL11 directory.
Regards
Seshagiri -
FM to select the file path for download into application server
Hello,
I need a FM to select the file path for download into application server. It is a F4 help .
Its functionality should be simmilar to the one used for presentation server i.e. as fol
CALL METHOD cl_gui_frontend_services=>file_save_dialogHello,
What about F4_DXFILENAME_TOPRECURSION? You can check other FMs of the group DX_FILE.
BR,
Suhas
PS: I think these FMs are not released by SAP, so need to be cautious while using these -
Error while downlaoding smartform into Application server in PDF format
Hi friends,
I am downlaoding Smartform to Application server in PDF format. getting below dump while executing
OPEN DATASET p_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
TRANSFER i_tline TO p_filename
CLOSE DATASET p_filename.
if i add " IGNORING CONVERSION ERRORS " after ENCODING DEAFULT then i am not getting dump and pdf file is creating but i am not able to see LOGO in SAP Application server ( downlaoded back from application server to my pc and checked it).
DUMP:
here i am getting dump saying that : You cannot convert the character set
Runtime Error CONVT_CODEPAGE
Exception CX_SY_CONVERSION_CODEPAGE
What happened?
While a text was being converted from code page '4102' to '4110', one of
the following occurred:
- an character was discovered that could not be represented in one of
the two code pages;
- the system established that this conversion is not supported.
2 characters could not be represented (and thus could not converted).
If 2 = 0, a second or a different error has occurred.
Please Help.
ThanksHi
I think some basis related configuartions to be done
Try like this and inform me
A cyclic job runs, which processes the messages seen in the SOST queue.
Are you sure it's not the frequency of the cyclic job, rather than the
number of messages in the queue, that you are observing? In messages
that are queued and before the cyclic job runs, "wait for comm. service"
is the normal status.
If you mean that there are always 4 items queued in SOST regardless of
the cyclic send job, then I have no ideas. I would have thought there
was no way to do that.
when the send job runs it just never
picks them up & sends them, while it picks up many others. The send job
is somehow blind to these; no error message occurs. In this case, I
'delete' them from the queue (in SOST) and then 'undelete' (drop down
menu -> /Go to /Deleted Items) them and then re-queue them. THEN they
actually get picked up & sent when the next cyclic send job executes.
Regards
Pavan -
Writing File into Application Server
Hello,
In one scenario i ve to upload a text file into the Application Server.
I know to upload the file through tcode CG3Z, but i have to upload the file through the code.
How to do that?
Please reply.
Regards,
RahulHi Rahul,
Save the excel file as Tab delimited, and use the FM: GUI_UPLOAD.
DATA: i_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.
DATA: begin of it_datatab occurs 0,
row(500) type c,
end of it_datatab.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = i_file
filetype = 'ASC'
has_field_separator = 'X'
TABLES
data_tab = it_datatab "ITBL_IN_RECORD[]
EXCEPTIONS
file_open_error = 1
OTHERS = 2.
Hope this helps you.
Regards,
Chandra Sekhar
Maybe you are looking for
-
Hello All, I am trying to activate a couple transformations for cubes in purchasing. I am getting the error in start routine. I checked the start routine. E:In PERFORM or CALL FUNCTION "ROUTINE_9998", the actual parameter "SOURCE_PACKAGE" is incompat
-
Windows Server 2008 R2: Server unable to authenticate with Domain Controller
Hello, I was wondering what could be the reason for this error if it is certain that there was no other computer on the network using the same name: This computer could not authenticate with<Domain-controller>, a Windows domain controller for domain
-
Error While Creating Block on Package Procedure
Hi When I try to create a block on a package Procedure I get the following error ifbld60.exe has generated errors and will be closed by Windows. You will need to restart the program. An Error log is being created, and forms closes. Is it something to
-
ISE 1.2 and WLC 7.6.100.0 Flex Config
I've one SSID used for both Head Office users and branch users. The problem is that branch users are using flexconnect. All the branch users are using vlan 10 as pre authC and vlan 20 after authenctication. But H.O. users are using vlan 50 to connect
-
FLASHES ON SCREEN I SHOULD UPDATE TO VERSION 6 BUT SAID ADD ONS WERE NOT AVAILABLE WAS VERY SLOW COULDN'T USE IT LIKE IT WAS SO I HAD TO DO SYSTEM RESTORE TO GET THINGS BACK AND UNINSTALL FIREFOX 6, PREFER THE ONE I AM WITH NOW WHICH IS 5 I THINK