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: 

how to get the same total amount for debit/credit by using bseg table, what logicwe need to write

0 Kudos
 IF wa_final-indicator = 'S'.
        wa_final-amount = wa_bseg-dmbtr.
      ELSEIF wa_final-indicator = 'H'.
        wa_final-amount = wa_bseg-dmbtr * - 1.
      ENDIF.

4 REPLIES 4

Sandra_Rossi
Active Contributor
0 Kudos

Sorry, but it's impossible to understand your question.

faisal_altaf2
Active Contributor
0 Kudos
 IF wa_final-indicator = 'S'.
        wa_final-amount = wa_bseg-dmbtr.
      ELSEIF wa_final-indicator = 'H'.
        wa_final-amount = wa_bseg-dmbtr * - 1.
      ENDIF.

In this case total will be Zero.

FredericGirod
Active Contributor
0 Kudos

It is normal, it is the base of FI logic

You have to separate Debit & Credit to have the two values

faisal_altaf2
Active Contributor
0 Kudos

Get subtotal on DMBTR

Thanks and Best Regards,

Faisal