Customer number in GL line items

Hello All,
I have loaded the GL line items data and created a report on customers. i am getting the report like this.
Doc no--Item NoCustomer NoAccount typequantity--
balance
400001--13001D #--
4000
400001--2#S80--
(-3000)
400001--3#S20--
(-1000)
400002--12001D#--
5000
400002--2#S600--
(-5000)
instead of the above format my user wants to see the report like below. that customer number should also display for line items.
Doc no--Item NoCustomer NoAccount typequantity--
balance
400001--13001D #--
4000
400001--23001S80--
(-3000)
400001--33001S20--
(-1000)
400002--12001D#--
5000
400002--22001S600--
(-5000)
waiting for the reply.
Thanks,
Sneha

hi,
here is the code.
    data: i_wa_source like line of SOURCE_PACKAGE,
              i_wa_source1 like line of source1,
               l_tabix like sy-tabix.
source1[]
= SOURCE_PACKAGE[].                                  "put it in one line
data: source1 like SOURCE_PACKAGE.
sort source1 with cust no descending.
loop at SOURCE_PACKAGE into i_wa_source where Customer No = ' '.
      l_tabix = sy-tabix.
read table source1[] into i_wa_source1 with key Doc no = i_wa_source-doc no.
if sy-subrc = 0.
i_wa_source-cust no = i_wa_source1- cust no.
  modify SOURCE_PACKAGE from i_wa_source index l_tabix.
endif.
    endloop.
you will need to add the filedname of the cust njo and the Doc no where evere i have used them in the above code.
you can also take the help of an abaper for the above code.
hope this helps.
regards,
Mahesh
Edited by: Mony Maheshsingh on Feb 16, 2010 11:03 AM

