Line item display problem from table

Hi experts......
I am strucked up in my report  with a problem ,
document no.(BELNR)  for corresponding bkpf has four line item  in BSEG table,
BUZEI                      GJAHR  BUZEI   KOART  DMBTR           HKONT                                            
9000000078     2006     1     S    200,600.00        0000500100     
9000000078     2006     2     S    24,072.00          0000301500     
9000000078     2006     3     S    481.00               0000300450     
9000000078     2006     4     D    225,153.00        0000209800     
My requiremet is that
========================
when it goes inside the loop
i want to display the belnr where Hkont  = '000500100'
and koart = 'D', that will be 001 line item (buzei) and  0004 Buzei in this case.
ie my output should be like
============================
GROSS        NET
200,600.00  225,153.00
If i specify  and hkont = '000500100'and koart = 'D'. its not getting inside the select itself
if i select without the where condition and hkont = '000500100'and koart = 'D' its going inside...
Can you please help me out....
My codings
elect bukrs belnr  gjahr xref1 xref2  kunnr  buzei dmbtr hkont koart from bseg into corresponding fields of table it_bseg
                                          for all entries in it_bkpf
                                           where  bukrs = it_bkpf-bukrs
                                                  and belnr = it_bkpf-belnr
                                                  and gjahr = it_bkpf-gjahr
                                                  and hkont = '000500100'
                                                  and koart = 'D'.
loop at it_bseg into wa_bseg .
   wa_final-kunnr = wa_bseg-kunnr.
   wa_final-xref1 = wa_bseg-xref1.
   wa_final-xref2 = wa_bseg-xref2.
    wa_final-DMbtr = wa_bseg-dmbtr.

hi ...
thanx a lot fo your reply,....
thats wat i thought and was trying to do so.....
and modified...can you please look in to the code....
but wa_final-gross = wa_amount-dmbtr.
     wa_final-net = wa_amount-dmbtr.
value is not getting populated ....i dont know the reason
IF it_bseg[] is not initial.
select  bukrs belnr gjahr dmbtr from bseg into corresponding fields of table it_amount
                                for all entries in it_bseg
                                 where bukrs = it_bseg-bukrs
                                 and belnr = it_bseg-belnr.
endif.
if it_amount[] is not initial.
select  kunnr  name1 LOCCO from kna1 into corresponding fields of table it_kna1
                                      for all entries in it_bseg
                                        where  kunnr = it_bseg-kunnr and
                                               locco = pr_locco.
endif.
sort it_bseg by belnr.
loop at it_bseg into wa_bseg .
   wa_final-kunnr = wa_bseg-kunnr.
   wa_final-xref1 = wa_bseg-xref1.
   wa_final-xref2 = wa_bseg-xref2.
read table it_amount into wa_amount  with key belnr = bseg-belnr.
if sy-subrc = 0.
if wa_bseg-hkont = '000500100'.
wa_final-gross = wa_amount-dmbtr.
endif.
if wa_bseg-koart = 'D'.
wa_final-net = wa_amount-dmbtr.
Endif.
at end of belnr.
Endat.
Endif.

