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

Similar Messages

  • 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

  • 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 BSEG-ZUONR  during the Post Goods issue.

    Hi
    We wanted to Update the BSEG-ZUONR with sales Order no( traverse back to the Original SO during reversal)  ( Basically Assignment field (ZUONR) in the Accounting side) after performing the Post Goods issue  USING TRANSACTION VL02N.
    Is there any user exit which can allow us to update the accounting field ( ZUONR) during the post goods issue ( Tcode VL02N)?
    Thanks a lot.

    Hi,
    you can achieve this using the concept of validation and substitution rules in FI (Check transaction OB28) or below help
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/27/06e23954d9035de10000000a114084/content.htm
    Hope this helps
    Regards
    Shiva

  • 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

  • BSEG-ZUONR can't change by BTE 1120

    Hi, gurus,
            I want to change the field BSEG-ZUONR with the DN number,  I use BTE 1120  to implement it, but it doesn't work. I refer https://www.sdn.sap.com/irj/sdn/nw-development?rid=/library/uuid/207835fb-0a01-0010-34b4-fef1240ba9b7  and follow it step to step, but the demo aslo doesn't change the field. Is there any customizing issue I need to revised?
    Thanks advance

    Hi,
    I wouldn't have used BTE for that, but rather substitution program RGGBS000.
    You need to make a Z_ copy of that program, affect it (GCX2 and OBBH), do some customizing steps (SM30 on VWTYGB01)in order to open the fields for substitution.
    Then create your own subroutines in ZRGGBS000 and set them in customizing (GGB1 for Financial Accounting).
    NB: read carefully F1 helps provided, since amonst the 3 substitutions (document header, line item and complete document), 'Complete document' has now some severe restrictions.
    Regards,
    N H

  • BSEG-ZUONR to Update COPA

    Hi All, We are trying to update COPA-KNDNR with the value posted into BSEG-ZUONR. The scneario is from the F104 transaction, posting of doubtful debt provisions where customer number is updated into BSEG-ZUONR and we wish to update COPA with this value so that the provision appears at customer level. Can anyone help?
    Thanks

    Hi Richard
    I have not done this with an automatic transaction like F104, but you can post through Fi to PA directly.  If it is the expense account, not the provision acc.
    In transaction OKB9, tick the PSG (profit segment) on the relevant account.  Create a field status variant for the account to post to the profitability segment mandatory and assign to account master data in FI
    Then create a derivation rule in PA.  Select new rule, select table lookup. Table BSEG enter
    In the assignment section fill in ZUONR = CO-PA - KNDNR
    If this doesn't work, you can create a characteristic group in PA  and assign the transaction for FI and select the relative fields that can be filled by the FI entry without intervention from the user.
    Hope this helps.  Please assign rewards if it does.
    Kind regards
    Dawn

  • Updating exist FI document BSEG-ZUONR data element.

    Hi there,
    We're trying to update ZUONR field on an FI document  (BSEG) after it has been posted.   I looked for a "change  fi document" BAPI and have not been able to do so.  Is a BDC for FB02 the only choice for such a requirement or is there a FM suitable for this task?

    First, thanks for the replies, second my apologies for not being more specific.
    Here is the scenario: I have new custom data element added to MIRO, which is eventually stored in the RBCO table (at the line item level.)   Our requirement is have this data element moved into the BSEG-ZUONR field.
    I am aware of BTEs and have attemped to do so using the 1120 process, but the problem is I don't have access to the original data as entered in MIRO in the tables available in that BTE.  It appears that the RBCO table is not even update until after 1120 process is executed.
    Once again, thanks for responses.

  • Which BAPI to update assignment number(BSEG-ZUONR)

    Hi All,
    I need to update a BSEG-ZUONR.
    I guess update is not the best way since i want to update in all related tables.
    Could you please let me know the BAPI through which besg-zuonr field can be updated.
    Regards,
    Dash

    Hi,
    This field you can control in Copying Control for Billing Doc(header) as target.
    Check Tcode VTFL(Delv to Bill), VTFA (order to bill) & VTFF (Bill To Bill)
    You can find the assignment/allocation number under additional information in the (document) line item that is forwarded from SD to FI. If the field was not filled in the order, you can determine the content of the field in this step:
    1. A:Customer purchase order
    2. B:Sales order number
    3. C:Delivery number
    4. D:External delivery number
    5. E:Actual invoice number
    If you do not make an entry and the field is not filled in the order, the field remains empty.
    If you would like to link the delivery to invoices in accounting (which is necessary in the self-billing procedure), enter 'C' for the relevant invoices.
    I hope this can assist you.
    regards,
    Ravi

  • Populating BSEG-ZUONR for GL Line item

    Hi experts,
    I need the system to copy field VBRK-ZUONR to BSEG-ZUONR when posting a billing document.  The situation is as follows:
    - When I post the billing document to accounting BSEG-ZUONR is populated for the customer open item but
    - BSEG-ZUONR is BLANK for the Sales Revenue line item
    This only seems to occur when I define SORT KEY 000 against the G/L Account Master (SKB1-ZUAWA).  Sort Key 000 is for Allocation number (which points back to ZUONR).  If I use a different SORT key (such as posting date) it works perfectly (copies the posting date to BSEG-ZUONR).
    Is there something I am missing in configuration/user exits that need to be switched on?
    There was a mention somewhere about using function module EXIT_SAPLV60B_004 but i cannot find this program in program SAPLV60B.
    Other information:
    - I am in SAP 7.0
    - There is no FI consultant on site to help
    - I have search through WIKI to find a suitable answer for this problem but do not seem to get the exact information.
    Your help is very much appreciated.
    Thanks,
    Rubi

    Hi,
    Lakshmipathi and Shiva are right. The easier manner to solve it is with OB16.
    If you want know more about the exit that you try to use, see Note 301077 - User exits for the interface to accounting. Use the table MODSAP to find the link between enhancement and components (function modules EXIT_*).
    Regards
    Eduardo

  • 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

  • Assignmnt num population(BSEG-ZUONR) in all line of Acc doc for Cr Memo(G2)

    Hi,
    Our business process is we create Credit memo request with reference to Returns Sales order and create Credit memo with reference to Credit memo request.
    When creating Accounting document from Invoice Assignment number(VBRK-ZUONR) is copied to BSEG-ZUONR of customer line item as well as GL Account line items in the Accounting document.
    When creating Acc Doc from Credit memo Assignment number(VBRK-ZUONR) is copied to BSEG-ZUONR of Customer line item only but not GL Account line items in the Accounting document.
    The same Customer & GL Account is used in both cases.
    Please hlep us to resolve the issue.
    Thanks in advance.
    Regards,
    Rahul

    Dear Rahul,
    I think It's SAP standard behaviour that field BSEG-ZUONR is not filled in     
    accounting item lines when you transfer a billing document to          
    accounting. Please have a look at program LV60BF00,                    
    form accounting_item:                                                  
    Felder, die nur in den Steuerzeilen vorkommen                        
      clear xaccit-kbetr.                                                  
      if vbrk-vbtyp ca vbtyp_reli.                              "WIA       
        clear xaccit-stceg.                                                
      endif.                                                    "WIA       
      clear xaccit-vbeln.                                                  
      clear xaccit-xblnr.                                                  
      clear xaccit-zuonr.                               ' <    here !!!    
      clear xaccit-gjahr.                                                  
    If you want to have this field filled for all item lines in accounting,
    then you have to use userexits to fill XACCIT-ZUONR. E.g. you can use  
    FUNCTION EXIT_SAPLV60B_004 to set XACCIT-ZUONR = VBRK-ZUONR in the     
    line items.                                                            
    I hope this helps.
    Balazs

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

  • Delta on BSEG-ZUONR

    Hi All,
    SAP offers the field BSEG-ZUONR in the extractor 0FI_GL_4. However the delta-mechanism does not work for this field. Am I doing something wroin? Is this a bug and has anyone experience with this? Or a workaround?
    Any help is appreciated.
    Regards, Guus

    Hi Guus,
    Please check the reason for the same in the below oss note :
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bct/~form/handler
    -Vikram

  • FIELD BSEG - ZUONR NON EDITABLE IN FB02

    Hi guys,
    I went to "Document Change Rules, Line Item" in SPRO inserting BSEG-ZUONR as Field Name and put a tick on "Field can be Changed".
    Unfortunatly nothing happened in FB02 and the field is still non-editable.
    Could you suggest me a solution?
    Thanks a lot

    HI,
    As mentioned in note 827413 there is a golden rule regarding the changeability of fields in FI documents:
    When the field is used in Special Ledger field movement then it    is not possible to change this field in FI using transaction FB02.
    The reason is that Special Ledger is only updated when the document is created. For other components like profit center accounting or special ledger a subsequent change in an FI document is only local. Special Ledger does not get the information about the change. Thus, in order to avoid inconsistencies between SL and FI those fields are not changeable.
    Please check the follwong field movements for Special Ledger which contain the field ZUONR in the field movement (tr. GCL3).
    Regards
    Ravinagh Boni

Maybe you are looking for