Update BSEG

Hi friends,
    I have to update ZUONR field in BSEG table based on belnr rfzei & saknr,
could u please tell me how can i do that??
Thanks
Prashant

Use the bapi:BAPI_ACC_DOCUMENT_POST
To update BSEG table

Similar Messages

  • User Exit / BADI for  F-02 during SAVE to update BSEG Line Items.

    Hi Experts,
    I need a User Exit / BADI for Transaction code F-02 which triggers during save to update  BSEG-SGTXT with Vendor / Customer 
    name in the Tax Line Item.This is to update table BSEG .
    Thanks in Advance,
    Nithy

    Hi,
    Do it with the BTE 00001120 (tcode FIBF).
    I hope this helps you
    Regards,
    Eduardo
    PD: I forgot, check this link. It will tell you how to do it
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/207835fb-0a01-0010-34b4-fef1240ba9b7
    Edited by: Eduardo Hinojosa on Jul 15, 2009 6:38 PM

  • Updating bseg and bsis table ...

    Hello,
    I want to update bseg and bsis table. I guess i will have to use BAPI_ACC_DOCUMENT_POST.
    how do i go on using this BAPI ? any starter code snippet ...!!

    Functionality
    Using this method you can create a posing in accounting for certain business transactions.
    Possible ( Business Transactions):
    Postings that generally only affect the general ledger. (RFBU)
    Billing: For billing in Sales and Distribution, accounting is supplied with the relevant billing data. (SD00) Billing Document
    Accounting can use the data of a logistics system that result from an Invoice Receipt. (RMRP)
    Goods Movement are triggered by transactions in Sales and Distribution or by inventory postings. Within logistics, they lead to a change in the warehouse stocks of
    <DS:GLOS.Inventory Management>Inventory Management. This results in a posting in accounting. This is why accounting is supplied with the relevant data from logistics. (RMWA)
    Example
    Billing document:
    By selling goods in accordance with targets, revenue is generated. The revenue is posted in billing and forwarded
    to accounting.
    Invoice receipt:
    Raw materials are purchased in accordance with targets. The invoice receipt is posted in a logistics system. The data from the raw materials is forwarded to accounting.
    Goods Movment:
    The use of raw materials leads to a change in stock in inventory managment. The posting of raw material consumption is forwarded to accounting.
    G/L Account Posting:
    Provision posting for an expected warranty service. This can refer to acquisitions or retirements belonging to stocks that are not in subledger accounting relevant to inventory management. This is particularly the case if such materials are not displayed as vendor/customer, materials, loans etc. or cannot be displayed in this way. This can also refer to write-ups or depreciation that contain higher aggregations of values than are maintained in a corresponding subledger that is relevant to inventory management.
    The conversion of foreign currencies for receivables/payables due to large exchange rate changes that should not lead to an update of the accounts payable or accounts receivable accounting. A similar transaction can arise for the revaluation of raw materials if this revaluation takes place at a correspondingly aggreagated level.
    Reclassification of inventory of P&L statement accounts that are only used for reconcilliation purposes in the general ledger (this rearranges values for balance sheet items).
    Balance reclassifications of stocks to receivables with different return times.
    Notes
    If the parameter CurrencyAmount is filled with the currency fields, a complete document check including characteristics and value components of profitability analysis (CO-PA). Otherwise, the account assignment objects are checked.
    Messages are returned in the parameter Return. In the parameter documentation you can find the return values and their meaning.

  • Update BSEG field

    Hi All,
    I want to update a z.. field which was being added by someone..
    Problem is I can not do it through BDC..there is some problem in doing so...it will bit more work I already tried it.
    I am looking for a FM or BAPI through which I can update field. Field is "Basline date".
    Is there any update module for BSEG entries.
    Looking for your ideas...
    Thanks,
    Mark

    Hi,
    Refer Below code
    *& Form SUB_READ_UPDATE_BSEG
    text
    FORM sub_read_update_bseg.
    IF NOT it_final[] IS INITIAL.
    LOOP AT it_final INTO wa_final.
    UPDATE bseg SET zuonr = wa_final-ccnum
    WHERE bukrs EQ wa_final-bukrs
    AND belnr EQ wa_final-vbeln
    AND rfzei EQ wa_final-rfzei
    AND saknr NE ' '.
    ENDLOOP.
    *--Message data updated successfully
    MESSAGE i888 WITH text-002.
    LEAVE LIST-PROCESSING.
    ELSE.
    *--Message No data found
    MESSAGE i888 WITH text-003.
    LEAVE LIST-PROCESSING.
    ENDIF.
    ENDFORM. " SUB_READ_UPDATE_BSEG
    Regards,
    Prashant

  • Update BSEG-ZUONR with VBRK-BSTKD

    Hi experts,
    This enhancement will kick in in real time when ever a billing document is generated and it involves posting into accounting.
    Update BSEG-ZUONR with VBRK-BSTKD .
    I need the substitution rule exit details.
    Plz can u tell me that whether I can get BSEG-BELNR value into this substitution rule exit or I should go for something else.
    <removed by moderator>
    Thanks
    Edited by: Thomas Zloch on May 3, 2011 3:17 PM - urgency reduced

    Hi
    In my opinion, it will be easier with an enhancement. See Note 301077 - User exits for the interface to accounting. Depending of what kind of item you want update, you can write this code:
       xaccit-zuonr = vbrk-bstkd.
    In the corresponding ZX* include.
    I hope this helps you
    Regards
    Eduardo

  • Update BSEG-BEWAR when an FI document is posted

    Hi,
    The requirement is to update BSEG-BEWAR (Transaction Type) when an FI document is posted by any of the transactions F110, F111, FB01 or FF_5.
    Substitution exit is not working for F110.
    Please let us know any USER EXIT/ BTE/ BADI for the same.
    Thanks,
    Sweta

    hello,
    you could add implicit user exit inside FI_SUBSTITUTION_DOC FM.
    br,
    dez_

  • Update BSEG - Profit Centre

    I need to "update" BSEG-PRCTR. What is the best way to do this? I need to re-set the value for a specific GL Account. I can not do it using a BTE.

    You can not update this field. Else Profit center accounts will not be any more in sync with the general accounts.
    Look at SPRO Financial Accounting, Financial Accounting Global Settings, Document, Line Item, Document Change Rules, Line Item.
    Document Change Rules, Line Item
    In this activity, you determine under which circumstances fields within posted documents can be changed.
    Note
    For a number of fields, the system itself determines that they can no longer be changed after posting. This includes all fields which are central to the principles of orderly accounting, for example, the amount posted and the account.
    The system also prevents the update objects from being changed in documents which have already been posted, independent of the document change rules. Update objects are elements in the system for which transaction figures or line items are updated, for example, business area or cost centers (if cost center accounting is used in the SAP system). Update objects are entered as additional account assignments during posting.
    If you are using the Special Purpose Ledger application, you should ensure that fields which are updated there are protected against changes in the document. Document changes do not affect updating in the special purpose ledger.
    Activities
    1. Check the default settings.
    2. Change the specifications if necessary.
    Regards

  • User exit or FM or BAPI to update bseg-augbl field

    hello,
    i'm looking for a solution to update bseg-augbl field.
    is there a user exit or fm to do it ?
    please help.

    hi,
    i think, there's no fm or bapi -
    so try batchinput for transaction FB09.
    P.S.
    why do you want to change this field ? I think it's -<b>without exception</b>- a field that should be changed only by SAP-standard programs ?????
    A.

  • Extension for MIRO to update BSEG/BKPF

    Hi Experts,
      When MIRO transaction is saved, an user-exit should be triggered to update the 3 fields like ESRNR,ESRRE & ZLSPR(which is stored in structure RBKP_V).
       I tried all the 7 user exits (LMR1M001,LMR1M002, LMR1M003, LMR1M004, LMR1M005, LMR1M006, RMVKON00 , MRMH0001, MRMH0002 ,MRMH0003, MRMN0001) and 1 badi (INVOICE_UPDATE) .But in all this the structure RBKP_V is an importing parameter except LMR1M006 .But this user-exit is not getting triggered because it is change XML data.
    Now what I am looking is , to update the 3 fields in tables BKPF or BSEG. Because when a MIRO is saved , 2 document number is created (1 in Accounting document and the other in Invoice document ).
    So is there any user-exit or BADI to update BSEG /BKPF in transaction MIRO.
    Kindly help me
    It is very urgent.
    Thanks in advance
    Points will be rewarded.

    Hi Vinod,
              This can be done through FI Substitution, you may need to write an Exit in FI Substitution. Talk to your FI Consultants, and they should help you.
    Regards
    Srikanth M

  • 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

  • Update BSEG with alternative G/L account after assigning it at company code

    Hello,
    I'm facing an issue concerning the update of BSEG and other tables.
    We have started to work in Production from January 2010 without alternative chart of accounts. So many posting till now.
    Now the company wants to set up the local chart of account for some legal requirement. I know that once we have put an alternative chart of account, we can not change the local G/L account before balance at 0.
    But in my case, the local chart of account was not assigned to the company code. So I can put what I want in the group G/L account as alternative account.
    The idea is to create a local chart of account, after all local G/L accounts related to the local chart of account and after assign the local chart of account to the company code.
    The problem is that for all historical items (january 2010 to June 2010) I don't have the local G/L account in BSEG and other tables (FI)...and I need it for reporting.
    Thanks for your help
    Edited by: Oneforh on Jun 18, 2010 10:15 AM

    Dear,
    Check: http://sap.ittoolbox.com/groups/technical-functional/sap-acct/copy-chart-of-accountsgl-accounts-1530253
    Re: change alternative chart of account
    Change of Chart of Accounts
    changing chart of accounts
    I prefer to create new GL with new chart of accounts and copy the old GL balances.. but practically I didnt come across these situation.
    Check.
    Regards,
    Syed Hussain.

  • Problem in updating bseg-zuonr and bseg-sgtxt fields.

    Hi guys,
    I have a requirement to update    ZUONR  and  SGTXT   fields in  BSEG , BSAS, BSIS, BSAK, BSIK, BSAD, and BSID tables .  Is there any FM or BAPI to achieve this functionality as i dont want to use UPDATE statement. anybody please help me out.
    Thanks in Advance
    Regards
    satish

    Perform some search at scn on transactions FB02 and FB09 (BDC solution) or FM FI_ITEMS_MASS_CHANGE (BDC generator actually)
    Regards,
    Raymond

  • 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

  • Mass update BSEG-XREF1

    Hi,
    Can anyone suggest FM or BAPI to mass update in BSEG-XREF1, BSEG-XREF2 and BSEG-XREF3 besides using BDC and FM FI_ITEMS_MASS_CHANG?
    I tried to avoid using tcode FB02 and that is the reason i don't want to use BDC and FM FI_ITEMS_MASS_CHANG.
    Thanks.
    Juli.

    I guess only BDC via transaction FB02 is the only way..

  • Updating BSEG and BSID in RFEBLB00

    I checked the program RFEBLB00 for the code where it is updating the records in tables BSEG and BSID with the assignment numbers and reference numbers. I tried checking the forum for any inputs, but couldnt find any. I just need the part where its inserting the records into these tables. Any help would be greatly appreciated.

    There is no Direct Insert/update statements in the RFBIBL00.
    This program helps you to create a BDC either Call transaction or Session method to post the entire FI Documents Like in FB01, FB05 etc.
    You can't just update the half part like BSEG or BSID using the RFBIBL00.
    Regards,
    Naimesh Patel

Maybe you are looking for

  • Removing stand from Apple display

    We have an Apple 17' Studio Display(blue case)-probably 6 years old-a large bulky thing with a plastic tripod stand(Apple family M6496.). I would like to remove this stand so I can package this monitor to ship to another school.The stand moves forwar

  • Do I have to have Firefox on a desktop pc to use the app on my iPhone?

    I don't have a desktop but want Firefox on my iPhone. Is there a way to do this?

  • Defining Watch-Points in a abap report

    hi folks, does anyone has an idea who i can generate dynamically in abap watchpoints - with coding - in an application? i thinks it should be possible as debugger is written now in abap, and there are lots of classes  , but how to use them correctly.

  • Formula HELP... Pls

    Post Author: lantis CA Forum: Formula I want to create a report base on my data below.  I have a column VLWP and SLWP. What is the formula used if IDNO 100 has no SLWP only VLWP. When i drag the fireld sumofleave_days it displays the data on both Lea

  • Download Query Options with Report

    Hi all, I have a report on one of my pages that depends on a number of lists of values. I would like to see the values of these lovs included in the excel file when I export the report, so that the result set is reproducible. I do not, however, want