Get Sales Orders from R/3 to CRM

Hi,
I want to get a list of the latest 3 sales orders which were placed for a Business partner.
The Sales orders are being created in R/3 and i want to be able to get this data into the CRM system.
The CRM middleware is not configured to sync R/3 to CRM.
How can i do this?
Regards
Shivani

Hi Shivani,
I am not sure whether I understood your question or not. But if you want to use standard MW to exchange the data then you need to do the following.
I am assuming your R/3 and CRM are connected to each other ( check the same using tr. SM50 and test the connection from one system to other system)
1> check the queues R3A* & CSA* are registered in transaction SMQR
2> check the tr. SMQS for your destination system.
3> check for the site R/3 - OLTP and check for the subscription ALL BUSINESS TRANSACTION (MESG) Subscripition. - > this is for data transfer from CRM to R/3.
4> define the no. range for transactions and transaction types etc.
then you can load the object SALESDOCUMENT using the transaction R3AS - put some filter for this adaptor object so that it will bring only those transaction which you want to.
Reffer to the Best practice guide for further details. you can get this in site help.sap.com.
Hope this will help.
Thanks,
Vikash.

Similar Messages

  • Customer fields replication in Sales order from R/3 to CRM

    Hi all,
    I want to replicate, for Sales orders, one field (ZFIELD_A) on item level (VBAP) from R/3 to CRM .
    I used transaction EEWB on CRM with the option "Adding new fields to Business transactions" and I flagged checkbox "Also used in R/3".
    All worked fine and all the repository objects where created both in CRM and R/3, and the fileds was appended in structure CUSTOMER_I (CRM).
    The problem is when I replicate the data, because of existing customer fields  in R/3.
    In R/3 I have exisiting fields on BAPE_VBAP
    ZFIELD_1  [CHAR1]  - existing
    ZFIELD_2  (CHAR1] - existing
    ZFIELD_A  [CHAR30] (the new one)
    Assuming the above field values are X-Y-thisisatest
    the value of ZFIELD_A in CRM will be "XYthisisatest", since R/3 sends, in structure BAPIPAREX all the three Customer fields.
    In the generated (from EEWB) method ZEEW_DATAEXCHANGE01->CRM_DATAEXCH_R3D_MBDOC_FILL, called when transferring the order to CRM , all the first 30 positions are moved to ZFIELD_A from CRM.
    A solution would be to change the generated coding of the above method, by truncating the first 2 chars, but it's not so nice (and I also could loose the changes after a generation of the EEWB project).
    Anyone has a nicer idea?
    thanks a lot,
    Fabrizio

    Hi
    Go through the following NOTEs
    736595,833585,863611,873771.
    Regards
    Nadh.

  • Get Sales order from Billing document number

    Given Billing document number from VBRK-VBELN, how to get the Sales order number VBAK-VBELN?

    Please check table VBFA.
    Below code might give you some idea:
    PARAMETERS: P_VBELN TYPE VBELN OBLIGATORY.
    DATA: COMWA TYPE VBCO6.
    DATA: IT_VBFA TYPE TABLE OF VBFA,
          WA_VBFA TYPE VBFA.
    COMWA-VBELN = P_VBELN.
    CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
      EXPORTING
       BELEGTYP            = 'M'
       COMWA               = COMWA
      TABLES
        VBFA_TAB            = IT_VBFA
    EXCEPTIONS
       NO_VBFA             = 1
       NO_VBUK_FOUND       = 2
       OTHERS              = 3.
    LOOP AT IT_VBFA INTO WA_VBFA WHERE VBTYP_N = 'C'.
       WRITE:/ WA_VBFA-VBELN.
    ENDLOOP.
    Kind Regards
    Eswar

  • Replicate Sales Order from R/3 to CRM

    Dear SAP CRM Gurus,
    I want to replicate the sales orders created in R/3 to CRM . These order flow to R/3 from legacy system.
    Please provide me the middleware steps need to be done for this. Also provide me other criteria required for replication to CRM,
    like same number range , order type etc.
    Thanks and Kind Regards
    Tom

    Hi Tom,
    Check the [Best practice guide C03|http://help.sap.com/bp_crm70/BBLibrary/Documentation/C03_BB_ConfigGuide_EN_DE.doc] for the details.
    Hope this will help.
    Thanks,
    Vikash.

  • How to right a logic to get sales order from agnetry in salesordercreateBAPI

    I am working on a Agentry project where I need to get the Sales Order number from backend SAP, for any newly created SalesOrder. When the User creates a new Sales order, he gets a local order id on the client device. When the user transmits data, the Original Sales Order number should be fetched from the backend.
    Kindly help me to create the JAVA coding for this task.
    Regards,
    Sumit Goyal
    Tags edited by: Michael Appleby

    Hello Surya,
    There is no such direct way to get the data but you can follow the below process.
    You can get this details by defining/designing a new Query.
    To develop a new query
    1. use SQ01 through infoset create query
    2. Use SQVI direct query by giving table.
    Purchase Requision :-
    Use Table EBKN  for the same and give field VBELN as selection field. Input your sales order it will give you the purchase requisitions exist against the sales order at output level.
    Purchase Order :-
    Use Table EKKN  for the same and give field VBELN as selection field. Input your sales order it will give you the purchase orders exist against the sales order at output level.
    Hope it will help.
    Regards
    AG.

  • Get sales order from invoice

    hello all.
    i have two importent questions and i hope you can help me.
    1. is there any way to get the sales order that the invoice is based on, in the xml and not as remark ? (can be as data and i will add it to the xml).
    2. in sbo there is a option to print any document when it is added to the data base. i want to override this and disable this option using sdk for a specific form or client, how do i do that  please?
    thank you in advance.
    Alon

    Hello Alon,
    Answers:
    2. in sbo there is a option to print any document when it is added to the data base. i want to override this and disable this option using sdk for a specific form or client, how do i do that please?
    You can just turn this option off on specific documents (AdministrationSystem InitializationPrint Settings By Document tab).
    1. is there any way to get the sales order that the invoice is based on, in the xml and not as remark ? (can be as data and i will add it to the xml).
    Sure, you have to create a small addon, which locates the basis document of the invoice (eg delivery or sales order). If you have multiple sales orders as a basis document of the invoice, you has to save them by individually.
    You can find here a query which uses a special feature of SQL to track the sales document flow
    /people/janos.nagy/blog/2010/01/07/reqursive-queries-in-production-sales-analysis
    Regards
    János

  • RFC to get sales orders for customers from r/3 to crm ..

    Hello,
    Is there already a FM (RFC) in place to get the list of sales orders from r/3 to crm.
    CRM middleware is not configured to get this data from r/3 to crm .. so am looking out for a r/3 FM module which i could call from crm system to get the sales orders as an export parameter ..
    Regards
    Shivani

    Hi,
    If you are replicating the sales order from R3 to CRM then you will get all the orders present in CRM. If that is not the case then you need to write one RFC in R3 to get the desired data as R3 is governed by Select queries on tables instead of Function modules in CRM.
    So if you want to fetch any information from R3 then you need to create RFC and use select query to get the data.
    Thank you.
    Ashish

  • FM in CRM to get sales orders based on a date range(created_at)...

    Hello Experts,
    Is there a function module to get the sales orders from CRM based on a given date range which
    is for the field created_at? Also, is the field OBJECTID in table CRMD_ORDERADM_H can
    be compared against VBAK-VBELN? Thank you guys and take care!

    Hi,
    You can create your own function module for this. You can fetch sales order from table crmd_orderadm_h, put input data as date, and two conditions for sales order should be object type = 'BUS2000115' and PROCESS TYPE = 'TA' if you are looking for standard order.
    You have to fetch object id from this table to get your order number.
    Thanks,
    Shweta
    Message was edited by:
            Shweta Verma

  • Which table I can get sales order no from delivery numbar.

    Hi,
    I want sales order no from delivery no. right now I am using table VBFA where I am passing VBELN and POSNN and geting sales order no. but performance of select query is very poor bcouse I am not passing first two key fields in the select query.
    Is there any other tablefrom where we can get sales order no. from delivery no. so that performance of report can be improved.
    Thanks,

    hi,
    sales doc header ( table VBAK ) copy to Delivery header table( LIKP)
    sales doc item table ( VBAP) copy to Delivery item table( LIPS)
    you can see this in copy control VTLA ,
    now u want slaes doc no. from dilv doc. no.
    so go to t-code se11.....
    fill table LIKP u will get VBELN field for deliv doc no, & TERNR field for sales doc. no.
    so if u want to call sales doc no from dilv doc no.. u can use table LIKP in ur report.
    i hope it will help u.

  • Mass sales orders from CRM to ECC

    Hi,
    We have a requirement to mass upload sales orders from CRM system ECC system. I could not able to find any option to push sales orders in bulk from CRM to ECC.
    Could you please let me know if you know any kind of solution for this kind of scenario.
    Thanks in advance!
    Regards,
    Kumar B.

    Hi Maggie,
    Thanks a lot for your response. But I could not able find CRMD_MASS_UPDATE in CRM system as well as in ECC.
    Could you please let me know how to try this other please let me know the program or tcode.
    Regards,
    Kumar B

  • Replication of BP and Sales order from CRM to R/3

    Hello everyone,
    I have a peculiar condition in my hands.The requirement is to replicate 10 business partners from crm to R/3 ,then the next 4 Business partners need not be replicated and then the next three replicated..How do we do this kind of replication....
    One thing more regarding the replication of sales order.When we save a sales order in CRM,is it automatically replicated to R/3 or do we need to release it manually??
    If yes,then if we do not want to replicate the sales order from crm to R/3,then what will we do?
    Consider that all the middleware settings are configured and working fine..
    Puneet

    Hi Bokhal,
    Please consider my answer from your recent thread dealing with apparently the same issue :
    Hi Bhokal,
    For filters in uploads please consider below:
    For Filtering the BP-upload, use the Administration Console
    (tx. SMOEAC) in the corresponding subscription of the "All Business
    Partners (MESG)" publication assigned to the R/3 site.
    Some publications (and the replication objects they are based on) are
    delivered as type "Simple bulk" which does not give you the opportunity
    to assign criteria values for filtering.
    You might have to re-create the publication. To do that:
    1) First delete the subscriptions "All Business Partners (MESG)" and its
    publications & the replication object.
    2) Recreate the replication object as type "Simple intelligent".
    3) Afterwards you can create a new publication via wizard of type
    "Simple intelligent (msg)" assigned to the BDOC-Type BUPA_MAIN. Then,
    you will be able to select some "filter criteria".
    The reason for deleting the "old" publication is, that you
    are not allowed to assign a BDOC-Type to more than one publication.
    4) But please keep in mind that there is no realignment supported. So
    you should only use fields for filtering, which cannot be changed
    afterwards.
    This is the "simple" solution for filtering on fields. This
    will not provide complex filter criteria.
    If you need this, you shall create a filter function in R/3- and/or
    CRM-Inbound and -outbound.
    If you want to keep the control about the upload trigger, you can add an
    additional module in transaction CRMC_BUT_CALL_FU, position > 200000.
    BUPA_MWX_BDOC_BPS_FILL_CENTRAL. Within this new module, you can delete
    all partners within the complex structure that you don't want to upload.
    Hoping that above will be helpful.
    Best regards
    Christophe Sturzel

  • How to get the Ship-To text for an Order from R/3 to CRM?

    Hi experts,
    how to get the Ship-to-Party text for an Order from R/3 to CRM?
    Here I used a Function Module CRM_ORDER_READ and its working in the Development server.
    After when this passed to the Stage Server for the Order i am maintaining the same Ship-to-Party for the order in the Stage server and I am no getting the text for that{Text maintained for the Ship-to-Party in the stage server}.
    Thanks in advance.

    Hello Nilaksha.
    You can use the following query. Modify the segment to be queried if you wish.
    SELECT cc.segment1||'.'||segment2||'.'||segment3||'.'||segment4 "Account",
    nvl(sum(l.accounted_dr - l.accounted_cr),0) "Balance"
    FROM gl_code_combinations cc,
    gl_je_lines l
    WHERE cc.code_combination_id = l.code_combination_id
    AND l.set_of_books_id = <your set_of_books_id'
    AND cc.segment2 = 'your segment value'
    AND l.effective_date <= '30-nov-09'
    GROUP BY cc.segment1||'.'||segment2||'.'||segment3||'.'||segment4
    Hope this helps.
    Octavio

  • Error in replication sales order from CRM 5 to ECC 6

    Hi,
    I am new to the middleware
    When I am trying to replicate the sales order from CRM 5 to ECC 6, i found the following error in SMW01 “R/3 adapter is called
    Message no. CRM_ORDER_MISC024
    I am unable to track what may be the problem and even I have checked the SMQ1 & SMQ2 in both CRM and ECC but nil.
    Can anybody help me out?
    Thanks in advance

    Hi Binu,
    Try check also the SMQ1 & SMQ2 on R/3 when you start trigger the
    document transfer from CRM to ECC. If you cannot see any similar document
    appear here, seems like your Middleware filter has not properly set.
    Check Middleware filter for document transfer, if I am not mistake, the object
    is SALES_DOCUMENT.
    Just check, if there filter which block the document to be sent to R/3.
    Hope this helps.
    Gun.

  • Error when replicate sales order from crm to r3

    Hello Guys,
    When I replicate a sales orders from a CRM system to R3 system the system does the following error in the smw01:
    queue name: R3AD_SAL_ERR
    error1:
    Please enter sold-to party or ship-to party
    Nº mensagem VP112
    error2:
    Sales document XXXX was not changed
    Nº mensagem V4219
    Any idea, why this happens?
    Mary

    Hello guys,
    I have solved my problem by my own.
    The problem was in the distribution of partner functions from crm to R3 (spro -> CRM->Basic Functions-> Partner processing->Data Transfer-> distribution of partner functions from crm to R3).
    The partner functions assigned to sales orders in R3 was the AG, WE, RE and RG, and in the CRM was SP, SH, BP, PY, the partner functions map wasn't correct
    I have had to map the correct partner functions between crm and r3. I have put in CRM the same partners functions that R3.
    Best regards
    Mary

  • How to get sales order data in substitution of fi-docu from GM posting ?

    How to get sales order data in substitution of FI documents from goods movement posting?
    When I posting a material document with movement type "501E", the system will creating a FI document automatically. And I need to get the sales order data in the substitution of FI document.
    I tried to export the data of the material document in user-exit "MB_CF001 Updating of material document data upon posting", but this user-exit does not triggered in the posting process at all. what's the problem?
    Do you have better solution or idea for this? Please help me. Thank you!

    Hello Harish,
    Please use BAPI_BUSPROCESSND_GETDETAILMUL to read details of sales order. This works as a remote enabled counterpart of CRM_ORDER_READ.
    Similarly if you want to display sales order from R/3, use FM BAPI_BUSPROCESSND_DISPLAY.
    Regards
    Kaushal

Maybe you are looking for

  • Thunderbird Mission Control Desktop/AutoConfig not working for some users

    I have the file: "C:\Program Files (x86)\Mozilla Thunderbird\defaults\pref\custom.js" It contains: pref("general.config.obscure_value", 0); pref("general.config.filename", "TMcustom.cfg"); I have the file: "C:\Program Files (x86)\Mozilla Thunderbird\

  • Photos in imovie are displayed twice ?!

    photos are displayed twice in imovie database !? Why ?

  • FrameMaker 8.0 Conversion to PDF

    Missing information in PDF document from FrameMaker 8.0... Issue with both our 8.0 Acrobat Standard and Professional packages dropping various items such as headings, bullets, pictures and other content from FrameMaker 8.0 Have the latest updates as

  • Behavior of ADD ROW button (v 2.0)

    Hi, I have a tabular SQL report form with 4 buttons: cancel, add row, submit, delete. I come to the screen with no records, execute a query. After that I need to perform insert. I press <ADD ROW> button, and correctly have one empty record for my pos

  • Weblogic.rmi.NoSuchObjectException

    Hi, Can someone tell me what could cause the weblogic.rmi.NoSuchObjectException to be thrown? Thanks, Ullas.