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

error at RFC

Former Member
0 Likes
1,582

hi,

i'm trying to create a RFC in 4.7e. in the tables culoumn, i give

parameter name - itab

type spec - like

Associated type - zmy_structure( this is a structure i have created , picking few fields from some tables)

when i do syntax check i get the following error.

"Only tables with simple line structure are allowed in RFC

Message no. FL389"

do you know why i'm getting this error, where did i do mistake?

bye

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,463

the structure has the following componenets

component - name1, ort01, netwr, klimk

Rtype - yes

Component type - kna1, kna1, vbak, knkk

Data type - (it shows some symbol, but not anything. when i put my mouse pointer on it it displays -) Structured type

length - 0

Decimal - 0

this is all i have done and created the table.

9 REPLIES 9
Read only

Former Member
0 Likes
1,463

Hi ajay,

are there any deep structures in side the sturcture you created(zstruc).

regards

vijay

Read only

Former Member
0 Likes
1,463

Hi Ajay,

Check the data elements of the fields of the structure you have created. If you can list the fields and data elements of your structure I can let you know the cause of error.

With Regards,

Nelson

Read only

Former Member
0 Likes
1,463

Hi Ajay,

Does your structure zmy_strucutre includes other strucutres or fields with type STRING, LCHAR etc.. It might be the reason of this error..

Hope it helps...

Regards,

Komal.

Read only

Former Member
0 Likes
1,464

the structure has the following componenets

component - name1, ort01, netwr, klimk

Rtype - yes

Component type - kna1, kna1, vbak, knkk

Data type - (it shows some symbol, but not anything. when i put my mouse pointer on it it displays -) Structured type

length - 0

Decimal - 0

this is all i have done and created the table.

Read only

0 Likes
1,463

Hi Ajay,

KNA1, VBAK are table names. it is not allowed in RFC. you should use data types instead of table names. e.e for name1 Component type should be NAME1_GP. similarly for ort01 it should be ORT01_GP netwr it should be NETWR_AK ...

Hope it helps...

Regards,

Komal.

Read only

Former Member
0 Likes
1,463

sorry, not table but, that is all i have given to create a structure. it has been activaed too suceefully

Read only

0 Likes
1,463

hi ajay,

if you still have problem then check the standard rfc's.

i feel in your Zstructure you included some other structure that is the problem,..

regards

vijay

Read only

Former Member
0 Likes
1,463

hi komal,

you answer was really helpful. can you tell me something more about this component types and tables. sometime back i have used fields from differrent tables in a structure and called it in RFC it has worked. now the policy isn't working. but the concept you said has worked. so can you just hint me on this?

bye

Read only

0 Likes
1,463

Hi Ajay,

When we define a structure, compenent type is same as data element we define in case of tables. a strucutre can include multiple structures also. so if in component type you specify a data element name you field will be a simple field with type as specified in data element. but if you put table or strucuture name in component type, the field will represent the structre. RFC soes not support this. thats why you were getting this error. if we have to define field NAME1 which should be like NAME1 in VBAK. then we should not put KNA1 in component type. instead we should go to KNA1 and see the data element in NAME1 and put the same data element in component type in the strucutre...

Hope it helps...

Regards,

Komal.