‎2006 Jan 20 5:35 AM
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
‎2006 Jan 20 5:59 AM
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.
‎2006 Jan 20 5:51 AM
Hi ajay,
are there any deep structures in side the sturcture you created(zstruc).
regards
vijay
‎2006 Jan 20 5:53 AM
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
‎2006 Jan 20 5:58 AM
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.
‎2006 Jan 20 5:59 AM
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.
‎2006 Jan 20 6:07 AM
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.
‎2006 Jan 20 6:00 AM
sorry, not table but, that is all i have given to create a structure. it has been activaed too suceefully
‎2006 Jan 20 6:19 AM
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
‎2006 Jan 20 7:06 AM
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
‎2006 Jan 20 8:24 AM
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.