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

Syntax error: in standard include MF05LFB0

sanjay_deshpande4
Participant
0 Likes
2,073

Dear All,

I have observed the below syntax error in standard include MF05LFB0.

"Field "BSEGL" is unknown. It is neither in one of the specified tables "

I have recently downloaded a note which modified above include. I also observed same syntax error in quality system and production system. Also observed same error in other systems where this include exists.

Can anybody kindly guide what must be the reason for this error?

Regards.

8 REPLIES 8
Read only

sanjay_deshpande4
Participant
0 Likes
1,929

I want to move the include to quality and production system. Being in syntax error state the TR will fail.so kindly help.

Read only

joltdx
Active Contributor
1,929

Hi!

If you got the syntax error when implementing the Note, you should probably contact SAP Support, but I assume you are talking about now that you went into SE80, opened the include and performed a syntax check there manually?

In that case...Well, the include does not know what BSEGL is as it's not declared in there. Instead, you need to do the syntax check on the main program. The program that uses the include.

You do that either by going to that main program to do the check, or Ctrl-F7 in the include. (Menu option Check -> Master Program)

Read only

0 Likes
1,929

Dear Jorgen,

Thanks for kindly replying.

Can you kindly confirm whether my TRansport request will fail because of this syntax error.

Regards.

Read only

joltdx
Active Contributor
0 Likes
1,929

I can leave no guarantees whatsoever without access to your system and transport. 🙂

But based on what you describe, if you simply implemented an SAP note and in that process put it in a transport... If the note fixed whatever problem it was supposed to in development system... Then this will also work in the test system when you import that transport there.

Syntax checks on an include alone may give this kind of errors, as it's meant to be used by a main program. You get no syntax errors when checking the main program, right?

Read only

Sandra_Rossi
Active Contributor
1,929

You say "I want to move the include" (to quality and production system), I would rather say "move the SAP note" because after applying a note automatically, you should assign it to a new transport request, which will then contain all the relevant objects and the R3TR NOTE object.

Read only

Lakshmipathi
SAP Champion
SAP Champion
0 Likes
1,929

Have a look at OSS note 2346193

Read only

matt
Active Contributor
1,929

The transport will issue a non-zero return code, but the code change will still be put through.

Read only

tom_wan
Product and Topic Expert
Product and Topic Expert
1,929

I think you are performing syntax check for single include MF05LFB0.

As the definition of BSEGL exist in top include MF05LTOP_ALV, so if you perform syntax check for MF05LFB0, you will get this syntax error. But if perform syntax this way: Menu>Program>Check>Master Program, you will not get the error.

This is a normal behavior of complier, You could also get this error in import log, just ignore it(it is harmless, you will not get runtime error when you execute the coresponding transaction/program). See Note:

2164368 - ABAP syntax check for include returns errors due to unknown field names or type names