10-02-2009 11:17 AM
Hello All,
Is there any FM which gives the given parameter is a field or structure.
Ex: I am using the FM FUNCTION_IMPORT_INTERFACE to get the all import, export, changing and tables parameters of a given FM.
The import parameters table will have all import parameters of the FM. Now I need to findout which all parameters are fields and which all parameters are structures?
Thank you.
Best Regards,
Sasidhar Reddy Matli.
10-02-2009 1:18 PM
You can use DDIF_TYPEINFO_GET FM but you should get the part before "-" character
as when you send your value to the FM like this; "SM04DIC-POPUPMSG" you get no result at all.
However, if you send "SM04DIC" instead, you can get your type info.
It is better to check it by yourself and you will get a clear understanding
10-02-2009 1:01 PM
Actually you don't need FM to do this as you can check "-" character in the DBFIELD.
if your program finds "-" character it is structure or table type if not it means it is a field.
10-02-2009 1:06 PM
Dear Taner Güngör ,
Thanks for your reply.
But there may be chances of having DBFIELD as data element. In that case what needs to be done?
10-02-2009 1:18 PM
You can use DDIF_TYPEINFO_GET FM but you should get the part before "-" character
as when you send your value to the FM like this; "SM04DIC-POPUPMSG" you get no result at all.
However, if you send "SM04DIC" instead, you can get your type info.
It is better to check it by yourself and you will get a clear understanding