Similar Messages

  • How to Count Number of completed line items in past 6 months / 12 months ?

    How to Count Number of completed line items in past 6 months / 12 months ?
    Hi,
    I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT.
    Purchase Order document = ZEBELN
    Line Item = ZEBELP.
    I need to find and count if the Line Item has been received in the past 6 months from today and similarly in the past 12 months.
    I have "Delivery Completed" field, ELIKZ.
    So, based on this would I be able to calculate it in Query Designer?
    If so, Please let me know how

    Hello Deva
    If youe want to calculate the completed line item for last 6 or 12 month then i think u will be displaying the query data for these montrhs...create a customer exit to give you date range and restric it in filter area....
    Now Choose any of the below option
    1. I would suggest to implement an additional key figure "counter" in cube and fill values with one for which delivery is completed.
    Now use calculated key figure in Query Designer based on logic
    IF counter = 1 THEN counter ELSE 0
    OR
    2. create a formula variable based on ELIKZ and use replacement path variable, it will display you no. of docs for which delivery is completed....
    Award points if it solves your problem
    Revert back in case of further assistance...
    Thanks
    Tripple k

  • BP number in GL Line Item Report

    Hello Gurus,
    Is there a way to view BP number in GL Line Item Report FBL3N ? I went through the dynamic selection, but didn't see any option for BP. My client wants to see BP info in certain GL accounts without referring back to treasury transactions.
    Thanks in advance,
    Pal

    Hi,
    Unfortunately, there is no standard linkage to BP in FI document postings.  You can see the customer number if there is one and then link it to the BP.  But in case you want to see it at the G/L item level, then 1 thing you can do is have a custom code through BADI_TRM_ACC and fill the BP number to assignment or reference field.  This way you can check it in the accounting document item.
    Regards,
    Ravi

  • Report invoice document number againt PO line item

    Hi Forums,
    Can any body so kind to tell me is there any standard report in SAP 4.7 C where we can get the list of invoice document number against each line item of PO.
    I have tried the ME2N & ME2L report. If I double click the POH then only it give me the invoice document report. But i want a report where I get invoice document no against each line item wise in PO.
    Thanks in advance.
    Regards,
    sp sahu

    Hi sp sahu,
    I am sorry, but I am not aware of any report which might suit your requirements, this is the reason why I addressed you to the table EKBE. You might build your own report out of this table.
    Sorry!
    Esther.

  • Purchase Order Number in Vendor Line Item (FBl1N) and Clear Vendor (F-44)

    Hello,
    I am not getting the Purchase Order Number in Vendor Line Item.(FBl1N).
    Also during Clear of Vendor through F-44 i am not able to identify the Line item on the basis of Purchase Order Number.
    Could any one pleae help me out on this issue as i have to clear the vendor Line item in mass.
    Thanks
    Nitin Jindal
    Moderator: Please, respect the rules of the forum and search SDN before posting new thread. This question has been answered several times. Also, please choose proper forum to post your questions; this one is related to Financials and not to Controlling

    Based on my experience std feature from SD-FI . Depending on the SD Billing config which can be by delivery(VTFL) or sales order(VTFA). You can assign options of A: Cust PO No. B Sales order no. C Delivery no. D External delivery no.  E Actual invoice number to available header fields of Assignment No. or Reference No. Try it out

  • Grey out custom field in VA02 line item

    Hi,
    We have this custom field in sales line item which we want to grey out after billing is done. I tried many things but it didn't wrk. I wrote simple code w/o checking any billing condition like
             if screen-name = 'VBAP-ZZFIELD'.
                 screen-input = 0.
              endif.
             modify screen.
    but even this didn't wrk. Is there anything due to which the dynamic chging of screen fields attr has no effect ? Like if we set some attribute on screen field or ny thing else.
    Thx.

    You did put the code in MV45AFZZ include, form USEREXIT_FIELD_MODIFICATION?
    For example...
      if sy-tcode eq 'VA01' or
         sy-tcode eq 'VA02'.
      if sy-dynnr = my_screen_no.  "four digit screen no.
    loop at screen.
    case screen-name.
      when 'TABLE-FIELDNAME'   "exactly as it appears on that screen
        screen-input = '0'.
      modify screen.
    endcase.
    endloop.
    endif.
    endif.

  • HFM Performance and Number of JV Line Items

    How much of consolidation time and SmartView response time is tied to number of
    JV line items?
    For example, one year we had 1,200 total JVs with 164,000 line items. If we
    could cut this by 25% or so, would there be great benefit in performance?
    Thanks

    Please reply...

  • Invoice split by number of delivery line items

    Hi,
    Can anyone assist in providing me with a solution to the problem of splitting invoices based on the number of delivery line items. I know there is an SAP restricting of 999 lines when posting to SAP.
    Example:
    If my delivery has 20 line items is there a way to split the invoice into two separate documents of 10 lines each?
    Thanks
    Anirudh

    Hi,
    Instead of splitting the Invoice on the basis of delivery line items, you can fix the maximum of lines allowed in the Invoice. So this will help you having multiple invoices from a delivery.
    I don't know if this suits you.
    There is routine number 6 which acomplishes this (Single Invoice Limited), where coding has been done on the basis of config. (Sales Org:Limit number of billing items TVKO-MAXBI).
    This can be assigned at the item level (Copy control - Delivery to Billing, VTFL)
    Instead you can create a seperate routine which initially checks the number number of line items in the reference delivery document and then creates an invoice with specific lines.
    Hope this helps.
    Regards,
    Vivek

  • Get PO Confirmation and Invoice Number fron SC line item deial like GUID

    Hi All,
    I want to create ZReport where i have to find  Purchase Order , Confirmation and Invoice Number fron SC line item .
    I am looking for that tables or FM by using which i can give SC line item Guid and i can get the corrosponding PO , Confirmation and Invoice if any.
    Please suggest solution.
    Thanks in Adavnce,
    Snehal

    Hello Snehal,
    You can use following FMs to get the required deatils:
    FM: BBP_PD_SC_GETDETAIL
          E_ITMLIM_REL
          Select the second entry
          Shift+F5
          Take the HDR_GUID_A for PO
          and HDR_GUID_B for Conf
          and HDR_GUID_C for Inv
    FM: BBP_PD_PO_GETDETAIL
          enter the HDR_GUID_A
          Goto E_HEADER           select the OBJECT_ID
    FM: BBP_PD_CONF_GETDETAIL
          Goto E_HEADER           select the OBJECT_ID
    FM: BBP_PD_INV_GETDETAIL
           Goto E_HEADER           select the OBJECT_ID
    This could help you.
    Regards,
    Suneel Kumar

  • Urgent : Confirmation and invoice number of a line item of a Shopping cart

    I have developed an end to end report in SRM which gives us an end to end report of a shopping cart .
    I have got the Shopping Cart details using FM : BBP_PD_SC_GETDETAIL 
    for each item of the shopping cart in the table E_ITEM  , getting the Po number for it from  E_ITEM- BE_OBJECT_ID
    I called FM BBP_BE_PO_GETHISTORY to get the  Confirmation and Invoice number from  E_HEADER_REL of  BBP_BE_PO_GETHISTORY.
    But this function  module  gives me the confirmation and invoice number  of a particular purchase order and
    I am stuck here as I need to find out the confirmation and invoice number of  a line item and I am not finding a link  between them .
    I  tried using  FM BBP_PD_PO_GETDETAIL ,
                             BBP_PD_PO_GETLIST 
    BBP_PD_PO_DOC_FLOW  and other function modules also , however they give me the confirmation and invoices o a particular PO but I am not    able further drill down to find  confirmation and invoivce of a particular line item of a shopping cart …..
    Please let me know if there is a way to find this out ????
    Useful answers would be rewarded .
    Regards,
    Prabhu

    Hi All ,
    I was able to get a link using the function module  BBP_PD_SC_GETDETAIL . in the tables E_item  has fields BE_OBJ_ITEM  and the BE_OBJ_ITEM which give the po number and po line item number of each line item .
    then i used BBP_BE_PO_GETHISTORY Fm to get the history of the po and read the line item history based on the BE_OBJ_ITEM  no .
    Thanks to all .
    Prabhu

  • Please let me know how to Count Number of completed line items in past 6 mo

    How to Count Number of completed line items in past 6 months / 12 months ?
    Hi,
    I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT.
    Purchase Order document = ZEBELN
    Line Item = ZEBELP.
    I need to find and count if the Line Item has been received in the past 6 months from today and similarly in the past 12 months.
    I have "Delivery Completed" field, ELIKZ.
    So, based on this would I be able to calculate it in Query Designer?
    If so, Please let me know how
    Krishna

    Hi Experts,
    I dont have a defined Restricted key figure yet.
    I have populated 0COMPL_DEL(Delivery Completed Indicator)  and 0EBELN (Purchasing Document Number) and 0EBELP (Line Item Number in Purchasing Document) .
    This is what I think how I need to calculate:
    Number of completed line items in past 6 months:
    If  Delilvery Completed Indicator (0COMPL_DEL) = x, calculate No. of Line Items (ZPO_CNT) from 0CALDAY to 6 months
    and
    Number of completed line items in past 12 months:
    If  Delilvery Completed Indicator (0COMPL_DEL) = x, calculate No. of Line Items (ZPO_CNT) from 0CALDAY to 12 months
    Please let me know if the logic is correct. If so, how I can create this in report

  • How to limit the number of PO line items in ME59N

    Hi,
    The purchase requisition has more than hundred lines, possibly from the same vendor but different MC.
    During conversion in ME59N, User wanted to limit the number of PO line items to just 20 lines per PO.
    Is there a way to configure it?
    thanks

    Hi,
    I believe this is not possible in standard way...
    assume you can call a method on the IF_EX_ME_PROCESS_PO_CUST
    interface of the ME_PROCESS_PO_CUST add-in to do this.
    1. check out the enhancment
    MEREQ001
    2. In this, check out the FM Exits :
    EXIT_SAPLMEREQ_008
    EXIT_SAPLMEREQ_010..
    hope it helps you.
    Kuber

  • PERNR - Personnel Number on vendor line item of the FI document Posting

    After posting a time sheet (PR05, PRFI, PRRW), the FI document created (display via FB03) has the personnel number on each of the GL line items, but the field is blank on the vendor line item.  Does anyone know how to get this to be populated with the same data as being populated on the GL line items (it's the same field BSEG-PERNR)?  I've made the field optional on the vendor reconciliation account as well as on the posting key, but no success yet.  thanks.

    Thanks all for responding. 
    The vendor master was populated.  The strange thing is that the GL line item gets populated but not the vendor line item in BKPF/BSEG.  We talked to SAP and to get the vendor line item to populate we would have to do an SAP coding change.
    I created a quickview (SQVI) between the appropriate tables to get the report out that we needed (a bit easier than an ABAP) - but nontheless it worked.
    thanks again.

  • Unable to trace out the Reference Document number in commitment line item.

    Dear All,
          Kindly help me in bellow problem
    When I click the reference document no. in the line item wise display the commitment in t-code S_ALR_87013558 at that time the system open the display PR screen and the massage is displayed in the below, the Purchase document does not exist.
    Due to this reason the price capture in commitment line item is not traceable and I am not able to delete the commitment line item.
    Kindly suggest how to trace out the reference document number and delete it and release the commitment price.
    Thanks,
    Asu.

    >
    Asutosh Mahapatra wrote:
    > Dear All,
    >
    >       Kindly help me in bellow problem
    >
    >
    > When I click the reference document no. in the line item wise display the commitment in t-code S_ALR_87013558 at that time the system open the display PR screen and the massage is displayed in the below, the Purchase document does not exist.
    >
    > Due to this reason the price capture in commitment line item is not traceable and I am not able to delete the commitment line item.
    >
    > Kindly suggest how to trace out the reference document number and delete it and release the commitment price.
    >
    > Thanks,
    > Asu.
    Can you explain what is your requirement..?
    Do you want to correct the data in the report..?
    Or  it is effecting your availability control and you want to correct it..?
    Or you want to trace a deleted document..? Which is not possible...

  • Restrict Number of Open line items selected for vendor payment in F-58

    Dear Experts,
    simply in F-58 i want the system to issue an error message if the user select more than 10 or maybe 15 open line items for payment, the reason is to make sure that the number of line items selcted will fitt in the From specified for printing.
    is there a way to do so ?
    i already got on but not sure how to use it.
    please advice
    Thanks and regards
    Mohamed Talaat

    hi,
    my restricition is regarding the form that the key user want only one cheque paper to be prininted and the space for that can hold only like 10 or 15 line items so he just want to define this number and cant exceed it in one paymnet.
    payment advice control i think can do this but am not sure its under t.code FBZP payment method in company code, haveyou try this before ?
    and how come we design the form for multiplie pages andthen accomidate in one page ?
    as they insert in the oprinter a seralized prinitng cheques paper sequincely.
    please clarify
    Regards
    M.Talaat

Maybe you are looking for

  • ITunes On New Computer Won't Sync To iPod Touch

    A couple months ago I got a new laptop. I was able to transfer all my songs over from the iPod Touch (5th Generation) to the computer successfully (including plays w/ a program I downloaded). I made changes to the library since then (deleting some so

  • Validation of multiple empty fields in dynamic form

    Hi, I have created multiple fields dynamic form consisting of both mandatory & optional fields. Since the mandatory fields are validated by default, I want to validate the optional fields while submitting as PDF document dynamically and prompt me to

  • How to create a IDOC program

    Hi All i have a requirement where i have to design a screen program to provide the user with a input screen. The user will input data on this screen, after the user enters the data and clicks on execute or some button on the module screen the system

  • Jsp:include doesn't work in JSF (Trinidad)

    Hallo, first: i'm a newbe in JSF - so sorry for stupid questions. I would like to include a page with some trinidad-tags in my jsf-page (into the body). But running the application the included page isn't shown. Looking to the generated html-code the

  • Changing Ramp color in After Effects

    Hi all,   I'm still new to AE and currently using step by step guides from books to practice in AE. In one of my practice, I'm creating a text animation with a ramps shader as the background as seen in my attached file here, and according to the book