Delta sales order replication, per change to billing block, how?

Issue: We want a change to sales order billing block field to trigger creation of a sales order delta replication IDoc, but having trouble getting that to work.
We added entry to table TBD62, for table VBAK, field FAKSK (billing block field), so change pointer would be created.
We have variant for delta replication set up on program ODTF_REPL_CO_SALESORDER_ITM.
A change to billing block field creates entry in table BDCP2, so change pointers are getting created successfully.
But running program RBDMIDOC for message type ODTF_COBJ_SALES_ORDER_ITEM, which should create the delta IDoc via the delta variant on program ODTF_REPL_CO_SALESORDER_ITM, does not create an IDoc.
If I change a partner on sales order, such as revenue manager or engagement manager, and then run RBDMIDOC for message type ODTF_COBJ_SALES_ORDER_ITEM, then the IDoc gets created.
So need help on how to set up so a change to billing block field, field VBAK-FAKSK, will trigger creation of sales order delta replication IDoc.  There seems to be more to it than just having change pointers get created in table BDCP2.
thanks,
Mark

I found out why IDoc not getting created for change to billing block on sales order.
SAP program ODTF_COBJ_SALES_ORDER_ITEM needs a fix.
Sales Order replication program ODTF_REPL_CO_SALESORDER_ITM has this piece of code:
    LOOP AT cp_so_it.
      ls_vbpos = cp_so_it-low.
      IF ls_vbpos-posnr IS INITIAL.
        APPEND ls_vbpos TO lt_vbeln.
      ELSE.
        APPEND ls_vbpos TO lt_vbpos.
      ENDIF.
    ENDLOOP.
For changes to table vbpa, for example, since vbpa key has posnr, ls_vbpos-posnr will have a value, and this code works.
But for changes to vbak, which doesn't have posnr in table key, ls_vbpos-posnr here is blank, not initial, and this code doesn't work.
eg. CDPOS-TABKEY/BDCP2-TABKEY for vbpa change might be something like "1300040000560000000RM", but for vbak something like "1300040000560".
This data feeds this IF statement above, which fails for changes to vbak data in triggering IDoc replication correctly.
ODTF_REPL_CO_SALESORDER_ITM should be modified to handle vbak change pointer data without the posnr field.

