Application Development 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: 

Compare

Former Member
0 Kudos

Hi all,

I want to compare two Sub routine parameters (Using, Changing table ). Any FM or table that can return these parameter .

Thanks in advance for all your help.

Regards,

Anukool

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You can compare using Field Symbols.

Do like this.

data:

field-symbols:

<fs1> type any,

<fs2> type any.

get the subroutine1 parameter in <fs1> and

get the subroutine2 parameter in <fs2>.

if <fs1> eq <fs2>.

write:

/ 'Both parameters are equal'.

else.

write:

/ 'Both parameters are not equal'.

endif.

Regards,

Rama.P

2 REPLIES 2

Former Member
0 Kudos

Hi,

You can compare using Field Symbols.

Do like this.

data:

field-symbols:

<fs1> type any,

<fs2> type any.

get the subroutine1 parameter in <fs1> and

get the subroutine2 parameter in <fs2>.

if <fs1> eq <fs2>.

write:

/ 'Both parameters are equal'.

else.

write:

/ 'Both parameters are not equal'.

endif.

Regards,

Rama.P

Former Member
0 Kudos

I have not any parameters frist i have to get these parameter using FM OR TABLE .

any one have I idea how SAP store these value in a table or any FM that return these parameters .