What is line item display? Explain in detail.

what is line item display? Explain in detail.

hi rama,
            there are two type of data in database table.
header data: means data will be unique, there will be single row for key fields.
like bkpf , vbak, kna1 etc these have the unique data.
and second one is line item data.
LINE ITEM DATA: That have the multiple entries regarding key fields.
like bseg, vbap etc .
when you go for coding first you take the header data from header table because that are unique then on the reference of that unique data we pick up line item data from item table by joining those two table.
for ex bkpf have unique documnet no belnr so on the basis of belnr we picked the line item data from bseg.
jus take the refrence of below code that have the header and line item data from bkpf and bseg respectively.
*& Report  ZVIJ_TEST1
REPORT  ZVIJ_TEST1 NO STANDARD PAGE HEADING LINE-SIZE 105 LINE-COUNT 36(3).
TABLES: BKPF,BSEG.
DATA: BEGIN OF T_BKPF OCCURS 0,
      BUKRS LIKE BKPF-BUKRS,
      BELNR LIKE BKPF-BELNR,
      GJAHR LIKE BKPF-GJAHR,
      BLART LIKE BKPF-BLART,
      TCODE LIKE BKPF-TCODE,
    END OF T_BKPF.
DATA: BEGIN OF T_BSEG OCCURS 0,
      BUKRS LIKE BSEG-BUKRS,
      BELNR LIKE BSEG-BELNR,
      GJAHR LIKE BSEG-GJAHR,
      BSCHL LIKE BSEG-BSCHL,
   END OF T_BSEG.
DATA: BEGIN OF T_FINAL OCCURS 0,
      BUKRS LIKE BSEG-BUKRS,
      BELNR LIKE BSEG-BELNR,
      GJAHR LIKE BSEG-GJAHR,
      BLART LIKE BKPF-BLART,
      TCODE LIKE BKPF-TCODE,
      BSCHL LIKE BSEG-BSCHL,
    END OF T_FINAL.
DATA: COUNT LIKE SY-TABIX.
SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH frame title TEXT-001.
SELECTION-SCREEN: SKIP 1.
SELECT-OPTIONS: BELNR FOR BKPF-BELNR.
PARAMETERS: FISC_YR LIKE BKPF-GJAHR,
            CHK AS CHECKBOX.
SELECTION-SCREEN: END OF BLOCK B1.
START-OF-SELECTION.
PERFORM READ.
END-OF-SELECTION.
PERFORM DISPLAY.
WRITE:/5 'Page No :',14 SY-PAGNO,60 'No of Records :',76(6) COUNT.
TOP-OF-PAGE.
WRITE:/35 'Report for SET INDIA' COLOR 6.
FORMAT COLOR 1 ON.
WRITE:/5 'Date:',11 SY-DATUM,50 'Created By:',65 SY-UNAME.
WRITE:/2 'COMPANY CODE',15 'DOCUMENT NO', 35 'FISCAL YEAR',
50 'DOC TYPE',65 'TCODE', 75 'BSCHL'.
FORMAT COLOR OFF.
WRITE:/2(80) SY-ULINE.
END-OF-PAGE.
WRITE:/5 'Page No :',14 SY-PAGNO,60 'No of Records :',76(6) SY-TABIX.
*&      Form  DISPLAY
      text
-->  p1        text
<--  p2        text
FORM DISPLAY .
FORMAT COLOR 5 ON.
COUNT = 0.
LOOP AT T_FINAL.
WRITE:/2 T_FINAL-BUKRS,14 SY-VLINE,15 T_FINAL-BELNR,34 SY-VLINE,35 T_FINAL-GJAHR,
49 SY-VLINE, 50 T_FINAL-BLART,64 SY-VLINE,65 T_FINAL-TCODE,74 SY-VLINE,
75 T_FINAL-BSCHL.
COUNT = COUNT + 1.
ENDLOOP.
FORMAT COLOR OFF.
ENDFORM.                    " DISPLAY
*&      Form  READ
      text
