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

Similar Messages

  • How to update Tr code FB02   and update the field reference key1 (bseg-xref

    Can any body
    help me how to update   Tr code   fb02
    and  update the field  reference  key1 (bseg-xref1)  with the interest amount
    calculated.
    Below i have  written My  program  flow logic
    The program should read the open items i.e debit items in the customer account,
    Based on the  invoice date and customer payment terms  calculate the due date and then the  interest should be  calculated on that item based on the due date.
    Use the  transaction  fb02  and update the field  reference  key 1 (BSEG-xref1)
    with the interest amount calculated
    Only  consider  customers whose  interest indicator  knb1-vzskz = 'vk'.
    Interest is to be  calculated for every  30  days
    at the rate of  1% .please see example below.
    Document date is 01.01.2007
    for amount  1000SGD   payment  term  7  days
    It becomes  due  on  08.01.2007
    until  06.02.2007 you should not  consider  for calculation of interest
    SGD  on   7.02.2007 run you can consider this  item for interest calculation

    Hi Robert,
    Thanks for answering.
    I am looking at Ref 2 should flow automatically to clearing document from the accounitng document for billing.
    Ex: Billing document is created and accounted. Ref 2 is AB
    Now when receipt is accounted for this biling document this AB should flow automatically to Ref 2 field.
    Thanks
    NNS.

  • How to update the field  BSEG-BDIFF

    Hi to All,
    do you know some funciont module or BAPI that update the field BSEG-BDIFF ?
    Thanks a lot.
    Best Regards,
    Umb.
    Edited by: Umberto Panico on Jan 18, 2011 10:40 AM

    Hi,
    Please check these FM.
    G_FI_UPDATE
    G_BKPF_BSEG_UPDATE
    If they don't work, you may need to write BDC program or find the user exits available to update the field.
    Regards,
    Siva

  • 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/forced field BSEG-XINVE

    Hello,
    can any of you please let me know, which is the user exit to update BSEG-XINVE ?
    I have need to forced this field, after save in MIGO, MIRO, FB01.
    BSEG-INVE = Indicator that you are dealing with a vendor invoice for capital goods.
    Is there any user exit, any BTE ?
    I wait your answer.
    Send you best regards.
    Thanks.

    You could try FI substitution (check [Creating a Substitution|http://help.sap.com/saphelp_erp60_sp/helpdata/en/5b/d2325b43c611d182b30000e829fbfe/frameset.htm] in  [Validations, Substitutions, and Rules|http://help.sap.com/saphelp_erp60_sp/helpdata/en/27/06e23954d9035de10000000a114084/frameset.htm] or[ search at sdn|http://www.sdn.sap.com/irj/scn/advancedsearch?query=fi+substitution].)
    Also check country definition in OY01. (for "historical" purpose, read [Note 396074 - FB01: Investment indicator not displayed|https://service.sap.com/sap/support/notes/396074])
    Regards,
    Raymond

  • 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...

  • 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.

  • USEREXIT to update BSEG-BVTYP field through VF01 transaction

    Hi Folks !
    I have a requirement where I have to update the Partner Bank Type(BSEG-BVTYP) field through the transction VF01.
    I tried with many exits like SDVFX008, RV60AFZC, RV60AFZZ and Includes like ZXVVFU01, ZXVVFU08, but unfortunately no results.
    I want to know which structure is passed from SD to FI when we create a invoice in VF01.
    Please help me, how could i update this field through VF01.
    Thanks in advance !

    Hi Sudarsan
    What u r telling u tried the exit
    SDVFX008 and u didnot get the solution.
    This exit is for the structure sd-fi only and i have created 2 projects with this for somw enhancement and its  populating with vf01.
    Pls try to craete a project on this exit and write code in the functionm exit of that definitely u will get the solution.
    Rajendra

  • 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

  • Updating custom fields in BSEG table

    Hi Experts,
    I searched through SDN but did not find satisfactory answer to my problem.
    The scenario is that FIDCC2 Idoc is coming to SAP system. This Idoc has extended to include few custom fields. These fields need to be updated in table BSEG. Table BSEG also contains these custom fields. However, the Idoc processing routine is not updating custom fields in table BSEG with the data coming in Idoc. How can I do that?
    Thanks in advance,
    Netrey

    This message is processed by function module IDOC_INPUT_FIDCC2. If you drill down into the code a little bit, you should be able to find BTE/open FI or user exit calls (CALL CUSTOMER-FUNCTION) before the document is being posted.
    I found two that are using the ACCIT structure for passing the line items, which should contain your customer fields as well, if they were added to BSEG properly (via transaction OXK3).
    Please have a look.
    Thomas

  • How to update the field ZLSPR of table BSEG

    HI Friends,
    Can anyone tell me how to update the field ZLSPR of table BSEG? I've a 700 line abap program and I should include some logic in this program to make an entry into BSEG-ZLSPR. Is there any FM/BAPI available? Is BDC a healthy approach?. My team lead do not want me to use UPDATE statement....please help.
    Thanks in advans,
    Varsha.

    Hi,
    Hi ,
    You will need to group that radiobuttons so that SAP knows they are linked together. To do this using the grahical layout editor simply select all the radiobuttons and then right click on them, Now choose define group. Once you have done this you should not need any of the "clear" or "='X'" statements SAP should control it all for you.
    hope this helps
    Reward if found helpfull...
    Venkoji Babu.

  • 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

  • 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-KIDNO

    Hi,
    There is a requirement to update the field BSEG-KIDNO not only for customer and vendor item but also in GL line item in an accounting document.
    Any advice on how to make this possible? It seems that I can't find userexit for this. I'm looking on using substitution exit but not sure if this can satisfy the requirement.
    Thanks for your help.
    Dru

    Hi,
    You can try making this field substitutable in GB01 table (switch 'Exclude' field) and then creating a substitution in OBBH. However, keep in mind that certain fields remain unchangeable via standard substitutions even if you modify their attributes in GB01.
    Regards,
    Eli

  • 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

Maybe you are looking for