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

Similar Messages

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

  • 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

  • Creating ERP Sales Order from CRM 7.0

    Hi Experts,
    We are implementing the scenario-Creating ERP Sales Order from CRM. My doubt is:-
    Do we need to download the entire product data from ECC via middleware to implement this functionality?
    Is it possible that we manually create few products in CRM with same heirarchy and category and avoid middleware data download?
    My basic doubt is-what product information is passed to ECC from CRM when we create the ECC Sales Order? If only product id is passed, then we can avoid middleware data download for product from ECC to CRM.
    Can anyone please provide me some pointers on this? What should be the approach-download product data from ECC to CRM or manually create product data in CRM?
    Thanks and Regards,
    Rohit

    I´m trying to figure out the ERP Sales Order Scenario in CRM, i found the following link (sap.help) to customize the ERP sales Order in CRM, it´s a quickly guide supported by SALESPRO but in my case does not work, if somebody knows how to retrive the Order in IC i´ll appreciate.
    Here a quick Guide -->
    Prerequisites
    You can directly create and change an ERP sales transaction in SAP CRM once you have carried out the following:
    You are using SAP ERP for your Quotation and Order Management.
    You are using SAP CRM.
    You have assigned the relevant ERP sales transactions to a profile.
    You do this in Customizing for CRM, by choosing  Customer Relationship Management  Transactions  Settings for Sales Transactions  Define Profile for ERP Sales Transactions .
    You have defined an RFC destination.
    You do this in Customizing for CRM, by choosing  Customer Relationship Management  CRM Middleware and Related Components  Communication Setup  Define RFC Destinations .
    You have defined a business role by copying the standard business role SALESPRO to your own. You make this setting in Customizing for CRM, by choosing  Customer Relationship Management  Business Roles  Define Business Role .
    You have defined cross-system copy control of transaction types.
    You do this in Customizing for CRM, by choosing Transactions  Settings for ERP Transactions Maintained via CRM  Cross-System Copy Control for Opportunities and ERP Transactions
    I want to see the screens or video regarding with this scenario.
    Regards,
    Memo

  • 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

  • Replicate sales orders from  ecc to crm

    Hi experts,
                        We are creating sales orders in ECC and want to replicate them into CRM. Can you please tell me the configuration steps required in the middleware to replicate the orders from ecc to crm.
    thanks in advance
    Andy

    Hi,
    To replicate ECC Sales Order to CRM Sales Order, you need to setup up the Data Exchange in both the systems. This means you have to configure the systems, then you need to do an initial data exchanges and then finally the delta exchange will happen in both the systems. You need to look at the configuration guides for a proper setup of the systems.
    You can search the forum for a detailed document with special focus on the integration points.
    Also have a look at the following SAP HELP link:
    http://help.sap.com/saphelp_sm40/helpdata/EN/3f/40623c046a9b67e10000000a11402f/frameset.htm
    Hope this helps.
    Thanks,
    Samantak.

  • Meet a problem of data exchange for sale order from CRM to R3.

    Dear Friends:
          I do the data exchange for sale oder from to R3 today , the problem's detail is as follows:
          When i save a sale order in CRM (Version is 5.0) . it can automatically generate a bdoc which bdoc type is BUS_TRANS_MSG. but the bdoc status alway is "Sent to receivers (not all have confirmed)". and the original order in CRM can not be change .it quote that "Document is being distributed - changes are not possible",  so i check the order status analysis in detail .it presents two error messages ," Event 'BEFORE_CHANGE', attribute '     FINI': Error code for function module 'CRM_STATUS_BEFORE_COMPLETED_EC' , "Item is not yet completed in OLTP system".  so i check  the order in R/3 ,it has already been create and without any error messages.
       Would like to tell me how to solve it . thanks your any idear..

    Hi Benjamin,
    When performing uploads to R/3 from CRM there is a response from the OTLP system that is sent back to the CRM Middleware to confirm that the data records were received and processed correctly. 
    Here is a checklist you can run through to verfiy that the connections, systems and objects that are needed are all in place:
    <b>On R/3 system:</b>
    - Check R/3 outbound queue (transaction SMQ1) for any entries that are not reaching CRM.
    - Check that all RFC destinations on R/3 are defined correctly and are pointing to CRM
    - Check the CRMCONSUM table in R/3 to ensure CRM is registered as a consumer
    - Check the CRMRFCPAR table in R/3 to ensure that order objects are valid for exchange between R/3 and CRM
    - Check for any short dumps in R/3 (ST22/ST21)
    <b>On CRM:</b>
    - Are there entries stuck in the inbound queue (SMQ2) with R3AU* names?
    - What does the CRM Middleware Trace show (SMWT)?  Sometimes this has more detail than the specific BDoc overview (SMW01)
    - Check for short dums in CRM (ST22)
    Let us know what else you uncover and we can work from there.
    Brad

  • Error while transferring SALES ORDER from ECC to SCM

    Hi Experts,
          I am working with SCM4.0 and ECC 5, while i transferring the sales order from ECC5 to SCM ,it encounters with the following errore message.
    <b>Sales order M-10 1000: Integration model does not contain material master
    Message no. XC100
    Diagnosis
    To ensure a consistent dataset in SAP APO, the material master data for filter object Sales order M-10 1000 also has to be known in SAP APO. In the current case no entry was found for the combination   in the models that were checked.
    System response
    Object Sales order M-10 1000 cannot be transferred correctly.</b>
    Any kind of suggestions would be appreciated well.
    Thanks in advance..
    Regards,
    A.Fahrudeen

    Hi Fahrudeen ,
    I hope the master Data like Material and Location and Customer are not CIFed to APO prior to Sales order or else while ciffing the sales order you have not selected the sales order radio button and same time only enter the Material ,location and customer wothout the tick on filter objects for Mat/Loc and Cust.
    Hope this helps..
    Regds// Digs...

  • Custom fields replication in sales order from CRM to ECC

    Hi Experts,
    We have added a few custom fields in CRM 7.0 (Ehp1) using AET. The BDoc BUS_TRANS_MSG has been automatically extended with these custom fields.
    On ECC side also, same custom fields have been added to VBAK and VBAP, using APPEND STRUCTURE. Fields were added to ADDITIONAL DATA TAB B in VA01 / VA02 transactions.
    Our issue is, when a sales order is created in CRM, it is getting replicated on ECC. But, only standard fields are getting replicated. The custom fields that we have added are remaining empty on ECC side.
    In CRM --> txn SMW01, we can see that the BDOC is populated with custom fields also.
    What is it that we have to do to ensure that custom fields are also replicated to ECC. Do we need to maintain field mapping between CRM and ECC, for custom fields, manually. How and where do we have to maintain the mapping. Also, please let me know the BADIs / exits that need to be implemented to achieve the above functionality
    Regards,
    Manohar

    Hi Manohar
    You can map these custom fields using the badi CRM_DATAEXCHG_BADI. Please see the documentation of the badi in SE18 in your system for further details.
    Regards
    Gavin

  • Getting error when creat sales order and Stock Posting

    Hi
    I have created enterprise structure, xd01, mm01, ovkk but I count't post stock.
    When create sales order getting error is that
    1.This material is not defined for sales area 1000, 10, 00.
    And if i use this T.Code MB1C,
    2. Parameters for plant 1000 not maintained in Inventory Mgt.,
    *3. Unit *** is not created in language EN.*
    Thanks in advance

    Dear selvi sankaran
    1)  Compare the sales organization, distribution channel and division of customer and material.  In your case, either of that should have been created differently.  Maintain the same sales area and retry
    2)  Go to omi8 and maintain the required parameters to your plant
    3)  Go to Material Master, select "Additional data" and click on "Descriptions".  There maintain "EN" under language.
    thanks
    G. Lakshmipathi

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

  • Sales Area determination in follow-up ERP Sales order from CRM opportunity

    Hi Experts,
    Iu2019ve configured everything needed for ERP sales Order to be created as follow-up from CRM opportunity.
    sales area in CRM opportunity is correctly determined (but division is disabled)
    Sales Org : 1000, Distribution Channel: 10 and Division : 01 (Division is not displayed in opportunity)
    But when I created ERP sales order as follow-up document from opportunity, system checks for sales area 1000, 10, 00 (This sales area or Division u201800u2019 doesnu2019t exist in either systems ERP / CRM) and gives a error message.
    If you have any idea how sales area determination works in follow-up ERP Sales order please share.
    your help will be highly appreciated
    Thanks
    Manjushail

    Hi Christian,
    If the service order line items are entittled to service contract , at each item level you will get contract info in contract data tab.
    when you transfer these items to confirmation , confirmation item contract data will not have contract information. Only when you enter items in confirmation manually then system will pop up window for selection contract and confirmation items get contract information.
    thanks,
    Nitin

  • Error while creating Sales Order from IDOC_INPUT_ORDERS F.M

    Hi All,
    I am processing IDOC_INPUT_ORDERS from WE19 which should create New Sales Order.
    But it is giving Error/Exit message and coming out of screen this error is coming in Billing Screen[Item]. Also error is coming in BDC part.
    This error is occuring after one information message for 'Credit Check'.
    The error message is BS-022->["New object number is temporary"].
    But when i searched this error in VA01 code in SAPMV45A (or) in IDOC_INPUT_ORDERS it is not found anywhere.
    Also i searched through where-used-list for this message[BS-022] it is found in 2 other places[F.M's] which are no way related to IDOC_INPUT_ORDERS (or) VA01/SAPMV45A.
    Can anybody tell me
    1. Why this error is coming [BS-022 -> New object number is temporary"].
    2. Where exactly it is occuring in VA01/SAPMV45A!
    Can anybody solve this issue.
    Any clues in this regard will be appreciated.
    Thanks in advance.
    Thanks,
    Deep.

    Hi All,
    Can anybody give me some resolution for the above posted issue!
    Thanks in advance.
    Thanks,
    Deep.

  • Error when creating sales order using BAPI_SALESORDER_CREATEFROMDAT2

    Hello!
    I am using BAPI_SALESORDER_CREATEFROMDAT2 for creating the Sales order. But I have a problem when Iu2019m trying to create configuration. I think that parameter order_items_in-material should be generated before calling BAPI described above. I try to use order_items_in-mat_entrd, but BAPI return error message id = V1, number = 320 (No item category available (Table T184 ZAPC  TEXT )).
    Help me please, How I can solve this problem?

    <P><STRONG>FUNCTION Z_SD_GET_TEH_COST.<BR>"----<BR>"  IMPORTING<BR>"     REFERENCE(IS_COST_ORDER) TYPE  ZWCLIF_COST_ORDER<BR>"  EXPORTING<BR>"     REFERENCE(EV_KBETR) TYPE  KBETR<BR>"----
    </STRONG></P>
    <P><STRONG>  DEFINE fill_prizn.<BR>    IF is_cost_order-&amp;1 IS NOT INITIAL.<BR>      CLEAR: ls_cfgs_value-charc,<BR>             ls_cfgs_value-value.<BR>      ls_cfgs_value-charc = &amp;2.<BR>      ls_cfgs_value-value = is_cost_order-&amp;1.<BR>*      ls_cfgs_value-valcode = '1'.<BR>      APPEND ls_cfgs_value TO lt_cfgs_value.<BR>    ENDIF.<BR>  END-OF-DEFINITION.</STRONG></P>
    <P><STRONG>DATA: ls_header_in TYPE bapisdhd1,<BR>      ls_header_inx TYPE bapisdhd1x,</STRONG></P>
    <P><STRONG>      lt_partners TYPE TABLE OF bapiparnr,<BR>      ls_partners TYPE bapiparnr,</STRONG></P>
    <P><STRONG>      lt_items_in TYPE TABLE OF bapisditm,<BR>      lt_items_inx TYPE TABLE OF bapisditmx,</STRONG></P>
    <P><STRONG>      ls_items_in TYPE bapisditm,<BR>      ls_items_inx TYPE bapisditmx,</STRONG></P>
    <P><STRONG>      ls_cfgs_ref TYPE bapicucfg,<BR>      lt_cfgs_ref TYPE TABLE OF bapicucfg,</STRONG></P>
    <P><STRONG>      lt_cfgs_value TYPE TABLE OF bapicuval,<BR>      ls_cfgs_value TYPE bapicuval,</STRONG></P>
    <P><STRONG>      lt_schedules_in TYPE TABLE OF bapischdl,<BR>      ls_schedules_in TYPE bapischdl,</STRONG></P>
    <P><STRONG>      lt_schedules_inx TYPE TABLE OF bapischdlx,<BR>      ls_schedules_inx TYPE bapischdlx,</STRONG></P>
    <P><STRONG>      lt_cfgs_inst TYPE TABLE OF bapicuins,<BR>      ls_cfgs_inst TYPE bapicuins,<BR>      lt_cfgs_partof TYPE TABLE OF bapicuprt,<BR>      ls_cfgs_partof TYPE bapicuprt,</STRONG></P>
    <P><STRONG>      lv_vbeln TYPE bapivbeln-vbeln,<BR>      lt_return TYPE TABLE OF bapiret2.</STRONG></P>
    <P><STRONG>* fill header<BR>  ls_header_in-doc_type = 'ZAPC'.<BR>  ls_header_in-sales_org = is_cost_order-vkorg.<BR>  ls_header_in-distr_chan = is_cost_order-vtweg.<BR>  ls_header_in-division = '01'.<BR>  ls_header_in-sales_off = '1011'.</STRONG></P>
    <P><STRONG>  ls_header_inx-updateflag = 'I'.<BR>  ls_header_inx-doc_type = 'X'.<BR>  ls_header_inx-sales_org = 'X'.<BR>  ls_header_inx-distr_chan = 'X'.<BR>  ls_header_inx-division = 'X'.<BR>  ls_header_inx-sales_off = 'X'.</STRONG></P>
    <P><STRONG>* fill partners<BR>  ls_partners-partn_role = 'AG'.<BR>  ls_partners-partn_numb = '1000000031'.   " фиктивный заказчик<BR>  APPEND ls_partners TO lt_partners.</STRONG></P>
    <P><STRONG>*  ls_items_in-material = is_cost_order-matnr.<BR>  ls_items_in-mat_entrd = is_cost_order-matnr.<BR>  ls_items_in-target_qty = '1'.<BR>  ls_items_in-itm_number = '000001'.<BR>  ls_items_in-po_itm_no = '000001'.<BR>  ls_items_in-item_categ = 'ZCRM'.<BR>  SELECT SINGLE meins INTO ls_items_in-target_qu<BR>    FROM mara<BR>    WHERE matnr = is_cost_order-matnr.<BR>  APPEND ls_items_in TO lt_items_in.</STRONG></P>
    <P><STRONG>  ls_items_inx-itm_number = '000001'.<BR>  ls_items_inx-item_categ = 'X'.<BR>  ls_items_inx-po_itm_no = 'X'.<BR>*  ls_items_inx-material = 'X'.<BR>  ls_items_inx-mat_entrd = 'X'.<BR>  ls_items_inx-target_qty = 'X'.<BR>  ls_items_inx-target_qu = 'X'.<BR>  ls_items_inx-updateflag = 'I'.<BR>  APPEND ls_items_inx TO lt_items_inx.</STRONG></P>
    <P><STRONG>* fill configuration<BR>  ls_cfgs_ref-posex = '000001'.<BR>  ls_cfgs_ref-config_id = '000001'.<BR>  ls_cfgs_ref-root_id = '00000001'.<BR>  APPEND ls_cfgs_ref TO lt_cfgs_ref.</STRONG></P>
    <P><STRONG> ls_cfgs_value-config_id = '000001'.<BR>  ls_cfgs_value-inst_id = '00000001'.</STRONG></P>
    <P><STRONG>  fill_prizn kod_prod 'KOD_PROD'.<BR>  fill_prizn tlot_min 'TLOT_MIN'.<BR>  fill_prizn tlot_max 'TLOT_MAX'.<BR>  fill_prizn shot_min 'SHOT_MIN'.<BR>  fill_prizn shot_max 'SHOT_MAX'.<BR>  fill_prizn dlot_min 'DLOT_MIN'.<BR>  fill_prizn dlot_max 'DLOT_MAX'.<BR>  fill_prizn marka 'MARKA'.<BR>  fill_prizn stndrt_marka 'STNDRT_MARKA'.<BR>  fill_prizn stndrt_prod  'STNDRT_PROD'.<BR>  fill_prizn tprk 'TPRK'.<BR>  fill_prizn grot 'GROT'.<BR>  fill_prizn vityazhka 'VITYAZHKA'.<BR>  fill_prizn krom 'KROM'.<BR>  fill_prizn chisl_st_pokr 'CHISL_ST_POKR'.<BR>  fill_prizn kls_tol_pokr  'KLS_TOL_POKR'.<BR>  fill_prizn proch_izg_t_lic_max 'PROCH_IZG_T_LIC_MAX'.<BR>  fill_prizn priz_zasch_pov 'PRIZ_ZASCH_POV'.<BR>  fill_prizn vid_pokr  'VID_POKR'.<BR>  fill_prizn mark_pokr 'MARK_POKR'.<BR>  fill_prizn mat_pokr_lic 'MAT_POKR_LIC'.<BR>  fill_prizn plsk 'PLSK'.<BR>  fill_prizn vid_postavki 'VID_POSTAVKI'.<BR>  fill_prizn dressir 'DRESSIR'.<BR>  fill_prizn travl   'TRAVL'.<BR>  fill_prizn fsfr_min 'FSFR_MIN'.<BR>  fill_prizn fsfr_max 'FSFR_MAX'.<BR>  fill_prizn krmn_min 'KRMN_MIN'.<BR>  fill_prizn krmn_max 'KRMN_MAX'.<BR>  fill_prizn mrgn_min 'MRGN_MIN'.<BR>  fill_prizn mrgn_max 'MRGN_MAX'.<BR>  fill_prizn almn_min 'ALMN_MIN'.<BR>  fill_prizn almn_max 'ALMN_MAX'.<BR>  fill_prizn cugl_min 'CUGL_MIN'.<BR>  fill_prizn cugl_max 'CUGL_MAX'.</STRONG></P>
    <P><STRONG>  ls_schedules_in-itm_number = '000001'.<BR>*  ls_schedules_in-req_date = sy-datum.<BR>  ls_schedules_in-sched_line = '0001'.<BR>  ls_schedules_in-req_qty = '1'.<BR>  APPEND ls_schedules_in TO lt_schedules_in.</STRONG></P>
    <P><STRONG>  ls_schedules_inx-itm_number = '000001'.<BR>  ls_schedules_inx-sched_line = '0001'.<BR>*  ls_schedules_inx-req_date = 'X'.<BR>  ls_schedules_inx-req_qty = 'X'.<BR>  ls_schedules_inx-updateflag = 'I'.<BR>  APPEND ls_schedules_inx TO lt_schedules_inx.</STRONG></P>
    <P><STRONG>  ls_cfgs_partof-parent_id = '00000001'.<BR>  ls_cfgs_partof-inst_id = '00000001'.<BR>  ls_cfgs_partof-class_type = '300'.<BR>  ls_cfgs_partof-obj_type = 'MARA'.<BR>  ls_cfgs_partof-obj_key = is_cost_order-matnr.<BR>  APPEND ls_cfgs_partof TO lt_cfgs_partof.</STRONG></P>
    <P><STRONG>  ls_cfgs_inst-config_id = '000001'.<BR>  ls_cfgs_inst-inst_id = '00000001'.<BR>  ls_cfgs_inst-obj_type = 'MARA'.<BR>  ls_cfgs_inst-class_type = '300'.<BR>  ls_cfgs_inst-obj_key = is_cost_order-matnr.<BR>  APPEND ls_cfgs_inst TO lt_cfgs_inst.</STRONG></P>
    <P><STRONG>  CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'<BR>    EXPORTING<BR>      order_header_in               = ls_header_in<BR>      order_header_inx              = ls_header_inx<BR>*      testrun                       =<BR>    IMPORTING<BR>      salesdocument                 = lv_vbeln<BR>    TABLES<BR>      return                        = lt_return<BR>      order_items_in                = lt_items_in<BR>      order_items_inx               = lt_items_inx<BR>      order_partners                = lt_partners<BR>      order_schedules_in            = lt_schedules_in<BR>      order_schedules_inx           = lt_schedules_inx<BR>      order_cfgs_ref                = lt_cfgs_ref<BR>      order_cfgs_inst               = lt_cfgs_inst<BR>      order_cfgs_part_of            = lt_cfgs_partof<BR>      order_cfgs_value              = lt_cfgs_value<BR>            .</STRONG></P>
    <P><STRONG>  READ TABLE lt_return TRANSPORTING NO FIELDS WITH KEY type = 'E'.<BR>  IF sy-subrc = 0.<BR>    CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'<BR>              .<BR>  ELSE.<BR>    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'<BR>      EXPORTING<BR>        wait          = 'X'<BR>              .<BR>  ENDIF.</STRONG></P>
    <P><STRONG>ENDFUNCTION.</STRONG></P>
    <P><STRONG></STRONG> </P>
    <P><STRONG></STRONG> </P>

  • Sales orders from CRM are not getting blocked with credit check

    Hi All
    I have configured ECC in such a way that , if cutomer does not have enough creditlimt, then those sales order will get blocked. Our orders will come from CRM, and some times some orders are not getting blocked with credit check even though the customer does not have credit limit. And at the same time some orders are blocked with credit check...what are all the things that should be checked to diagnose the problem.
    Thanks in advance for looking into this

    Please check if you have any custom code/user exit in ECC which uses transaction code (VA01 , VA02 or VA05 etc) prior to invoking credit checks. 
    Orders created via CRM will not have transaction code set (SY-TCODE).

Maybe you are looking for