Skip to Content
avatar image
Former Member

Regarding SQ02 Code in infoset

Dear Experts ,

I have a case where i have created infoset & query with T Code SQ01.

It is very similar to the MB51 Report where the value of the field MSEG-DMBTR is output .

But i want the vallue of the field MSEG-DMBTR to be negative in case the value of the field MSEG-SHKZG is 'S'.

eg. if mseg -dmbtr is 1244.00 & mseg-shkzg is "s" then in o/p mseg-dmbtr shud appear as -1244.00.

For this I want to write a code in the code tab of the infoset .

Can anyone pls suggest if this is possible thru what i am doing ??

Regards

Anis

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jul 21, 2009 at 02:05 PM

    Hi,

    Since your coding in an infoset, declare a field say v_dmbtr & display this field instead of MSEG-DMBTR.

    Now write the below few lines for this field.

    CLEAR: v_dmbtr.

    IF mseg-shkzg = 'S'.

    v_dmbtr = - mseg-dmbtr.

    ENDIF.

    Regards,

    Vivek

    Add comment
    10|10000 characters needed characters exceeded