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

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

0 Kudos
1,433
 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
Read only

Sandra_Rossi
Active Contributor
0 Kudos
1,061

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

Read only

faisalatsap
Active Contributor
0 Kudos
1,061
 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.

Read only

FredericGirod
Active Contributor
0 Kudos
1,061

It is normal, it is the base of FI logic

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

Read only

faisalatsap
Active Contributor
0 Kudos
1,061

Get subtotal on DMBTR

Thanks and Best Regards,

Faisal