Debit/credit amounts

Hi,
Iam trying to sum debit & credit amounts separately from bsak table.
The following logic is not working. Can u tell me the problem...
loop at t_bsak.
if t_bsak-shkzg = 'S'.
  l_debit = l_debit + t_bsak-wrbtr.
endif.
if t_bsak-shkzg = 'H'.
  l_credit = l_credit + t_bsak-wrbtr.
endif.
WRITE:126(12) l_debit.
WRITE:126(12) l_credit.
clear: l_debit,l_credit.
endloop.
kaki

Yes mike.
I got the problem and solved it.
thank u
kaki

Similar Messages

  • Debit / Credit amount did not balance

    Hi there,
    My company use SAP business one 9.0, when I run the Cash Flow Reference Report, I discover this report do not balance in specific transaction. I tracked this transaction and this transaction was made on Outgoing payment, however the amounts are balance here. I do not know why the credit amount of this transaction in Cash Flow Reference Report is wrong (it is higher a little bit)
    Pleas help me fix it
    Thanks a lot

    Hi,
    1. Just run above query in query generator and post query result here.
    2. Whether your transaction posted through B1 or DTW
    Hope this one clears your doubt.
    Do you have change any exchange rate?
    Thanks & Regards,
    Nagarajan

  • How to show debit/credit amount in invoice

    Dear Experts,
    Customer return the goods now, after six months he will raise an sales order.
    Now client requirement is the return goods amount deduct from this this invoice.
    they want to show in billing,total amount and deducted amount with reason.
    Regards,
    Amar Reddy

    Dont post the same question again and again.  Already you are getting response to your first post.  Check this
    [How to deduct return goods amount directly in invoice|How to deduct return goods amount directly in invoice]
    Continue all your queries in one thread so that it will be easy for members.
    thanks
    G. Lakshmipathi

  • FI postings with mixed debit/creidt amounts

    Hi Friends,
    We have a custom build program to extract data and post FI document.
    In some cases after extraction we have a data with mixed DC/LC and LC2 amounts in different signs thats is debit/debit/credit amounts. Example ( Document currency as +100$, local currency as +100$ and group currency as -10$)
    Any idea how we control in our custom program to split this into posting key specific fi lines? Is there any standard function modules or procedure to follow?
    Let me know if you need more details?
    Thanks in Advance.
    Manohar

    Any suggestions please...
    I can think of splitting lines into two with 40/50 posting keys in case of this scneario's. Does it have any implecations?

  • How to calculate YTD credit amount and YTD Debit amount

    How to calculate credit amount and Debit amount for Year-To-Date type in GL Trial Balance Report?

    You may try the following options.
    1. Run 'Expanded Trial Balance' report.
    2. Run 'Trial Balance' report.
    3. Create FSG report for trial balance based on your desired output format.
    Hope it is useful.
    Tarun

  • Debit/credit entry amount not balanced

    Hi All,
    I want post some adjustment excise amount through J1IH and for that I have created one sub transaction type and maintained "speciy excise accounts per excise transaction" and "specify G/L
    accounts per excise transaction" but while doing the transaction J1IH for "additionl excise" at the time of saving one error is coming "debit/credit entry amount are not balanced".Can any one plz help me out
    what another setting is required for saveing the transaction.
    Regards,
    SP Shukla.

    I will explain using an example. Please let me know if this is what you want.
    PO 10 pcs @ USD 10 = total of USD 100
    GR for 10 pcs
    Dr Material 100
      Cr GR/IR    100
    Vendor sends invoice for 110 (10 pcs @ USD 11)
    MIRO for 110
    2 scenarios:
    1) Stock available
    Dr GR/IR 100
    Dr Material 10
       Cr Vendor 110
    Difference is loaded on the stock. Please note that it is loaded on the existing quantity - whether 100 or 1 - it will load it on the complete stock.
    2) Stock of material is 0
    Dr GR/IR 100
    Dr Price Difference 10
       Cr Vendor 110
    Hope this helps...
    Lakshman

  • Balance Sheet G/L-PL reporting for period range by debit and credit amounts

    Hi, good afternoon
    This report displays period intervals. One column must display G/L accounts and the others must perform: Initial balance, total debit and total credit.
    Example:
    <b>Period: mm.dd.yyyy to mm.dd.yyyy</b>
    Columns:
    G/L Account - Initial Balance - debit - credit - Current Balance
    Thanks for attention, ragards!

    Hi, I do not get what exactly your question is, but I think you are looking for a "report"
    I do not remember  any that meets exactly your requirements. I have seen similar reports... but you can only define the periods, not the dates.
    Check this one:
    S_ALR_87012277
    You should take a look to these too:
    S_PL0_86000030
    S_PL0_86000031
    Regards

  • Creating debit/credit memo in AP with Payables Interface

    Hello guys,
    I am able to create an invoice using the payables interface table AP_INVOICES_INTERFACE and running the Payables Open Interface concurrent program. My question is, is it possible to create a debit/credit memo in AP as well through the interface tables?
    Many Thanks

    Hi.
    If the invoice amount is zero or positive then the value is STANDARD. If the invoice amount is negative then the value is CREDIT. This means you can upload Standard invoices and Credit Memos.
    Octavio

  • BPS Allocation (BCS) using Debit/Credit (no balance available)

    Hello,
    BPS allocation seams to expect a balance instead of debit credit sign.
    We are using debit and credit sign in Planning (0DB_CR_IND). This seams to be the reason why allocation can not be used in SAP standard. We would need to program an individual allocation program. Is this correct?
    Lets make an example
    Cost Center A
    Credit: 50 Euro
    should be allocated 100% to another cost center B.
    Debit: 0 Euro
    The allocation function would post the following
    Cost Center A
    Credit: -50 Euro
    which is wrong, because the costs would disappear from Cost Center A
    It would be necessary to post
    Cost Center A
    DEBIT: +50 Euro
    Is there any possibility to use SAP standard to allocate with consideration of debit/credit sign?
    If not we would create a temporally key figure, calculate the balance and then distribute with allocation. Afterwards we would post the distributed amounts back to the key figure with consideration of debit/credit sign. But this solution seams to be far away from SAP standard.
    Does anyone have any comments?
    Thanks in advance
    Eckhard Lewin

    Not all things get charged to store credit.
    Even if you lost the cards, iTS can see what you redeemed. Contact them and they can dig around to see what's going on.
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • Debit & credit line item clearing in F-53

    Dear All,
    Am in the process of developing payment advice for my client, one of his requirement is while making payment against vendor in F-53, he selecting debit (KG) and credit (KR) line items against the vendor and he paying for the remaining amount. But when am checking the entries in table against clearing document, invoice document does not appears there, but showing debit & credit line items which we cleared. But he wants credit line item to appear in payment advice and in deduction he needs debit line item.
    Kindly suggest me is there any way out for capturing invoice number for these two line items to appear in payment advice.
    Regards,
    Balaji.c

    Hi IMK,
    Am not using SAP std payment advice have developed Y report where the input field is payment document number and against that system will pick the invoice document, for KR & RE, its working fine but for KG where my vendor clearing in F-53 along with KR and for remaining amount he paying to vendor, for this scenario system not showing KG document number against payment document number in table entries.
    My issue how to show cleared debit line item in payment advice after doing F-53.
    Regards,
    Balaji.c

  • What is debit / credit indicator in PO

    Hello all
    Can you please clarify what is the use of debit / credit indicator in Goods receipt, Invoice receipt in case of Purchase Order.
    How debit/credit indicator related to PO.
    Thanks in advance.
    Zak.

    Hello Zakir,
    Debit credit indicator denote a particular funtion in any ERP system. The use of debit and credit depends on centrain accounting principles.
    During GR.
    The system, debits the amount to stock accounts with a + indicator or no indicator which means the amount of inventory is increased which is your current asset.
    And it credits the amount to GR/IR clearing account with a - indicator which means the liability is increased which is your current liability.
    It is a simple formula of two way accounting system. When you buy (Debit) you pay (Credit)
    The same happens while logistics invoice verification.
    Hope I have anwered your question.
    Thanks & regards
    Hameed Parvez

  • TO remove lines from itab where debit = credit

    hi experts,
    pls have look to the following code.
    *& Report  YTEST                                                       *
    REPORT  ytest NO STANDARD PAGE HEADING.
    DATA: BEGIN OF itab OCCURS 0,
          ref(3) type c,      " reference number
          po(10) TYPE C,     " purchase order number
          ic TYPE c,        " debit/credit indicator s= debit h = credit
          amount TYPE p DECIMALS 2, " cuurency
          END OF itab.
    itab-ref = '100'.
    itab-po = '4000'.
    itab-ic = 'S'.
    itab-amount = '200'.
    APPEND itab.
    CLEAR itab.
    itab-ref = '101'.
    itab-po = '4000'.
    itab-ic = 'H'.
    itab-amount = '200'.
    APPEND itab.
    CLEAR itab.
    itab-ref = '102'.
    itab-po = '4000'.
    itab-ic = 'S'.
    itab-amount = '600'.
    APPEND itab.
    CLEAR itab.
    itab-ref = '103'.
    itab-po = '4001'.
    itab-ic = 'S'.
    itab-amount = '300'.
    APPEND itab.
    CLEAR itab.
    itab-ref = '104'.
    itab-po = '4002'.
    itab-ic = 'S'.
    itab-amount = '400.50'.
    APPEND itab.
    CLEAR itab.
    LOOP AT itab.
      WRITE:/3 itab-ref , 10 itab-po , 25 itab-amount LEFT-JUSTIFIED.
      IF ITAB-IC =  'S'.
      WRITE: 37 'DEBIT'.
      ELSE.
      WRITE: 37 'CREDIT'.
    ENDIF.
    ENDLOOP.
    the o/p is as follows
    100   4000  200.00  DEBIT
    101   4000  200.00  CREDIT
    102   4000  600.00  DEBIT
    103   4001  300.00  DEBIT
    104   4002  400.00  DEBIT
    OK now since purchase order no. (po) is debited as well
    as credited by amount 200.00 , the balance becomes 0
    so in the output po: 4000 should not appear when debited and credited so the o/p SHOULD BE:
    102   4000  600.00  DEBIT
    103   4001  300.00  DEBIT
    104   4002  400.00  DEBIT
    WHAT ADDITIONAL LOGIC SHOULD I APPLY TO GET ABOVE O/P
    pls give me lines of code that should be use
    BEST REGARDS
    PANKAJ

    hi madam
    i have used ur logic in my code but with this the
    ref no 100 is not deleted and the o/p is
    100 4000 200.00
    102 4000 600.00
    103 4001 300.00
    104 4002 400.00
    here the code is:
    *& Report  YTEST                                                       *
    REPORT  ytest NO STANDARD PAGE HEADING.
    DATA: BEGIN OF itab OCCURS 0,
          ref(3) type c,      " reference number
          po(10) TYPE C,     " purchase order number
          ic TYPE c,        " debit/credit indicator s= debit h = credit
          amount TYPE p DECIMALS 2, " cuurency
          END OF itab,
          fs_tab like   itab.
    itab-ref = '100'.
    itab-po = '4000'.
    itab-ic = 'S'.
    itab-amount = '200'.
    APPEND itab.
    CLEAR itab.
    itab-ref = '101'.
    itab-po = '4000'.
    itab-ic = 'H'.
    itab-amount = '200'.
    APPEND itab.
    CLEAR itab.
    itab-ref = '102'.
    itab-po = '4000'.
    itab-ic = 'S'.
    itab-amount = '600'.
    APPEND itab.
    CLEAR itab.
    itab-ref = '103'.
    itab-po = '4001'.
    itab-ic = 'S'.
    itab-amount = '300'.
    APPEND itab.
    CLEAR itab.
    itab-ref = '104'.
    itab-po = '4002'.
    itab-ic = 'S'.
    itab-amount = '400.50'.
    APPEND itab.
    CLEAR itab.
    LOOP AT itab.
    IF ITAB-IC = 'S'.
    read table itab into fs_tab with key ic = 'H'.
    if sy-subrc eq 0.
    if fs_tab-amount eq itab-amount.
    delete itab  index sy-tabix.
    endif.
    endif.
    else.
    read table itab into fs_tab with key ic = 'S'.
    if sy-subrc eq 0.
    if fs_tab-amount eq itab-amount.
    delete itab  index sy-tabix.
    endif.
    endif.
    endif.
    endloop.
    loop at itab.
      WRITE:/3 itab-ref , 10 itab-po , 25 itab-amount LEFT-JUSTIFIED.
    IF ITAB-IC =  'S'.
    WRITE: 37 'DEBIT'.
    ELSE.
    WRITE: 37 'CREDIT'.
    *ENDIF.
    ENDLOOP.
    pls tell me where lies the mistake.
    regards
    pankaj

  • Debit/credit indicator in Print document (DBERDL-SHKZG)

    Hi,
    I noticed that if a print document is reversed, the reversal document containts the same amount as the reversed document rather then the original amount * -1. The debit/credit indicator is initial as well.
    Is it normal?
    As I have FI/CO background, I find it strange.
    Thanks!
    Kind regards,
    Mariya

    Hi Mariya,
    You are correct in that the fully reversed Print Document will not have *-1 to the amounts. The header field  Doc Reversed (ERDK-STOKZ) specifies whether the doc is a reversed one or not and all other logic can be based on this and the Reversal Document No (ERDK-INTOPBEL)
    However I have noticed when you have done an adjustment reversal of the Invoice you would then have 3 Billing Docs for an Invoice 1 Old Billing Doc, 1 reversal billing doc (with old billing docs * -1) and 1 new billing doc which is the correct one.
    Hope this helps.

  • Debit/Credit memo

    I am confused whenever i come across the term Debit/credit.... here in MM point of view where we use this Debit memo and credit memo..
    I am new to this pls tell me the following steps how to do that debit/credit memo..

    Hi
    DEBIT MEMO
    The Debit Memo process is used for applying a debit to a customer account once a determination has been made that a customer has been undercharged as a result of a pricing or sales tax rate error. A Debit Memo Request is then created with the amount to be Debited, and placed on a billing block for review. It must then be released to become billing relevant, and appear on the billing due list. Periodic billing process creates a Debit memo to be sent to the customer, and posts an accounting document.
    .CREDIT MEMO
    You post a credit memo if too large an amout has been invoiced ,the total invoice quantity in the p.o history is reduced by the credit memo quantity
    A transaction that reduces Amounts Receivable from a customer is a credit memo. For eg. The customer could return damaged goods. A debit memo is a transaction that reduces Amounts Payable to a vendor because, you send damaged goods back to your vendor.
    Credit memo request is a sales document used in complaints processing to request a credit memo for a customer. If the price calculated for the customer is too high, for example, because the wrong scale prices were used or a discount was forgotten, you can create a credit memo request. The credit memo request is blocked for further processing so that it can be checked. If the request is approved, you can remove the block. The system uses the credit memo request to create a credit memo.
    Thanks

  • Debit/Credit sign settings of item and movement type usage

    Dear BCS Experts,
    According to your experience, where are Debit/Credit sign settings of item and movement type used in BCS? As I know, they can be used during data collection. Any other thoughts?
    Thanks.

    Actually, Barry, I recognised that that was not a doubt regarding BCF. It was (and still is) a doubt about the MoveType sign for that values that are generated automatically during the CoI activities.
    Since the decrease/increase for such activies is defined, there is a question if the sign of these MoveTypes may interfere with the amounts or the side to be placed in (debit or credit).
    Do you have experience in this?

Maybe you are looking for