BSEG Table update

Hi All,
My requirement is like that, Whenever I do the posting I want to update the BSEG Table field xref3.Please suggest is there any BTE exist for this.
Points are surely awarded.
Thanks
Garg

Hi All,
I have found the following BTE to update the xref3 field of BSEG table with LIFNR.
Even OPEN_FI_PERFORM_00001020_E...Even I have implement that BTE in my copy function module with the folowing code
DATA : V_LIFNR LIKE BSEG-LIFNR.
  READ TABLE T_BSEG WITH KEY KOART = 'K'.
  IF SY-SUBRC = 0.
    V_LIFNR = T_BSEG-LIFNR.
    LOOP AT T_BSEG.
      T_BSEG-XREF3 = V_LIFNR.
      MODIFY T_BSEG.
    ENDLOOP.
  ENDIF.
Whenever i simulate the posting
But problem exist in the BTE OPEN_FI_PERFORM_00001020_E
Becoz in this BTE code is like that in line, first the T_BSEG table entries get saved with the old entries in table  L_BSEG[]
  EXPORT T_BSEG T_BKPF TO MEMORY ID MEMID.
   L_BSEG[]  = T_BSEG[].
After that the code written in my FM execute and update the BSEG value successfully..
And the most confusing code thing again the T_BSEG  table get again updated with the old entries of L_BSEG[]* 
T_BSEG[]  = L_BSEG[].
So the table does n't get updated with the required entries.
Your suggestion is valuable.Points are surely awarded
Thanks
Garg