-->  p1        text
<--  p2        text
FORM READ .
SELECT BUKRS BELNR GJAHR BLART TCODE FROM BKPF INTO CORRESPONDING FIELDS OF
TABLE T_BKPF WHERE
GJAHR = FISC_YR AND
BELNR IN BELNR.
SELECT BUKRS BELNR GJAHR BSCHL FROM BSEG INTO CORRESPONDING FIELDS OF TABLE
T_BSEG FOR ALL ENTRIES IN T_BKPF
WHERE BUKRS = T_BKPF-BUKRS AND
      BELNR = T_BKPF-BELNR AND
      GJAHR = T_BKPF-GJAHR.
SORT T_BKPF BY BELNR.
SORT T_BSEG BY BELNR.
LOOP AT T_BSEG.
T_FINAL-BUKRS = T_BSEG-BUKRS.
T_FINAL-BELNR = T_BSEG-BELNR.
  T_FINAL-GJAHR = T_BSEG-GJAHR.
  T_FINAL-BSCHL = T_BSEG-BSCHL.
  READ TABLE T_BKPF WITH KEY BUKRS = T_BSEG-BUKRS
  BELNR = T_BSEG-BELNR.
T_FINAL-BLART = T_BKPF-BLART.
T_FINAL-TCODE = T_BKPF-TCODE.
APPEND T_FINAL.
CLEAR T_FINAL.
ENDLOOP.
ENDFORM.                    " READ
regards
vijay dwivedi
rewards if usefull to you*

