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

Parameters info

Former Member
0 Likes
604

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
560

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

3 REPLIES 3
Read only

Former Member
0 Likes
560

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.

Read only

0 Likes
560

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?

Read only

Former Member
0 Likes
561

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