Skip to Content
avatar image
Former Member

Compare

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 04, 2008 at 08:42 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 08:59 AM

    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 .

    Add comment
    10|10000 characters needed characters exceeded