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

FM - Error - Code Inspector

Former Member
0 Likes
4,881

I have created a new cutom FM for Inbound IDOC Application Posting.

In the TABLE Parameter of FM the following Tables difined.

IDOC_CONTRL LIKE EDIDC

IDOC_DATA LIKE EDIDD

IDOC_STATUS LIKE BDIDOCSTAT

RETURN_VARIABLES LIKE BDWFRETVAR

SERIALIZATION_INFO LIKE BDI_SER

while checking with Code Inspector Tool I got an Error for BDI_SER.( Last Table Parameter of the FM)

Syntax check warning

"BDI_SER" can be enhanced. After a structure enhancement, the semantics of the

parameter transfer may change.

Internal Message Code: MESSAGE G_B

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

Type "BDI_SER" or the type of one of its subcomponents can be enhanced. The semantics of the parameter transfer may change after a structure enhancement.

For the execution of a Remote Function Call (RFC), the actual parameter and formal parameter do not have to be of the same type. In the case of structure types, the actual parameter and formal parameter can contain additional components at the end. These additional components are set to their initial values.

Check whether the enhancement category of the relevant type correct is set or whether the category "cannot be enhanced" should be used.

How to fix this error? other wise how to supress the Message by adding "#EC ENHOK

where I have to add the Comment "#EC ENHOK.

please help to give details .

Thanks in advance.

Shar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,816

Hi Sharma,

Simply type "#EC ENHOK after the statement (or in this case declaration) is finished by period, i.e.

DATA SERIALIZATION_INFO LIKE BDI_SER. "#EC ENHOK

Thanks,

Heinz

5 REPLIES 5
Read only

Former Member
0 Likes
1,816

Hi:

Is it BDI_SER a custom table ?

if yes, go in se11 - > Extras -> enhancment Category -> select can not be enhanced and activate it .

else. "#EC ENHOK

Regards

Shashi

Read only

0 Likes
1,816

Hi Shashi,

Thanks.

If I want to use "#EC ENHOK where I can use this one to supress my message.?

Similarly I am getting error in few Variables. like

ELSE has an empty body Row no 100

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

how to use "EC NEEDED? in row no 100?

If possible please give code details.

Thanks,

sha

Read only

Former Member
0 Likes
1,816

HI,

You can ingnore this warning message as this is beacuase of the Ehnancement Category selected for this structure BDI_SER is Can be enhanced or character-type or numeric.

As it is the standard structure you cannot do any changes for this.

Read only

0 Likes
1,816

Hi Avinash Kodarapu ,

Thanks.

sha

Edited by: sharma on Mar 26, 2009 5:57 AM

Read only

Former Member
0 Likes
1,817

Hi Sharma,

Simply type "#EC ENHOK after the statement (or in this case declaration) is finished by period, i.e.

DATA SERIALIZATION_INFO LIKE BDI_SER. "#EC ENHOK

Thanks,

Heinz