Exception condition "CNTL_ERROR" raised - ITS services
Dear all
I have created ITS link for Solman - Solar02 t.code When I was trying to upload document in Solar02 using ITS (both using ITS from Solman SICF service, I am getting a dump error,
Exception condition "CNTL_ERROR" raised.
But when i was uploaded in sapgui, it uploaded.
Let me know the solution for this?
HI Iván Cabezas Castillo
I have created ITS link as below
http://host:port/sap/bc/gui/sap/its/solar02?sap-client=200
with a parameters
~WEBGUI_SIMPLE_TOOLBAR 1
~WEBGUI 1
~TRANSACTION SOLAR02
~SINGLETRANSACTION 1
Still i am facing the same error.
Similar Messages
-
Exception condition "CNTL_ERROR" raised - Error in ITS
Dear all
I have created ITS link for Solman - Solar02 t.code When I was trying to upload document in Solar02 using ITS (both using ITS from Solman SICF service, I am getting a dump error,
Exception condition "CNTL_ERROR" raised.
But when i was uploaded in sapgui, it uploaded.
Let me know the solution for this?This kind of error usually points to the incorrect use of Enjoy SAP controls like ALV, Text Edit, HTML viewer etc. They make use of a framework which can only be handled in the standard SAP GUI and not in WebBased applications. So I guess you will have to come up with something else, because I don't think this is going to work like this.
-
Exception condition CNTL_ERROR raised
Hi everybody
I try to create a Business Partner of t_code "BPV1", and I used to create the t_code "sm35" to do a recording of the t_code "BPV1.
1. I tested my recodring a then hasn't problems.
2.I create a function module with this recording and then I tested, it hasn't problems.
3. This function I invoque on ABAP Proxy, then I tested the ABAP Proxy. it hasn't no problems.
4. But when PI consume and get service of my ABAP Proxy dump this error
"Exception condition CNTL_ERROR raised"
The cancelation class was : RABAX_STATE
I think that the problem is my recording but I tested all and it hasn't problems. The problem display only qhen PI try to consume my service of ABAP Proxy.HI,
2.I create a function module with this recording and then I tested, it hasn't problems.
I presume you tested the FM in SE37, try this call this FM in a test report program and call the FM in "BACKGROUND TASK" or call the FM in normal way and schedule the report to run in the background and see the results.
3. This function I invoque on ABAP Proxy, then I tested the ABAP Proxy. it hasn't no problems.
Again I presume you tested the FM in SPROXY, create a report program and create an instance of the proxy class and invoke the schedule the report to run in background.
The reason why the call from PI is failing because the BDC recording you have done has some control elements that need GUI support, now when you try using SE37/SPROXY the GUI is available and hence your testing went smooth.
4. But when PI consume and get service of my ABAP Proxy dump this error
When the call is made from PI, there is no GUI available and hence the program terminates.
Solution: I am sure there are BAPI's available with which you can create partners, try and look for a BAPI which can do this.
Regards,
Chen -
Hi All,
After the custo of the ESSleave request in the IMG . I made some tests.
Evrethign is going fine but once i try to enter a leave request during a non wroking day, i'm getting this message
Exception condition "CNTL_ERROR" raised., error key: RFC_ERROR_SYSTEM_FAILURE
I checked in st22 and they ask to find a sap note with those key words
"RAISE_EXCEPTION" " "
"SAPLSPO1" or "LSPO1F01"
"INSTANTIATE_CONTROL"
or
"SAPLSPO1" "CNTL_ERROR"
or
"SAPMSSY1 " "CNTL_ERROR"
I found nothing that can help me in sap service..
Did someone already encounter such error ?
Only usefull answers will be rewared .Hi Adel,
Can you test the same application in the content administrator of the respective portal and check if you find the same error or another error.
Regards,
Narendra. -
Exception condition "CNTL_ERROR" raised. in WDA : smartform to pdf
Hii,
I am using a webdynpro - abap application. I am showing a smartform as a pdf in one on the windows.
When the link in the main window is clicked, a secondary window. Instead of the pdf, I get following exception.Kindly help me understand, where would I be going wrong. Let me know if more details required.
*Exception condition "CNTL_ERROR" raised. *
Form: PBO_HTML_CONTROL of program SAPLSTXBC
Module: HTML_CONTROL of program SAPLSTXBC
Function: SSFCOMP_PDF_PREVIEW of program SAPLSTXBC
Method: DISPLAYPDF of program /1BCWDY/2TKFRFPNZA4CZYBGEB8F==CP
Method: IF_COMPONENTCONTROLLER~DISPLAYPDF of program /1BCWDY/2TKFRFPNZA4CZYBGEB8F==CP
Method: ONACTIONPDF of program /1BCWDY/2TKFRFPNZA4CZYBGEB8F==CP
Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/2TKFRFPNZA4CZYBGEB8F==CP
Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP
Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
The code in the DISPLAYPDF method is as follows:
method DISPLAYPDF .
DATA: I_RS38L_FNAM TYPE RS38L_FNAM.
DATA: CTRL TYPE SSFCTRLOP.
DATA: OUT TYPE SSFCOMPOP.
DATA: I_SSFCRESCL TYPE SSFCRESCL.
DATA: LT_OTFDATA TYPE TABLE OF ITCOO.
CTRL-GETOTF = 'X'.
CTRL-NO_DIALOG = 'X'.
CTRL-PREVIEW = 'X'.
OUT-TDNEWID = 'X'.
OUT-TDDELETE = ' '.
data: i_tsp03 type tsp03.
clear i_tsp03.
select single * from tsp03 into i_tsp03.
*OUT-TDDEST = i_tsp03-PADEST.
OUT-TDDEST = 'TEP1'.
********get context data
DATA lo_nd_zwebquestionaire TYPE REF TO if_wd_context_node.
DATA lo_el_zwebquestionaire TYPE REF TO if_wd_context_element.
DATA ls_zwebquestionaire TYPE wd_this->element_zwebquestionaire.
* navigate from <CONTEXT> to <ZWEBQUESTIONAIRE> via lead selection
lo_nd_zwebquestionaire = wd_context->get_child_node( name = wd_this->wdctx_zwebquestionaire ).
* get element via lead selection
lo_el_zwebquestionaire = lo_nd_zwebquestionaire->get_element( ).
* get all declared attributes
lo_el_zwebquestionaire->get_static_attributes(
IMPORTING
static_attributes = ls_zwebquestionaire ).
********get context data ends
data: itab1 type TCHAR255.
data: itab2 type TCHAR255.
data: itab type zprint. "addition by chandani
data fm_name type rs38l_fnam..
clear fm_name.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZCPESMARTFORM'
IMPORTING
FM_NAME = fm_name
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
CALL FUNCTION fm_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = CTRL
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
OUTPUT_OPTIONS = OUT
USER_SETTINGS = ' '
NAME = 'test'
ZWEBQUESTIONAIRE = ls_ZWEBQUESTIONAIRE
IMPORTING
* DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = I_SSFCRESCL
* JOB_OUTPUT_OPTIONS =
TABLES "addition by chandani
itab = itab "addition by chandani
* 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.
REFRESH LT_OTFDATA.
LT_OTFDATA[] = I_SSFCRESCL-OTFDATA[].
CALL FUNCTION 'SSFCOMP_PDF_PREVIEW'
EXPORTING
I_OTF = LT_OTFDATA
* EXCEPTIONS
* CONVERT_OTF_TO_PDF_ERROR = 1
* CNTL_ERROR = 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.
DATA: PDF_DATA TYPE XSTRING,
PDF_SIZE TYPE I.
DATA: L_DUMMY TYPE STANDARD TABLE OF TLINE.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
* MAX_LINEWIDTH = 132
* ARCHIVE_INDEX = ' '
* COPYNUMBER = 0
* ASCII_BIDI_VIS2LOG = ' '
* PDF_DELETE_OTFTAB = ' '
IMPORTING
BIN_FILESIZE = PDF_SIZE
BIN_FILE = PDF_DATA
TABLES
OTF = LT_OTFDATA
LINES = L_DUMMY
* 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.
DATA lo_nd_pdf TYPE REF TO if_wd_context_node.
DATA lo_el_pdf TYPE REF TO if_wd_context_element.
DATA ls_pdf TYPE wd_this->element_pdf.
DATA lv_sources LIKE ls_pdf-sources.
* navigate from <CONTEXT> to <PDF> via lead selection
lo_nd_pdf = wd_context->get_child_node( name = wd_this->wdctx_pdf ).
* get element via lead selection
lo_el_pdf = lo_nd_pdf->get_element( ).
* get single attribute
lo_el_pdf->Set_attribute(
EXPORTING
name = `SOURCES`
value = PDF_DATA ).
endmethod.Hi,
1) This error generally comes ,when your GUI version is old.Check this point & try to upgrade.
2) Otherwise if you are running report in background,then check madhu kumar's reply in this link & try like this.
Dump Error Raise_Exception CNTL_ERROR
Also search OSS notes.
Thanks
Gourav. -
I wrote a function.This read codes from a .txt file, create an abap program dinamically and after run it.
I wrote a java program with jco and i wrote an abap program for calling function .İf i runned abap program not happened any problem.But i runned java program.i saw this error :
RFC_ERROR_SYSTEM_FAILURE: Exception condition "CNTL_ERROR" raised.
My function :
FUNCTION Z_MS_FUNC2.
*"*"Local Interface:
*" IMPORTING
*" EXPORTING
*" VALUE(RESULT) TYPE ZMS_SONUC-SONUC
DATA: code TYPE TABLE OF rssource-line.
data : p_file TYPE string.
p_file = 'C:\deneme.txt'.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = p_file
FILETYPE = 'ASC'
tables
data_tab = code.
INSERT REPORT 'zms_dinamik002' FROM code.
SUBMIT zms_dinamik002 AND RETURN.
result = 'Successfull.'.
ENDFUNCTION.
this code show error row :
38 CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_LIST_FILES
39 EXPORTING
40 DIRECTORY = FILE
41 FILTER = ''
42 FILES_ONLY = 'X'
43 * DIRECTORIES_ONLY = 'X'
44 CHANGING
45 FILE_TABLE = filetab
46 COUNT = count
47 EXCEPTIONS
48 CNTL_ERROR = 1
49 DIRECTORY_LIST_FILES_FAILED = 2
50 WRONG_PARAMETER = 3
51 ERROR_NO_GUI = 4
52 others = 5.
53
54 IF SY-SUBRC <> 0.
>>>>> RAISE CNTL_ERROR.
56 ENDIF.
deneme.txt
report mehmet.
data wa like zms0005.
wa-jop_id = 14.
wa-jop_name = 'UZAK4'.
modify zms0005 from wa.Hi,
wa-jop is not defined (data: wa-jop type...)!
Try to insert the coding-lines in a new report. Than make a syntax check.
Regards Mario
Edited by: Mario Müller on Mar 11, 2008 6:47 AM -
Getting a dump Exception condition "CNTL_ERROR" raised in ALV
Hi ,
I have a requirement where I have to do drag and drop operation of TOs from one queue to another queue in an ALV tree between nodes. The drag and drop operation is working fine, but suddenly i get a dump lilke * Exception condition "CNTL_ERROR" raised* .
A RAISE statement in the program "CL_GUI_CFW====================CP" raised the
exception
condition "CNTL_ERROR".
Since the exception was not intercepted by a superior
program, processing was terminated.
Short description of exception condition:
For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls.
This dump is occuring from a customized transaction ZLRF1 ... where I copied all the includes from the LRF1. So, i will not be able to use any note. Can any1 please help me to resolve this issue <removed by moderator>
Edited by: Thomas Zloch on Sep 15, 2011 1:46 PMSince you're saying you made a copy of all the includes to their corresponding zincludes, in the following includes
ZLLRFMONTOP
replace LRF1 with ZLRF1 and make sure the following includes are activated
ZLLRFMONCLA
ZLLRFMONTOP -
RFC Failed: Exception condition "CNTL_ERROR" raised
Hi All,
I have an RFC in R/3 which would be called from the .NET front end. When they run the RFC, they get an error which says
RFC Failed: Exception condition "CNTL_ERROR" raised
Could any one help me what is the work around for this?
Regards,
Guru.Hi Guru,
You are correct. Check the RFC for an call for screen/popup/dialog/user input etc.
Such error occurs for the system is expecting a user input.
Thanks,
Best regards,
Prashant -
Exception condition "CNTL_ERROR" raised for u201CSAPLBEA_OBJ_UF02u201D
Dear All
I am getting the error {Exception condition "CNTL_ERROR" raised.} for the program. SAPLBEA_OBJ_UF02. The billing document is being posted to accounting but I am getting the above error when I view the accounting document through /BEA/CRMB11 (display accounting document). We are using CRM billing.
Plz help
Rgds
PraveenHello Praveen,
Can you apply notes ;
893175 Fixed CNTL_ERROR when using RFC-recorder in tRFC
1303765 Query text or diagnosis text not displayed correctly
thanks
Willie -
There is a report which call a screen and it added the CustomControl to it and used the class cl_gui_custom_container, cl_gui_alv_grid, lcl_event_receiver .
Actually this report has the facility to enter the data in the output and save it and when the user enter the data in the field and the class CL_GUI_CFW=>UPDATE_VIEW is getting triggered and error is coming here.
Exception condition "CNTL_ERROR" raised.
A RAISE statement in the program "CL_GUI_CFW====================CP" raised the
exception
condition "CNTL_ERROR".
Since the exception was not intercepted by a superior
program, processing was terminated.
and this issue is coming some times only and not every time.
1
2 METHOD UPDATE_VIEW.
3 * ...
4 CALL FUNCTION 'AC_SYSTEM_FLUSH'
5 exporting CALLED_BY_SYSTEM = called_by_system
6 EXCEPTIONS
7 CNTL_SYSTEM_ERROR = 1
8 CNTL_ERROR = 2
9 OTHERS = 3.
10
11 CASE SY-SUBRC.
12 WHEN 0.
13 WHEN 1. "// system_error
14 RAISE CNTL_SYSTEM_ERROR.
15 WHEN 2. "// method_call_error
>>>>> RAISE CNTL_ERROR.
17 WHEN 3. "// property_set_error
18 RAISE CNTL_ERROR.
19 WHEN 4. "// property_get_error
20 RAISE CNTL_ERROR.
21 WHEN OTHERS.
22 RAISE CNTL_ERROR.
23 ENDCASE.
24
25 ENDMETHOD.Hi,
1) This error generally comes ,when your GUI version is old.Check this point & try to upgrade.
2) Otherwise if you are running report in background,then check madhu kumar's reply in this link & try like this.
Dump Error Raise_Exception CNTL_ERROR
Also search OSS notes.
Thanks
Gourav. -
Short Dump - Exception condition "CNTL_ERROR" raised.
hi all
I found a runtime error
but i can't find the correct answer either in SDN or Sap Notes
plz tell me what can i do to solve this problem
sap version : 4.6c
h3.
Error analysis
A RAISE statement in the program "SAPLOLEA " raised the exception
condition "CNTL_ERROR".
Since the exception was not intercepted by a superior program
in the hierarchy, processing was terminated.
Short description of exception condition:
For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls.
h3.
Source code extract
000010 FUNCTION AC_SYSTEM_FLUSH .
000020 *"
000030 ""Lokale Schnittstelle:
000040 *" IMPORTING
000050 *" VALUE(CALLED_BY_SYSTEM) TYPE C OPTIONAL
000060 *" EXCEPTIONS
000070 *" CNTL_SYSTEM_ERROR
000080 *" CNTL_ERROR
000090 *"
000100 data: sysubrc like sy-subrc.
000110
000120 CALL FUNCTION 'AC_FLUSH_CALL'
000130 EXPORTING
000140 SYSTEM_FLUSH = 'X'
000150 CALLED_BY_SYSTEM = CALLED_BY_SYSTEM
000160 IMPORTING
000170 MESSAGE_NR = sysubrc
000180 MESSAGE_TEXT = SY-MSGLI.
000190
000200 sy-subrc = sysubrc.
000210
000220 CASE SY-SUBRC.
000230 WHEN 0.
000240 WHEN 1.
000250 RAISE CNTL_SYSTEM_ERROR. "// system_error
000260 WHEN 2.
000270 RAISE CNTL_ERROR. "// method_call_error
000280 WHEN 3.
000290 RAISE CNTL_ERROR. "// property_set_error
000300 WHEN 4.
> RAISE CNTL_ERROR. "// property_get_error -
>>>>> here's the error occured
000320 WHEN OTHERS.
000330 RAISE CNTL_ERROR.
000340 ENDCASE.
000350
000360 ENDFUNCTION.
Edited by: kwang young kim on May 6, 2010 8:38 AMHi,
This error is pretty common when using ABAP GUI controls. Actually it says: "Something was wrong with some control data so the SAPGUI cannot handle it".
Sometimes this happens accidently (might be a problem on the PC or something else), so you should try the same action (perhaps after restarting the SAP GUI or even the PC) and see whether the problem persists.
if so (and also other users encounter the same problem) this is probably a program bug. Check your control handling program code for errors.
If you cannot see any problem by just reviewing the code switch on the SAPGUI trace for errors (can be found in the SAPGUI settings popup). Depending on what data you want to be traced this trace file can be very huge! But eventually you will see the actual error message given by the SAPGUI and this normally gives you an idea what went wrong.
Regards,
Gerd Rother -
Exception condition "CNTL_ERROR WD-abap Smartform to pdf
Hii,
I am using a webdynpro - abap application. I am showing a smartform as a pdf in one on the windows.
When the link in the main window is clicked, a secondary window. Instead of the pdf, I get following exception.Kindly help me understand, where would I be going wrong. Let me know if more details required.
**Exception condition "CNTL_ERROR" raised. **
Form: PBO_HTML_CONTROL of program SAPLSTXBC
Module: HTML_CONTROL of program SAPLSTXBC
Function: SSFCOMP_PDF_PREVIEW of program SAPLSTXBC
Method: DISPLAYPDF of program /1BCWDY/2TKFRFPNZA4CZYBGEB8F==CP
Method: IF_COMPONENTCONTROLLER~DISPLAYPDF of program /1BCWDY/2TKFRFPNZA4CZYBGEB8F==CP
Method: ONACTIONPDF of program /1BCWDY/2TKFRFPNZA4CZYBGEB8F==CP
Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/2TKFRFPNZA4CZYBGEB8F==CP
Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP
Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
The code in the DISPLAYPDF method is as follows:
method DISPLAYPDF .
DATA: I_RS38L_FNAM TYPE RS38L_FNAM.
DATA: CTRL TYPE SSFCTRLOP.
DATA: OUT TYPE SSFCOMPOP.
DATA: I_SSFCRESCL TYPE SSFCRESCL.
DATA: LT_OTFDATA TYPE TABLE OF ITCOO.
CTRL-GETOTF = 'X'.
CTRL-NO_DIALOG = 'X'.
CTRL-PREVIEW = 'X'.
OUT-TDNEWID = 'X'.
OUT-TDDELETE = ' '.
data: i_tsp03 type tsp03.
clear i_tsp03.
select single * from tsp03 into i_tsp03.
*OUT-TDDEST = i_tsp03-PADEST.
OUT-TDDEST = 'TEP1'.
********get context data
DATA lo_nd_zwebquestionaire TYPE REF TO if_wd_context_node.
DATA lo_el_zwebquestionaire TYPE REF TO if_wd_context_element.
DATA ls_zwebquestionaire TYPE wd_this->element_zwebquestionaire.
* navigate from <CONTEXT> to <ZWEBQUESTIONAIRE> via lead selection
lo_nd_zwebquestionaire = wd_context->get_child_node( name = wd_this->wdctx_zwebquestionaire ).
* get element via lead selection
lo_el_zwebquestionaire = lo_nd_zwebquestionaire->get_element( ).
* get all declared attributes
lo_el_zwebquestionaire->get_static_attributes(
IMPORTING
static_attributes = ls_zwebquestionaire ).
********get context data ends
data: itab1 type TCHAR255.
data: itab2 type TCHAR255.
data: itab type zprint. "addition by chandani
data fm_name type rs38l_fnam..
clear fm_name.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZCPESMARTFORM'
IMPORTING
FM_NAME = fm_name
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
CALL FUNCTION fm_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = CTRL
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
OUTPUT_OPTIONS = OUT
USER_SETTINGS = ' '
NAME = 'test'
ZWEBQUESTIONAIRE = ls_ZWEBQUESTIONAIRE
IMPORTING
* DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = I_SSFCRESCL
* JOB_OUTPUT_OPTIONS =
TABLES "addition by chandani
itab = itab "addition by chandani
* 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.
REFRESH LT_OTFDATA.
LT_OTFDATA[] = I_SSFCRESCL-OTFDATA[].
CALL FUNCTION 'SSFCOMP_PDF_PREVIEW'
EXPORTING
I_OTF = LT_OTFDATA
* EXCEPTIONS
* CONVERT_OTF_TO_PDF_ERROR = 1
* CNTL_ERROR = 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.
DATA: PDF_DATA TYPE XSTRING,
PDF_SIZE TYPE I.
DATA: L_DUMMY TYPE STANDARD TABLE OF TLINE.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
* MAX_LINEWIDTH = 132
* ARCHIVE_INDEX = ' '
* COPYNUMBER = 0
* ASCII_BIDI_VIS2LOG = ' '
* PDF_DELETE_OTFTAB = ' '
IMPORTING
BIN_FILESIZE = PDF_SIZE
BIN_FILE = PDF_DATA
TABLES
OTF = LT_OTFDATA
LINES = L_DUMMY
* 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.
DATA lo_nd_pdf TYPE REF TO if_wd_context_node.
DATA lo_el_pdf TYPE REF TO if_wd_context_element.
DATA ls_pdf TYPE wd_this->element_pdf.
DATA lv_sources LIKE ls_pdf-sources.
* navigate from <CONTEXT> to <PDF> via lead selection
lo_nd_pdf = wd_context->get_child_node( name = wd_this->wdctx_pdf ).
* get element via lead selection
lo_el_pdf = lo_nd_pdf->get_element( ).
* get single attribute
lo_el_pdf->Set_attribute(
EXPORTING
name = `SOURCES`
value = PDF_DATA ).
endmethod.Use - with gui_download
call method cl_gui_frontend_services=>environment_get_variable
exporting
variable = p_envir_name
changing
value = ls_envir_path
exceptions
cntl_error = 1
error_no_gui = 2
others = 3.
call method cl_gui_cfw=>flush
exceptions
cntl_system_error = 1
cntl_error = 2
others = 3.
And refer the below notes: 972762
ITS 620 Patch 23 and SAPKB62061
ITS 640 Kernel Patch 148 and SAPKB64019
ITS 700 Kernel Patch 77 and SAPKB70010
and also refer the link below to get more info
http://www.sapfans.com/forums/viewtopic.php?f=13&t=325628&start=15
thanx
suriya -
How to handle message "Exception condition "CNHT_ERROR_PARAMETER" raised"?
Hi,
Whenever I try to open Web Dynpro Comp./Intf->Views using transaction SE80, I am getting a short dump showing message "Exception condition 'CNHT_ERROR_PARAMETER' raised'. In the analysis, I have found that A RAISE statement in the program "CL_GUI_HTML_VIEWER============CP" raised the exception condition "CNHT_ERROR_PARAMETER". Since the exception was not intercepted by a superior program, processing was terminated. Can anyone help to get rid of this problem?
Thanks & Regards.
Deepjyotihi,
Looks like, ITS services are not fully active or not compeltely published.
Check whether webgui services are active in SICF.(test service).
Also, check all the ICM parameters.
Regards
Srinivas -
Runtime error RAISE_EXCEPTION Exception condition "METADATA_MISSING" raised
Hi All,
I am facing a runtime error, while using transaction DSWP --> Set-up System Monitoring --> Copy Customizing -->
At that time we are getting "Runtime error RAISE_EXCEPTION Exception condition "METADATA_MISSING" raised
===========================================
Runtime Errors RAISE_EXCEPTION
Date and Time 25.07.2008 08:31:11
Short text
Exception condition "METADATA_MISSING" raised.
What happened?
The current ABAP/4 program encountered an unexpected
situation.
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
A RAISE statement in the program "SAPLDSVAS_SERV" raised the exception
condition "METADATA_MISSING".
Since the exception was not intercepted by a superior
program, processing was terminated.
Short description of exception condition:
For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls.
How to correct the error
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"RAISE_EXCEPTION" " "
"SAPLDSVAS_SERV" or "LDSVAS_SERVC7I"
"MAP_DSVAS_TT_DATA_TO_TT_25"
or
"SAPLDSVAS_SERV" "METADATA_MISSING"
or
"RDSMOP_MAIN " "METADATA_MISSING"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
4. Details about the conditions under which the error occurred or which
actions and input led to the error.
System environment
SAP-Release 700
Application server... "terra"
Network address...... "172.16.1.198"
Operating system..... "Windows NT"
Release.............. "5.2"
Hardware type........ "4x Intel 801586"
Character length.... 16 Bits
Pointer length....... 32 Bits
Work process number.. 2
Shortdump setting.... "full"
Database server... "TERRA"
Database type..... "ORACLE"
Database name..... "DSM"
Database user ID.. "SAPSR3"
Char.set.... "C"
SAP kernel....... 700
created (date)... "Oct 23 2007 01:07:18"
create on........ "NT 5.0 2195 Service Pack 4 x86 MS VC++ 13.10"
Database version. "OCI_10201_SHARE (10.2.0.1.0) "
Patch level. 133
Patch text.. " "
Database............. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE 10.2.0.."
SAP database version. 700
Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2, Windows
NT 6.0"
Memory consumption
Roll.... 8176
EM...... 37628064
Heap.... 0
Page.... 65536
MM Used. 31785376
| MM Free. 1656912
=============================================
Configuration:
OS :Windows 2003 server.
Solution Manager 7.0 SP15
Oracle 10.2
RAM - 2 GB
Its bit urgent, Please help out us.
Thanks in advance.
Best Regards,
PratyushaHi
Check the SP level for ABAP and Basis. Download the latest SP level from SWDC and apply it on the system
This error is related to ABAP program.
Currently the latest available patch level is 16. Please download both ABAP and BASIS SP 16 and apply them on the system. -
Exception condition "CONVERSION_ERROR" raised.
Hi,
We have been getting short dumps in our production system daily. I was unable to locate the problem by looking at the dump. The dump says that CONVERSION_ERROR raised.
Which application raised this exception? Again no clue on the same. Please find the text of the dump.
Short text
Exception condition "CONVERSION_ERROR" raised.
What happened?
The current ABAP/4 program encountered an unexpected
situation.
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
A RAISE statement in the program "CL_SWF_CNT_CONTAINER==========CP" raised the
exception
condition "CONVERSION_ERROR".
Since the exception was not intercepted by a superior
program, processing was terminated.
Short description of exception condition:
For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls.
How to correct the error
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"RAISE_EXCEPTION" " "
"CL_SWF_CNT_CONTAINER==========CP" or "CL_SWF_CNT_CONTAINER==========CM02J"
"IF_SWF_CNT_CONVERSION~TO_XML"
or
"CL_SWF_CNT_CONTAINER==========CP" "CONVERSION_ERROR"
or
"SAPMSSY1 " "CONVERSION_ERROR"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
4. Details about the conditions under which the error occurred or which
actions and input led to the error.
System environment
SAP-Release 700
Application server... "zacwtbsrv0
Network address...... "10.27.191.
Operating system..... "Windows NT
Release.............. "5.2"
Hardware type........ "4x AMD64 L
Character length.... 16 Bits
Pointer length....... 64 Bits
Work process number.. 9
Shortdump setting.... "full"
Database server... "ZACWTBSRV063"
Database type..... "MSSQL"
Database name..... "EP1"
Database user ID.. "ep1"
Char.set.... "C"
SAP kernel....... 700
created (date)... "Apr 21 2008 00:12:39"
create on........ "NT 5.2 3790 Service Pack 1 x86 MS VC++ 14.00"
Database version. "SQL_Server_8.00 "
Patch level. 157
Patch text.. " "
Database............. "MSSQL 7.00.699 or higher, MSSQL 8.00.194"
SAP database version. 700
Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2, Windows
NT 6.0"
Memory consumption
Roll.... 16192
EM...... 8379680
Heap.... 0
Page.... 16384
MM Used. 8164576
MM Free. 212256
User and Transaction
Client.............. 100
User................ "WF-BATCH"
Language Key........ "E"
Transaction......... " "
Transactions ID..... "FB565CDDF6D0F1BFA292001E0B5D7336"
Program............. "CL_SWF_CNT_CONTAINER==========CP"
Screen.............. "SAPMSSY1 3004"
Screen Line......... 2
Information on caller of Remote Function Call (RFC):
System.............. "EP1"
Database Release.... 700
Kernel Release...... 700
Connection Type..... 3 (2=R/2, 3=ABAP System, E=Ext., R=Reg. Ext.)
Call Type........... "synchron and transactional (emode 0, imode 0)"
Inbound TID.........." "
Inbound Queue Name..." "
Outbound TID........."0A1BBF4011A4488D408222BD"
Outbound Queue Name.." "
Client.............. 100
User................ "HPRETORIUS"
Transaction......... " "
Call Program........."SAPLERFC"
Function Module..... "ARFC_DEST_SHIP"
Call Destination.... "WORKFLOW_LOCAL_100"
Source Server....... "zacwtbsrv064_EP1_00"
Source IP Address... "10.27.191.64"
Additional information on RFC logon:
Trusted Relationship " "
Logon Return Code... 0
Trusted Return Code. 0
Note: For releases < 4.0, information on the RFC caller are often
only partially available.
Information on where terminated
Termination occurred in the ABAP program "CL_SWF_CNT_CONTAINER==========CP" -
in "IF_SWF_CNT_CONVERSION~TO_XML".
The main program was "SAPMSSY1 ".
In the source code you have the termination point in line 67
of the (Include) program "CL_SWF_CNT_CONTAINER==========CM02J".
Source Code Extract
Line SourceCde
37 lv_xml_table_req = 'X'.
38 ENDIF.
39 IF xml_stream IS REQUESTED.
40 lv_xml_stream_req = 'X'.
41 ENDIF.
42
43 IF use_xslt NE space.
44
45 cl_swf_cnt_conversion_service=>to_xml_xslt(
46 EXPORTING
47 container = me
48 include_null_values = include_null_values
49 include_initial_values = include_initial_values
50 include_change_data = include_change_data
51 include_texts = include_texts
52 include_extension_elements = include_extension_elements
53 save_delta_handling_info = save_delta_handling_info
54 xml_dom_req = lv_xml_dom_req
55 xml_table_req = lv_xml_table_req
56 xml_stream_req = lv_xml_stream_req
57 IMPORTING
58 xml_dom = xml_dom
59 xml_table = xml_table
60 xml_stream = xml_stream
61 xml_rendered_size = xml_rendered_size
62 EXCEPTIONS
63 conversion_error = 1
64 OTHERS = 2
65 ).
66 IF sy-subrc <> 0.
>>>> RAISE conversion_error.
68 ENDIF.
69
70 ELSE.
71
72 cl_swf_cnt_conversion_service=>to_xml_ixml(
73 EXPORTING
74 container = me
75 include_null_values = include_null_values
76 include_initial_values = include_initial_values
77 include_typenames = include_typenames
78 include_change_data = include_change_data
79 include_texts = include_texts
Could you please help me out in resolving this issue?
Is there any need to apply any OSS notes?
Thanks in advance. And reward points will be given for the solution..
Thanks,
Ravikumar.Hi,
U will receive this error when ever it is not possible to achieve runtime conversion.
i.e When u r passing the data from one type variable to another type if the conversion is not defined or not possible u will get this dump. Just analyze the dump in ST22.
Look at this simple example. Here i am trying to assign 101.23 to l_p for which length is not sufficient. So i will get dump. But if u do the same with character variable it will truncate the data.
DATA: l_p(2) TYPE P DECIMALS 2.
l_p = '103.23'.
WRITE l_p.
So check the place where u r getting the dump. It must be some assignment statement.
Hope it gave some idea on ur case.
Thanks,
Vinod.
Maybe you are looking for
-
Action hard codes custom file name
I recorded an action to crop and save for web. I have done this 1000's of times over the years, but in CS6 it is hardcoding a Custom File Name, and in the wrong format too boot. I am saving as JPG only and accepting the default name, which should lea
-
Can't delete grayed-out DNS server addresses
I want to replace two grayed-out DNS server addresses from the Network panel (under the DNS tab in "Advanced-"), to replace them with OpenDNS settings. But they can't be selected/deleted. How do I get around this problem?
-
Maximum HTTP posts to "Plain HTTP" adapter
Hello, I am working on some load testing on a development box that we have for a simple synchronous HTTP<>XI<>RFC interface. I have tested up to around 45 simultaneous users and the XI box starts to reply with 500 Internal Server Errors to the HTTP
-
Creating Invoices on Specific Dates
Hello Gurus, you can process invoices periodically. All deliveries due for billing on a certain date can be combined into one collective invoice. To do this, you must first: Ÿ maintain individual billing dates in the factory
-
guys i have a very peculiar problem and please do provide me with a solution. I have a lenovo G570 and have been using it without any problems for the past 1.5 years. Recently it has started pissing me off. When i start my laptop, the first screen wh