Sales Order saving functionality in ISA

Hello,
We are using CRM 4.0, with ISA b2b/b2c scenario. We are CRM as a standalone system but integrating it with backend legacy systems using sap XI.
I have following issue....in standard ISA application, we have an ability to save the order basket without rising an order. But in our scenario when as basket is being saved, it been saved under a sales order number & the respective idoc is being sent to outbound queue making it ready for the XI to transfer it to back end system.
How can i prevent this?
Thanks in advance
cheers
vamsi

Hi there.
You should insert your validations in include MV45AFZZ, form USEREXIT_SAVE_DOCUMENT_PREPARE instead of USEREXIT_SAVE_DOCUMENT. Both exits are triggered after user saves the sales order. However, USEREXIT_SAVE_DOCUMENT_PREPARE is called BEFORE database commit (usefull for aditional checks) and USEREXIT_SAVE_DOCUMENT (usefull to insert data in Ztables, for example) is called AFTER commit..
An example.
FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
  IF xvbak-auart EQ 'ZOT' AND xvbak-vkbur IS INITIAL.
    MESSAGE 'Fill VKBUR field' TYPE 'E'.
  ENDIF.
ENDFORM.
Regards.
Valter Oliveira.

Similar Messages

  • How to create Billing Plan in sales order using Function module /BAPI

    hi,
    How to create Billing Plan in sales order using Function module /BAPI
    i hv check few FM such
    BILLING_SCHEDULE_READ
    BILLING_SCHEDULE_GET_NUMBER
    BILLING_SCHEDULE_SAVE
    But unable to create billing plan for a sales order.....any other method to create???

    Hi,
    Use this link.
    Create sales order with billing plan via LSMW and BAPI BUS2032
    BAPI or Function to update Billing Plan in Sales Order Items
    Hope this will help you.
    Regards,
    Vijay

  • How to allocate inventory on sales order saving and before credit blocking

    Hi gurus,
    Hope you can assist us in our issue.  We are a food manufacturer and we had setup our availability check to CH and our MRP Type to PD.  The problems we had encountered are : 
    1)  If the order quantity is more than the available stock, it does not allocate anymore (for example - if order is 500cases and the available stock is 300cases only) and;
    2)  the allocated quantity after sales order saving changes after credit releasing (procurement tab) and sometimes becomes zero
    Implication is that we can not rely on the availability check at the same time credit block is again activated once we edit the sales order just to allocate.  Are there other config settings that we need to revise/update?
    Your immediate help is needed.  Thanks a lot. 
    Frances

    Rahul,
    Thank you, but this I need automatic as if I requiere my users to manually change the setting they will not and the order will go through. I heard somewhere that with the combination of SPs and authorizations this could be done however I don't know how.
    Any ideas?
    Thanks,
    GAC

  • Configuration is not updating in sales order using function module SD_SALESDOCUMENT_CREATE

    Hello Experts,
    we are using SD_SALESDOCUMENT_CREATE function module to create sales order.
    Sales order is creating successfully but the configuration for the items are not updating.
    Could any one help me out on this ....we tried in different ways but couldn't ....
    Here is the code....
    *---Filling Configuration data
    *--- Filling Configuration Reference Item / Instance
         w_sales_cfgs_refinst-posex     = w_items-itm_number.
         w_sales_cfgs_refinst-config_id = '000001'.
         w_sales_cfgs_refinst-inst_id   = '00000001'.
         APPEND  w_sales_cfgs_refinst TO  t_sales_cfgs_refinst.
         CLEAR  w_sales_cfgs_refinst.
    *---Filling Configuration Reference Data SALES_CFGS_REF Table
         w_sales_cfgs_ref-posex      = w_items-itm_number.
         w_sales_cfgs_ref-config_id  = '000001'.
         w_sales_cfgs_ref-sce        = '1'.
         w_sales_cfgs_ref-root_id    = '00000001'.
         w_sales_cfgs_ref-complete   = 'T'.
         w_sales_cfgs_ref-consistent = 'T'.
         APPEND w_sales_cfgs_ref TO t_sales_cfgs_ref.
         CLEAR w_sales_cfgs_ref.
    *---Filling Configuration Instances SALES_CFGS_INST Table
         w_sales_cfgs_inst-config_id       = '000001'.
         w_sales_cfgs_inst-inst_id         = '00000001'.
         w_sales_cfgs_inst-obj_type        = 'MARA'.
         w_sales_cfgs_inst-class_type      = '001'.
         w_sales_cfgs_inst-obj_key         = w_sales_items_in-material.
         w_sales_cfgs_inst-quantity        = w_items-target_qty.
         w_sales_cfgs_inst-quantity_unit   = 'EA'.
         w_sales_cfgs_inst-complete        = 'T'.
         w_sales_cfgs_inst-consistent      = 'T'.
         w_sales_cfgs_inst-OBJECT_GUID     = 'T'.
         w_sales_cfgs_inst-PERSIST_ID_TYPE = w_sales_items_in-material.
         APPEND w_sales_cfgs_inst TO t_sales_cfgs_inst.
         CLEAR w_sales_cfgs_inst.
    *---Filling Configuration Characteristic Values SALES_CFGS_VALUE Table
         LOOP AT w_items-itm_config INTO wa_itm_config.
           w_sales_cfgs_value_in-config_id = '000001'.
           w_sales_cfgs_value_in-inst_id   = '00000001'.
           w_sales_cfgs_value_in-charc     = wa_itm_config-charc_name.
           w_sales_cfgs_value_in-value     = wa_itm_config-charc_value.
           APPEND w_sales_cfgs_value_in TO t_sales_cfgs_value.
    *---Filling Configuration Variant Condition Key SALES_CFGS_VK
           w_sales_cfgs_vk-config_id = '000001'.
           w_sales_cfgs_vk-inst_id   = '00000001'.
           w_sales_cfgs_vk-vkey      = wa_itm_config-charc_name.
           APPEND w_sales_cfgs_vk TO t_sales_cfgs_vk.
           CLEAR : w_sales_cfgs_value_in,w_sales_cfgs_vk.
         ENDLOOP.
    Regards,
    Harsha P

    Hello All,
    Actually there was a bug in my code to update configuration for an item in sales order
    Below is my Updated Code with that i can updated configuration successfully....
    *---Filling Configuration data
    *---Filling Configuration Reference Data SALES_CFGS_REF Table
         w_sales_cfgs_ref-posex      = w_items-itm_number.
         w_sales_cfgs_ref-config_id  = '000001'.
         w_sales_cfgs_ref-sce        = '1'.
         w_sales_cfgs_ref-root_id    = '00000001'.
         w_sales_cfgs_ref-complete   = 'T'.
         w_sales_cfgs_ref-consistent = 'T'.
         APPEND w_sales_cfgs_ref TO t_sales_cfgs_ref.
         CLEAR w_sales_cfgs_ref.
    *---Filling Configuration Instances SALES_CFGS_INST Table
         w_sales_cfgs_inst-config_id       = '000001'.
         w_sales_cfgs_inst-inst_id         = '00000001'.
         w_sales_cfgs_inst-obj_type        = 'MARA'.
         w_sales_cfgs_inst-class_type      = '300'.
         w_sales_cfgs_inst-obj_key         = w_sales_items_in-material.
         w_sales_cfgs_inst-quantity        = w_items-target_qty.
         w_sales_cfgs_inst-quantity_unit   = 'EA'.
         w_sales_cfgs_inst-complete        = 'T'.
         w_sales_cfgs_inst-consistent      = 'T'.
         w_sales_cfgs_inst-object_guid     = w_sales_items_in-material.
         w_sales_cfgs_inst-persist_id_type = 'G'.
         APPEND w_sales_cfgs_inst TO t_sales_cfgs_inst.
         CLEAR w_sales_cfgs_inst.
    *---Filling Configuration Characteristic Values SALES_CFGS_VALUE Table
         LOOP AT w_items-itm_config INTO wa_itm_config.
           w_sales_cfgs_value_in-config_id = '000001'.
           w_sales_cfgs_value_in-inst_id   = '00000001'.
           w_sales_cfgs_value_in-charc     = wa_itm_config-charc_name.
           w_sales_cfgs_value_in-value     = wa_itm_config-charc_value.
           APPEND w_sales_cfgs_value_in TO t_sales_cfgs_value.
    *---Filling Configuration Variant Condition Key SALES_CFGS_VK
           w_sales_cfgs_vk-config_id = '000001'.
           w_sales_cfgs_vk-inst_id   = '00000001'.
           w_sales_cfgs_vk-vkey      = wa_itm_config-charc_name.
           APPEND w_sales_cfgs_vk TO t_sales_cfgs_vk.
           CLEAR : w_sales_cfgs_value_in,w_sales_cfgs_vk.
         ENDLOOP.
         CLEAR : w_sales_items_in,wa_mara,w_items,w_sales_schedules_in,
                 w_items-itm_number.
       ENDLOOP.
    Cheers,
    Harsha

  • Error in sales order saving

    hi Gurus
    i have  single problem related with sales order.
    while i saving the sales order it gives dump error.
    error details.
    Maintain the current CRM release (table CRMPAROLTP)
    Diagnosis    Various transfer errors occur when transferring SAP sales orders to    CRM or there is no status update or the status update has errors  when transferring from CRM to the SAP system. This is caused by an incorrect entry for the CRM release in the SAP table CRMPAROLTP, or  no entry is maintained at all.    system   To avoid data inconsistencies, this message causes a short dump.      Maintain table CRMPAROLTP in your SAP system as is described in SAP    Note 691710 and then repeat the process again.
    Trigger Location of Runtime Error
    Program   SAPMV45A
    Include     MV45AF0B_BAPIDATEN_ERMITTELN
    Row                                     338
    Module type                             (FORM)
    Module Name                             BAPIDATEN_ERMITTELN
    plz guide me.
    helpful answer will be rewarded
    chandrashekhar

    Hi,
    This type of error does occur when your programm is not updated with relevant notes.
    So first check with your ABAP guy, whether there is a genuine problem in the prog.
    If not, then consult your BASIS guy and tell him to download the relevant notes related to your error, so that the prog can be run successfully.
    Regards,
    Siddharth.

  • Tax Jurisdiction Code Check as part of a Sales Order Partner Function

    Hi,
    I have a scenario where we modify partner information directly in the sales order. These partners are simple addresses and are not tax relevant. We have set them up as one-time customers. Every time when we modify the address information, Vertex kicks in and tries to match the address information (street, city and state) with a tax jurisdiction code. In our case the address information is high level (only city and state) which is not enough for Vertex. SAP issues then a blocking error message.
    We try to find a way to ignore Vertex for these specific partners. In the documentation we have found a user exit, as well as a BADI, but our developpers were not able to make it work in the sales oder.
    The user-exit is the following: EXIT_SAPLFYTX_USER_001
    The BADI is the following: IF_EX_ADDRESS_SUBSCREEN
    In EXIT_SAPLFYTX_USER_001, I've found a parameter (EXEMP_IND) which could enable to bypass the tax jurisdiction code check and the RFC call to Vertex.
    In IF_EX_ADDRESS_SUBSCREEN, I've found a parameter (CHECK_ADDRESS) which could potentially bypass the check as well.
    Did any of you already experience this scenario or would you have an idea about how I could make this work?
    Thanks
    Loic

    Unfortunately, the sales order is created through an interface (using iDOCs), and the external system feeding the iDOC for the sales order creation does not have any Zip Code information. Besides, even if the Zip Code is entered, it is still not enough for Vertex to choose automatically a Tax Jurisdiction Code, most of the times, it is also requiring a District, which again, will not be passed from the interface.
    We went through this analysis already and we came to the conclusion that we need to bypass this check, as this partner function is not tax relevant.
    Thanks,
    Loic
    Edited by: Loic Dominik on Jun 27, 2011 7:39 PM

  • Authorisation at sales order partner function

    Hello All,
    The scenario is that there are group of users who have the authorisation to change delivery and assign a changed vendor (in partner function) at item level.
    Now this group even requires the authorisation to do this at sales order line item level (in partner function), so that the data is alike in sales order as well as delivery.
    My problem is, how to restrict the authorisation to only sales order line item level for partner function tab in VA02.
    An early help would be appreciated.
    Thanks and regards,
    AK

    Are we allowed to challenge the requirement ?
    Why does it bother you that the partners are different on sales and delivery docs ? Assuming you have delivery-related billing the partners on the billing doc will be those from the delivery.
    I don't like these automatic updates in the backgrounds, you will run into exceptional cases where you specifically do not want it to happen.
    Your authorization is set up not to allow these users to change the sales order. That is for a reason. Can't you put a procedural solution in place, some way contact the persons who do have access ? Could do that even via workflow.
    regards
    Rad.

  • Sales Order Partner Functions (Payers,Ship to Parties)

    Hi All
    When creating a Sales Order in the ICWC application,how can we get all the business partner which belong to different partner functions (All Possible Payers,All Possible Ship to Parties).
    In the application only one value is displayed by default.I want to fetch all the possible partner functions and fill these in a Pop-Up for proposal.
    Thanks & Regards
    Ajitabh

    Hi Ajitabh,
    Actualy the popup function for the partner selection in ICWC is disabled by coding, you will be able to check it in the debug.
    It is not easy to include this in ICWC, as if you simply activate the popup allowed flag in coding, there will be a short dump. As the popup is designed within the ABAP GUI environment not in the browser.
    SAP explains this as ICWC is used for quicker processing, thus nearly every determination will taken the defualt one to save time.
    I am not so sure whether it is possible to developer a new view for selection. This should need much work of codings/development.
    Hongyan

  • Not using substitute material while creating sales order with function?

    hi experts.
    I use SD_SALESDOCUMENT_CREATE function to create a sales order.
    Material A has a substitute material B with substitute reason 0005.
    So if I use material A when creating sales order with SD_SALESDOCUMENT_CREATE, the order is created with material B.
    I don't want to substitute the material automatically. I want to create the sales order with material A.
    What should I do? Help me please.
    Edited by: Ji Yeob Kim on Nov 19, 2009 11:34 AM

    Hi Kim,
    I also have same requirement. Please suggest how you resolved this?
    Thanks
    bvrnreddy

  • Sales order partner function

    Hi experts,
                   While creating sales orders all partner function should get copied from contract for same sales order no. ,
    But In our system only sold-to, bill-to, ship- to & payer get copied from contracts to sales order., other partner functions are custom functions...
    where I can find logic for this functionality?
    points will be rewarded.
    neo

    May be you can try in MV45AFZZ -> somewhere user exit will trigger..
    most of the scenario which will be in Config.
    SPRO ->click on IMG ->sales and distribution -> partners..
    Better to post in SD Forum ,you may get fast response
    Thanks
    Seshu

  • Sales Order - Parner Functions (Mandatory Fields)

    Dear All,
    As per the requirement I have created a new partner function (Consignee) at the header level of Sales order. While entering the order, User enter the address details for the Consignee partner.
    There are three mandaory fields in the address details (Name, City, Country). I want to make only Name as mandatory other fields are optional. I have tried in SPRO - FI - Accounts receivable - creat customer layout.  But which is not working.
    Could you please suggest what is best process to remove the mandatory fields at address details screen.
    Thanks & Regards

    Hi,
    Go to OBD2 tcode for your account group:
    The account group in SAP determine the followings:
    the interval for the account numbers
    whether the number is assigned internally by the SAP system or externally by the user manually (type of number assignment)
    whether it is a one-time account
    which fields are ready for input or require filled when creating and changing master records (field status)
    In the customer master there willl be tabs and in each tab u hav the feilds. To make the setiings as Optional/Mandatory/.... double click each tab in OBD2 and then set your field
    Regards

  • Can you create relationship between Sales Order and Functional Location

    I am working on a requirement for customer service.  We are using Functional Location for customer facilities.  We would like to relate a functional location to a sales order.  Purpose is that we want to relate purchase of items to the functional location.
    We can see that you can set technical object on a line by line basis, but you cannot relate a functional location.  Does anyone know if this is possible with out of the box configuration?  Or would I need to apply a user exit.
    Thanks,
    Tony Romain

    Hi,
    I don't think we can link a functional location to a sales order in standard sap.
    Prase

  • Need to send a mail to group of users when sales order saved

    Hi
    user requirement is send a mail to group of users when sales order is saved

    hi Sanjay,
    Have a look on Michal's blog, it's for JMS, but it works for others: [PI/XI: Quick tip: Preserving attributes of XI messages via MultipartHeaderBean|PI/XI: Quick tip: Preserving attributes of XI messages via MultipartHeaderBean]
    Mickael

  • Auto email in sales order saving.

    Hello,
    My requirement is like this,
    End user create a sales order , when he click on save button an  auto email should go to senior person about
    the sales order details.
    How can i do this please guide me.
    Thanks in advance.

    Hi Santosh,
    This can be done with the help of Workflow.
    Please refer the links below which will help you in understanding workflow on material create.
    [Material Create1|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0bbdb3c-d640-2a10-d3b2-e4d9b90536a6]
    [Material Cerate2|hi all ,i need a good documentation for a beginner in WORK FLOW ?;
    Same thing you can implement for SO Create.
    For SO create you can make use of Business Object BUS2032 and event SalesOrder.CREATED
    For workflow scenarios related to SD please refer the links below.
    [SD workflow scenario|http://help.sap.com/printdocu/core/Print46c/EN/data/pdf/BCBMTWFMSD/BCBMTWFMSD.pdf]
    Hope this will help you.
    Regards,
    Deepa Kulkarni

  • PLANNED ORDER CREATION FROM SALES ORDER SAVING (REQUIREMENT CLASS 200)

    Dear All,
    By using requirement class 200, assembly type 4 (dinamic planned order) Iwould like that at sales order registration the planned order for the sales order material is created.
    I have two problems.
    The system doesn't schedule the planned order, even if the scheduling parametres are entered for planned order type (relation between routing id and planned order type).
    So I have a planned order in which i have to manually schedule it.
    The second problem is that the planned order is firmed at creation. I would like that it was not firmed to adjust by MPS procedure the components from BOM modification. Infact at the creation of the sales order The complete BOM is not defined, and I don't want to unfirm the planned order so run th mps procedure.
    Can anyone answer to these questions?
    Thank's in advance
    Luca Pastura

    Hi Luca Pastura,
    For Scheduling
    1. You need to Give the appropriate check mark ( 1 or 2 ) In the capccity check of the requirement class configuration (ovzg)
    For Firming
    1. Since youare using dyanamic processing ""During dynamic assembly processing, you can not change the quantities and deadlines"
    2. kindly refer the F1 help for the assembly type inthe OVZG.
    Check and confirm
    Reg
    Dsk
    1.

Maybe you are looking for

  • Error in invoking web service

    I am trying to consume web service (created in NWDS 7.0 SP09 using EJB) in Adobe Flex 3.0.The web service has an array of string as input parameter.I am getting the following response: FaultEvent fault=RPC Fault faultString="Cannot find definition fo

  • BtTray.exe error on startup in Windows 8.1

    I receive a BtTray.exe Error, BsSdk.dll missing on startup in Windows 8.0.......... PC is 2 months old and has always done this. Joe_Rock 

  • Change Background Color of SharePoint 2013 Public Site

    Hi All,         I have started using Online SharePoint 2013 Version and I have task to change the background color of Public site via designer 2013 .can any one help me how can I achieve it Samar

  • KXML and J2ME

    Okay, i've been reading up on the tutorials, and I think i'm grasping things alot better. I will make two classes, one called "Card" for each individual card - and a collection of "Card" types will create a "Stack" class - in this manner I will only

  • How to place grouped items into another object with content collector tool?

    Is it possible to paste a group into another object (i.e. frame) by using the Content Collector Tool while linking the content?  Paste Into is either deselected or possibly whatever was last saved to the clipboard ends up inserting. I was able to pla