Skip to Content
author's profile photo
Former Member

Field WRBTR in FB03 and Table BSEG

Hi,

I am trying to retrieve the amount (field WRBTR)from the table BSEG for the line item . In this table the

amount is shown 2.00

When I go to FB03, i see the amount as 2.00-

Can anyone let me know how should i declare the amount field in my program?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Oct 04, 2005 at 11:01 PM

    Hi

    the amount is always stored with absulte value, the sign is defined by SHKZG (Debit/Credit Indicator).

    SHKZG = S => SIGN = +

    SHKZG = H => SIGN = -

    So

    IF BSEG-SHKZG = 'H'.

    BSEG-WRBTR = BSEG-WRBTR * -1.

    ENDIF.

    Max

    Message was edited by: max bianchi

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 04, 2005 at 10:58 PM

    There should be a "sign" indicator field in there somewhere. This field will tell you whether you need to multiply by -1.

    Regards,

    Rich Heilman

    Add comment
    10|10000 characters needed characters exceeded