Similar Messages

  • Workflow fo returned sales order modified from updating the billing block t

    please tell me how to find returned sales order modified from updating the billing block to delivery block and how to create blocks here.i want to know updating means what is happening here.

    Thread locked.
    Beginner questions are very welcome, but your question makes it obvious that you didn't even bother looking at the help or searching on SDN.
    Please read the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] on how to post a good question and make a little effort yourself before expecting people to give up their time to help you.

  • Copy control from Sales order to Delivery field FAKSK (Billing Block)- VTLA

    Hi All,
    I'm facing a standard issue, inputs and resolution from you would be appreciated,
    Issue is, If we put the Billing block in Sales order header this should not allow us to create an Invoice, But in my examples i can create the Invoice without any errors!
    The billing block from SO will be copied into Delivery header? if yes this will definitely not allow in my cases to create an Invoice, but i cannot see the Billing block copied into my Delivery! any Copy control settings missing?
    Why the Invoice will not check the Billing block from Order while creation?
    Thanks and best regards,
    Siddaram

    The billing block from SO will be copied into Delivery header? if yes this will definitely not allow in my cases to create an Invoice, but i cannot see the Billing block copied into my Delivery! any Copy control settings missing?
    Check Copy settings in VTLF tcode. Target is your delivery type. Source is your Sales Order type. Double Click to see Data transfer. Click on the small icon in field Header Data. Find your routine number and select source text. Look at the code if there is mention about LIKP-FAKSK field. You don't have ABAP, search the forum or google on how to comment it on your own to remove this data transfer.
    Why the Invoice will not check the Billing block from Order while creation?
    Check Copy settings in VTFA if it is Sales Order to Billing or VTFL if it is Delivery to Billing. Do something like above to find routines. But this time round is to check Copying requirements not data transfer and it can be at billing type level or at item level. If no check on VBAK-FAKSK field, you can copy the standard routines or make modification to customized routines to build the requirements checks. If no ABAP, search google on how to change routines.

  • Sales order replication with reference a quotation

    Hi Experts,
    Iu2019m having problem with sales order replication when it is a quotation subsequent document.
    The quotation and sales order replication, CRM to R/3 and R/3 to CRM, its OK if I create the isolate document (without reference), if I create a sales order with reference a quotation, I have the problem:
    I can se the error in SMW01:
    Document <quotation number> doesn't have document category C but <blank>
    The document is note replicate to R/3.
    If I create the document in R/3 the replication to CRM it's OK.
    I'm working withCRM 4.0
    Thanks
    Alex

    HI Ramesh,
    Question:
    Could you please tell me which segment do i need to use fill the reference document number (quotation) at header level.
    Sol: use segment E1EDK02
    Segment type E1EDK02 IDoc: Document header reference data
    QUALF 011 : Referenced Document Number
    BELNR XXXXX IDOC document number
    DATUM 20100121 IDOC: Date'
    what i've used in my program
    I'm using the E1EDK02 segment as you mentioned above.
    le1edk02-qualf = '011'.
    e1edk02-belnr = Quotes-vbeln.
    Question:
    Here my problem is i'm able to create the sales order with the custom program, but if i made any changes to the quotation Header
    (Ship-to party address) before creating the sales order, it is not reflecting into the sales order header level (ship-to party address).
    Sol: Check you custom code .. whether you are bringing write address to segement or not
    (if you change any address in Quotation then Address master is added with new entry with new address no )
    In my program..
    I'm passing the partner numbers and partner types (WE & AG) to the segment "E1EDKA1". (Ship-to & Sold-to).
    What i was thinking is the above segment is causing the problems, because if we reference the Quotation, we should not pass the Ship-to and sold-to numbers, it should take all those from quotation.
    I've tried to comment the code which we have written for that segment "E1EDKA1", it is giving me the error saying that
    Customer numbers can't be determined for the document number..
    Please guide me how to solve this problem..
    Thanks,
    Adi.

  • Significance of Inboun and Outbound queue in sales order replication

    Hi CRM Leads,
    What is the significance of Inbound Queue and Outbound queue in saleas order replication from CRM to ECC.
    What exactly happens in Outbound Queue and Inbound Queue.
    Thanks,
    Sandeep
    What

    Inbound - Tcode: SMQ2 :  Inbound in the context of CRM and this queue shows the business transaction, master data and configuration data that are coming from ECC into CRM .
    Naming Convention for Queues
    The names of queues for data transfers from an ERP back end to the CRM server are made up as follows:
      R3A (from ERP back end to CRM)
        I for the initial data transfer / for Data Synchronization
        D for the delta data transfer
        U for loading to the ERP back end
        R for Defining Requests
        <Object> Name or part of object name, or the name of the higher-level independent object
        <Key> Only delta queues are subdivided by keys
    Outbound - Tcode SMQ1 - Outbound in the context of CRM and this queue shows the transactions and data that are going from CRM to ECC
    See more on [Using CRM Queues|http://help.sap.com/saphelp_crm70/helpdata/EN/49/2d9d9707361903e10000000a42189c/content.htm] following the link.
    Read the [CRM Adapter Framework|http://help.sap.com/saphelp_crm70/helpdata/EN/49/2e33a2a6c51d24e10000000a421937/content.htm] for advanced learning.

  • EBS financial Sales Order Acknowledgement Address change

    Kind of a newbie question, new to apps space with 11.5.10.2, maybe I initially posted under the wrong forum
    Question on Sales Order Acknowledgement Address change
    our company recently moved to a new location so needs address change below our Company logo.
    Where Bill to: & Ship To: address fields are fine. Just the organization address needs to be changed below our company logo.
    Was going back & forth on the Navigator -> Application Developer -> FlexField : Descriptive -> Segments {Order Management}
    Looking for the rights fields to be update so it gets changed in the SO Acknowledgement when it gets published through the XML publisher I believe.
    Thanks for you help in advance.

    In addition to the function in the previous reply, you may use table VBPA and ADRC to get the details
    Raj
    Reward points if helpful

  • Creating sales order document with reference to billing document

    I have to create sales order with reference to existing billing document. I have tried to following bapis.
    1. BAPI_SALESORDER_CREATEed
    I have successfully created document with following details.
    -->ORDER_HEADER_IN:
    DOC_TYPE = ZRK
    SALES_ORG = 3000
    DISTR_CHAN = 00
    DIVISION = 00
    ORD_REASON = 100
    SD_DOC_CAT = L
    CURRENCY = EUR
    REF_DOC = 100000028
    REF_DOC_CA = M
    -->ORDER_ITEMS_IN:
    ITM_NUMBER = 000010
    MATERIAL = 701791
    TARGET_QTY = 0000000001000
    CURRENCY = EUR
    REF_DOC = 100000028
    REF_DOC_CA = M
    -->ORDER_PARTNERS:
    PARTN_ROLE = SP
    PARTN_NUMB = W12001
    COUNTRY = NL
    by providing this input i am able to create the document but it is not picking up the net value. so i have passed some extra paramters in ORDER_ITEMS_IN
    COND_TYPE = PNET
    COND_VALUE = 14,56
    COND_D_UNT = PC.
    folowing error is occured: Condition PNET is missing in pricing procedure A V Z0000.
    is it something related to configuration problem?
    2.BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2
    I have used same test data that is used for BAPI_SALESORDER_CREATEFROMDATA (where in i coudl succefully create doc). but here i encounterd following error.
    Unpermitted combination of business object BUS2032 and sales doc. category L.
    When i created manually using transaction : VA01
    I could do the same by passing following inputs:
    DOC_TYPE = ZRK
    SALES_ORG = 3000
    DISTR_CHAN = 00
    DIVISION = 00
    Reference document number.
    Please suggest me right way of approach.

    Hi,
    In SAP, when the sub-sequent document is existing , we can not cancel the preceeding document. Therefore if you want to cancel the billing document you need to calcel the documents which are created with reference to that.
    Check and confirm.
    Regards,
    Ravi Duggirala

  • How to trigger an Idoc from Sales order creation and change

    We are trying to trigger Idoc from sales order creation and change we have done following setting mentioned below:
    Follow the below steps:
    1. Go to NACE transaction
    2. Select V1 application and select OUTPUT TYPES
    3. Select the required output type and double click on Processing routines.
    4. Enter Medium as DISTRIBUTION ALE, Program as RSNASTED and Routine as ALE_PROCESSING.
    5. Save it.
    message type ORDERSP in the distribution model (BD64).
    Follow the below steps to configure the condition records:
    1. Go to NACE
    2. Select V1 application and select CONDITION RECORDS
    3. Select the requred output type and click on Condition records
    4. Selection screen will be displayed.
    5. Go for execution. In that screen enter the selection criteria. For eg Condition record is based on Sales document type. Then
    Sales doc type = OR
    Funt = SP
    Partner = blank. It means there is no restriction on partner numbers.
    Medium = A
    date/time = 4
    Lan = EN.
    Note: partner is left blank means, the sales order of type OR can be send to all partners.
    6. Save it.
    We also done ALE configuration.
    We are facing problem that from VA02 "No output has been selected for printing Message no. V1102"
    Kindly suggest the solution.
    Regards,
    Sharad Dixit

    Hi ,
    Please check the total error description and diagnosis as below :
    InVa02 enter SO  go to extras->output->Header->edit.You can find a table with all the triggered output types. Choose the output type BA00 with medium Distribution ALE and go for 'Processing log'. It will show you the error description.
    Please paste the diagnosis .
    Thanks and Regards,
    P.Bharadwaj

  • Create Sales order with reference to a Billing Document - Net price issue

    Hi Everyone,
        The Billing Document has one line item with Net value of 16,000. However, when I create the Sales Order with reference to the Billing Document, the net price shows 64,000.  When I check the Document flow of the Billing Document, there were two Contracts on top of my Billing Document. One is a contract with the overall status of "Being Processed" and this is where I checked the net value is 64,000. The next contract invoice is already completed (net value is 16,000).
        Has anyone encounter such case? How would I be able to create the sales order with reference to the Billing document and have the net value of what is in the Billing Document (16,000). Which part of the configuration is setting this up. Thanks!

    Hi,
    This is a very rare case, if you are sure of the scenario, would suggest you two alternatives:
    1) whenever you go against the flow of SAP, you have customize it, so its better you discuss this matter with your ABAP person.
    2) never tried it out but you can:
    you cannot see that in Billing Document that which is the sales document assigned to it, but to estblish that relationship,
    we do copy control setting from Billing Document to Sales Order type (T.Code:VTFA).
    Menupath: SPRO >> IMG >> Sales & Distribution >. sales >> Billing Document >> Copy Control >> Copy Control from Billing Document to Sales Order Type.
    Hope this will help you.
    Regards,
    Siddharth.

  • Create sales order with reference to archived billing

    Hello,
    Is it possible to create sales order with reference to archived billing?
    Thanks in advance and kind regards

    Hi,
      I think it is possible only return sales orders.
    regards
    karunakar

  • Stop sales order replication from CRM to R/3

    Hi friends,
    How can we stop the sales order Replication from CRM to  R/3? Pls Guide me.
    Thanking u in advance.

    Hi Madhu,
    You can do by making distribution lock set in further statuses  of the CRM sales order.
    It will stop replication of CRM sales order to ECC.
    Regards,
    Madhu

  • Sales order replication

    Hi,
    I have an issue related to Sales order replication. The replication is working for R3 to CRM, and the sales order created in R3 is getting replicated in CRM.
    In my case the customer wants to create the sales order from CRM and would like to send it to R3.
    The replication object that I have used in R3AC1 is Salesdocument, please let me know how do I replicate the sales order from CRM to R3
    When I create the sales order in CRM it gives a message: u201Cdocument is being distributedu201D and it does not give any errors, there is no trace of it in BDoc messages- SMW01, no trace of it in queue monitor SMQ1, SMQ2 in R3 and CRM.
    Regards,
    Amit

    Hi Amit,
    You need to goto site and subscribe there for business transaction for CRM. CRM to ECC.
    Reward points if helpful.
    Thanks,
    Srini.

  • Can a material of a sales order have more than one billing doc

    Hi,
    Can a material of a sales order have more than one billing doc(vbrp-vbeln)
    Regards,
    Seema

    Hi,
    Yes it is possible.we can have multiple invoice for a sales order of one line item.
    For this we should have order quantity not exceeds billing quantity at the item category level.
    Also we have to use teh field Quantity +/- indicator at the copy control level.
    Regards,
    Krishna.

  • Regarding UserExit in sales Order creation(VA01), change(VA02)

    *Hi Gurus,*
    we are having one requirement that we have to change User status at item level in sales Order creation(VA01), change(VA02) according to certain condition( condition is if user status at item level is 'SGUC' then we need to get item category and with this item category we have to find new user status from our custom table).
    *So is there any FM or user-exits to set the User Status of the Sales Order Line Item at the time of Order Creation(VA01) or Change sales order(VA02) but before saving.*
    *looking for your inputs.*

    Check,
    In include MV45AFZZ
    Routine USEREXIT_SAVE_DOCUMENT_PREPARE
    In include RV45PFZA
    Check with USEREXIT_SET_STATUS_VBUK ,  USEREXIT_SET_STATUS_VBUP

  • Sales order stock to normal stock, Billing in each stage of production

    Dear experts,
    Business process:
    In our client will process the goods in 3 stages. Finished good of on process is raw material of another process and sales order based production is going on in my client. Each stage of production required to bill to the customer. But we cannot deliver the goods to the customer and used internally in another stage of process.
    Problem:
    1.     At the time of good receipt in MB31 the finished good going to the sales order stock(Because of sales order production).  How to convert the sales order stock in to normal stock or How to stop it?
    2.     Process 1 stage SFG (7903-valution class) is issued to the 2 stage raw material. At that time all GBB-VBR setting had did it for consumption. In cost sheets and product costing I mentioned in those account. But error is visible in CO02 (production release) goto-cost-itemization. How to solve this problem?
    3.     How to generate the bill in each stage to the customer?
    4.     In last stage how to give the delivery?
    Thanks in advance for helping me.
    Regards,
    Venkat
    Edited by: Venkat.Fico on Aug 9, 2011 5:46 AM

    Hi
    If I understand you, you want to create SD invoices to your customer en each step. You can control each step by MM movements. So, you can populate customer tables (z-tables), for instance, with badi MB_DOCUMENT_BADI for instance and after, in the steps where the materials go on being raw materials (without delivery) you can try to create credit notes with a BAPI using the information in this z-tables and after invoice them. When you are in the last step, use the standard procedure (SO, delivery and invoice).
    I hope this helps you
    Regards
    Eduardo

Maybe you are looking for

  • How can I make a control inside a loop in a subVI change value when the calling VI's control changes?

    Hi. I think this is a pretty basic LV question, but I have not been able to find a good solution. I am attaching VIs that show the problem I am having, but obviously, the real application is a lot complicated, which forces me to try to do it this way

  • Urgent - How to get a pop up after executing a work item?

    Hi Gurus, I am working on a PO Approval workflow which is designed to approve multilevel POs depending upon its amount. Now the requirement is that I need to provide a pop up with list of second level approvers to the user immediately when the user e

  • Is there a street view on maps?

    Is there a street view on maps?

  • Cost Centre Report - Report Painter

    Dears I am trying to create a Cost Centre report to show the Cost element posting period wise in vertical columns. I am not able to get the required output. I am not sure whether I am mistaken anywhere. General Data selection : Controlling area, Cost

  • Fonts aren't working after update

    I recently updated my software and now my fonts don't work. Im not even sure what i updated, i know itunes and some system related upgrade. Adobe programs, quark and word all only show system fonts now but font book still shows all the other fonts an