CRM Order Template

Dear SDN team,
Can anyone help me to find the possible solutions to archive /Delete an Order Template in SAP CRM 5.0 system ??
We initially want to create B2B Sales orders as "draft Orders" and later delete / Archive these draft orders which are used once .
Please help us on this.
Regards
Dinesh

Immediately after creating the order object, if you can use the function module
call function 'CRM_STATUS_CHANGE_FOR_ACTIV_OW'
  exporting
      objnr = <basket / order guid>
      vrgng = 'TOKO'.
you can set the system status to I1034 to Order template using program.
Alternatively, if the internal users want to use this with CRMGUI or WEBUI, you can create a custom status profile with a custom user status. The business transaction (Transaction column) is set to TOKO (Save as shopping basket) that might also do the trick of setting the system status. Configure this user status appropriately. By setting this user status, the corresponding system status will be triggered.

Similar Messages

  • How can I create a new sales order template in SAP CRM 7.0

    Hello,
    how can I create a new sales order template in SAP CRM 7.0 (Web UI)? I want to use this sales order template in scenario ´'Mass Generation of Sales Orders via Marketing Projects'.
    Thanks for your support in advance.
    Best regards,
    anvan

    Hi,
    Did you set up this scenario? I want something similar, but I want an ERP order to be created. Do you know if that is possible? Do you have som tips?
    regards Camilla

  • How can I create a new sales order template

    Hello,
    how can I create a new sales order template in SAP CRM 7.0 (Web UI)? I want to use this sales order template in scenario ´'Mass Generation of Sales Orders via Marketing Projects'.
    Thanks for your support in advance.
    Best regards,
    anvan

    Hi,
    Did you set up this scenario? I want something similar, but I want an ERP order to be created. Do you know if that is possible? Do you have som tips?
    regards Camilla

  • Problem with creation of Order template

    Hi Experts,
    We are facing an issue with ISA 4.0. B2B application.
    The extension data is not getting updated in CRM 4.0 while creating Order template.
    The same extension data is getting updated for Order template change process.
    Also same extension data is getting updated for  CRM order creation.
    Can any one put some lights on this issue ?
    for both order and order template creation the below statement is used for holding the document. 
    SalesDocument preOrderSalesDocument = bom.getBasket();
    Thnx.
    Regards,
    Murugan Arumugam.

    Hi Experts,
    We are facing an issue with ISA 4.0. B2B application.
    The extension data is not getting updated in CRM 4.0 while creating Order template.
    The same extension data is getting updated for Order template change process.
    Also same extension data is getting updated for  CRM order creation.
    Can any one put some lights on this issue ?
    for both order and order template creation the below statement is used for holding the document. 
    SalesDocument preOrderSalesDocument = bom.getBasket();
    Thnx.
    Regards,
    Murugan Arumugam.

  • Unable to retrive Order template in SAP e-commerce 5.0.

    Hi All,
    I am trying to retrieve the Order template using e-commerce 5.0 backend as SAP 4.7 but i am getting below error in log.
    OpenSQLException#Cannot assign an empty string to host variable 13.#com.sap.sql.log.OpenSQLException: Cannot assign an empty string to host variable 13.
    Is there any configuration(SQL connectivity) required to retrive the order template?
    Please suggest.
    Thanks & Regards
    Manoj Sahoo

    Hi Manoj,
    It seems there is problem with Database connection or Tables are not maintained in Database.
    For Database Connections : There are some defaults settings done at installation process. You can check database connection in Visual Administrator.
    Server->Services->JDBC Connector.(If it is maintained then)
    check in web.xml of ISA application, whether the same data source name is maintained.
    <!-- security settings for administration area -->
         <resource-ref>
              <res-ref-name>SAP/CRM/b2b</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
         </resource-ref>
         <!--JDO connection factory lookup name, required-->
         <resource-ref>
              <res-ref-name>jdo/defaultPMF</res-ref-name>
              <res-type>javax.resource.cci.ConnectionFactory</res-type>
              <res-auth>Container</res-auth>
         </resource-ref>
    Note: SAP/CRM/b2b is a alias name to datasource maintained in JDBC Connectivity.
    If everything is fine, then goto database and check whether tables are maintained in database.
    Tables are :
    o CRM_ISA_BASKETS
    o CRM_ISA_BUSPARTNER
    Hope this gives you a fair idea.
    Regards,
    Devender V

  • FMs to get the order items list for an order template

    Hello everyone,
    I'm looking for sap FMs (or tables) to get the order items list for a given order template in CRM backend.  Any advice/suggestions?
    Thanks, Jin

    Hello Jin,
    Function module CRM_ORDER_READ with either the Header GUID will give you everything about the order and you can optimize the call by limiting the sets you want to get in the export tables.
    The item list (administration data) can be from ET_ORDERADM_I and the details about the products can be found from ET_PRODUCT_I
    FYI, this will work for any transaction - Order, Quotation and of course Order Templates too.
    Easwar Ram
    http://www.parxlns.com

  • Regarding Order Template search data ISA

    Hi,
    1)We are using ISA Frame work for E-commerce Project and we would like to know from where Order Template Search Results are coming. Whether it is coming from R3 System or some other Persistence Database.
    Steps:
    1)Go to Search Screen
    2)Select Order Template in Document Type drop down.
    3)Select other parameter and click on the go button.
    Search Result will be displayed below Search block.
    2)We added One extra text field called product id in the Search block and we want to search Order Template based on product id. How we can implement this functionality in the ISA Framework.

    Is there a XML file where I can configure the application to search for such orders which are in status "order template"
    Generic Search Framework was introduced from CRM 5.0 only. If you turn on the templates in the XCM configuration of the webshop, then you will most probably see them in the search.
    and how can I let them move from the template status to a open SO?
    Templates are never directly converted into Sales Orders. The templates make it easy for you to create a - say repetitive or periodic order. For example if month you order for several items to replenish your inventory - just an example. Every month filling the items in the order will be time consuming. So, we create a Template with all these items and save it for future use.
    These Templates always have the status order template.
    Now when you want to create Sales Order out of these templates, (a) ISA copies the template (2) creates a new order and (3) presents it to you for changes. You make changes to the template - such as quantities, dates, shipping address etc. and (4) Save the order.
    The template are left alone. The templates are never meant for one time use.Are you trying to use them as Quotations by any chance? If you don't want them in your system, you can always delete them.
    Well, to answer your question, follow the standard. Make a copy of the template and create a sales order.

  • Problem with creating order through order template

    Hi experts,
    We have problem with creating order by order template.  Extensions data available in order template is not sent to order.   Extension data are showing upto order submission form.  But after sucessful creation of order  extension data are no longer available in  CRM-ORDEr.
    We are using ISA 4.0 with CRM 4.0.
    We recently applied patches on CRM server.  Before patching it was working fine.
    Can you please suggest us to solve this issue?
    Thanks in Advance.
    Regards,
    Murugan Arumugam.

    closed.

  • Order template -runtime error

    Hello Time.
    When i open some order templates from the search result it is giving run time error.
    It is not happening for all order templates.? Any one can help me with any clues.
    I also want to know.
    1.How the order template is stored in backend.
    2. how we can differentiate between normal order and order template.
    3.Will search result for order template show all order templates in the system?. What is the filthater criteria for that?.
    4. What are the function modules involved in this?.
    Regards,
    Shanto Aloor

    Hello Denis,
    The below is the run time error i am getting.
    java.lang.NullPointerException: It was tried to rebuild the connection because of invalidity. It is not allowed because the connection type is not JCoConnectionStateless. You may also check the user authorizations.
         at com.sap.isa.core.eai.sp.jco.BackendBusinessObjectBaseSAP.getDefaultJCoConnection(BackendBusinessObjectBaseSAP.java:55)
         at com.sap.isa.backend.crm.SalesDocumentStatusCRM.readDocumentStatus(SalesDocumentStatusCRM.java:1086)
         at com.sap.isa.backend.crm.order.OrderStatusCRM.readOrderStatus(OrderStatusCRM.java:59)
         at com.sap.isa.businessobject.order.OrderStatus.readOrderStatus(OrderStatus.java:432)
         at com.sap.isa.isacore.action.order.DocumentStatusDetailPrepareBaseAction.isaPerform(DocumentStatusDetailPrepareBaseAction.java:270)
         at com.sap.isa.isacore.action.IsaCoreBaseAction.isaPerform(IsaCoreBaseAction.java:378)
         at com.sap.isa.isacore.action.IsaCoreBaseAction.isaPerform(IsaCoreBaseAction.java:418)
         at com.sap.isa.isacore.action.IsaCoreBaseAction.ecomPerform(IsaCoreBaseAction.java:344)
         at com.sap.isa.isacore.action.EComBaseAction.doPerform(EComBaseAction.java:375)
         at com.sap.isa.core.BaseAction.execute(BaseAction.java:212)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at com.sap.isa.core.RequestProcessor.processActionPerform(RequestProcessor.java:692)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at com.sap.isa.core.RequestProcessor.process(RequestProcessor.java:409)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at com.sap.isa.core.ActionServlet.process(ActionServlet.java:243)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:117)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:62)
         at com.tealeaf.capture.LiteFilter.doFilter(Unknown Source)
         at com.sap.isa.isacore.TealeafFilter.doFilter(TealeafFilter.java:61)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:384)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:219)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176
    Regards,
    Shanto Aloor

  • Quantity from Order Template to Order

    Hello Experts
    Does the order quantity flows from order template to order or from order to order when we click on transfer button on B2B web shop ?
    What is the standard behaviour.
    Thanks

    Hi DJ,
    This act of transfer button in ISA frontend is same as Copy Business Transaction button in crm gui.
    It not only copies the quantity and product but copies sold to party, ship to party, payer, bill to and all the
    other details also.You can think it of as a replica of the existing order.
    You can edit each and every detail in the new order but sold to party can't be changed.The reason is
    ISA application is designed in such a way that it logs in with sold to party and once you are logged in after
    selecting a sold to,this sold to is freezed and can't be changed anymore untill you logoff and login again with
    some other sold to.
    Regards,
    Arshi

  • Order Template

    Hi Experts,
    We are using CRM Webchannel with ECC Sales Order.Could you please let me know in this scenario where the order template is getting saved; i mean whether in CRM or in ECC and in which table?
    regards
    Satya

    THank you. I would like to correct my statement.  Order templates work differently between CRM and ERP backend system.
    For ERP, they are indeed stored on java server.  You do need to set the correct XCM settings.  The tables Easwar mentioned are correct (please reference other thread)
    For CRM, no XCM settings are not necessary as in CRM e-Commrece the order templates are written to the CRM database.
    You can use transaction CRMD_ORDER in CRM to view the templates and they will contain a system status = "Order Template".

  • How to update user status in CRM Order depending the delivery status in R/3

    Hi All,
    In my scenario the partial delivery allowed to the customer while creating the CRM Order. But as per my requirement the status should be updated when the complete order and delivery takes place.
       Let me describe you clearly:
    Suppose I want to deliver 5 quantities products to the customer but initially I want to deliver only 3 quantities and rest 2 quantities later. When I do the post goods issue of 3 quantities in R/3 system the status should not change in CRM system. When I will do the rest 2 quantities in post goods issue in R/3 then the user status should change in CRM Order. But in current when I do the delivery of 3 quantities the user status is changing in CRM Order.
    I need the user status should change in CRM only when the entire deliverytakes place in R/3.
    Thanx
    Chinmaya

    Whenever an item is fully delivered, by standard, a "Completely Delivered" status will be updated into the item. If the I suppose by referring to that you will know an item is partial or completely delivered. When all items in the order is fully delivered, the standard header status will set to "Completed". So, you will also know if the whole order is partial or completely delivered.
    If you want to add a user status, the simplest, you can make use of the ORDER_SAVE Badi. Just call the function CRM_STATUS_MAINTAIN_OW. You can update both header and item status.

  • WBS Element in CRM order

    Hi forum!!
    In the ERP order we assign a item of a order to a WBS element and we need to see that WBS element in CRM but that field does not appear in the CRM order!!
    Because of that I think about creating an ERP Order in CRM Order because the WBS element does exist!!but the problem comes here, when I insert the value in the WBS element that value disappears when I press enter or I save the Order.
    Does anyone of yours know something about that??
    Any ideas??

    HI Cecilia,
    I am also need to assign WBS element in service order item,but I can't find that filed.
    Can you share with me?
    Thanks
    Tiffany

  • Run time error while closing the CRM Order using BAPI

    Hi Experts,
    Need your invaluable suggestions here.Apologies for the lengthy mail, intention is to give clear idea of the issue.
    I am facing an issue while closing the CRM orders. According to our business process, when an issue is solved we will keep the order in resolved status only. We will not directly close the order from the CRM tool, instead we have created a custom program for the same purpose.
    For the custom program we will give input as the order number and execute it, this will close the order.
    Here close the order means assigning it to Close status as well assign the reason code.
    We have created some reason codes for closed status.
    So when the program is run the Order moves from resolved status to closed status along with reason code.
    But of late we are facing some problems with this program, it is giving run time error for some CRM orders.
    Run time error message : The ABAP/4 Open SQL array insert results in duplicate database records.
    The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught in procedure "CRM_SERVICE_OS_UPD_OST_DU" "(FUNCTION)", nor was it propagated by a RAISING clause.
    Please find my code which have used in the custom program
    Closing the resolved SOs in the system
        CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN_OW'
            EXPORTING
              objnr                     = iv_guid
              user_status          = lc_status_closed
           EXCEPTIONS
             object_not_found          = 1
             status_inconsistent       = 2
             status_not_allowed       = 3
             OTHERS                        = 4.
        IF sy-subrc <> 0.
          WRITE :  'Error at maintaining status'.
        ENDIF.
    Set reason code
    build lt_subject
        ls_subject-ref_guid = iv_guid.
        ls_subject-katalogart = 'A2'.
        ls_subject-codegruppe = 'ZR000003'.
        ls_subject-code       = 'ZR33'.                      " Reason code
        ls_subject-mode       = 'A'.
        APPEND ls_subject TO lt_subject.
    build lt_ossset
        ls_osset-ref_guid        = iv_guid.
        ls_osset-subject_profile = 'ZREASON03'.
        ls_osset-profile_type    = 'G'.
        ls_osset-subject         = lt_subject.
        APPEND ls_osset TO lt_osset.
    build lt_service_os
        ls_service_os-ref_guid  = iv_guid.
        ls_service_os-ref_kind  = 'A'.
        ls_service_os-osset     = lt_osset.
        APPEND ls_service_os TO lt_service_os.
    build lt_input_fields
        REFRESH: lt_input_fields, lt_field_names.
        CLEAR  : ls_input_fields, ls_field_names.
        ls_field_names-fieldname    = 'CODE'.
        APPEND ls_field_names TO lt_field_names.
        ls_field_names-fieldname    = 'CODEGRUPPE'.
        APPEND ls_field_names TO lt_field_names.
        ls_field_names-fieldname    = 'KATALOGART'.
        APPEND ls_field_names TO lt_field_names.
        ls_field_names-fieldname    = 'SERVICE_PROFILE'.
        APPEND ls_field_names TO lt_field_names.
        ls_input_fields-ref_guid    = iv_guid.
        ls_input_fields-ref_kind    = 'A'.
        ls_input_fields-objectname  = 'SERVICE_OS'.
        ls_input_fields-field_names = lt_field_names.
        APPEND ls_input_fields TO lt_input_fields.
         CALL FUNCTION 'CRM_ORDER_MAINTAIN'
          EXPORTING
            it_service_os     = lt_service_os
          CHANGING
            ct_input_fields   = lt_input_fields
          EXCEPTIONS
            error_occurred    = 1
            document_locked   = 2
            no_change_allowed = 3
            no_authority      = 4
            OTHERS            = 5.
        IF sy-subrc <> 0.
          WRITE :  'Error at maintaining reason'.
        ENDIF.
        CALL FUNCTION 'CRM_ORDER_SAVE'
          EXPORTING
            it_objects_to_save   = lt_header_guid
            iv_update_task_local = lv_update_task_local
          IMPORTING
            et_saved_objects     = lt_saved_objects
          EXCEPTIONS
            document_not_saved   = 1
            OTHERS               = 2.
        IF sy-subrc <> 0.
          WRITE : 'Error at saving'.
        ELSE.
          WRITE : 'Successfully Closed'.
          COMMIT WORK AND WAIT.
        ENDIF.
    Run time error is coming at COMMIT WORK AND WAIT statement.
    Please let me know any corrections are required in the above program.
    When I analyzed the run time error I have found that it trying to insert the record in CRMD_SRV_OSSET for that CRM order, but already one record is present in the table for the same CRM order number.
    For most of the CRM orders there is no entry in this table so they are closing successfully but for a few orders for which there is an entry we are getting the above run time error.
    There is nothing wrong with the orders which have an entry already in the table CRMD_SRV_OSSET, I need to close these kind of orders with out run time error.
    Kindly provide your feedback.

    Hi Dinakar,
    You posted this in APO PPDS forum. This question should go to PP forum where someone could answer it.
    Please close this thread and open a new thread in PP forum so that you could get help quickly from the relevant experts.
    Regards - Pawan

  • CRM orders with error "Do not enter a business agreement for sold-to party"

    Dear SDN'ler,
    after creating orders in SAP CRM via ISA (CRM 4.0) and uploading them to R/3 all orders are created successfully in R/3 but an error message is sent back to SAP CRM in case of ALL orders.
    Error message is the following:
    "Do not enter a business agreement for sold-to party xyz"
    Message no. CRM_BILLING011
    Diagnosis
    The field "FI-CA active" is not selected for the sold-to party 6000201 in the business master record. Since the business agreement is used in the component FI-CA, excluding the control of processes, it makes sense to enter a business agreement.
    Procedure
    Delete the entered business agreement.
    ==> Could someone please give me some more information about the mentioned "business agreement"? Where do I find field "FI-CA active" (in R/3 or CRM customer master data?)?
    ==> And how can I eliminate this error message for CRM orders in SAP CRM?
    Thanks a lot.
    Best Regards,
    Rainer Gryschka

    Please check the customising setting under following path:
    SPRO --> Customer Relationship Management --> Master Data --> Business Partner -- > Business Agreement --> Define Basic Settings
    Alternatively you may also check following customisation table using SM30 --> CRMC_BUAG_ACTV

Maybe you are looking for

  • How do i connect my new mac mini to the thunderbolt display

    how do i connect my new mac mini to the thunderbolt displa,  It arrives tomorrow?

  • No longer have access to data directories after installing 2008 Express

    I installed SQL Server 2008 Express on a virtual 2008 R2 Server, configured with separate drives for the various data directories (database, Temp DB and Backup) I am part of an Admin group and had access to the these drives prior to the install. Afte

  • How to erase the existance of a Time capsule

    Hi, I would like to know how to erase the existance of a Time capsule, like it never existed, because sometimes I can see remains of my old network, and I'd like to know how to reset all this, sincerely

  • Sort WBS element in project hierarchy

    Hi Our WBS element does by sequential numbering Eg: Level 1         2A.08       Level 2         2A.08.01       Level 3         2A.08.01.01       Level 2         2A.08.02       Level 3         2A.08.02.01 In transaction CJ02 is there any way we could

  • Find photos from iphone after restore to original settings

    So I was having issues after upgrading to OS4 and decided to follow advice to restore to factory settings. This did solve my issues with being able to edit contacts, but it presented a new issue. I did do a backup of the phone before the restore, but