BSEG - EBELN value

Hi All,
I want the Ebeln, lifnr and matnr fields in BSEG table for Account Type = GL Accountiing. Because of performance i want to use other table to get the same datas.
I checked in BSIS and BSAS table, but fields are not in the table. Could you please advice in which table(other than BSEG) i has to refer to get EBELN, MATNR and LIFNR.
- RK

Total Posts:  124 
Total Questions:  62 (38 unresolved) 
Please think about cleaning up your old posts.
Also look at [Quickly Retrieving FI document Data from BSEG|/people/rob.burbank/blog/2007/11/12/quickly-retrieving-fi-document-data-from-bseg]
Rob

Similar Messages

  • Field BSEG-EBELN does not exist on screen SAPMF05A 0302

    Hi,
    We are clearing vendor invoices with payments by creating Residual line item or posting into GL account.
    Suppose if the vendor invoices are 1234-1 , 1234-2 ,1234-3 and payment is 1234-4 then we want to create residual item with PO as 1234-4DM or 1234-4CM if the diff is more.And if diff is less then we are posting into GL account with PO as above.
    While posting the difference in amount into GL account, it is calling screen SAPMF05A/0300. In this screen we have option to enter PO number.But,
    While creating residual line item, we have no option to enter PO document number on screen SAPMF05A/0302.
    Please help me is there any way to get field BSEG-EBELN on screen SAPMF05A/0302.
    Thanks,
    Balakrishna.

    Thanks for your reply.
    We are doing the same thing when posting into GL account and we have option to enter PO.
    If PO key is automaticallly filled by the system what value shoud it take? In my case, it is filled it with last PO number of invoice or Payment which followed by DM( Debit Memo) or CM(Credit Memo) like 1234-4DM.
    Please help me.
    Thanks,
    Balakrishna

  • Substituting BSEG-ZUONR value in MIRO with PO details.

    Hi All,
    I need to substitute the value of the assignment field (BSEG-ZUONR) with ebeln and ebelp details. I have coded a substitution exit
    at call point 2 in FI at item level. When i debug and check my code BSEG document no has no values(actually it is $       1) and ebelp and ebeln values are blank. Does any have an idea how to get the values for PO order no and item no.
    I am using transaction MIRO. The sort key 010 and this requrement is for document type RE.
    Regards,
    Vanita.

    Hi,
    maybe this can help:
    ( FI Enhancement Technique - How-To-Guide on the Usage of Business Transaction Events (BTE) )
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/207835fb-0a01-0010-34b4-fef1240ba9b7
    Best regards.
    Edited by: Pablo Casamayor on May 10, 2010 11:38 AM

  • Change Field in FB02 - (BSEG-EBELN)

    Dear Experts,
    Please advise whether this field BSEG-EBELN can be changed for a FI document in transaction code FB02.
    Many thanks.

    Dear Mr. Parthiban,
    EBELN is the Purchasing Document Number and it is Dirived in FI Through the MM Posting(FI-MM Integration)  and It Cannot Be changed in FI Document
    Best Regards,
    Ravi Reddy

  • BSEG table value can't apply formula

    I download amount column for BSEG into excel, for example, in excel, the document number 400000235 has amount 51.866,60,
    when I apply formula column X=1.5*amount column, it shows #value!, if I change to 51866.6, it works fine, I have more than 2000 lines to change, I can't do it one by one, any one got idea how to fix this issue. thanks

    Hi,
    before you make the download from SAP, change the user parameters in su3 transaction (Defaults / decimal notation) to the decimal notation you need (eg. from xxx.xxx,yy to xxx,xxx.yy) . In MS Excel, you can try to do the same and convert the figures to values by using the formula "value" but the easier way is to change the setting in the source system.
    Best regards, Christian

  • BSEG-Menge Value

    Dear Gurus,
    The quantity field after a Accounting document is generated is carrying the value twice for two different Pricing condition types. (Say the sale quantity is 20, it shows 20 pcs against one and 20 pcs against other. )
    How is the quantity field value (BSEG-MENGE) determined?
    As per the settings in VOFA, Both the condition types in use are flowing to same G/L account.
    The Sales order process is standard starting with Sale order >Delivery>Billing-->Accounting document.
    I want this to be determined only once for one condition type and not for the other one? Any advices of how to resolve it?
    Thanks in advance.

    Hi
    While maintaining condition records in VK11, there is a field for calculation type, if you ahve maintained 'C' - Quantity for both pricing condition type then it will calculate price based on quantity for both pricing condition types. Hence in accounting document also it is appearing against both pricing condition types as 20.
    Hope this clarify your doubt.

  • Document BSEG-VBUND value remove

    Hello!
    There is a value in accounts receivable document's BSEG-VBUND (trading partner) field. It can be seen eg.in Additional data screen. That field is not active (can't be accessed) in Additional data screen. Trading partner value should be removed, so the document could be included into account receivables payment which also includes several other documents.
    I have tried SE16 -> TBAER -> but there is no BSEG-VBUND listed. I have changed regarding document type settings and retry but that was not any help. Is there any other tricks to be tried?

    Hi
    Please check in SPRO. Accounts Receivable and Accounts Payable->Customer Accounts->Master Data->Preparations for Creating Customer Master Data->Define Account Groups with Screen Layout (Customers).
    In this menu path, the general data segment, control parameters have the field trading partner. Please check if this is suppressed. Alternatively, the same could be suppressed in the Transaction control for field status. Once this is changed, this field would be visible. Please let me know if it was of help and please do assign points for the answer.
    Karthik

  • FBL5N - BSEG-REBZG values cause infinite loop FDM_COLL_INVOICE_GET_BY_REF

    Hello,
    We have a problem where function FDM_COLL_INVOICE_GET_BY_REF looks at BSEG records in a loop. It finds the next BSEG record by using the contents of BSEG-REBZG.
    Unfortunately, some of our BSEG records point back to each other. We have the situation where BSEG "A" points to BSEG "B", and BSEG "B" points back to BSEG "A".
    For example:
    BSEG-BELNR   9100011111  ->  REBZG = 9111122222
    BSEG-BELNR   9111122222  ->  REBZG = 9100011111
    This data is causing the loop to execute infinitely as the exit conditions are never met.
    I cannot find a SAP Note that addresses this issue. It looks like the code involved is related to items in Dispute and Part Payments.
    Has anyone out there experienced this issue?
    Many thanks,
    Stuart.

    What release are you on?
    There is note 1105687 addressing the scenario when a credit memo is entered as an invoice reference in an invoice item which can cause such an infinite loop, but that note is only valid up to rel. 6.03
    There is also note 919415 but it is for even older systems.
    If you are on a current release, then creating an OSS message is your best bet.
    It would be theoretically possible to have a recent release with some already posted documents that were entered before the patch fixing such endless loops were applied... how likely is to have such old documents is another question. SAP support should help you to clean up the problematic records if this is the case.

  • FB70: How t o modify the value of BSEG-XREF before posting?

    Hi ABAP Gurus,
    Good day!
    I would like to know the correct way to modify the value of BSEG-XREF1 in FB70 (Prior to posting of document).
    Currently, I have tried using substitution. First, I copied RGGBS000 into ZRGGBS000 AND added form u300, which will modify BSEG-XREF1.  Second, I have added a step to an already existing substitution (COGS), which was set-up in transaction OBBH.  I have assigned u300 to BSEG-XREF1 (Refernce Key 1).
    The said step didn;t seem to work.  I was able to post a document and then I displayed the document.  Unfortuantely, BSEG-XREF1 hasn't been modified. So,  I tried debugging the form U300.  It doesn't stop inside that form, which means the logic that i put there was useless. By the way, the the formname that Im using can be found in two internal tables: (1) exits, and (2) etab.
    Kindly advise on what to do.   Thank you very much!
    <b>Best Regards.
    Brando</b>

    Check this sample code which i've used to substitute the field BSEG-ZUONR
    Also ensure that the callup point in <b>OBBH</b> is 2
    Don't forget to attach ur <b>ZRGGBS000</b> to the application area <b>GBLS</b> in the tcode <b>GCX2</b>
    FORM get_exit_titles TABLES etab.
      DATA: BEGIN OF exits OCCURS 50,
              name(5)   TYPE c,
              param     LIKE c_exit_param_none,
              title(60) TYPE c,
            END OF exits.
      exits-name  = 'U102'.
      exits-param = c_exit_param_field.
      exits-title = text-101.           " Ship-to-Party to Assignment field
      APPEND exits.
      REFRESH etab.
      LOOP AT exits.
        etab = exits.
        APPEND etab.
      ENDLOOP.
    ENDFORM.                    "GET_EXIT_TITLES
    FORM u102 USING zuonr TYPE bseg-zuonr.
      bseg-zuonr = <value>.
    ENDFORM.

  • Add field 'ebeln' in selection-screen of FBL1N transaction

    Hi Experts,
    Is there a way to display the field 'ebeln' in transaction FBL1N for certain document types and company code only..?
    I have already tried this steps below..But the problem is, this changes below is applicable to all document types.
    1. Trans. SE36, indicate logical database KDF. <- Logical database for FBL1N transaction
    2. Details > Selection views
    3. Update the standard SAP view
    4. Select table BSIK
    5. Include field ebeln.
    Regards,
    Ekitzv

    Dear,
    Please kindly note that field BSEG-EBELN is not possible for being shown
    with a value in FBL1N (and FBL5N).
    Since Release 3.0, several purchase orders can be offset in one invoice.
    As a result, different purchasing document numbers (BSEG-EBELN) can be
    contained in the different G/L account line items..
    As a result, it is no longer possible to enter a unique purchasing
    document number in the customer/vendor line item.Field BSEG-EBELN is not
    filled in the vendor line item and therefore cannot be displayed in the
    line item display for customers/vendors.
    You could reference note 152335 to find a more detailed explanation and
    possible solution of the issue.
    It is only possible to view the purchase order number(EBELN) in FBL3N.
    As a workaround, you may branch from vendor line item display to
    'Document overview' and you will see the PO number for the respective
    accounting document in other G/L account line items.
    What You are doing is to insert the field EBELN into the Dynamic selection of the FBL1N but this does not mean to have it available into the FBL1N layout.
    I hope the System behaviour is clerer.
    Mauri

  • BSEG related issue

    I am passing EBELN and EBELP to the BSEG table and getting some data.
    In Production, it is taking too much time.
    Is there any way to improve the performance?
    Can I get BSEG kay values by passing EBELN and EBELP to any other table?
    Thanks

    hi,
    try this fro your code.,i was too facing same problem with bkpf.
    prepare secondary index in your table with the field u require
    and try with bseg .i am surely u will solve it.
    secondary index is formed by clicking indexes tab in BSEG TABLE THRUOGH SE11.
    SELECT bukrs kunnr belnr wrbtr shkzg blart umskz bldat budat augdt buzei gjahr
          FROM bsad INTO TABLE i_bsad_1 FOR ALL ENTRIES IN i_kna1
                                           WHERE kunnr = i_kna1-kunnr AND
                                                budat <= s_budat-high AND
                                                 bukrs IN s_bukrs AND
                                                 umskz NE 'C' AND umskz NE 'D'
                                                 AND UMSKZ NE 'M'
                                                 AND umskz NE ' '
         %_HINTS ORACLE
       'INDEX("BSAD" "BSAD001" "BKPF" "BKPF008")'.
    helpful then reward points.

  • I need to "update" BSEG-SGTXT. What is the best way to do this?

    For a bunch of FI documents, the BSEG-SGTXT has been entered wrong while creating the documents. We need to change the BSEG-SGTXT values. What would be the best method to do this. We understand, direct table updates are risky and not suggested. Also BSEG-SGTXT is duplicated in other tables, like BSIS, BSID etc. We wanted to get some BAPI/ other FM. But we have not found any such one till now.
    Can anyone suggest a suitable method for this problem?

    Hi kaushik just check this Fm to change the text ..
    BAPI_EXPENDITUREPROGTREE_SVRPV
    also check
    BAPI_EXPENDITUREPROGTREE_CHVAL
    hope this helps regards,
    Vijay

  • JOIN for BSEG, BSIS, BSAS, MSEG, BKPF and MKPF

    I am developing a report related to G/L . i am using the Tables BSEG BSIS BSAS MSEG BKPF MKPF ............please give me the Joinings of these tables.......how exactly we can join and get the prefect Data....
    Thank U waiting for ur replies....
    Title edited by: Alvaro Tejada Galindo on Jun 3, 2008 3:41 PM

    I have given the tables, internal tables and the select queries which can give you the join conditions of your requirement.
    tables: bsis,
            bsas,
            bkpf,
            bseg,
            ekbe,
            mkpf,
            mseg.
    select-options: s_hkont  for bseg-hkont,
                    s_bldat  for bkpf-budat,
                    s_budat  for bkpf-bldat obligatory,
                    s_lifnr  for bseg-lifnr,
                    s_lfbnr  for ekbe-lfbnr no intervals no-extension.
    data: begin of i_bsis_bsas occurs 0,
            bukrs like bsis-bukrs,
            hkont like bsis-hkont,
            gjahr like bsis-gjahr,
            belnr like bsis-belnr,
            budat like bsis-budat,
            bldat like bsis-bldat,
            xblnr like bsis-xblnr,
            wrbtr like bsis-wrbtr,
            buzei like bsis-buzei,
          end   of i_bsis_bsas,
          begin of i_bkpf     occurs 0,
            bukrs like bsis-bukrs,
            belnr like bsis-belnr,
            gjahr like bsis-gjahr,
            xblnr like bkpf-xblnr,
            stblg like bkpf-stblg,
            awtyp like bkpf-awtyp,
            tcode like bkpf-tcode,
          end   of i_bkpf,
          begin of i_bseg     occurs 0,
            bukrs like bsis-bukrs,
            belnr like bsis-belnr,
            gjahr like bsis-gjahr,
            buzei like bseg-buzei,
            buzid like bseg-buzid,
            koart like bseg-koart,
            zuonr like bseg-zuonr,
            hkont like bseg-hkont,
            lifnr like bseg-lifnr,
            sgtxt like bseg-sgtxt,
            ebeln like bseg-ebeln,
            ebelp like bseg-ebelp,
            wrbtr like bseg-wrbtr,
          end   of i_bseg,
          begin of i_ekbe    occurs 0,
            ebeln like ekbe-ebeln,
            ebelp like ekbe-ebelp,
            gjahr like ekbe-gjahr,
            belnr like ekbe-belnr,
            buzei like ekbe-buzei,
            lfgja like ekbe-lfgja,
            lfbnr like ekbe-lfbnr,
            lfpos like ekbe-lfpos,
            matnr like ekbe-matnr,
          end   of i_ekbe,
          begin of i_mkpf_mseg occurs 0,
            mblnr like mkpf-mblnr,
            mjahr like mkpf-mjahr,
            bktxt like mkpf-bktxt,
            xblnr like mkpf-xblnr,
            frbnr like mkpf-frbnr,
            zeile like mseg-zeile,
            matnr like mseg-matnr,
            erfmg like mseg-erfmg,
          end   of i_mkpf_mseg.
    *data: wa_ekbe like i_ekbe.
    select  bukrs
              hkont
              gjahr
              belnr
              budat
              bldat
              xblnr
              wrbtr
              buzei appending corresponding fields of table i_bsis_bsas
                    from  bsis
                    where bukrs eq p_bukrs
                      and hkont in s_hkont
                      and gjahr eq p_gjahr
                      and budat in s_budat
                      and shkzg eq 'S'.
      select  bukrs
              hkont
              gjahr
              belnr
              budat
              bldat
              xblnr
              wrbtr appending corresponding fields of table i_bsis_bsas
                    from  bsas
                    where bukrs eq p_bukrs
                      and hkont in s_hkont
                      and gjahr eq p_gjahr
                      and budat in s_budat
                      and shkzg eq 'S'.
    endform.                    " f_get_bsis_bsas_data
    *&      Form  f_get_bkpf_bseg_data
          Subroutine to get BKPF and BSEG data
    form f_get_bkpf_bseg_data.
      check not i_bsis_bsas[] is initial.
      select  bukrs
              belnr
              gjahr
              xblnr
              stblg
              awtyp
              tcode into table i_bkpf
                    from bkpf
                     for all entries in i_bsis_bsas
                   where bukrs eq i_bsis_bsas-bukrs
                     and belnr eq i_bsis_bsas-belnr
                     and gjahr eq i_bsis_bsas-gjahr.
                    and awtyp = 'BKPFF'
                    and tcode = 'J1IE'.
      check not i_bkpf[] is initial.
      select  bukrs
              belnr
              gjahr
              buzei
              buzid
              koart
              zuonr
              hkont
              lifnr
              sgtxt
              ebeln
              ebelp
              wrbtr  into corresponding fields of table i_bseg
                     from bseg
                      for all entries in i_bsis_bsas
                    where bukrs eq i_bsis_bsas-bukrs
                      and belnr eq i_bsis_bsas-belnr
                      and gjahr eq i_bsis_bsas-gjahr.
                     and buzei eq i_bsis_bsas-buzei
                     and hkont eq i_bsis_bsas-hkont.
      delete i_bseg where not hkont in s_hkont.
    endform.                    " f_get_bkpf_bseg_data
    *&      Form  f_get_ekbe_data
          Subroutine to get EKBE data
    form f_get_ekbe_data.
      data: $i_bseg like i_bseg occurs 0 with header line.
      $i_bseg[]  =  i_bseg[].
      delete $i_bseg where ebeln is initial.
      check not $i_bseg[] is initial.
      select ebeln
             ebelp
             gjahr
             belnr
             buzei
             lfgja
             lfbnr
             lfpos
             matnr into table i_ekbe
                   from ekbe
                    for all entries in $i_bseg
                  where ebeln eq $i_bseg-ebeln
                    and ebelp eq $i_bseg-ebelp
                    and gjahr eq $i_bseg-gjahr
                    and bwart = '101'.
                   and belnr eq $i_bseg-belnr.
    check not i_ekbe[] is initial.
      select a~mblnr
             a~mjahr
             a~bktxt
             a~xblnr
             a~frbnr
             b~zeile
             b~matnr
             b~werks
             b~erfmg  into table i_mkpf_mseg
                      from mkpf as a inner join
                           mseg as b on amblnr eq bmblnr
                                    and amjahr eq bmjahr
                       for all entries in i_ekbe
                       where a~mblnr eq i_ekbe-lfbnr
                      and a~mjahr eq i_ekbe-gjahr
                      and b~zeile eq i_ekbe-lfpos
                        and b~werks eq p_werks.
    <REMOVED BY MODERATOR>
    Edited by: Srikanth Kadiyala on Jun 3, 2008 7:24 AM
    Edited by: Alvaro Tejada Galindo on Jun 3, 2008 3:40 PM

  • Purchase order number EBELN in line items of g/l accounts FAGLL03

    Hi,
    nevertheless the purchase order is filled in the BSEG segment it does not appear in the fitting column in the line items of FAGLL03.
    Does anyone know why and how to solve this?
    Thank you,
    Theresia

    HI,
    Please use transaction OBVU you already add fields BSEG-EBELN and BSEG-EBELP to the list of special fields.
    Did you run program RFPOSXEXTEND and BALVBUFDEL after that ?
    Then you should choose these fields in your line item display. Make sure that you are using the special fields and not the standard fields. The difference can be seen when you click with the right mouse button on the 'Change layout' screen when you
    are adding or deleting fields. You can then choose the option 'Show technical field names' and choose the fields 1-U_EBELN, 1-U_EBELP.
    Please can you also review the attached notes:
        0207436 - Line items: unfilled fields / double special field
        0320366 - Line items: display special field via menu path
        0215798 - FBL*N: Special fields are not displayed
    Hope this helps. Please Assign points if it useful.
    Regards
    Ravinagh Boni

  • Invoice number field in Table BSEG..

    I have the accouting document no.I want to find out the invoice no.Which field in  BSEG table is invoice no.??

    Hi,
    In BSEG you don't find Invoice number. You can see the purchasing document number.
    BSEG- EBELN
    Invoice number in BKPF table. As suggested by other frined .
    BKPF -AWKEY (Invoice number+Year).
    Regards,
    Chandra

Maybe you are looking for