Similar Messages

  • Update BSEG table for PERNR

    Hi,
    How to update PERNR Field BSEG Table?
    My scenario is to update the (Personnel Number ) PERNR Field in FB50 Transaction.
    I get the following fields details from a third party system
    Document Information 
    o     I_BUKRS (Company Code) u2013 example: 0010
    o     I_BELNR (Document Number) u2013 example: 1700006041
    o     I_GJAHR (Fiscal Year) u2013 example: 2008
    u2022     Final Approver ID
    o     I_PERNR (Personnel No.) u2013 example U0050049
    For all line items of the document (represented by the key  (I_BUKRS, I_BELNR, I_GJAHR)) need to update the BSEG-PERNR field in FB50.
    Please let me know if you have any ideas like BAPI's or any alternative.
    Thanks & Regards,
    Satya

    Hi
    Try to use below the FM's
    FMUDBSEGH_UPDATE
    FMUDBSEG_UPDATE
    G_BKPF_BSEG_UPDATE
    before to that you need to read data from FM READ_BSEG. then update.
    hope it helps you
    Thanks!
    Edited by: Prasanth Maddela on Apr 21, 2009 6:26 PM

  • Bapi or function module to update rstgr field in bseg table

    what is the bapi or function module used to update the fields in bseg table particularly "rstgr" field?

    Hi,
    Use Bapi
    BAPI_ACC_DOCUMENT_POST
    Regards,
    Prashant

  • Update Bseg table for one field (Functional Area)

    Dear all
    I need to update function area in bseg table for existing records. How can i modify for that particular field without using update command. Is any BAPI is there for update document no. I have Lakhs records. So is any other way to modify that field.
    This is happening in production. please give your valuable guide how to do it?

    I'm not sure it is advisable to perform, take a look at OSS [Note 966428 - FB02: Functional area (FKBER) can be changed on coding block|https://service.sap.com/sap/support/notes/966428],*this note seems to imply that this area should not be changed..
    Look alsio to Customizing (SPRO) Financial Accounting, Financial Accounting Global Settings, Document, Line Item, Document Change Rules, Line Item.
    Keep in mind that this field is replicated from FI line items to other applications and tables.
    If you must perform this change at you own risk, you may build a huge batch-input based on FB02 or FB09 transactions. Another solution is to reverse the documents and then post again those documents with functional area.
    Regards

  • Update of segment field in bseg table

    hi
    can any explain me about update of segment field in bseg table
    segment is mentained in profit center master record ,and i want to generate trial balance segment wise and profit center wise
    please suggest me steps to do in a new gl senario
    thanks
    cb

    Hi,
    You need to activate the assign scenarion FIN_SEGM to your ledgers in the below path:-
    SPRO> Financial Accounting (New) > Financial Accounting Global Settings (New) > Ledgers > Ledger > Assign Scenarios and Customer Fields to Ledgers
    Then you need to make document splitting characteristics based on Segment field in the below path:-
    SPRO> Financial Accounting (New) > General Ledger Accounting (New) > Business Transactions > Document Splitting > Define Document Splitting Characteristics for General Ledger Accounting
    Make the below entry:-
    Field = SEGMENT
    Zero Balance = Selected
    Partner Field = PSEGMENT
    Mandatory Field = Selected
    Then you will be able to generate the balance sheet segment wise in report S_PL0_86000028 "Financial Statement: Actual/Actual Comparison". (Similar steps you can use for profir center wise balance sheet in addition.)
    Regards,
    Gaurav

  • Update a field in bseg table

    Hi experts,
    i want to update a field in BSEG  table (field name is BUPLA).
    Using UPDATE statement i am going to update the bseg table.
    I know only update statement.
    This my immediate requirement.
    please give me suggesstion.

    Hi,
    If you want to update the existing table record or field.. it is always advisable to use MODIFY statement instead of  UPDATE.
    syntax: 
    fetch the BSEG data to internal table IT_BSEG and do you modificaltions.
    Loop at it_bseg.
        it_bseg- XYZ = 'ABC'.
        it_bseg-UVW = '123'.
       modify it_bseg transporting XYZ  UVW .
    endloop.
    MODIFY BSEG FROM TABLE IT_BSEG   (here it_bseg is the internal table)
    COMMITWORK.
    Modify always check in the database whether the record exists or not if it is there it will modify the existing one.. otherwise create a new record.... in Update statement.. there is always a chance of creating a new record.. instead of updating the existing one...

  • Updation of the MENGE field in the BSEG table

    SAP 4.6C
    The material is moved from one plant to another. The excise on the same is also moved from one plant to another via STO. The value in the GL accounts is calculated using the quantity in the STO. However when the FI posting is triggered, the quantity does not flow to the BSEG table (MENGE field), but the value is populated.  The posting is triggered via conditions and via OBYC setting
    How can we populate the quantity in the FI document.

    Hello,
    There is a note to help you on to achieve this requirement. CAn you please check the note 608340??
    This note has a detailed description about what should be done to update the field MENGE.
    Regards,
    Renan

  • To update BSEG table

    Hi,
    How to update the BSEG table????

    We also want to update the FM fields on the BSEG records. Some of this data posted early in the year and our budget reports are not reflecting the actual budget expenditures and availability. When we drill down in our reports, we get to the detail and find the improper Fund and Fundcenter assignments in BSEG.
    This data comes from Project WBSes and PM Orders which were corrected mid-year. So without opening those periods and reversing, correcting and reposting, we can't correct the data. My question is: Is there a way to correct those fields without doing the reversals?
    JThompson

  • Difference between Downpayment and normal invoice in updating BSEG table

    Hi,
      I created 2 different documents, 1 invoice via FB60 and 1 downpayment request between F-47.
      After which i perform a payment run via F110 on both documents and i realised that the bank account id for the document created via F-47 is not updated in the field HBKID for the BSEG table. However, HBKID is updated for the invoice created via FB60.
    I would like to if this is correct or if there is any config i need to perform for the HBKID field to be updated for document created via F-47.
    Thanks in advance.

    Hi,
    Please, look at the following note 524942. It should solve your problem...
    Regards,
    Eli

  • 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

  • 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

  • Help on BSEG table

    Dear all,
    Can anyone plz tell me when does KUNNR of 2nd line item of a particular document number (BELNR) get updated.Anywas,can the KUNNR from 1st line item be moved to the 2nd line item of that BELNR.
    What will I have to do for this?.Basically i will have to modify BSEG table.But as many tables will be logically connected,how can this be done?
    Edited by: Rahul Bhat on Jan 28, 2008 10:09 AM

    Hi,
    The KUNNR does not get updated for 2nd and subsequent line items of an accounting document no.
    The reason being, in an accounting doc, since the 1st line is a debit entry it always belong to the customer code. Hence fo any acc. doc, the KUNNR will be available for 1st line item. Whereas the subsequent line items are credit items and will get recorded against a G/L account and not against a customer code.
    This is designed as per std SAP. Also FYI, since BSEG is a cluster table and any changes to an acc. doc gets recorded in this table, its not advisable to change this std SAP table. It will lead to data in consistency in your system and lead to accounting errors during reporting.
    Regards,
    JLN

  • BSEG Table maintenance

    Dear SD Gurus,
    We are not able to see entries related to Material and material quantity in BSEG table. I am not sure why these entries are not coming in this table.
    As far as my knowledge goes BSEG table is a cluster table and an important part of the Accounting Document Segment.
    It comes in picture whenever there is a movement type of material such as 601 is involved i.e. at the time of PGI or PGR, i have my doubts over  u201Chow it is skipping data insertion in this table?u201D
    Could anybody let me know from where and how BSEG table fatched material and its quantity.
    Thanks in advance. Suitable  Text Removed
    Regards
    Vinod Kumar
    Edited by: Lakshmipathi on Jan 28, 2011 9:16 PM
    Dont offer anything

    Its happening after transporting some requests in Dec 2010
    In that case, you need to take the list of those requests and check which particular request relates to changes in SD table that parallely affects BSEG table.
    You can also check from document flow for that  Accounting document whether values are posted correctly in FI.  As a random test, take a billing document for which an Accounting document is generated and check in FB03 how many line items are flowing.  Next go to SE16 / BSEG and check whether you could see all those line items in this table.
    Meanwhile, you can also check from those transport requests what changes were made in which SD tables.
    Perhaps, you can also have a look at the following notes which may help you.
    1)  Note 10083 - BSIS missing for G/L account
    2)  Note 401646 - New DataSources for Line Items from FI-GL, FI-AP, FI-AR
    3)  Note 416076 - SELECT FOR UPDATE does not lock cluster tables
    4)  Note 608340 - SAP Cons.: No quantity update in subsequent posting from FI
    5)  Note 677630 - Correcting functional areas in FI documents
    6)  Note 685688 - Release of "old" invoices as of SAP R/3 Enterprise
    7)  Note 1497911 - F-26: All items not selected
    In case, you could find out the root cause, please update the forum without fail which will be very helpful to all.
    thanks
    G. Lakshmipathi

  • Amount getting rounded to hundreds in BSEG table

    Hi,
    I am passing an entry in TWD currency for 1000, but in BSEG table the field WRBTR gets updated as 10.
    Any idea why this is happening so?
    My conversion rate and exchange rate factors for this currency is 1:1 only
    Regards
    Malathi

    Hi
    The decimal notation is correct in su3 under default tab. For other currency my value is getting displayed with comma's and decimals.
    Also the amount entered is only 1000 and not 10. For all the entries we have passed in TWD, BSEG-WRBTR is getting rounded to hundred's
    Let me know on why this is happening
    Regards
    Malathi

  • Substitution required for BSEG field updation.

    Hi All,
    I am having a scenario for updating the BSEG-RECID field depending on the value of the RSEG-GEBER field in MIRO.
    When I am trying to create a substituion in GGB1 T.Code:field BSEG-RECID is not displayed there for creating the substitution
    How to get that field for applying the substituion in to that screen. Remaining fields in BSEG table are being displayed.
    Help me out.
    Regards
    Srikanth

    Hi SriKanth,
    You will have to update the table using SM30 or take a help from an ABAPer to updated the table.
    I do not remember the table,but check the techinical details of the filed names in substituition and ask the ABAP er to update the field you require to be in the desgnated table
    I think there is a program which does the chage for you
    Anand

Maybe you are looking for

  • Form validation working on one page, but not the other....

    Hope someone can help with this. I have a page below with a load of contact forms which all work fine : http://www.goodsafariguide.com/judges/judges.php I've trued to recreate (admittedly mostly by saving as....) the same functionality here : http://

  • Why is taking so long to render final cut 10

    Have Final Cut 10.1.1 on macbook pro. Clip has about 200 JPG in it each at 10 sec each.  Nothing else special. The Renderning in Background has been running for over 3 days. do not understand why

  • Moving date is before activation date

    I am moving on the 26th of the month but my new activation date is not till the 30th due to the house we are moving to, not being disconnected from their provider till that day.  A Pain but not a problem.  The question I have is, where we are moving

  • 10.10.2 - WiFi Issues Persisting

    My rMBP Late 13 13in Yosemite 10.10.2's Wi-Fi is still atrocious at connecting to my router, it's so horrible that it enjoys kicking itself off. Errors I keep getting in the console is related to netbiosd shutting down and it self-assigns an IP. Agai

  • Can you vary the Album Art Size on the iPod?

    I would like to know if you can change the size of the album art. It currently shows a small picture of the album. I would like to have the album cover most of the screen. Please advise.