Similar Messages

  • S_ALR_87012993 Line items displaying problem

    Hi everyone,
    launching the report S_ALR_87012993 - Orders: Actual/Plan/Variance from period 4 to period 4 2007 I find a trouble on displaying line items of the order: the balance of internal order is corrected, in fact it's the balance of April, but when I enter in the order, the line items displayed have registration date in the year 2006, so that the line items amount is different from the one I expect.
    Using the same user on another personal computer the problem doesn't occur.
    Can anyone help me to detect the cause of the problem and to solve it?
    Thank you so much,
    Jesse

    Hi,
    The IP address is not relevant to the user.In a network,the user can log on with any system.Rather it is relevant to the Network and the system within this network.Thus every pc will have its own peculiar IP address.It is possible to place restrictions based on the IP address.
    GUI is about interface;to my knowledge,GUI has no role in this context.It is possible,you have authorization restrictions here.
    I suggest you to take the help of the technical guys in solving the problem.
    Regards,
    Ramesh.

  • Line item display problem FS10n

    Dear expert ,
    after run program RFSEPA01 to activate line item display in account xxxx. The display is FS10N  for 2011 is document in year 1997-1998.it should be line item balance for 2011.
    How to correct this problem?
    Kindly your advice.
    Thank you

    Hi,
    I would like to display line item display for cumulative balance  in FS10N.
    How to get cumulative balance line item in FBL3N?
    This is error after run program RFSEPA01
    Kindly advioce
    Thanks

  • PO line item displaying incorrectly from contract

    I have an issue with a line item on a purchase order that is pulled from a contract.  On the contract the item is priced at $75.50 USD and the price unit is PER 100 EA.
    When this line item transfers to the PO it shows a price of 76 cents, but it calculates at a rate of .755.  The line item total is $3.02 for a quantity of 4 (.755 X 4) , but give the fact that the line shows .76 there is a disconnect on the total.  The client expects to see $3.04 (.76 X 4).
    I have noticed is there is no rounding issue for items that have a price unit of PER 1 EA.
    I am not sure if this is an issue with the price condition load for the contact or another issue.  Has anybody experience as situation similar to this, or have any suggestions? 
    Any help would be greatly appreciated.
    Regards,
    Bill Davis

    Thanks Yann,
    This note fixed the issue.  Sorry for taking so long to reply.  I had to get the note extended for SRM 5.0 and that took a little time.
    Regards,
    Bill

  • T.code required for Vendor line item display and Customer line item display

    Hi Gurus,
    Pl provide me transaction code for "Vendor line item display and " Customer line item display apart from FBL1n for vendor and FBL5n for customers.
    Kindly advise.
    Regards,
    Samar

    Hi,
    You could use these, for example:
    S_ALR_87012103 - List of Vendor Line Items
    S_ALR_87012197 - List of Customer Line Items
    Just curious: what's wrong with FBL1(5)N?
    Regards,
    Eli

  • Problem with cents:"G/L Account Bal. Display (FS10N)  vs. Line Item Display

    Dear colleagues,
    We have used BSIS table within a batch input program using standard transactions such as F-02 and OASV, in order to leave several "old" G/L accounts completely up to zero, and therefore transferring their complete amount to "new" G/L accounts.
    What we see in several "old" accounts after doing the transfer is that system still displays me 1, 2 or 3 cents in transaction FS10N......but if I double click for its G/L account line item display, system correctly tells me that the old g/l account is completely balanced. Logically, for I have checked in BSIS table through program which is the necessary amount to balance the old g/l account.
    So we can say there is a lack of coordination between what I see in the first screen of FS10N and the Line Item display screen of the g/l account. No doubt, old account is completely balanced and well transferred to new g/l account (checked in BSIS table), but FS10N still reports few cents.........isn´t it somehow mischievous?
    Does anyone know how to clean those cents (which actually are virtual cents)? Is there any sap note reporting this bug and providing the solution?
    Thank you so much for your kind attention on reading my post and best regards.
    F. Albisu

    Dear Neeraj,
    Yes you are right, there a lots of notes related to this issue.
    I have found note 595776 which I think best fit with my problem. Would you hindly read it and confirm to me, from your point of view, I am in the correct track?
    (Of course, the system I am talking to you abput, proceeded to the Euro Conversion in 2002)
    Thanks!

  • Problem with Line Item display of G/L account

    Hi,
    I am struggling with a typical problem that I have two company codes in two different countries.  I have created a tax account with Open Item management and Line Item display in both the company codes.
    When I am trying to post vendor invoices, taxes are being posted on line item wise in one company code but not doing so in other company code eventhough the attributes of the G/L account are same.
    G/L accounts, tax condition types and account keys are same in both the cases.
    Can any body give me an idea to fix the problem.
    thanks in advance,
    Mallik

    HI,
    check the condition types you've defined for the both of the countries
    sprofin accting-f/a gl sett-tax on sales/pur -basic settings-check cal procd--define cond types
    there is a check box named item condition see whether it is ticked for the another company's condn type.
    because due to this only it takes the condn item wise.
    reward pts if it helps.
    Regards

  • Vendor Line Item display/ and Purchase order Field

    FI Experts
    We recently implemented the MM PO module in SAP, we are creating PO's automatically in SAp from a 3 party system. We are using field "Our Field" EKKO-UNSEZ to enter a reference from the 3rd party system. Our account payable have requested that they need this field to display in FBL1N "Vendor Line Item Display". I tried by using special fields but table is not available. Anyone has any suggestions? I know I can use BSEG and EKKO but it is too big of a table to use. Does this requires more of an ABAP report rather than just a simple QUERY report?
    Your suggestions are appreciated.

    Hi,
    PO Nr. doesn't appear in Vendor line item, but yes, in GRIR account.
    So when are you performing MIRO, you may use XREF3 field, which usually remains blank, through user exit (OBBH) for populating PO Nr. But yes, if you are processing MIRO of multiple POs, you may not be able to set multiple values.
    BR

  • RSBBS Jump: AR Line Item Query to R3 Customer Line Item Display

    I am attempting to create a 'Jump Target' from the 0FIAR_C03 AR Line Item Infocube to the R3 FBL5N Customer Line Item Display transaction.
    The query that the jump is to be performed from an Aging query.
    The user will be running this query for all transactions posted up to and including the end of the previous calendar month. The posting date is provided by the user when submitting the query (via variable 0P_KEYD2). The aging report works just fine.
    Where I'm having the problem is when the user wishes to jump to the R3 transaction FBL5N to display the Customer Line Items. The user wants the 'Line Item Selection' in R3 to inlcude 'Open Items' (this button should be selected -- it is the default setting) where 'Open at Key Date' is to be derived from the query result in the Excel workbook.
    I have created the RSBBS Sender/Receiver Assignment so that it goes and retrieves the line items from R3 for the correct customer. However, I have not been able to figure out how to populate the 'Open at Key Date' with the end Posting Date (OPSTNG_DATE) from the query.
    I've tried every combination I can imagine in the 'Assignment Details' section in RSBBS, but so far I have not been able to make it work.
    Has anyone else out there tried this?
    If you have, were you able to populate the 'Open at Key Date' (ALLGSTID) field in the R3 FBL5N transaction? If you were able to do this, how did you do it?
    All ideas appreciated . . .

    I'm still hoping that someone can help with this issue.
    Here's a repeat of the original question:
    I am attempting to create a 'Jump Target' from the 0FIAR_C03 AR Line Item Infocube to the R3 FBL5N Customer Line Item Display transaction.
    The query that the jump is to be performed from an Aging query.
    The user will be running this query for all transactions posted up to and including the end of the previous calendar month. The posting date is provided by the user when submitting the query (via variable 0P_KEYD2). The aging report works just fine.
    Where I'm having the problem is when the user wishes to jump to the R3 transaction FBL5N to display the Customer Line Items. The user wants the 'Line Item Selection' in R3 to inlcude 'Open Items' (this button should be selected -- it is the default setting) where 'Open at Key Date' is to be derived from the query result in the Excel workbook.
    I have created the RSBBS Sender/Receiver Assignment so that it goes and retrieves the line items from R3 for the correct customer. However, I have not been able to figure out how to populate the 'Open at Key Date' with the end Posting Date (OPSTNG_DATE) from the query.
    I've tried every combination I can imagine in the 'Assignment Details' section in RSBBS, but so far I have not been able to make it work.
    Has anyone else out there tried this?
    If you have, were you able to populate the 'Open at Key Date' (ALLGSTID) field in the R3 FBL5N transaction? If you were able to do this, how did you do it?
    All ideas appreciated . . .

  • Difference in GL Balance display and GL line item display

    Dear All,
    Can any one help me why the difference between GL display and GL line items display?
    Thanks in advance
    regards
    Elan

    Hi,
    You can do the following:
    1. carryout gl balance carryforward from previous to current year : Use t.code:F.16
             You can cross check the fs10n balance with FBL3N balance from previous years.  Assume these balance are matching for previous year 2007 and 2008, you have this problem only in 2009, then you can carryforward this balance from 2008 to 2009 once again. Some times users may post some adjustment entries as per the auditors recommendations. If this balance is not matching from 2007 itself, then first carryforward the balances to 2008 then 2009.  You can run this transaction no of times.
    2. check the master data of gl account through t.code:FS04, whether any changes has been done to line item display field?
               If you find any changes to line item display field then run the program "RFSEPA01" to get all the line items.
    3.If your issue was not resolved even after the above two activities, then let me know the  sap version you r working.
    all the best
    Prasad

  • Line items missing in RFC table when they are more than one!!!

    Hi All,
    I am doing a scenario where i map a proxy from SCM to a RFC in R/3.
    The problem i am facing is my proxy has more than 1 line item for a purchase order but in R/3 the RFC table contains only the first line item.
    Is there any special mapping that i need to do to capture multiple line items in a PO.
    Regards,
    Jayaram.M

    Hi,
    When you do the mapping, test it with the payload and see whether you are able to generate multiple line items in the target.
    Next check how you are passing it to the RFC, whether as a single line item or as a table.
    If in the mapping you were not able to see the multiple line items, check your context changes accordingly.
    Accordingly you can check.
    Regards
    Krish

  • Switch List Menu in G/L & Vendor Line Item Display

    Hi Dear All Experts,
    I've 2 problems.
    The first one is in the Vendor line item display program.
    copied RFITEMAP and create custom program and then I create new structure (like FAGLPOSX) to show extra fields. (eg. Vendor, User)
    New extra fields are shown when i execute but if I click switch menu from the setting menu, it is shown by the old fields not including new fields.
    The second one is in the GL Line Item display program.
    Even the Switch List menu is enable in the Vendor Line Item display custom program without changing anything for gui status, the switch list menu in my new custom program is disable.(copied from fagl_account_items_gl).
    Thks all in advance..
    TRA

    the second question is now solved.
    Include ZFAGL_ACCOUNT_ITEMS_DEF (C_REPID_GL     LIKE SY-REPID  VALUE  'FAGL_ACCOUNT_ITEMS_GL') I put custom program name in this field.
    When I changed to std program name, the switch list menu is enable..
    Only the first question is left..
    Please let me know is there any way to solve...
    Best Regards
    TRA

  • Customer balance confirmation does not equal to customer line item display

    Hi All
    When I run F.17 transaction (program SAPF130D) the totals don't equal to "customer line item display" program (FBL5N) totals.
    When I run it for a specific customer and company code, I can see that some items from the customer line item display are missing. These are regular items (invoices) like other documents that appear in the balance confirmation.
    The selection parameters are the same and the date is equal - I run the report as of today.
    Can anyone advice please?
    Thanks
    Ofer

    Hi
    The problem was because of a customer hierarchy issue. Some of the invoices were issued to different sold to but with the same payer.
    It can be displayed also in the balance confirmation. I just need to mark the two check boxes:
    "Head offices and branches" and "check alternative head offices". Excellent.
    Now I have another problem, that in this case, this issue is mentioned in the output: "Dear customer, in this balance confirmation we added the next branches...etc."
    Can this remark be eliminated from the output?
    Thanks
    Ofer

  • You are not authorized to call up line item display (FB03)

    Hi,
    actually; I am facing a problem; one user is getting error message "You are not authorized to call up line item display" when he is trying to view the payment usage of document no in FB03 transaction code.
    I have checked and found that user is already having display access for the company code which he is putting under company code field.
    Also as per the SU53 screen shot; it is showing
    Authorization check failed for S_CTS_ADMI
    Field - CTS_ADMFCT
    for -  TABL
    I have not run the trace yet..
    Kindly advice on what could be the problem and solution for that...
    Many thanks in advance for your help.
    Regards,
    Anuj

    > Also as per the SU53 screen shot; it is showing
    >
    > Authorization check failed for S_CTS_ADMI
    > Field - CTS_ADMFCT
    > for -  TABL
    Total Questions:      8 (6 unresolved)
    Good match! 

  • Populate Assignment Field in G/L line item display (FS10N/FBL3N)

    Hi All,
    I am using FS10N to see G/L Account Line Item Display.
    I am seeing the Report Display with Coloumns like Doc.No., Type,Doc.Date,Amount in Local Currency etc etc
    There is coloumn showing Assignment.The entries are not getting populated/displayed under the same coloumn of Assignment
    When I go to Change Layout I see th Assignment field but the nothing is getting dislayed under the Assignment coloumn when I run FS10N/FBL3N.
    How do I solve the above problem?
    Thanks
    Vivek
    Edited by: VIVEK KAPOOR on Dec 11, 2009 4:11 PM

    Hi ,
    Actually when i do FS10N or FBL3N to see G/L Account Line Item Display i am able to see the display of the G/L Account but there is a coloumn under Assignment and it  shows no entries i.e. Assignment coloumn is blank.What should i do so that i get entries for assignment field because there are entries made in Assignment field.Table is BSEG and the field is ZUONR.How do i get these entries in the G/L Account Line item display for G/L Account using FS10N ?
    Thanks
    Vivek

Maybe you are looking for

  • Refresh the WebI report getting the Error

    Hi Friends, I have installed the BO4.0 sp2.Previously I created reports and refresh the reports are fine.few days back i am getting error once refresh the report. the error is: Caused by: com.businessobjects.sdk.core.server.ServerException: The datab

  • Z10 charging issue

    My Z10 only charges till 33% and no further. It's a fairly new device. I've upgraded software and rebooted. How do I fix it?

  • Help Enabling 802.11b Support

    Can anyone help? All I want to do is enable 802.11b support on my Cisco 877W. My 802.11g clients can see and attach to it no problems. My 802.11b clients cannot see it at all. I have tried all sorts but nothing has helped. My config looks like this:

  • No 2 way connection between printer and computer HELP HELP going nuts!!!

    On the hp website in downloads for hp officejet 6500 series for windows 7 is "additional information' for installing that particular printer for that windows 7, now under  "printer setup not complete" it says how to bypass the problem I have though t

  • Mount protocol

    in solaris environment how do we get the file handle given the path. this question is related to my work on NFS. i know one function nfs_getfh(), but only the superuser can call that function. so are there any alternatives.