Extended Prog check
in my program
DATA : ts_cod TYPE STANDARD TABLE OF ty_cod,
wa_cod TYPE ty_cod.
loop at itab
READ TABLE ts_cod INTO wa_cod
WITH KEY no =itab-no
BINARY SEARCH.
IF sy-subrc <> 0.
DELETE itab.
CLEAR wa_cod.
ENDIF.
when I run Extended Program check , I am getting this error No read access to field string WA_CHEPCTYCOD
(The message can be hidden with "#EC NEEDED)
how to eliminate this error without add #EC needed...
kindly help..
thanks
Hi,
I guess this message is appearing because in your program you are passing the value to the work area WA_CHEPCTYCOD but this work area values are not used any in program.
Similar Messages
-
SLIN - Extended Prog. check - Erorrs for VALUE, QUANTITY fields??
Hi Experts,
I need to get 0 in ERRORS column for the execution of SLIN to z_prog.
So, in this prog. am displaying some VALUES, QUANTITIES in ALV report.
So. When I run the SLIN for this z_prog. am getting the following ERROR texts
Use addition CURRENCY when outputting WA_ALV-VALUE
Use auxiliary field when outputting with MESSAGE
(You can hide the message using "#EC UOM_IN_MES)
Use addition UNIT when outputting WA_ALV-QUNTY
Use auxiliary field when outputting with MESSAGE
(You can hide the message using "#EC UOM_IN_MES)
pls. note that, I shild not hide them, as suggested ´by SLIN.
So,
1) pls. let me know that How to fix them?
2) Wht does it mean?
thanq
Edited by: Srinivas on Jun 11, 2008 12:58 AMHi Aii,
To avoid the error in EPC for Currency and Quantity u can use
addition of CURRENCY with single quot system will take the default currency
And for Quantity u can use NUIT with single quot
EXAMPLE
write: wa_record-v_exbas currency ' '.
write: wa_record-lgmng unit ' '.
We can use the decimal places also
write: wa_record-v_exbas currency ' ' decimals 2
Regard
Anees Ahmed -
Extended program check ( sapslin prog)
Hi,
i have one requirement, in extended program check for checking the text elements,(chracter -strings).
There is a sap standard programavailabel. ( Code slin,function pool sapslin) , if i am checking EPC for my z program ,the sapling is not comparing the text elements and text literals character by character,It is checking whether the text element is created or not.(for example if i created a text literal as "cat" and for that if i created text element as "ca". ) then also the EPC (sapslin) is not identifying that error.
please guide me with the proper code.REPORT ZTEXT_ELEMENTS_CHECK .
include <icon>.
PARAMETERS : P_TEXT(40) TYPE C.
TYPES : BEGIN OF TY_RESULT,
id type c,
key(3) type c,
ENTRY TYPE STRING,
STATUS TYPE C,
END OF TY_RESULT.
DATA : LEN TYPE I,
POS TYPE I,
ACTLEN TYPE I,
COMPLEN TYPE I,
count type i,
STR TYPE STRING.
DATA : BEGIN OF TY_PROG.
INCLUDE STRUCTURE ABAPTEXT.
DATA : END OF TY_PROG.
data : i_data type table of abaptext with header line.
DATA : I_PROGRAM TYPE TABLE OF ABAPTEXT WITH HEADER LINE.
DATA : I_TEXTELEMENT TYPE TABLE OF TEXTPOOL WITH HEADER LINE.
DATA : I_RESULT TYPE TABLE OF TY_RESULT WITH HEADER LINE.
READ REPORT P_TEXT INTO I_data.
READ TEXTPOOL P_TEXT INTO I_TEXTELEMENT LANGUAGE SY-LANGU.
break-point.
loop at i_data.
if I_data-LINE cp '00'.
i_program-line = i_data-line.
append i_program.
endif.
endloop.
LOOP AT I_TEXTELEMENT.
LOOP AT I_PROGRAM.
SEARCH I_PROGRAM-LINE FOR I_TEXTELEMENT-ENTRY.
IF SY-SUBRC EQ 0.
LEN = STRLEN( I_TEXTELEMENT-ENTRY ) + 1.
POS = SY-FDPOS.
STR = I_PROGRAM+POS(LEN).
SHIFT STR RIGHT DELETING TRAILING ''''.
CONDENSE STR NO-GAPS.
ACTLEN = STRLEN( I_TEXTELEMENT-ENTRY ).
COMPLEN = STRLEN( STR ).
IF ACTLEN = COMPLEN.
I_RESULT-ENTRY = I_TEXTELEMENT-ENTRY.
I_RESULT-STATUS = 'T'.
APPEND I_RESULT.
ENDIF.
ENDIF.
ENDLOOP.
ENDLOOP.
loop at i_result.
loop at i_textelement where entry = i_result-entry or id = ''.
i_result-id = i_textelement-id.
i_result-key = i_textelement-key.
modify i_result from i_result.
endloop.
endloop.
loop at i_textelement where id = 'I'.
clear count.
loop at i_result where key = i_textelement-key.
count = 1.
endloop.
if count = 0.
i_result-id = i_textelement-id.
i_result-key = i_textelement-key.
i_result-entry = i_textelement-entry.
i_result-status = 'F'.
append i_result.
endif.
endloop.
LOOP AT I_RESULT.
if i_result-status = 'F'.
WRITE : /3 I_RESULT-id, 15 I_RESULT-key,
30 I_RESULT-ENTRY, 40 I_RESULT-STATUS,ICON_INCOMPLETE AS ICON
endif.
ENDLOOP.
Hope it is useful.
Please reward. -
Performance tuning - Extended Program Check
Hi ,
Program: Z_AB_SER_TOR Include: CR_LE_CON_MISC Row: 60
Object PROG Z_AB_SER_TOR has insufficient authorization to use objects
DTEL CR_LE_CANC_PRC from package CR_FS_CHAE_CAL
ZCM_DN_SER_MOR in package ZSOLN
CR_LE_CANC_PRC in package CR_FS_CHAE_CAL
Package ZSOLN does not have sufficient use access
(The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
EXTENDED CHECK OFF/ON)
While use the abap performance tuning: where ever I used our Z-package in z-programs. I got that package error: Package ZLMA does not have sufficient use access
How can I avoid this error in Extended Program Check
Thanks,
Nirmal.Hi
Get in touch you basis team to resolve this
also look for some notes if possible
regards
Shiva -
Select query gives error in Code inspector and extended program check
Hi,
I have a query .
SELECT pernr
FROM pa9100
INTO TABLE t_nca_tab
WHERE endda EQ c_date AND
z_nca_required EQ c_yes.
This query gives me an error in Code inspector like :
Large table pa0001: No first field of table index in WHERE condition
I have one more query that gives error in extended program check
SELECT SINGLE stell ename
INTO (g_stell, g_name)
FROM pa0001
WHERE pernr EQ wa_nca_tab-pernr AND
endda EQ c_date.
The warning says:
*In "SELECT SINGLE ...", the WHERE condition for the key field "SEQNR" does not
test for equality. Therefore, the single record in question may not be unique.*
Its too urgent.
Please reply.
Regards,
Binay.The first field is PERNR .. so if UR not giving pernr it will fetch
all the data from the said table and between the given dates ..
Check if this is your requirement ...
write the select as ...
where r_pernr is a range ...
SELECT pernr
FROM pa9100
INTO TABLE t_nca_tab
WHERE pernr in r_pernr <----
endda EQ c_date AND
z_nca_required EQ c_yes.
As UR using select single it's expecting to use all the key
fields in the where condition ...
U can ignore this warning message -
Warning in query in Extended Syntax Check
Hi all,
I perform Extended Syntax Check.
It generates following warning for the query: -
In "SELECT SINGLE....", the WHERE condition for the key field "MATNR" does not test for equality. Therefore the single record in question may not be unique.
(You can hide the message using "#EC *)
Please tell me what does it mean. How can I suppress this warning?
Regards,
Saurabh A. BukshHi,
whenu r using select single use a variable or a workarea don't use tables.
select single matnr from mara into v_matnr
where matnr in s_matnr.
also as it is warning message u can neglectit .
when u r using select single u should give entire key information also.
Regards,
Nagaraj
Message was edited by: nagaraj kumar nishtala -
Extended Syntax Check in abap code
Hi Guys,
We are upgrading from 4.6 C to ECC 6.0. When I do the Extended Syntax check for the custom function module it gives me the following error. Please help.
The EXCEPTION "REPORT_NOT_EXISTENT" is not defined in the interface of the function module "RS_VARIANT_CONTENTS" "RS_VARIANT_CONTENTS". Internal Message Code: MESSAGE G-7.
(The message can be hidden with "#EC ARGCHECKED)
Regards,
Shankar<b>Don't suppress the message. </b> You should only suppress messages if you are aware of why they are appearing, and they are not an error.
What it means is, that in your custom function module, there is some code like
CALL FUNCTION 'RS_VARIANT_CONTENTS'
EXPORTING
report = v_report
variant = v_variant
EXCEPTIONS
VARIANT_NON_EXISTENT = 1
VARIANT_OBSOLETE = 2
REPORT_NOT_EXISTENT = 3
OTHERS = 4
But if you look at FM rs_variant_contents, you'll see this exception is not defined. The correct course of action is to remove it from your call.
matt -
Error in extended program check
Hi,
I m getting following error in Extended Program Check..
<b>The current ABAP command is obsolete
Tables with headers are no longer supported in the OO context.</b>
for the below declaration..
<b>data: I_fieldcatalog type slis_t_fieldcat_alv WITH HEADER LINE .</b>
could anyone help me.
Thanks in advance.Hi,
Use as follows
<b>DATA: I_fieldcatalog type slis_t_fieldcat_alv,
wa_fieldcaalog like line of I_fieldcatalog.</b>
When you use HEADERLINE you will get one WOrkarea and an intenral table with one declaration.
In your case I_fieldcatalog is a workarea and I_fieldcatalog[ ] is the table.
This usage is obsolete as it leads to confustion with CLEAR.
When you use CLEAR I_fieldcatalog you may assume that table is cleared but here only workarea is cleared.
So you need to use the above given declaration and change all your
APPEND I_fieldcatalog. to
APPEND wa_fieldcatalog toI_fieldcatalog.
simlarly for INSERT and MODIFY.
Regards,
Sesh. -
Extended Program check for internal table
TYPES:BEGIN OF TY_FINAL,
VBELN TYPE VBAP-VBELN,
VBELV TYPE VBAP-VBELV,
POSNV TYPE VBAP-POSNV,
WERKS TYPE VBAP-WERKS,
ZZ_MODEL_NO TYPE VBAP-ZZ_MODEL_NO,
VKORG TYPE VBAK-VKORG,
TEXT(70) TYPE C,
END OF TY_FINAL.
Declaration of Variables *
DATA: IT_VBAK TYPE STANDARD TABLE OF TY_VBAK ,
IT_VBAP TYPE STANDARD TABLE OF TY_VBAP ,
IT_FINAL TYPE STANDARD TABLE OF TY_FINAL WITH HEADER LINE.
DATA: W_VBAK TYPE TY_VBAK ,
W_VBAP TYPE TY_VBAP ,
W_FINAL TYPE TY_FINAL ,
W_LAYOUT TYPE SLIS_LAYOUT_ALV ,
W_VARIANT_SAVE TYPE C ,
W_REPID TYPE SY-REPID .
In the above code i have declared IT_FINAL TYPE STANDARD TABLE OF TY_FINAL WITH HEADER LINE. in extended program check iam getting error as( Tables with headers are no longer supported in the OO context.
can any one plz suggest me to avoid this error.
Thanks in Advance.
Moderator message - Duplicate post locked
Edited by: Rob Burbank on May 19, 2009 9:12 AMHi,
DATA: IT_VBAK TYPE STANDARD TABLE OF TY_VBAK ,
IT_VBAP TYPE STANDARD TABLE OF TY_VBAP ,
" If you declare the internal table with header line in OO context it wll give you error. As OO wil not
" support the header line concept. Declare Internal table without header line and create the work area
" for the internal table
IT_FINAL TYPE STANDARD TABLE OF TY_FINAL. " WITH HEADER LINE.
DATA: W_VBAK TYPE TY_VBAK ,
W_VBAP TYPE TY_VBAP ,
W_FINAL TYPE TY_FINAL , " Use this work area
W_LAYOUT TYPE SLIS_LAYOUT_ALV ,
W_VARIANT_SAVE TYPE C ,
W_REPID TYPE SY-REPID -
Error in Extended syntax check- Select Query
Hi all,
Iam getting this following error in Extended syntax check
" Large table PA0002: No field of a table index in WHERE
condition"
Code :SELECT SINGLE PERNR INTO (G_PERNR) FROM PA0002 WHERE ZZLEGACY_PAYROLL = I_FILETAB-PRNO
AND ZZLEGACY_PAYSYS = I_FILETAB-PRSYS
AND ZZLEGACY_PAYINS = I_FILETAB-PRINS.
can anyone help on this?Hi,
Change the code like this and check............
For this u need put INSIDE LOOP.
Select single PERNR into G_PERNR from PA0002 where PERNR = I_FILETAB-PRNO and .......... and ......
Check like this...
Thanks.
If this helps you reward with points.
Message was edited by: KDeepak
Message was edited by: KDeepak -
Hi ,
I'm getting errors(Obsolete statements) when checking for extended program check for a report program.
When I'm going for "UCCHECK" i'm not getting any errors & in code inspector also it is not showing the errors.
Here what is the reason for this?why it showing error in one transaction & not showing the same in other transaction..
Here I'm pasting the code..
REPORT ZHCM_OBSOLETE.
infotypes : 0000.
DATA: BEGIN OF itab1 OCCURS 0,
col1 TYPE i,
col2 TYPE i,
col3 TYPE string,
END OF itab1 VALID BETWEEN col1 AND col2.
DATA: BEGIN OF itab2 OCCURS 0,
col1 TYPE i,
col2 TYPE i,
col3 TYPE string,
END OF itab2 VALID BETWEEN col1 AND col2.
itab1-col1 = 1.
itab1-col2 = 6.
itab1-col3 = 'Itab1 Int1'.
APPEND itab1 TO itab1.
itab1-col1 = 9.
itab1-col2 = 12.
itab1-col3 = 'Itab1 Int2'.
APPEND itab1 TO itab1.
itab2-col1 = 4.
itab2-col2 = 11.
itab2-col3 = 'Itab2 Int1'.
APPEND itab2 TO itab2.
provide col3 FROM itab1
col3 FROM itab2
BETWEEN 2 AND 14.
WRITE: / itab1-col1.
* \, itab1-col2, itab1-col3, itab1_valid.
WRITE: / itab2-col1.
* , itab2-col2, itab2-col3, itab2_valid.
SKIP.
ENDPROVIDE.
Thanks in advance..
Pradeepa
Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 2:22 PMHi,
You are probably getting obsolete statements on the declaration of internal tables. Avoid using begin of itab occurs 0, this statement is not used as it automatically creates a header line. Use types statement to define a type and then use it to create an internal table and workarea, this will remove the obsolete statements in extended program check.
types : begin of t_itab,
col1 type i,
col2 type i,
col3 type string,
end of t_itab.
data itab type table of t_itab
data wa_type t_itab.
Use these to populate your internal table.
begin of itab occurs 0 was a statement which was used in prior versions (<4.0) and now are considered obsolete, but still functional due to backward compatibility.
Hope this helps you.
Regards,
Sachin Dargan.
Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 2:22 PM -
Extended program check and code inspector
Hi Gurus,
I developed on report . I wrote at end of and at new in loop but extended code checking it showing one error is:
1)The LOOP statement processing will be limited
(FROM, TO and WHERE additions in LOOP)
Interaction with group change processing (AT NEW, ...) is undefined
(The message can be hidden with "#EC *)
2)The LOOP statement processing will be limited
(FROM, TO and WHERE additions in LOOP)
Interaction with group change processing (AT NEW, ...) is
(The message can be hidden with "#EC *)
and I wrote select statement for input validation extended check showing warning as:
Syntax check warning
This warning is only displayed in SLIN
In "SELECT SINGLE ...", the WHERE condition for the
test for equality. Therefore, the single record in q
Internal Message Code: MESSAGE GSB
(The message can be hidden with "#EC *)
I want to remove those warnings and errors please can any body help me.
Regards,
Shashikumar.GHi Sashi,
1) The LOOP statement error is coming because, you must have used LOOP AT itab WHERE ... something like this.. this means that you are limiting theh records processed in the LOOP. Under this case you can not use AT events..
To use AT events, fill another internal table with the records that you want to process and use AT event in loop at that table..
2) You have used SELECT SINGLE in your code, but the select query does not have the full primary key in the WHERE condition.. it is mandatory to define complete primary key value so that the system will get only single record...
To remove this error, instead of SELECT SINGLE, use SELECT..UP TO 1 ROWS..
Let the query be as it is.. only remove SINGLE keyword and put UP TO 1 ROWS after the FROM clause and Before WHERE clause...
Thanks and Best Regards,
Vikas Bittera. -
Error at new statement on extended program check need help
Hi all ,
This is the code :
LOOP AT i_stocks INTO wa_stocks WHERE NOT pulkt IS INITIAL AND
NOT bstkt IS INITIAL AND
NOT fprctr IS INITIAL AND
( write_off_fix <> 0 OR
write_off_pup <> 0 ).
AT NEW fprctr.
CLEAR: l_prctrsum_fix, l_prctrsum_pup.
ENDAT.
IF wa_stocks-bukrs <> lastbukrs.
lastbukrs = wa_stocks-bukrs.
PERFORM document_header USING xreversal.
i_counter = 1.
CLEAR lastkostl.
ENDIF.
ADD wa_stocks-write_off_pup TO l_prctrsum_pup.
ENDLOOP
On Extended program check its says :
The LOOP statement processing will be limited
(FROM, TO and WHERE additions in LOOP)
Interaction with group change processing (AT NEW, ...) is undefined
(The message can be hidden with "#EC *)
It means at statement AT NEW fprctr .
Need help , How can i resolve this error ?
Regards .
Edited by: ujjwal dharmak on Feb 19, 2010 9:55 AM
Moderator message - Moved to the correct forum
Edited by: Rob Burbank on Feb 19, 2010 9:04 AMSince you are using where condition in loop statement and also using the control break statement thats why it is showing the error for you.
So if you want you can do like this
loop at itab into wa.
if not wa-f1 is initial ....<and other conditions>.
continue.
endif.
at new f1.
endat.
endloop.
It will resolve your problem but I am having the doubt how the at new will work properly...
Regards
Shiba Prasad Dutta -
Code Inspector and Extended program check in one program
Hello SAP gurus,
We have a requirement where we need to create one tool which will have both code inspector and extended program check functionality and report should display all error, warning messages which are found from these checks.
Can anyone provide some suggestions on this?
Thanks,
Khushboo DandHi,
Go to Se38 and check how code inpsector and extended syntax check. I dont remember the exact function module name but just debug a little u will be able to find it.
Nabheet -
Structure Enhancement Error Error in Extended Program Check in ECC 6.0
Hi Experts,
I am working on ECC 6.0 I am a structure like "BAPIACWT09" , "BAPIACCAIT" in my program when i run Extended Program Check i am getting an error
<b>
"BAPIACWT09" can be enhanced. After a structure enhancement, the semantics of the parameter transfer may change.</b>
How to eliminate this ErrorRaghu,
Every structure has to be created with an enhancement category.
In Transaction SE11, when you are creating a structure or a table , go to extras - enhancement category to see it.
I guess BAPIACWT09 has been defined with a category of can be enhanced, and SAP is warning you that if the enhancement is used in the future your program can have syntax errors.
There is nothing you can do about this. If you find out something, Please share.
Maybe you are looking for
-
After upgrading to Yosemite, If i plug in my Zte MF 820 LTE modem into my Macbook Pro USB socket or a Thunderbolt USB Ethernet converter/ into my Notebook, it slow down dramatically the system, unusable, need to reboot and unplug the USB moderm or
-
Reports bar scrolling screen down and up.
Hi All, I have an issue that bugs me with Firefox. Often there are informational reports at the top of the webpage screen like "Flash has been blocked ... allow continue" etc. These scroll the whole screen down when they display, to fit in their bar
-
Changing invisible characters in password fields for Chromium
This really may sound trivial, but I like those big dots instead of the regular tiny ones, and I'm annoyed by the fact that I've managed to do it for Firefox, unlike Chromium, by putting these lines inside of my .gtkrc-2.0. style "entry" GtkEntry::in
-
0CO_PC_PCP_10 System not Proposing Transfer Rules
Hi All, I want to install and get the transfer rules for this 0CO_PC_PCP_10 data source but when I activate the data source it is not proosing content transfer rules also when I checked in BI content I am not able to see any tranfer rules for this da
-
TDS certificate- Higher secondary cess field
Dear all, In the tds certificate, except higher secondary cess, all the other taxes are appearing. How to make the higher secondary cess field available in the tds certificate? Kindly suggest. I will award full points. Thanks & Regards, A.Anandarajan