Code inspector error with exception
I have below code :
IF P_SUMM = C_ON.
CALL FUNCTION 'ZSD_REPORT_HEADER' "Write std Nike header
EXPORTING
PROGRAM = V_PROGRAM
LINE_SIZE = SY-LINSZ
RUN_DATE = V_DATE
RUN_TIME = V_TIME
TITLE_1 = TEXT-025
TITLE_5 = '1424'
PAGE_NO = SY-PAGNO.
IF SY-SUBRC <> 0.
WRITE: 'Problem with ZSI_REPORT_HEADER'(019).
ENDIF.
However in the code inspector it is giving error :
Program ZSDR_TOP_ACC Include ZSDR_TOP_ACC Row 988 Column 0
No EXCEPTION to set SY_SUBRC Declared for CALL FUNCTION 'ZSI_REPORT_HEADER'
Thus the value of SY-SUBRC is always 0
Could you please suggest me how to eleminate error. YOUR Helpis highy appreciated.
Thanks in advance and happy new year.
Code Formatted by: Alvaro Tejada Galindo on Jan 4, 2010 5:34 PM
CALL FUNCTION 'ZSI_REPORT_HEADER'
EXPORTING
PROGRAM = V_PROGRAM
LINE_SIZE = SY-LINSZ
RUN_DATE = V_DATE
RUN_TIME = V_TIME
TITLE_1 = TEXT-016
TITLE_5 = '1425'
PAGE_NO = SY-PAGNO
*ADD Exceptions even the FM does not have exceptions.
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC NE 0.
WRITE: 'Problem with ZSI_REPORT_HEADER'(028).
ENDIF.
We can add exception like above even though the exception was not declared in Function module.
Similar Messages
-
I am validating the delivery status field in vbuk table as it exists in my selection screen.
I am not having vbeln field in my selection screen .
CODE INSPECTOR ERROR:
Large table VBUK: No field of a table index in WHERE CONDITION.
I am getting above error how to resolve this.
Is there any other solution to resolve this error rather than creating secondary index on this field.
METHOD validate_delivery_status.
IF s_lfstk-low IS NOT INITIAL.
SELECT lfstk
INTO g_lfstk
FROM vbuk UP TO 1 ROWS
WHERE lfstk EQ s_lfstk-low.
ENDSELECT.
IF sy-subrc NE 0.
IF g_lfstk IS INITIAL.
MESSAGE e043(z12). “ There is no data match your selection.
ENDIF.
ENDIF.
IF s_lfstk-high IS NOT INITIAL.
CLEAR g_lfstk.
SELECT lfstk
INTO g_lfstk
FROM vbuk UP TO 1 ROWS
WHERE lfstk EQ s_lfstk-high.
ENDSELECT.
IF sy-subrc NE 0.
IF g_lfstk IS INITIAL.
MESSAGE e043(z12). “ There is no data match your selection.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDMETHOD.
Thanks in Advance
Regards,
Avinash.There's no need to keep repeating information already given.
As it stands your validation won't work. What if the user enters a selection of ranges? Or an exclusion? Or just an "*" to get everything?
Use the correct function module to get the valid values for the domain LFSTK (see here: GET DOMAIN FIXED VALUE - Code Gallery - SCN Wiki) into an internal table. Then
DATA match TYPE abap_bool. match = abap_false. LOOP domain_values INTO domain_value. CHECK domain_value IN s_lfstk. match = abap_true. ENDLOOP.
IF match EQ abap_false.
..." Sorry, pal, not valid.
ENDIF.
Validating select options is not straightforward. If you need to validate against a db table, then you can only use
SELECT SINGLE blah FROM dbtable INTO otherblah WHERE field IN s_field.
IF sy-subrc IS NOT INITIAL:
" Sorry, pal, not valid
ENDIF.
Which, as you've seen, is not very efficient. -
Code Inspector Error in program
Hi All,
When I released the transport for a program through solution manager, it showed a warning as "program contains code inspector error. Release anyway?" and I released it since the subtask was already released and changing the program will not be possible in that transport request. Now the program is in Quality system. But my concern is that what problem a program can cause when it is moved to production if it contains Code Inspector error? Since I have no much experience in ABAP. Please advise on this.
Regards,It depends on what kind of errors you got in Dev system .
You can again check the program for code inspector errors and if there are Priority 1 errors fix them in a ne wTr. -
"UnexpectedHTTP Response - Status Code:200" error with Yahoo mail.
I am getting constant error "UnexpectedHTTP Response - Status Code:200" error with Yahoo mail. Is it some known error?
I have a snapshot of issue but there is now way I could attach that with this query. This happens more often after I login into yahoo and try to delete my mails or delete my spam mails or go to inbox etc...
Thanks,
Santosh ThankachanEXACT, but the interface monitor shows that as an error.
And that's what I need, a good monitoring, that should not appear as an error -
Code inspector error message please help
Hi All i have used delete statement as shown below
DELETE t_output WHERE remain_invoice NOT IN s_invo[].
t_output is my internal table .
Error message in code inspector is :Sequential read access for a standard table
What should i do ?I think its better to avoid delete statements inside the loop
instead of using delete statement inside the loop
use
delete table itab where condition
or
if u have to use loop at any cost
modify internal table with flag=X
and then delete all records from the itab at one shot using above statement
Regards
Vikas C -
Hi ,
When i am checking my code(Module Pool Program) with Code Inspector it is showing some errors in User Interface saying ..
==> I/O field (input field) ... has no accessible label
Can any one tell me abt this what exactly could be the error .... ( Syntactically Correct & also activated Well ).
Waiting for ur reply.....
Regards,
SrinathUsually when we create input field from dictionary, input field is accompanied by a label on its left. And if you see carefully there is a line connecting the label and the input field.
Do you have any input field which doesn;t have corresponding label, or is there any label and input field pair where you cannot see the line connecting them.
In former case define label for the input field (in same line) and check that in property window of label on 'display' tab either checkbox 'As label on left' or 'As label on right' is checked. In latter case just check the property and check these two checkbox. -
Code Inspector Error Code MESSAGEG_H
Hello Guys,
I'm running code inspector and in Syntax check/Generation and subdivision suspect conversions, am getting an error called "Truncation in the Conversion from ABAP type 'C'(length 64 ->20).
While I understand what the error is about...i don't want to modify the code. Is there any workaround like putiing some "EC Check" at the end of the line so as to hide that error.
Thanks a lot.
KarthikeyanIf the error can be hidden, the pseudo comment would be provided in the Code Inspector screen only.
Click the documentation button (the blue "i" button) & see if there are any pseudo comments to hide the error.
BR,
Suhas -
To get Code Inspector Errors into an internal table
Friends,
My requirement is to report if there exists any Error, warning or information in the Code Inspector & SLIN. I need to include these values in a report.
For this i will have to get these values into my program. Any idea how can this be achieved?
Many Thanks!
Abhinav siddharthHi Lakshman,
Could you please help me figuring out the parameters requried to execute these FM's?
I could run 'EXTENDED_PROGRAM_CHECK' but i could not see the result.
Thanks,
Abhinav Siddharth -
Code inspector error in smartform
Hi ,
When iam running code inspector for smartform . this is the error that iam getting ==> The type of the VALUE parameters "JOB_OUTPUT_INFO" contains one or more tables whose row types in turn contain internal tables and also says that ==> The TADIR entry for /1BCDWB/SAPLSF00000185 is missing .
Thanks in advance .Hello Ms. Anupama,
Thanks for the immediate reply.
I have already created a message class for messages required in validations of smartforms.
Error: Message 023 :Entry in TADIR table for smartform FM is missing.
But when checked in TADIR table there is entry for smartform, Message class present.
Please do help.
Thanks once again -
Code Inspector Errors during Upgrade?
Hi,
We are moving from 4.7 to Netweaver 7 . During the upgrade we found there are errors using Code inspector, Please confirm me that whether errors coming thru Code inspector , whether we need to correct these?
But the programs have no syntax errors, all programs compiled properly.
Thanks
Sa_RHi,
Its not required to resolve all of them, they will be arranges as Errors, Warnings etc.
So try to resolve the Errors.
Each error has how it can be solved some times they will give you options to hidethe rros by putting some comments on the perticular line.
Regards,
Sesh -
Code:OpenMedia Error with Bluetooth
I have an E65
I am running
PC Connectivity Solution:
Version 8.15.0.0
[Nokia Connectivity Cable Driver:]
Version 6.86.11.0
Operating system:
Microsoft Windows XP 32-bit Edition, Service Pack 2
Language: English
Language for non-Unicode programs: English
Detected Internet browsers:
- Microsoft Internet Explorer 7.0 (Default browser)
Detected Bluetooth stacks:
- Microsoft (Version: 5.1.2600, Build: 2180)
I have IVT BlueSoleil 1.6.1.4
When I try and manage connection to use bluetooth I get Code: OpenMedia error,
Anyone have any ideas.Although I had tried both USB ports on the left side of the machine, I had never tried the USB port on the right rear of the machine.
Plugging the cellular device in the USB port on the back of the computer allowed for successful installation of both the 3G and 4G network adapters. With the 4G network adapter finally installed successfully, I could connect to the 4G network. -
Abap error with exception CX_SY_IMPORT_MISMATCH_ERROR.
Hello Everyone,
I got the abap dump with exception CX_SY_IMPORT_MISMATCH_ERROR.
The reason for the exception is:
When importing the object "AUS_S000", the component no. 13 in the dataset has a different type from the corresponding component
of the target object in the program "SAPLZTEST".
The data type is "P" in the dataset, but "C" in the program.
In How to correct Error:
Try to find out why the data type is 32.
I dont know what was the issue. When i check in ST22 i saw this message which i mentioned above Error Analysis and How to correct Error.
Please help me out, Your inputs will be helpuflHi All,
For the first time:
Try to import the data to the IT with old structure (say 32 fields)
IMPORT ty_data = it_temp_old FROM DATABASE indx(sp) TO wa_indx ID obj.
2. Append the data it_temp_old to new structure it_temp_new.
EXPORT ty_data = it_temp_new TO DATABASE indx(sp) TO wa_indx ID obj.
For the next time:
Edit the IMPORT statement.
Import the data to IT with new structure (40)
IMPORT ty_data = it_temp_new FROM DATABASE indx(sp) TO wa_indx ID obj.
2. Perform the required Operations and export the same data with new structure(40).
EXPORT ty_data = it_temp_new TO DATABASE indx(sp) TO wa_indx ID obj.
Thanks,
Shameer. -
Code Inspector integration with Solution Manager
Hi All,
I would like to integrate the Code Inspector into Solution Manager, so that changes in managed systems can be checked prior to passing to test. I wonder if any of you is aware of such a solution, or have already implemented such functionality
Thanks iin advance,
Best regards,
ÁdáHi
please check the blog
[/people/christian.drumm/blog/2009/12/30/continuous-integration-using-code-inspector|/people/christian.drumm/blog/2009/12/30/continuous-integration-using-code-inspector]
and the discussion on the treads,
[Is it possible to integrate the Code Inspector in Transport Management|Is it possible to integrate the Code Inspector in Transport Management]
might be this helps
Thanks,
Jansi -
Ignore Numeric error with EXCEPTION
Hi,
I've got a PROC that reads all records from one table and INSERT them in another table, quite simple. The Only thing is that I want to IGNORE Numeric errors. So, if a get an error (numeric), I want Oracle to IGNORE the error and continue in my FOR LOOP (Selecting records) and Inserting in the table. What seems to happen is that if I get a NUMERIC error, it exits out of the FOR LOOP... Here's the Code:
PROCEDURE Insert_Current_Data(
p_create_date IN DATE,
p_StatusId OUT NUMBER
) IS
e_constraint_error EXCEPTION;
e_numeric_error EXCEPTION;
PRAGMA EXCEPTION_INIT (e_constraint_error, -2291);
PRAGMA EXCEPTION_INIT (e_numeric_error, -1722);
/* to_number(NOC_CODE) NOC_CODE,
to_number(ECONOMIC_REGION_CODE) ECONOMIC_REGION_CODE, */
CURSOR ei_claimant_ext_cur
IS
SELECT NOC_CODE,
ECONOMIC_REGION_CODE,
CASE EI_PROV_CODE
WHEN '00' THEN 1
WHEN '01' THEN 4
WHEN '02' THEN 2
WHEN '03' THEN 3
WHEN '04' THEN 5
WHEN '05' THEN 6
WHEN '06' THEN 7
WHEN '07' THEN 8
WHEN '08' THEN 9
WHEN '09' THEN 10
WHEN '10' THEN 11
WHEN '11' THEN 12
ELSE 13
END EI_PROV_CODE,
POSTAL_CODE
FROM ei_claimant_external
WHERE ei_prov_code <> 12
AND economic_region_code <> 99
AND postal_code is NOT NULL;
-- AND ROWNUM < 1000;
ei_claimant_ext_rec ei_claimant_ext_cur%ROWTYPE;
v_create_date VARCHAR2(20);
v_econ_reg_prov NUMBER;
BEGIN
dbms_output.put_line('Date passed: '||p_create_date);
dbms_output.put_line('INSERT Current Data ');
-- p_StatusId := 0;
FOR claimant_row IN ei_claimant_ext_cur LOOP
/* OPEN ei_claimant_ext_cur;
LOOP
FETCH ei_claimant_ext_cur
INTO ei_claimant_ext_rec;
-- v_staging_count := v_staging_count + 1;
EXIT WHEN ei_claimant_ext_cur%NOTFOUND; */
BEGIN
--- Get Econ Region Province
SELECT PROVINCE_ID
INTO v_econ_reg_prov
FROM cd_econ_regions
WHERE ECONOMIC_REGION_ID = ei_claimant_ext_rec.ECONOMIC_REGION_CODE;
EXCEPTION
WHEN NO_DATA_FOUND THEN v_econ_reg_prov := 0;
END;
BEGIN
IF v_econ_reg_prov = ei_claimant_ext_rec.EI_PROV_CODE
THEN
INSERT INTO ei_claimant_curr_year
VALUES (EI_SEQ.nextval,
ei_claimant_ext_rec.noc_code,
ei_claimant_ext_rec.EI_PROV_CODE,
ei_claimant_ext_rec.ECONOMIC_REGION_CODE,
p_create_date, --- CURRENT Month
ei_claimant_ext_rec.POSTAL_CODE
COMMIT;
END IF;
EXCEPTION
WHEN e_constraint_error THEN dbms_output.put_line('CONSTRAINT Error ');
fwutil_pkg.logerror (SQLERRM||' '||ei_claimant_ext_rec.noc_code||' Prov Code: '||ei_claimant_ext_rec.EI_PROV_CODE||' Econ Region: '||ei_claimant_ext_rec.ECONOMIC_REGION_CODE||
' Postal Code: '||ei_claimant_ext_rec.POSTAL_CODE||' Date: '||p_create_date,
SQLCODE,
NULL,
'Populate_EI_Claimant_Main -- Insert into EI_Claimant_curr_year '
WHEN e_numeric_error THEN dbms_output.put_line('NUMERIC Error On INSERT');
fwutil_pkg.logerror (SQLERRM||' '||ei_claimant_ext_rec.noc_code||' Prov Code: '||ei_claimant_ext_rec.EI_PROV_CODE||' Econ Region: '||ei_claimant_ext_rec.ECONOMIC_REGION_CODE||
' Postal Code: '||ei_claimant_ext_rec.POSTAL_CODE||' Date: '||p_create_date,
SQLCODE,
NULL,
'Populate_EI_Claimant_Main -- Insert into EI_Claimant_curr_year '
WHEN OTHERS
THEN
fwutil_pkg.logerror (SQLERRM||' '||ei_claimant_ext_rec.noc_code||' Prov Code: '||ei_claimant_ext_rec.EI_PROV_CODE||' Econ Region: '||ei_claimant_ext_rec.ECONOMIC_REGION_CODE||
' Postal Code: '||ei_claimant_ext_rec.POSTAL_CODE||' Date: '||p_create_date,
SQLCODE,
NULL,
'Populate_EI_Claimant_Main -- Insert into EI_Claimant_curr_year '
END;
END LOOP;
-- CLOSE ei_claimant_ext_cur;
EXCEPTION
WHEN e_constraint_error THEN dbms_output.put_line('CONSTRAINT Error ');
fwutil_pkg.logerror (SQLERRM||' '||ei_claimant_ext_rec.noc_code||' Prov Code: '||ei_claimant_ext_rec.EI_PROV_CODE||' Econ Region: '||ei_claimant_ext_rec.ECONOMIC_REGION_CODE||
' Postal Code: '||ei_claimant_ext_rec.POSTAL_CODE||' Date: '||p_create_date,
SQLCODE,
NULL,
'Populate_EI_Claimant_Main -- Insert into EI_Claimant_curr_year '
WHEN e_numeric_error THEN dbms_output.put_line('NUMERIC Error ON Cursor');
fwutil_pkg.logerror (SQLERRM||' '||ei_claimant_ext_rec.noc_code||' Prov Code: '||ei_claimant_ext_rec.EI_PROV_CODE||' Econ Region: '||ei_claimant_ext_rec.ECONOMIC_REGION_CODE||
' Postal Code: '||ei_claimant_ext_rec.POSTAL_CODE||' Date: '||p_create_date,
SQLCODE,
NULL,
'Populate_EI_Claimant_Main -- Insert into EI_Claimant_curr_year '
END Insert_Current_Data;Here's the records that it is reading:
00094440903E4P1T5
00000000000000000
00066230703E1E1G4
AAAAAAAAAAAAAAAAA
00012210903E4K2K8
00082620803E5V1L3
99999999999999999
00084410803E5G2J3
00074120903E4N2E3
00094630903E4N1B7
00082620903E4N2J6
00082620903E4M2C4It is inserting the first 2 records, ignoring the record with '0' (which is good). Then it exits the FOR LOOP when it gets to the record with a bunch of 'A'.
Please Help !
Thanks in advance.First of all correct your code..FOR LOOP has not been implemented correctly.. I think first u tried with OPEN CURSOR..LOOP..FETCH..EXIT WHEN..END LOOP..CLOSE CURSOR..then converted the same to FOR LOOP..END LOOP and forgot to change the code like
-- WHERE ECONOMIC_REGION_ID = ei_claimant_ext_rec.ECONOMIC_REGION_CODE;
try this type of code...
DECLARE
TYPE mixed_typ IS TABLE OF VARCHAR2 (1)
INDEX BY PLS_INTEGER;
mixed_ty mixed_typ;
e_numeric_error EXCEPTION;
PRAGMA EXCEPTION_INIT (e_numeric_error, -6502);
v_num NUMBER;
BEGIN
mixed_ty (1) := '1';
mixed_ty (2) := 'A';
mixed_ty (3) := '2';
mixed_ty (4) := '3';
FOR i IN 1 .. mixed_ty.COUNT LOOP
BEGIN
v_num := TO_NUMBER ('11' || mixed_ty (i));
DBMS_OUTPUT.PUT_LINE (v_num);
EXCEPTION
WHEN e_numeric_error THEN
DBMS_OUTPUT.PUT_LINE ('Ignore '||SQLERRM);
END;
END LOOP;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE (SQLERRM);
END; -
I have a SSRS report that parses RTF to TXT and displays it in a report. The report works fine and everything displays correctly. The subscription email, however, contains a report with errors: Request for the permission of type
'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
The report contains embedded code as well as references to System.Security and System.Windows.Forms. I've updated .....\Reporting Services\ReportServer\rssrvpolicy.config and ....\Reporting Services\ReportManager\rsmgrpolicy.config to change permissions
to FullTrust. Not sure what else I need to do. Please help.Hi Chimuelo,
According to your description, if the report contains custom code and assemblies, the subscription email contains an error “Request for the permission of type 'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
failed”.
In your scenario, the issue could cause by that the report can’t access those assemblies. Please modify the policy configuration files to grant additional permissions for those assemblies. For more information, please refer to this article:
How to grant permissions to a custom assembly that is referenced in a report in Reporting Services.
Similar thread for your reference:
Custom assembly throwing #error in reports with subscriptions
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support
Maybe you are looking for
-
From MSS Requisition request is not coming in Recruter UWL.
hello everyone, we are creating Requisition request in MSS. But Request is not reaching Recruter UWL. We tried to find so many ways to solve this problem. We got to know that there is problem in workflow. we are getting follwoing error. Object CL_HRA
-
How to handle no_data_found in Page/Regions/Body/Report
Hi, I am new to APEX. I have a report in a the Region area of a Page. The Region Source allows me to enter only SELECT statement, no BEGIN/EXCEPTION/END are allowed. How can I handle a no_data_found exception in a report? Many thanks.
-
My Adobe CC apps no longer work at all (Windows 8) - they just crash
I successfully used Adobe Photoshop and Premiere Pro on my laptop (which uses Windows 8) for a full year. Creative Cloud version. While it wasn't ideal, and some day I will switch to a Mac, I was able to get the job done. Two months ago, Premiere Pro
-
Tethering Phone Recommendations - Please help!!!
Hi all, This is my first post. I am in Afghanistan in an area that has Cell phone service that also provides GPRS internet. This is pretty much as good as it is going to get, but there are always possibilites that this internet system may be upgraded
-
How to transfer iWeb site to another Mac in Lion
Does anyone know how I can move my iWeb site from my Macbook Pro to my iMac. I've transfered the files, but iWeb doesn't see the data. I've copied the data to the iWeb folder in my User Library thinking that would help as I've read others have done