Similar Messages

  • GL & Vendor Line Item Display

    Dear Forum,
    The users want to display the Vendor Codes in the GL Line Item Display to reflect the corresponding vendor related to the expense in the GL line item and also want the GL Code to be displayed in the Vendor Line Item to reflect the nature of expense incurred thru that vendor. Are there any standard reports that could provide the details in this manner. Oherwsie how could we change the layout of the GL and Vendor line item Reports.
    Thanks for the help.
    Regards,
    Moderator: Please, search SDN before posting. This question has been answered 2-3 times only last week, not speaking about more recent period (as already mentioned by our SAP colleague)

    HEllo,
    In flb3n you can  do this by using the offsetting account logic which is explained in details in the SAP Note 112312.
    This way you can see vendor/customer information in the Line items report for GL ACcounts.    
    This issue has been discussed several times before. If you search the forum you'll see the replies.
    REgards,
    REnan

  • Display Username on G/L account line item display of T-code FAGLB03

    Hi Experts:
    Now I have a issue,we want to display the header level username (BKPF-USNAM) on the list of G/L account line item display.What I want to ask is if there is another report existed in which contain this field? Or only change the standard code of SAP?

    Hi,
    In case you wish to see the User name details in the report,
    go to the Report go to the Menu options - Settings Tab - select special fields and add the field name BKPF-USNAM as a special field and save it. This is a cross client settings so it gwill generate a transport request. Save it and then execute the report. You will get the desired result of displaying the user name for the report.
    hope this helps
    regards,
    radhika

  • Line Item Display Variant MIRO-column position needs to be changed..

    Hi,
    What is the possible way of setting the column position in line item display variant in MIRO screen.
    I need to change the positions of couple of columns so need to have  one layout as per my requirement.
    Does this involve only confiuration or it also needs ABAP changes?
    Request to suggest in detail if any one has done it already.
    Thanks in advance.
    Reagrds,
    BM

    Hi Charlie,
    Thanks for this help.However I have couple of doubts.
    When I save the new variant it asks me for package or local object.
    Cutrrently I have selected n saved as local object but what is the real time scenarion.Do we need to select any package on this screen.I am not aware of these things in detail so nwant to know the difference between a local object and a package and is it functional consultant's task to do this or developers should do this since they can select the package
    Please advise on this.
    Thanks in advance.
    Regards,
    BM

  • GL line item display FAGLL03 Offsetting Account Blank

    Dear All,
    In T-code FAGLL03 GL line item display offsetting account is coming Blank, how to get the offesetting account in GL line item display, what is the offsetting account
    Regards
    KSP

    Hi,
    It is diffcult to get offsetting account details in standared reports. by using BTE you can able to achive.
    Read: OSS Note 112312
    Refer: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30b96fed-eb5d-2e10-1792-f3ff9f65df8a?QuickLink=index&overridelayout=true
    what is Offsetting A/C:?
    Ex: Administration Exp a/c dr (GL:5000000002)
           Bank A/C (GL:100000004)
    If user execute Admin Exp GL(5000000002)  report, he will expect another line GL account (GL:100000004).
    Regards
    Viswa

  • FAGLL03 - Line item display in ECC 6.0

    Hi
    We are on ECC 6.0.  When i execute the report FAGLL03 for Line item display and double click on a line, system pops up a window with Line item details rather than actually taking me to Document display for that Line item
    What settings do i need to do so as to drilldown to a document directly from a line item
    Thanks in advance
    Shiv

    Thanks a lot Srikanth.  This works for FAGLL03. What if i want to execute FAGLB03, then go to Line items by double clicking balance and then want to view document
    Thanks in advance
    Shiv

  • PO no not reflecting in GL/ Vendor line item display

    Hi Guys,
    Please let me know that why PO no (column is displaying but) data not reflecting in GL/ Vendor line item display using TCode FS10N? What may the possible reasons and how I can get the data flow in the column?

    Hi Amit,
    You are right and I've changed the layout. I've already said that the field displaying there but data is not flowing in the field. I mean to say that PO no is not reflecting in the specified field. However I am able to get the PO no. in  Assignment field. What may be the reason and how I get the data (PO no.) in this field?

  • Vendor line item display with internal order

    In Vendor line item display is it possibe to see details of the line item of offsetting account .
    For example a expense account is debited & vendor account is credited .At the time expense account debit a internal order has been assigned in line item.
    User wants to see the vendor line item display ( T code FBL1N) with details of internal order appearing in open  line items display  etc .
    Is this possible .I created a layout with order as a field but order does not show any values in the line display of vendor.
    Please revert back if this can be possibe.
    Thanks
    Manoj

    with a combination of notes
    112312 - Line item - Display of offsetting ac information
    373268 - Line item - new display field
    569939 - Line item - Open FI - Absolute amounts
    1034354 - FAGLL03 - Display of offsetting account information
    you should be able to get it there.

  • 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 . . .

  • GL Account Line Item Display

    Hi,
    While creating a GL Account Master, 'Line Item Display' was accidently not activated, under the Control Data Tab. This was subsequently done by editing the GL Masters after postings had already been made for about two months. Thus for the period, Line Item Management was not activated, the report generated thru FAGLL03 does not give the detailed line items.
    Could any one pleaase advise the T Codes to run the program for the conversion of the table such that the line items are displayed also for the period prior to the activation of Line Item Management.
    Thanks in advance.

    Hi follow the below transactions,
    select teh line item dispaly & save the gl account
    1.First you block the gl account for posting
    2.Go to SE38 &execute the program  RFSEPA01.
    system will shoe the line items which are posted without lineitem nmanagemnt.
    then unblock the gl account.
    chandra
    Edited by: Chandra Sekhar Reddy.Botla on Jan 3, 2008 1:17 PM

  • General Ledger - Open Item Mgt/Line Item Display

    Hello Experts,
    GL Account was created with no tick in open item mgt and line item display.  Business users posted few entries and now realised that the accunt type should be open item manageable and display should be at line item level.  Going through the SDN forums, few experts suggested the workaround  as follows:
    1. Block for posting GL master
    2. Make it zero balance in the account(clear existing trans)
    3. Run program(SE38) RFSEPA01
    4. Check Open Item Check box/Line Item Display
    5. Unblock the GL master
    6. Continue posting as normal.
    However the above solution was recommended for 4.7 or earlier versions and for ECC 6, the recommendation was to open a totally new GL master with correct attributes and block the old GL master. 
    My client is running ECC 6.2 but requires this corrected asap and I wonder if anyone can suggest a better solution than creating a totally new GL master.
    Appreciate quick resolution/advice.
    Thanks
    Mohammed.

    Hi,
    Please refer to Sapnote_0001356457_activate OIM, and it mentions in complete details how to handle OIM activation when documents are posted to it.
    Regards,
    SAPFICO

  • SAP-G/L- Line item display

    No line item display possible for account 7800100 8305
    Message no. F4 430
    Diagnosis
    You have determined that displaying line items is not to be possible for G/L account 7800100 in company code 8305.
    Procedure
    It is presumably a clearing account (incoming check account, GR/IR clearing account) which has its own reports for analysis.
    Please how can I evaluate this account?
    What are the steps to activate the line items display?

    Hi,
    If you are in ECC5, then even though you haven't selected the Line item Display, in FAGLL03 report, you can find the line item display.
    If you are below ECC 5, then the previous solution should suffice.
    Pl check the screen shot for ECC 5 onwards release:

  • Segment Clearing A/c (GL account)-Line item display

    In our case new GL is active with segment clearing scenario.  The Segment Clearing A/c (GL) is maintained as line item display and open item.  However, when we view it from FS10n, period-wise balance is there but when we click on, no line item drill down is not displayed.  What is the solution to get line item display ?

    Hi,
    When you create Segment clearing account, line item display should not be ticked in FS00, only then you will be able to see the line item display.
    There is a standard SAP not also on this issue. I dont remember the note but you can find it in service.sap.
    You also do not need to keep it open item managed.
    Regards,
    SAPFICO

  • Line item display in FS10n

    During our configuration days, we have set the Line Item Display indicator in all our GL accounts (ex, Sales account). Details of our SALES transactions in FS10n are posted by document, per material per profit center (same material and profit center, still displayed per line item) thus creating a large number of line items.  We want it to be posted in FS10n by document number but still per material but summarized by profit center (total of material per profit center), to reduce the number of line item display in FS10n. How can we change it? Do we need to configure it? Please guide me.
    Thanks a lot and more power!!
    kay

    Hi dear... the following links may guid u ...
    http://help.sap.com/saphelp_47x200/helpdata/en/fa/9fbcf9416811d182b10000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/2c/276be1456a11d189440000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/96/8b457343ce11d189ee0000e81ddfac/frameset.htm
    Assigne points if useful
    Thank u - Dasharathi

  • 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!

Maybe you are looking for

  • My cisco vpn no longer works with Lion

    After installing Lion, my cisco vpn no longer works. If I force boot in 32 bit mode it works fine, so appears to be a cisco client issue. Does anyone know if CISCO is working on  64bit client compatible with Lion?

  • Sorting table in a jsp

    Hello All, I want to sort a result set by column name...I'm using MVC pattern ....so I have an if clause to decide the sorting order as: <c:if test="${sort == asc}"> Student </c:if> <c:if test="${sort == desc}"> Student </c:if> I'm using a method in

  • Report Security

    Hi Expert I was wondering whether in ByDesign you are able to restrict the data generated within a report. For example I have two line managers who are responsible for their own business unit which is reflected in the organization structure. When the

  • Functions Call manager express

    Hi, I have a contact center express with standard licenses and over call manager express. Can i can change the calls flow via web like in Call manager express CUE or is only for premium licenses? Do you know any link where i can find it? Thanks

  • Error when accessing service fcom_ip_proj_overall01

    Hi all, When executing a search in Overall Planning using NWBC a 500 SAP Internal Server Error is returned "termination: RABAX_STATE". The error from the dev_icf log file is below and a screen shot of the dump in ST22 is attached. I have attempted to