Quantcast
Channel: SCN : Popular Discussions - ABAP和Java开发 (ABAP & Java Development)
Viewing all articles
Browse latest Browse all 4604

How to get attribute from dynamic inferfaces?

$
0
0

Hi experts,

 

I am facing a problem, please help me out.

 

There are several constant interfaces which store attributes. The interfaces totally the same but their attributes contain different value.

 

Interface1

attribute: attribute1

               attribute2

               attribute3

               attribute4

               attribute5

               attribute6

 

Interface2

attribute: attribute1

               attribute2

               attribute3

               attribute4

               attribute5

               attribute6

 

I would like to create a dynamic way to retrieve attributes from the interfaces. I am not allowed to use any if..else or case statement because I hav to consider about the future reuse.

Currently I only know the interface name and attribute name(passed by parameter). Please help me to retrieve the attributes form the interfaces.

 

Many thanks in advance!

 

Best Regards,

Alex

 



Viewing all articles
Browse latest Browse all 4604

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>