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

Compare

Former Member
0 Likes
481

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
Read only

Former Member
0 Likes
454

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
Read only

Former Member
0 Likes
455

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

Read only

Former Member
0 Likes
454

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 .