on 11-12-2014 8:23 AM
Hello All,
In my coding, I am using GUI_DOWNLOAD function module to download the text file. it works fine while executing from SAP GUI. When the same tcode is executed from the ITS link. GUI_DOWNLOAD rans to dump.Attached the Dump in ST22.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = lv_filename
FILETYPE = 'ASC'
write_field_separator = 'X'
TABLES
data_tab = lt_file_table
* 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 'Error in creating file' TYPE 'E'.
ENDIF.
Thanks in Advance.
Regards,
Karthik
Message was edited by: Oisin ONidh
Hi,
To download file from browser (ITS or any other ap. ); can you try to use ATTACH_FILE_TO_RESPONSE method, from class CL_WD_RUNTIME_SERVICES.
CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Karthik,
Can some elements of the text of the dump be inserted into this thread?
Is the dump in ST22 always in relation to the program: SAPLSIT1
Regards,
Oisin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Karthik,
I deleted your last post - it contained to much information. I have posted the relevant
sections of the dump here
Category ABAP Programming Error
Runtime Errors ITS_ERRMSG_EXCEPTION
ABAP Program SAPLSIT1
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|Short text |
| Error message occurred. |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|What happened? |
| The ITS service "lm01" had to be terminated because the Web AS has sent |
| the following error message: |
| |
| Error message: "Confirmation of order 2029713 saved" |
| Message type: "S" |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|What can you do? |
| Note down which actions and inputs caused the error. |
| |
| |
| To process the problem further, contact you SAP system |
| administrator. |
| |
| Using Transaction ST22 for ABAP Dump Analysis, you can look |
| at and manage termination messages, and you can also |
| keep them for a long time. |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|Error analysis |
| An error message had been received from the Web AS. No template was |
| found for the basic screen of the error message (program: "SAPLSIT1" screen |
| number: 150), and therefore the ITS service had to be terminated. |
| If you can, fix the cause of the error. Only then is the |
| error message no longer sent from the Web AS, and the ITS service can |
| then run again. |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|How to correct the error |
| If the error occurs in a non-modified SAP template, there may be a |
| solution in the SAP Note system. |
| If you have access to this system, try searching for a solution using |
| the keywords: |
| "SAPLSIT1" |
| |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|System environment |
| SAP Release..... 702 |
| SAP Basis Level. 0007 |
| |
.
.. |
| SAP kernel....... 720 |
|
| Patch level. 500 |
| Patch text.. " " |
| |
.
..
----------------------------------------------------------------------------------------------------
|User and Transaction |
| Client.............. 700 |
| Language key........ "E" |
| Transaction......... "ZPP_BF " |
.
.. |
| Program............. "SAPLSIT1" |
| Screen.............. "SAPLSIT1 0150" |
| Screen Line......... 0 |
| Debugger Active..... "(TPDA)" |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|Server-Side Connection Information |
| Information on Caller of "HTTP" Connection: |
| Plug-in Type.......... "HTTP" |
.
.."/sap/bc/gui/sap/its/lm01/~flNUQVRFPTEzNzI2LjAwNC4wMi4wM |
| gA=" |
| |
| Program............. "SAPLSIT1" |
| Screen.............. "SAPLSIT1 0150" |
| Screen Line......... 0 |
| |
| Information on Caller ofr "HTTP" Connection: |
| Plug-in Type.......... "HTTP" |
"/sap/bc/gui/sap/its/lm01/~flNUQVRFPTEzNzI2LjAwNC4wMi4wM |
| gA=" |
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|Information on where terminated |
| Termination occurred in the ABAP program "SAPLSIT1" - in "SYSTEM-EXIT". |
| The main program was "ZGIL_M_BF ". |
| |
| In the source code you have the termination point in line 0 |
| of the (Include) program " ". |
----------------------------------------------------------------------------------------------------
It looks like you do not have the required template for the screen that output's system messages.
See the entry:
"
No template was found for the basic screen of the error message (program: "SAPLSIT1" screen number: 150), and therefore the ITS service had to be terminated.
"
Regards,
Oisin
Hi,
As Oisin mentioned, please verify if the template for that particular screen is present.
If yes, please check if it contains the following message handling code in the template:
`if ( ( ~messageline != "" ) && ( ~itsmobilemsgsound == "1" ) || ( ~currdynpro.messagesound != "" ) )
if ( ~messagetype == "S" || ~currdynpro.messagesound == "S" )
<!-- sucess message -->
` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsoundmsg.wav")`" loop="1" />
` elseif ( ~messagetype == "I" || ~currdynpro.messagesound == "I" )
<!-- information message -->
` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsoundmsg.wav")`" loop="1" />
` elseif ( ~messagetype == "W" || ~currdynpro.messagesound == "W" )
<!-- warning message -->
` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsounderr.wav")`" loop="1" />
` elseif ( ~messagetype == "E" || ~currdynpro.messagesound == "E" )
<!-- error message -->
` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsounderr.wav")`" loop="3" />
` elseif ( ~currdynpro.messagesound != "" )
<!-- message type not set -->
` <bgsound src="`mimeURL(~service=~current_service, ~theme=~theme, ~language="", ~name=~currdynpro.messagesound)`" loop="1" />
` else
<!-- message type not set -->
` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsoundmsg.wav")`" loop="1" />
` end;
if (NOTIFY_BELL_SIGNAL > 0)
` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsounderr.wav")`" loop="`NOTIFY_BELL_SIGNAL`">
` end;
end;`
If the above code is not present, instead of displaying the message on the ITS screen, control comes back to SAP backend.
Regards,
Uk
Hi Karthik,
The above code is present in the ITS HTML template generated for your screen. This code just displays the relevant error message on the ITS screen without going back to the SAP to dump.
Also, please see if this documents helps: http://scn.sap.com/community/its/blog/2014/11/27/the-recent-issue-with-webgui-download--sap-note-201...
Let me know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.