Hiding Zero amount

Hi,
I m developing ALV using oops. i dont want to display the amount as zero if it is.
Instead of displaying zero i should display as blank.I have achieved this be wa_fcat-inttype = 'N'.
Also, i should show the total amonut. for this i said wa_fcat-do_sum = 'X'.
but as soon as i do sum, it shows me the o/p for amount zero also. my requirenemt is to print blank if the amount is zero and show total as well.
Please help.

Hi
See this
Identification
•     fieldname (field name)
value set: internal output table field name (required parameter)
Name of the internal output table field which is described by this field catalog entry
•     tabname (internal output table)
value set: SPACE, internal output table name
This parameter is used in 'manual' field catalog build-up only for hierarchical-sequential lists.
Name of the internal output table which contains the field FIELDCAT-FIELDNAME.
Data Dictionary reference
•     ref_fieldname (reference field name)
value set: SPACE, Data Dictionary field name
Name of the Data Dictionary field referred to.
This parameter is only used when the internal output table field described by the current field catalog entry has a reference to the Data Dictionary (not a program field), and the field name in the internal output table is different from the name of the field in the Data Dictionary. If the field names are identical, naming the Data Dictionary structure or table in the FIELDCAT-REF_TABNAME parameter is sufficient.
•     ref_tabname (reference table/structure field name)
value set: SPACE, name of a Data Dictionary structure or table
Structure or table name of the referred Data Dictionary field.
This parameter is only used when the internal output table field described by the current field catalog entry has a Data Dictionary reference (not a program field).
<b>Reference to fields with currency/measurement unit</b>
Each internal output table sum or quantity field whose decimal places are to be formatted appropriately for the unit in the list must follow the convention:
•     the field is of data type QUAN or CURR (internal type P) (the field must really have this physical data type. Overwriting the physical data type with the parameter FIELDCAT-DATATYPE has no effect)
•     There is a field in the internal output table which contains the associated unit.
•     There is also an entry in the field catalog for the unit field.
(If the unit is not to appear as a column in the list, and cannot be interactively displayed as a column, e.g. because it is always unambiguous and is therefore explicitly output by the caller in the list header, the field catalog units field entry can take the parameter FIELDCAT-TECH = 'X'.
The association of a value field to a unit affects the output as follows:
•     appropriate decimal places display for the unit
•     <b>an initialized field with a link to a non-initial unit is output as '0' for the unit (if FIELDCAT-NO_ZERO is initial). When this field is summed, this unit affects whether the units are homogeneous.
•     an initialized field with a link to an initial unit is output as SPACE. When this field is summed, the unit SPACE does not affect the homogeneity of the units.
•     When non-initial fields with an initial unit are summed, the unit SPACE is considered to be a unit.</b>
Link to currency unit
•     cfieldname (currency unit field name)
value set: SPACE, output table field name
Only relevant for amount columns with associated unit.
Name of the internal output table field containing the currency unit associated with the amount field FIELDCAT-FIELDNAME. The field in FIELDCAT-CFIELDNAME must have its own field catalog entry.
•     ctabname (internal currency unit field output table)
value set: SPACE, output table field name
only relevant for hierarchical-sequential lists
Name of the internal output table containing the FIELDCAT-CFIELDNAME field.
<b>Reward points for useful Answers</b>
Regards
Anji

Similar Messages

  • AP Invoice zero amount

    Hi all
    Is there any workaround to change a zero AP Invoice from Open to Closed?
    Our Client accidentally changed AP Invoice zero amount invoice from Closed to Open in SBO 8.82 PL7
    However the Cancel function is not available for them.
    Kedalene

    Hi Nagarajan
    Sorry for the trouble, the option to copy to credit note is available,
    but user does not want to try that. Reasons are because:
    1) Creating a A/P Credit Memo will effectively (issue out the stock), not just
    closing the status.
    2) The item was already sold and issued out.
    3) It is a serial numbered item.
    This zero AP Invoice is no longer in outstanding AP Aging or internal BP reconciliation.
    Kedalene

  • Can a credit memo be posted with zero amount?

    Can a credit memo be posted with zero amount? What would it mean, that the goods qty have been posted free of cost?
    Pls reply...
    Thanks,
    Swati.

    yes, It depends upon the procurement...
    I have raised a PO for 100 pieces, But the Vendor will supply only in Dozens..
    That means for 100 pices , we will receive 9 Dozens( 108 pieces)..
    Similarly some times if it's a Fragile material , the Vendor will send more pieces as a buffer..
    If IR Qty > GR Qty , it becomes Qty variance..
    Similarly I received 100 Qty & 5 pieces are Sub-Standard, then I will raise Credit memo for that...
    Edited by: Manohar Raju on Apr 30, 2008 4:58 PM

  • Outgoing payment with Zero amount when Full adance is paid

    I am making A/P down payment request based on purchase order, then I make full payment of PO (full advance payment - no amount of payment left with) through "Outgoing payment" which creates negative amount in Business partner balance and shows a negative entry in "outgoing payment" screen. Moving further, I make Goods receipt PO and then I make A/P invoice of regular amount based on goods receipt PO / Purchase order.
    Up till now, the full payment has been made in advance through A/P down payment request and upon receiving goods the A/P invoice of regular amount is received. Now when I go to "outgoing payments" I have no amount left to pay (i.e. It displays 2 entries of same amount, one with positive amount of A/P invoice and the other one with negative amount of A/P down payment request to show the due balance = zero)  So I am trying to clear the vendor "outgoing payments" by paying with Zero amount, but the system shows the error "The confirmation amount should be greater than Zero".
    How can I clear the vendor "Outgoing payments" with zero amount ?? as it's payment has been made in advance.
    Note: Please give me the solution by keeping in mind that I have to pay full amount in advance.
    Solution to this problem would be highly appreciated.
    Thanks and regards,
    Farhan Sufi

    Hi Farhan Sufi,
                  For Cases where full Advance is paid initially, You Follow these procedure, I have tested in my DB its working fine.
    Step 1: Raise a Purchase order Say Rs 1000/-
    Step 2: Raise a GR(PO) of Rs 1000/-
    Step 3: Go To A/P Down Pmt -
    Select the Vendor -
    Say copy from GR(PO), And select te One you wanted. At the bottom in the DPM Field give 100% and Add the Document.
    Step 4: Raise Out Going Payment by linking to the A/P Down Pmt what you have posted. ie., Go To Out Going Pmt Screen---Select the Vendor, This will display all invoices, Down pmts, Credit Memos, and JE's. Select the A/P Down Pmt what you have posted and go to payment means fill in the respective field and add the document.
    Step 5: Go To A/P Invoice Screen, select the vendor. And  click on Copy from GR(PO), Select the respective GR(PO) document.
    And At the Bottom double click on Total Down Payment Button, This will display the list of all Down Payments for which Out going payments are also posted. Here Select the respective Down payment and add the document.
    When you add this A/P Invoice document gets added and the status of the document will be closed. As you have made full payment in the A/P Down Payment Screen.
    And This Invoice will not appear in the Out Going Screen as the document is closed.
    Cheers,
    Sree.

  • Zero amount in document currency

    Hi,
    I'm looking for if I could fill a zero amount in WRBTR field, in document currency.
    My customer would like to fill a zero amount in GBP currency in company with a local currency in EUR. So he would like to entry a zero amount in document currency and 0.01 EUR in amount in local currency. But when I try to fill the zero amount, SAP change  the amount with 0.01. Thus it's not correct for him.
    May I change the customizing to force SAP and accept my value ?
    Thank for any helps.
    Gilles.

    Hi ,
    You can post by this way. And the postings in f-05 will be in the manner as shown below-
                                      Doc curr(GBP)          Company currency(EUR)
    GL Acct Dr                  00                               0.01             
    GL Acc Cr.                   00                              0.01
    I had already done this in one scenario , where due to wrong exchange rate difference had arisen. Do this with the help of F-05. Please note here that DR here is equal to credit for both currency, what you are doing is overwriting the exchange rate.
    I hope now I have made clear how you need to post the entry in detail. If any query please revert back.
    Thanks
    Milind Sonalkar

  • Post Zero Amount Invoices

    Hi,
    SBO 6.5 and the DI doesn't allow postings of zero amount (doctotal=0) invoices.
    This is an essential missing feature, e.g. give items for free away for marketing purposes, because it effects the stock.
    Is a workaround / fix available to solve this problem available or will this be fixed in the next release?
    Thanks,
    Gerold

    Hi,
    Currently an Invoice of -0- total cannot be entered.
    This feature might entered to version 2005 (6.8)
    In the meantime - the solution is to create a <b>Delivery Note</b> with -0- total which will create a transaction in stock <u>but not</u> in accounting.
    Regards,
    Yaniv G.
    SDK Consultant,
    SAP Manage Israel.

  • Query Trip Data with Zero Amount

    Dear all,
    I have requirement to retrieve every trip record which has zero amount in its total cost. It didn't work when I use TCode S_AHR_PH0_61016401 (General Data Trip) for this query purpose.
    I also took effort to make my own query definition using logical database PTRVP. This custom query used table PTRV_HEAD, PTRV_SHDR, PTRV_SREC. Later, I realized that table PTRV_SHDR, which save data for trip total cost, never store any trip record that has zero amount in its total cost.
    Is there any configuration to make PTRV_SHDR able store the zero-trip?
    I really do appreciate every help here. Thanks a ton!
    Regards,
    Erwin

    Hi Erwin,
    Yes i have tested and then suggested..
    Please note that on my side, system doest NOT display if you simply click on set filter (on Total Cost) and insert 0.00 amount on lower and upper then execute.
    You need to select multple selection button and then place 0.00 in Select Single Value  and then execute..
    Regards,
    Muhammad Umer

  • Percentage calculation and zero amount entries get dvision by zero error

    Hello, i am calculating the total of a field and then reporting the contributions of that line entry in percentage form but when a line has a zero amount i get an error of 'division by zero'.  I'll give some explamples below incase i'm not explaining very well.  If you replace the 225 under amount with 0 that is when i get the error.
    code sample..
    WhilePrintingRecords;
    numbervar n := {@Total Weight}% Sum ({@Total Weight}, {JSALES_REPORT.SOPNUMBE});
    data sample...
    Amount      % of total
    150             40%
    225             60%
    (375)

    Hi Rod.
    I'd recommend using and IF statement to deal with division by zero.  I'm not sure what you exactly want to do with records that have division 0 but I usually do the following to see which records are creating the div by zero errors and then decide how I want the values to be displayed after evaluating it.
    WhilePrintingRecords;
    if {whichever.field} = 0 then 9999999999  // this would be an indicator to me to take a look at this record
    else
    numbervar n := {@Total Weight}% Sum ({@Total Weight}, {JSALES_REPORT.SOPNUMBE}); // your original formula
    You can then change the 99999999 number to whichever number you think should be viable to answer your business question on items that are divided by 0.
    Hope this helps.

  • PO - GR NON VALUATED ZERO AMOUNT

    We have a PO that when replicated at the backend happens to be a NON-VALUATED GR as a result when someone do a confirmation a zero amount was beeing confirmed.
    What field triggers the NON_VALUATED GR?
    Thanks:)

    The goods receipt non valuated is set on account assignment category level in the customizing in the R3 system (search on 'Account assignment category' and choose maintain account assignment category) . Goods receipt non valuated is normally used for account assignment category A -> Assets.
    AS

  • Condition type of zero amount to do MIRO

    Dear Experts,
    If the condition type is zero amount in PO, can it occur in MIRO?  I need to add value of this condition type during MIRO. 
    Please advises.
    Thanks & Best Regards

    hi Tam,
    Yes you can add the value of this condition type during MIRO.
    In MIRO at item level, if you will scroll right you can see one column for Edit own condition type.Here you can change the value or also u can add the new condition type .
    Hope it will help
    Regards,
    Manish

  • Po with zero amounts

    Can we create a PO with zero amounts? We need to track item received
    for vendor performance. Need to create PO receive Items with need
    by date & promise date. Same time match to Zero Invoice if possible.
    Thanks

    Hi
    We have a laundry service brings washed shirts and pants every day.
    If we have a new employee we use the same vendor to order new shirts and pants.
    At this time we need to create a PO for the new clothes. We want to track the promise date and receive date for supplier performance.
    Can we make a PO with zero amount and quantity like 5 shirts and 5 pants and later on receive it? And them match that PO in AP for zero amounts.
    Thanks

  • EDI Credit Memo with Zero amount

    Dear Experts,
    We are using EDI for MIRO Invoice posting. PO is Non-GR Based Invoice. So IR has been automatcally posted first (ex: qty = 4)
    Then GR has been posted also with qty =4.  Then Credit memo was posted with Qty = 1, but we noticed that the posting has zero amount, then Accounting Document has posting to Stock Account and GR/IR Clearing account with amount = to 1 Qty.
    Can anyone explain what happened? I know that Credit Memo posting should have posting to Vendor Account, but this case it didn't happen.
    Thank you in advance.

    Hi.. thanks for your input.
    Yes, I understand that the posting is coming from Vendor, but I am confused, why the posting has zero amount?
    As I understand, credit memo is dealing with the amount of the qty that might be has defect that we have to deduct this amount to Vendor payment. But what happened is, it only posted to Stock Account and GR/IR clearing account, no Vendor Line was created in the FI Doc because in the IR document itself does not have the amount.
    Thank you and your further input will be highly appreciated.

  • F-43 ZERO AMOUNT INVOICE REQUIRED

    hi sap experts
    i need to save invoice zero amount i am using service
    pls help me this issue
    raju
    [email protected]

    I dont think it possible in SAP
    CHANDRA

  • Zero Amount in Gross Amount To Draw

    Dear Experts,
    I have a problem in AR Invoice screen.
    My SAP Version SAP Business One 9.0 (9.02.003) PL: 11  (32-bit)
    My scenario are:
    1. Create AR Invoice attached with AR DP
    2. In Down Payments to Draw, column Gross Amount to Draw always zero even though edited, it always back to zero again after
    Need enlighten about this.
    Thanks for your help.
    Regards,
    Deasy

  • Zero amount posted in 9ke0

    Hi,
    I requested BASIS to authorize me to use T-Code 9ke0. I already posted the profit center, cost element and amount in 9ke0
    but when i click details the amount turn to zero.
    regards
    lui

    Hii!
    I hope I understood your issue correct.
    Unfortunately it is not possible to make the fields Transaction currency
    amount, company code currency amount and profit center currency amount
    available in trx. 9KE0. But you can use the 'old' trx. 1KEL when you
    have more than one currency to post. Please also find attached the note
    372092 which describes the issue more detailed.
    Which layout do you use?
    Best Regards
    Werner

Maybe you are looking for

  • Slingbox Solo no longer working with new Airport Express router

    Help! I'm at the end of my tether trying to get my Slingbox to communicate with the new Airport Express I've just bought. Here's the deal...Obviously, as AEXP only has one Ethernet Port (under advisement) I had to go and buy a 5 port Ethernet switch.

  • Re. TV connection below.

    Able to connect TV to my DV7 laptop running Vista with no problem!

  • Problem while connecting to Oracle 9i server from Oracle8.1 client

    Hi experts, Could you please help in resolving the issue we are facing. We are trying to connect from Oracle 8.1 client to Oracle 9.2 server and its giving error .This is on Linux environ ment. FYI - we are getting errors when we changed the client a

  • How to make sorting in hash table efficient

    Hi guys, I am relatively new to collections. I have a HashTable which has 100000 records in it, when I sort it, it takes a lot of time to get it done. As the Hashtable methods are synchronised so even I can't use threads to perform this quickely for

  • WM status in delivery

    Hi experts, I have a query regarding WM status of the delivery item, we are creating delivery with reference to project, material is warehouse managed material WM1 and WM2 views are maintained Material has stock in the storage bin which is maintained