10-17-2005 7:53 AM
Hi!
Is there a way to read the data structure from a BAPI via RFC. My Problem is, that some of our customers have extended some functions in SAP and these extensions are somewhere in the middle of the structure. So, if I call the function from a C-Program the structure is different to my defined structure and I get wrong values. So I need a way to read the structure dynamically to make sure that I use the right structure definition!
Thanks,
Konrad
10-17-2005 7:59 AM
Hellp Konrad,
you might use the function modules:
RFC_GET_FUNCTION_INTERFACE
and
RFC_GET_STRUCTURE_DEFINITION
to create an dynamic RFC interface.
If you find my answer useful, please don't forget the reward.
Regards,
Juergen
10-17-2005 7:59 AM
Hellp Konrad,
you might use the function modules:
RFC_GET_FUNCTION_INTERFACE
and
RFC_GET_STRUCTURE_DEFINITION
to create an dynamic RFC interface.
If you find my answer useful, please don't forget the reward.
Regards,
Juergen
02-23-2006 11:12 AM
Hello~
i have the same problem...
i used the function modules:
RFC_GET_FUNCTION_INTERFACE
and
RFC_GET_STRUCTURE_DEFINITION
but, i can not predefine the structure ,after call rfccallreceive, i can not use this format:
(structure*)ItGetLine(itab,i);
so, i used this format:
(unsigned char*)ItGetLine(itab,i);
the problem is that!!
ths size of typedef structure{} format is not same the size of sum of structure's element size.
how can i make the late bound c++ program?
10-17-2005 8:00 AM
you can use RFC
BDL_FUNCTION_INTERFACE_GET to get the details.
Regards
Raja