Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Doubt in Extended Syntax check

Former Member
0 Likes
1,485

Hi all ,

I am facing a problem when i do a Extended Syntax check for a program . The message i am getting is as follows :

Messages for CALL FUNCTION interfaces(Todo Prio3)

Program: SAPLZC_BWSPI Include: LZC_BWSPIF01 Row: 496 [Prio 3]

No EXCEPTION to set SY_SUBRC Declared for CALL FUNCTION 'FIRST_DAY_IN_TP_GET'

Thus the value of SY-SUBRC is always 0

(The message can be hidden with "#EC *)

can anyone suggest me how to correct it .

thanks,

kumaran

Hi ,

Thanks , but where should i exactly add "#EC *.

Can you please me tell me.

9 REPLIES 9
Read only

Former Member
0 Likes
1,284

Fm 'FIRST_DAY_IN_TP_GET' does not raise any exception.

So there is no need to check sy-subrc after calling this FM.

If you have done it u need to remove it.

Else just add "#EC * at the end of the CALL FUNCTION statement

Read only

0 Likes
1,284

Hi ,

Thanks , but where should i exactly add "#EC *.

Can you please me tell me.

Read only

0 Likes
1,284

Hi,

You have to add "# EC PORTABLE using inline comment where you get that particular error. Using this comment it is going to hide the error. But functionality won't change. I used many times in my program.But in hide errors we can display them.

Thanks

Sarada

Read only

Former Member
0 Likes
1,284

Hi,

suppose you have a report that uses some subroutines and function modules.now the function modules and subroutines are working fine.If in future while calling a function module there is a chance that it will raise error due to upgradation or some thing else.

go to SLIN transactiona and select all the check boxes there and go to execute.you will get message,code ...etc as output.select code, now the cursor will stand at one place in your program.so that is the point where you will get error in future.press enter there and code as set extended check on.

and subsequently code as set extended check off.

i think it will help you.

regards,

Swaminath Reddy.

Read only

gautam_totekar
Active Participant
0 Likes
1,284

SUPPOSE IF YOU HAVE YOUR CODE AS :

CALL FUNCTION XYZ

IMPORTING -


EXPORTING----


JUST WRITE

CALL FUNCTION XYZ "#EC *

IMPORTING -


EXPORTING----


IF SY-SUBRC <> 0.

ENDIF.

THATS ENOUGH.

OR ELSE TRY.

CALL FUNCTION XYZ

IMPORTING -


EXPORTING----


IF SY-SUBRC <> 0. "#EC *

ENDIF.

Read only

Former Member
0 Likes
1,284

CALL FUNCTION 'FIRST_DAY_IN_TP_GET' "#EC *

EXPORTING

I_GJAHR = '2008'

I_PERIV = '024'

I_POPER = '001'

IMPORTING

E_DATE = w_date.

  • EXCEPTIONS

  • T009_NOTFOUND = 1

  • T009B_NOTFOUND = 2

  • OTHERS = 3

Read only

Former Member
0 Likes
1,284

Hi

when u call the function 'FIRST_DAY_IN_TP_GET'

u willl get some exceptions if u comment them then u will get the error in Extended Syntax check...bcoz sy-subrc value will always be 0.

CALL FUNCTION 'FIRST_DAY_IN_TP_GET'

EXPORTING

i_gjahr = i_gjahr

i_periv = i_periv

i_poper = i_poper

  • IMPORTING

  • E_DATE = E_DATE

EXCEPTIONS

T009_NOTFOUND = 1

T009B_NOTFOUND = 2

OTHERS = 3

.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SYSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Edited by: Jyothsna M on Feb 11, 2008 10:58 AM

Read only

0 Likes
1,284

Hi all ,

I tried all options as per ur advice , but it seems nothing is working .

confused !!!

Read only

Former Member
0 Likes
1,284

Hi all ,

I tried all options as per ur advice , but it is not working , any other suggestions.