BSEG to VBFA

Hi ,
Can anyone tell me how to connect BSEG (ebeln) to VBFA for getting Invoice and Delivery Document Numbers.
thanks,
Amit.

Hi,
Please try this ...
VBFA-VBELN = BSEG-VBELN.
and check VBFA-VBELV with VBTYP_V = 'M' (Invoice)  and 'J' (Delivery).
Regards,
Ferry Lianto

Similar Messages

  • How can I check DATA in BSEG for PO date corresponding (time period)

    PO date (BSTDK)
    but in bseg I only can find BLDAT AUGDT
    and it is also can not find in bkpf
    only can find it in VBAK

    not every BSEG relates to a sales order so it does not have the field directly. You have to link back to VBAK (or maybe VBKD) maybe via the document flow table VBFA.

  • FBL5N t code and BSEG table is showing wrong contract number

    Hi,
    The proces flow is contract number>sales order>DMR-->Invoice
    Now when I am checking the VBFA table it's showing correct contract number against invoices but FBL5N t code and BSEG table are showing wrong contract numbers.
    Why FBL5N and BSEG table is showing wrong contract number?
    Currently we are using one enhancement and user exit is used to incorporate one customized field as identifier for bill type.
    1. During the billing document release to accounting VFX3, The user exit triggering and it is update the customized fields and Net settlement indicator.
    2. Using the Invoice number, get the fields VGBEL(Document number of the reference document) and VGPOS (Item number of the reference item) from VBRP and read table VBAP with VBELN and POSNR, to get DMR number (Sales Document) that created for the Invoice.
    3. Use fields VGBEL and VGPOS on table VBAP to get the sale order number.
    4. By using the Sales order number, get the Distribution channel to update Net indicator field
    In accounting table BSEG-UZAWE = JF must be updated on the customer line.
    5. Retrieve the sale order number and item level to get customized field from table VBAP
    Any pointers.
    Thanks
    Ashu

    Hi Reazuddin,
    Thanks for your reply,
    I am concercerned about BSEG table and using user exit EXIT_SAPLV60B_008 to post the document in FI.
    Now in we have enhanced this user exit  for contracts and included in this way.
      SELECT SINGLE ZZ_CONTRACT FROM VBAK INTO (LC_CONTRACT) WHERE VBELN EQ cvbrp-vgbel.
    Endloop.
    *Moving the values to final accounting table
    loop at xaccit.
    xaccit-vertn = lc_contract.
    xaccit-VBEL2 = xaccit-AUBEL.
    xaccit-xref3 = lc_vbel2.
    MODIFY xaccit .
    ENDLOOP.
    Clear: lc_contract,lc_vgbel,lc_vgpos,lc_vbel2.
    But I am getting correct data when checked other clients( development and quality), this problem I am getting in production.
    Do I need to ask the ABAP'er to debug this enhancement in production?
    Thanks
    Ashutosh

  • Re:bseg Table

    Dear All
    i have sales order number from that i am able to get the billing document number from VBFA table.
    i am passing input to the BSEG table billing documnet number  and customer number and to get the Advance payment
    and also the Actual payment so is it suffiicient to read the BSEG Table.
    and make clear how can i get the Outstanding amount related to that salesorder. i mean hear i want to get it from table with out doing manual calculation.
    and also guide me BSEG is Cluster table if i use selct statement na it is database cost so any function modules available for read it
    please guide me.
    thanks ........................

    Hi,
    Try with function AC_DOCUMENT_RECODS
      CALL FUNCTION 'AC_DOCUMENT_RECORD'
        EXPORTING
          i_awtyp      = 'MKPF'
          i_awref      = awref
          i_aworg      = aworg
          i_awsys      = awsys
          i_awtyp_incl = 'BKPF'
          i_valutyp    = '0'
          x_dialog     = ' '
        TABLES
          t_documents  = docs_fi
        EXCEPTIONS
          no_reference = 1
          no_document  = 2
          OTHERS       = 3.
    where
    DATA: docs_fi LIKE acc_doc OCCURS 10 WITH HEADER LINE.
    and
      DATA: awref LIKE acchd-awref,
            aworg LIKE acchd-aworg,
            awsys LIKE acchd-awsys.
    I hope this helps you
    Regards
    Eduardo
    PD: I think that I havent read properly your post.
    Surely you must work with tables BSID and BSAD, better that with BSEG. Remember that one is open items. Surely the document from the first funcion was cleared. So, you must rebuild the flow of documents.
    Edited by: E_Hinojosa on Nov 11, 2010 9:37 AM

  • Fastrer BSEG table access

    hi experts,
                   As v have FM for faster VBFA table access, is there any FM for faster BSEG table access or any othere method as BSEG takes longer time to access.
    Thanks.
    Khan

    Can you clarify the business requirement a little more? - the Special GL indicator of "A" indicates you are interested in customer or vendor Downpayments, but you also want " " - and you mention BSAS & BSIS which are for GL postings, not Customer nor Vendor...?
    Jonathan
    p.s. BSID / BSAD & BSIK / BSAK do have the Special GL indicators in the keys
    Edited by: Jonathan Coleman on Apr 9, 2008 4:32 PM

  • BSEG table in Report painter

    Hi All,
    I want to create a report using a report painter. For this while creating library, i want to use the table BSEG.
    But i am getting an error message "Table BSEG is not installed in report painter".
    Then i used transaction MC27 and created Z structure from table BSEG. This solved my problem.
    All this i was doing in ECC6.0 version.
    Then i tried in 4.7 version, there table BSEG was already available to create a library.
    Is it a version difference or we can can directly map standard tables also using transaction MC27 ?
    But in ECC6.0, it was not allowing me map table BSEG using transaction MC27. I was getting message that "Evaluation structure name must be started with ZF"!!
    Please help me in solving this puzzle!
    Thanks
    Puneet Aggarwal

    Hi
    This is version difference.  In 4.7 Table BSEG not updated.  In ECC 6 this problem solved.
    Shammi
    assign points if it is helpful

  • BSEG.CREATED event not triggering when a document is posted in FB60

    Hi All,
    I have a requirement in which i need to post documents in FB60/FB65/FB01 tcode. But when i post the document in FB60 the event BSEG.CREATED is not triggering. I could not see any trace in SWEL. But when i park the document in FB60, FIPP.CREATED event is getting triggerd.
    Can anyone tell me why this BSEG.CREATED event is not triggering.
    Thanking you in advance,
    satheesh.

    Hi Viji,
    Thanks for your quick reply.
    We have maintained the required configurations in the system related to this. But still the event BSEG.CREATED is not triggering.
    for this the alternative solution is to implement the BTE '1030'. But our functional team is asking us to check whey standard business object BSEG.CREATED is not triggering when we post a document. So that particular reason we are not able to find out.
    Configuration maintained.
    1) Created a workflow variant and assigned it to particular company code(OBWA and OBWJ).
    2) Checked the 'Posting' release' and 'Release payments' checkboxes in the OBWA transaction.
    3) Event linkage for BSEG is active.(SWETYPV)
    Thanks,
    satheesh

  • RFINDEX - Errors in section Reconciliation INDEX vs BSEG

    Hi Experts,
    After converting a normal GL account into OIM, we have executed the report RFINDEX for consistency check.
    We have found errors in the section Reconciliation INDEX vs BSEG.
    But I am not sure what exactly the system trying to make me understand and the list of documents that got affected.
    Analysis log says that error msg appears at XBLNR field in BSEG & BSIS table.
    However, we do not find the field in BSEG table.  Then why the system is showing it as "error msg "?
    May I request the forum to throw some light and route me towards solution for overcoming the issue?
    Regards,
    BSK..

    Hi Surya,
    Please note first of all that the repair option in RFINDEX is only available for use SAP Support. We never recommend that customers or general systems users use this report in repair mode themselves. It can lead to further inconsistencies if used incorrectly.
    The error you have seen on this account related to XBLNR is arising because there are differences in the values when comparing the contents of field BKPF-XBLNR and BSIS-XBLNR for a particular set of line items. The XBLNR field is in the header table BKPF and not BSEG.
    This error is usually a non critical error and can occur when customising settings such as user exits, substitutions update the XBLNR field in one table (eg BKPF) but not in another (eg BSIS). In these types of situations we usually advise customers to first take time in understanding why the values are updated for XBLNR in their system; the field is highly customizable and therefore errors like this can often appear in systems when running RFINDEX. There is no bug in the standard system which causes these types of differences.
    The good news is that this error has nothing to do with the open item management which you enabled. Otherwise you would see error messages like "XOPVW" etc. From your description it seems that the conversion to Open Item Management you did was successful.
    Kind regards,
    Declan

  • DataSource for FAGLFLEXT and BSEG, or New Table in ECC6?

    need to create an extractor to have all the information of FAGLFLEXT, because we need to keep the ledger information and the split of the information. However, we need to add 13 fields contained in BSEG.
    Therefore we thought to reads the line items table FAGLFLEXA, and then enhace it throught BSEG table.
    However, since we are using ECC6 and BI7. It is not support the creation of DataSources for FAGLFLEXA throught FAGLBW03.
    Is it an option to incorporate all fields into FAGLFLEXT.
    Can we creat a new table group based on FAGLFLEXT, and then adding the coding block extensions to that table -
    how does new g/l and the new table group work in parallel? Which is the procedure to do it?
    Documentation says we can create a new table group based on FAGLFLEXT --- its the how does it work in conjuction part...for example...the new g/l handles document splitting and one other thing georg referenced last night...will the split documents go into our new table group?
    BSEG does not have the document splitter information that we need (it's incomplete data). It's missing profit centers on many items, it's missing the proper split of transactions.
    Thanks for your comments.

    Here is more information about this post.
    Client situation:  Our client is implementing ECC 6 and is using the "New-GL" features.  Because of business requirements, the coding block has been extended (not insignificantly - 18 extra fields at the moment) to accommodate legal, regulatory and management reporting.  The reporting solution includes standard ECC reporting (e.g. report writer, report painter reports) as well as feeds to BW (BI 7).
    The Challenge:  Our understanding is that adding all of the coding block extensions to the New-GL tables (ie. FAGLFLEXA and FAGLFLEXT) may lead to performance degradation in the ECC system.  However, we still need to accommodate the requirement to report by the additional dimensions that are not currently included in the New-GL, so our challenge has been to find a solution that minimizes performance issues, while still allowing us to have all the necessary dimensions with which to do the required reporting.
    What we would like to know:  How have you handled this in similar situations?
    Have you added to the New-GL tables? How many fields? Performance issues encountered?
    Have you created additional table group(s) based on the New-GL and then modified that structure to have the new fields?  How does the additional table group work co-incident with New-GL (e.g. does the additional table group receive document splitting information?)?
    Have you created custom extractors for BW?  On what basis (we understand that FAGFLEXA cannot be created as a datasource to feed BW)?

  • Item text (BSEG-SGTXT) is not getting updated in Payment document generated

    Hi All,
    Item text (BSEG-SGTXT) is not getting updated in Payment document generated through F110.
    After generating the payment document via Transaction Code u2013 F110, system is not updating the
    Text field (BSEG-SGTXT) in the payment document with the text that we have entered in the Invoice (MIRO or FI Invoice).
    In case of manual payment (F-53) we can input the text manually hence that will get updated in
    payment document but this thing is not possible with F110.
    How can I update it?
    Is there any configuration for that?
    Thanks
    Daniel Dorta

    Hi All,
    I've applied the two notes as recommended. However, when I run FBL3N for payment run items, the Text field is update with wrong data, i.e. not from the Text field in FB60
    Thus, I'll like someone to help me with what should exactly be done on the 'Step', 'Pre-requisite' and 'Substitution' side of the Substitution rule (TCode GGB1), I did not fill anything in the Pre-requisite box - is this right?
    Thanx in advance.

  • How to get the sum in BSEG table using select statement

    hai all
    i made the internal tale "itab1" .. i want to get the som  feild of  DMBTR in BSG table my code is here but its not working gave som error massage (Aggregate functions and the addition DISTINCT are not supported in field lists for pooled and cluster tables.)  plz tel me how should i do it..... i want to get the som of that feild....          
    loop at itab1
         SELECT sum( DMBTR  ) from bseg INTO itab1-DMBTR141_45
             where GJAHR = itab1-GJAHR
             and   BELNR = itab1-BELNR.
    endloop.
    regard
    nawa

    SELECT BELNR GJAHR SHKZG DMBTR
                 from bseg
                 INTO table it_bseg
                 for all entries in itab1
                 where GJAHR = itab1-GJAHR
                   and BELNR = itab1-BELNR.
    loop at it_bseg.
        IF it_bseg-shkzg = 'H'.
          it_bseg-dmbtr = it_bseg-dmbtr * ( -1 ).
        ELSE.
          it_bseg-dmbtr = it_bseg-dmbtr.
        ENDIF.
        MODIFY it_bseg.
    endloop.
    loop at it_bseg.
    READ TABLE itab1 with key belnr = it_bseg-belnr
                               gjahr = it_bseg-gjahr.
    if sy-subrc = 0.
    collect it_bseg into it_bseg_amount.
    endif.
    endloop.
    U can use the collect statement
    Regards
    Gopi

  • Iterating through bseg line items and picking the vendor line item

    Hello,
    I am creating a report in which i want to show the list of vendors (with their WHT's). The output will be based on selection of a certain period(range). I guess i have to first iterate through BKPF and get those documents that lie in the given range, then i 'll have to iterate through the selected documents in BSEG and pick out the vendor line items (KOART = 'S'). Will i be using GET for this..
    Is this the right way? secondly, if yes, can sumone show me how to iterate through BKPF and BSEG and get vendor details.?
    Thanks..
    SHehryar

    Hey,
    Instead of selecting data from BKPF-BSEG you could use BKPF-BSIK-BSAK.
    BSIK and BSAK have the same details as BSEG and are use by SAP for reporting purposes.
    Similarly for customer the table are BSID, BSAD and for GL the tables are BSIS and BSAS.
    BSIK will have the open items and BSAK will have the cleared items.
    -Kiran

  • F110 - Grouping the vendor invoices by BSEG table fields

    Hi,
    I want to group the vendor invoices while making the payment through F110,  based on a BSEG table field. The settings in Grouping Key configuration (OBAP) only allows me to choose the fileds from BSIK table and not possible to select the fields from BSEG table.  Is there any other way to group the vendor invoices based on BSEG fileds?  How can we achieve this requirement in SAP?
    Thanks and Regards
    Koteswararao padarti

    Hi,
    I created the substitution and also grouping key based on the BSIK-KIDNO filed. But the system is not able to group the vendor invoices by payment reference.  I already tried the following options
    Seperate Payments for each Ref in FBZP settings
    Can anyone let me know what is missing in the configuration to group the invoices for payment by payment reference.
    Regards
    Koteswararao Padarti

  • Is can we develop MATCH btwn VBEP and VBFA, for data pulling?

    Hi Experts,
    I got a requirement, in which I hv to develop a report for the Open quantities for sales order items. fine.
    I ssue is that, in the report I hv to show at Schedule line level i.e. VBEP.
    So, by pulling the records from VBEP depending on the seldction criteria, I hv to pull the MATCHING record from VBFA for Post Goods Issue.
    Then, I hv to implememnt the follwoing formula,
    Open Quantity = VBEP, say Schedule line 1 quantity -(mnus) first saved corresponding Order, Item Quantitity-RFMNG in VBFA for PGI type
    As we know, VBEP is at Schedule line lvel, where as VBFA is ITEM level!!
    So, pls. let me know that,
    1 - Is really, we can develop the MATCH btwn VBEP and VBFA tbls, I mean, always, the data will be correctly pulled?
    2 - If so, Is the folllwoing statement is OK?
    LOOP AT IT_VBFA WHERE VBELV = IT_VBEP-VBELN and POSNV = IT_VBEP-POSNR and ERDAT LE IT_VBEP-MBDAT
    3 - Any other good statement for my requirement?
    Looks like, functional guy is also NOT much idea, here.
    Thanx
    Edited by: Srinivas on Jun 1, 2008 12:15 AM

    no reply

  • "Collective Inv." (BSEG-SAMNR) not being populated

    We are in the process of enabling invoice list functiionality in SAP. In doing that we get everything working, except for the update to BSEG-SAMNR (Collective Inv.) for a respective FI document that is tagged to an invoice list. This becomes key for us as we can pull this field into various A/R transactions like F-28 and FBL5N.
    I have searched OSS and online, but so far can't seem to find any reference to this. We are on ECC 6.0 and SP14.
    Has anyone run into this? Or have any idea how to get that field updated? Appreciate any thoughts or suggestions.
    Thanks,
    Jay

    Hi Jay,
    In the FI transactions field BSEG-SAMNR is only contained on the
    customer line item screen (screen 0301 of program SAPMF05A), which
    means that when a FI document is posted with a FI transaction,
    a value for field BSEG-SAMNR can be entered for the customer line
    item (and only for the customer line item).
    Otherwise this field has no further meaning in FI.
    note 335031 -> FBV1: Field 'SAMNR' missing on the customer screen
                         -> implementation of the above described
                            for document parking
    note 563076 -> FB05: Leading zeros with selection on fields NUMC
                         -> open item selection with field SAMNR
    note 573312 -> FB05: Creating down payment from down payment request
                         -> copy of the value of field SAMNR from
                            down payment request to down payment
    note 583163 -> FB02: Field BSEG-SAMNR not changeable with down payments
    note 631894 -> RFBIBL00 in mode 'D': BSEG-SAMNR not filled in FI
                   document
    note 745442 -> F110: Acct assgnmt w/ down payment from down payment
                   request
                         -> same like note 573312 for payment program
    Regards,
    Alex

Maybe you are looking for

  • AR Aging Open Items Issue in BW

    Hi Experts, We have activated 0FI_GL_4 data source and using the DSO ZFIGL_O2 (Copy of 0FIGL_O2) for data staging then load the data into custom cube ZFIAR_C01. The issue is when the AR document open in the ECC sometimes it is cleared right away or s

  • How to generate external network number based on WBS element number

    Hi all(experts) I am new to PS and I have a requirment. <u>To derive network no. from WBS identifier.</u> Enhancement is CNEXOO12 Function module is EXIT_SAPLCOKO_002(data transfer for Network number). I wnat to know how to use the above enhancement

  • Error during start "discoservlet" at client browser.

    My Environment :- 1) Oracle 8i 2) Discover 3i Viewer in Single Machine 3) Client Browser : IE 5. The followng is working at client browser (IE 5 and Netscape Communicator 4.72 ):- 1) http://<httpserver>/ 2) http://<httpserver>/servlets/IsItWorking 3)

  • I-pod shuts down when browsing album covers

    After updating the i-pod touch to the new Op System 5 the player will shut down when I browse the album covers (holding the i-pod horizontal). It will work for about 5 covers but then shuts down. I did a reset but did not help Anybody who is familiar

  • Benefit Salary calculation

    Hi guys, I have a requirement which is like this: Benefit Salary to be calculated as of Oct 01 of previous year. For example, if I am enrolling for 2009 then the Benefit Salary should be as of Oct 01 2008. However, the issue is that when I run payrol