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

Similar Messages

  • BAPI to update Payment Method (BSEG-ZLSCH)

    Hi ABAP Gurus,
    Good day.
    I have looked for a FM / BAPI that can update the Payment Method (BSEG-ZLSCH) of documents and tried some such as
    CHANGE_DOCUMENT and FAGL_CHANGE_DOCUMENT_ADD.  Unfortunately, Payment Method is not being updated.  I have initially debugged the standard transaction but I can't find a specific FM or set of FMs that update the Payment Method.
    With these, i have question:
    Can you kindly suggest a BAPI or FM that can update Payment Method (BSEG-ZLSCH)? 
    Thank you very much in advance for all your help.
    Best regards.
    Rainnier

    Hi Rob,
    Thanks for your checking my question. 
    Yes, I can update my sample document via FB02.  But when I trying some standard FMs, I can;'t update the Payment Method.
    I noticed though that other documents can't be updated via FB02 (payment method is uneditable; perhaps needs to be configured).   
    Thanks in advance for your time and reply.

  • 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

  • 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

  • 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

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

  • How to update Assignment field in Accounting Document through BAPI ?

    I need to change Assignment field in already posted accounting document through bapi or some other automatic method. Please tell me exactly which bapi I should use and how can I pass the changed assignment field?

    Hey,
    I couldnt find any BAPIs which update an accounting document. I think the safest way is to record FB02 and use BDC/Call Transaction.
    -Kiran
    *Please reward useful answers

  • I am trying to update a number of items which the software check brings up:      It runs and says it is installing but at the end I get this error message:    The update could not be expanded, and may have been corrupted during downloading. The update wil

    Hi,
    I am trying to update a number of items which the software check brings up:
    It runs and says it is installing but at the end I get this error message:
    BUT then I ge tthis:
    Can anyone help me to enable the software to update?
    Thanks

    Thanks.  Something isn't right as I just tried to download the iphoto update - it said it had competed the download but then when I clicked on the download item I get this:
    Think will have to take it into the store.....
    thanks for replying.

  • Assignment Number updation

    Hi,
    Scenario 1: Contract --> Invoice --> Credit memo Request --> Credit Memo.
    In the above process cycle, we have the contract number appearing in the assignment number field of the credit memo - As desired.
    Scenario 2: Sales Order --> Returns Order -->  Credit Memo.
    In the above process cycle, we have the Returns order number appearing in the assignment number field of the credit memo - which is not expected. Whereas, we want the sales order number to appear in the assignment number field of the credit memo.
    The copy control settings for both Credit memo Request --> Credit Memo &
                                                           Returns Order -->  Credit Memo
    are: allocation number field has the option - "B" - Sales Order.
    For the billing document type --- the allocation number field has the option as "Blank"
    Regards

    Hi,
    For credit memo, you can get return order numer if you maintain "B" in copy control
    If you need  Previous sales order number then maintain sales order number in PO field of return order and you will get in credit memo if you set "A" in copy control
    Thanks
    Chidambaram

  • 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

  • Usage of Assignment number in VBAK-ZUONR

    HI Everybody,
    Can anyone throw light on the usage of the Assignment number feild in sales order header Accounting tab.
    How effective can we use this feild. Can anyone tell me with a small example.
    Thanks in advance.
    Regards,
    Pavan

    The user exit is a custom amendment to the standard code.
    You can use it as you wish to manipulate/populate data.
    These are the user-exits available for Sales Orders:
    SDAPO001            Activating Sourcing Subitem Quantity Propagation
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0001            Determine alternative materials for product selection
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing plan

  • FM/BAPI to get and update serial number of a material

    hi all,
    Can anybody tell me is there any FM/BAPI to get the serial number of a material (Tcode :IQ03) . FM/BAPI for updating the same.
    Your help is very much appreciated.
    Thanks in advance.

    hi
    Use this FM
    SERIAL_NUMBER_GET_MATERIALS
    REWARD IF IT IS HELPFUL.
    Thanks
    Siva kumar

  • How to find which BAPI updates which table

    1) I am new to SAP. is there any way to find which BAPI updates which table.  I have been given task to write a custom progm to change sevice notifications using BAPI_ALM_MAINTAIN* .<br />
    <br />
    i would really appreciate if any one would come with suggestions.

    SELECT owner, object_type, object_name, object_id, status
      FROM SYS.dba_objects
    WHERE object_id IN (
                       SELECT     object_id
                             FROM public_dependency
                       CONNECT BY PRIOR object_id = referenced_object_id
                       START WITH referenced_object_id =
                                                        (SELECT object_id
                                                           FROM SYS.dba_objects
                                                          WHERE owner = :owner AND object_name = :NAME
                                                                AND object_type = :TYPE))-- Mahesh Kaila

  • Assignment number in SO Header maps to which segment of ORDERS05?

    Hi All,
    Can anyone let me know the ORDERS05 IDoc segment that corresponds to the Assignment number field in sales order header Accounting tab?
    I need to specify the assignment number while creating a new order through IDoc.
    Thanks.
    Regards,
    Riyaz

    Hi,
    Use transaction we60 to find the relevant documentation for your idoc type.
    regards,
    Jakub

Maybe you are looking for