Issue in ORDER_SAVE badi

Hi All,
Scenario:
1. created new sales order in the CRM.
2. I am replicating the sales order from CRM to ECC and created delivery for this order.
When I see the sales order in CRM line item system status is updating based on the ECC delivery.
3.Based on the line item system status I have to change the line item user status. I have written my code within the ORDER_SAVE BADI and it is not triggering.
  Will  ORDER_SAVE BADI  triggered for middleware ?
I have to change the line item user status when the line item system is updated from ECC.Please help me where to write this code.
Thanks,
Venkat

Hello ,
Please check sap note 905430,where it explains there is no mapping between crm and r/3 for user status and you can check
the details for the same.
Also check the status profile.
Regards,
Deepa

Similar Messages

  • How to update Sold-To Party (In ORDER_SAVE BADI)

    Hi,
    I have a requirement as follows:
    In for a Sales Order, In ORDER_SAVE BADI, I have to do validation for Sold-to Party. If validation fails, I need to display an error message and I need to clear the Sold-to Party field, hence user has to select another sold-to party.
    Could you please let me know, how can I clear the sold-to party, in ORDER_SAVE BadI. Any FM's to do that?
    Thanks,
    Sandeep

    Hello Sandeep,
    why you want to delete the sold-to ? I think its just easier to give a error message in the log, so the users  could enter a new sold-to. Within the badi order_save you can prvent saving with exception do_not_save  - see note 1519171 for detailed information.
    Best regards
    Rene

  • Error message problem in ORDER_SAVE badi.

    I have used a error message using MESSAGE statement in ORDER_SAVE badi. The problem is when I press the save button and if the condision fails it shows error message. After if you press enter it shows the order is saved.
    It is strange. Please help.

    Can you give some more information?
    1. Which method of the badi are you using?
    2. Do you raise the exception error_occured in this method?
    In general, if you use change_before_update method and raise the exception if you do not want to save the order, the order would not be saved. This exception should be raised every time the method is executed if you do not want to save the current order.
    See the standard implementation class CL_IM_CRM_BUS20001_UPLOAD.
    Hope this helps. If not, post the code, so that I can check.
    Prakash

  • Can we migrate SharePoint Designer 2013 workflows from DEV to UAT to Live without any issues? Any bad experiences?

    Hi there,
    1. Can we migrate SharePoint Designer 2013 workflows from DEV to UAT to Live without any issues? Any bad experiences?
    2. When we deploy these workflows - does IIS need a restart?
    Thank you.

    That depends, did you create reusable workflows? Those can be deployed to another environment (of course depending on dependencies within the workflow itself)
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Creating an Order from within the Order_Save badi

    Hi Experts,
    I'm creating trying to create a sales order with in the 'order_save' badi.
    I heard that this is not a recommended practice.
    Any inputs on why this has to be avoided?
    Regards,
    Kris.

    Hi kris,
    DOnt worry about creating a transaction while saving a Document. In my previous project I used save badi not only to create new but also to Create and then attach the same to the transaction which is saved and then update the same as well with product.
    You can use the save badi but only make sure that you Dont; use the COmmit work or any Commit bapi else you will get short dumps while saving "Express document terminated"(Dump type).
    Hope this Helps.

  • CRM_ORDER_MAINTAIN - in order_save BADI

    Hi Experts,
    I want to update my order. I have to add the account assignment group to my service order when the order is saved. How do I pass this value in the badi order_save. I want to use the function module crm_order_maintain. Can anyone please suggest how do I go about it.
    Warm Regards,
    Abdullah

    Hi Experts,
    This is how I code after I use CRM_ORDER_READ in the badi method change_before_update.
      select single *
        from zco003
        into wa_zco003
        where service_org_shor = v_sorg and
              process_type     = v_process_type.
      if sy-subrc = 0.
        iw_ac_assign-ref_guid = iv_guid.
        iw_ac_assign-ref_kind = 'A'.
        iw_ac_assign-ac_object_type = '01'.
        iw_ac_assign-ac_assignment = wa_zco003-aufnr.
        iw_ac_assign-ac_percentage = '0.00'.
        iw_ac_assign-mode = 'C'.
        append iw_ac_assign to it_ac_assign.
        cw_orderadm_h-guid = iv_guid.
        append cw_orderadm_h to ct_orderadm_h.
        cw_input_fields-ref_guid = iv_guid.
        cw_input_fields-ref_kind = 'A'.
        cw_input_fields-objectname = 'AC_ASSIGN'.
        cw_field_name-fieldname = 'AC_ASSIGNMENT'.
        cw_field_name-changeable = 'X'.
        append cw_field_name to ct_field_name.
        cw_field_name-fieldname = 'AC_OBJECT_TYPE'.
        cw_field_name-changeable = 'X'.
        append cw_field_name to ct_field_name.
        cw_field_name-fieldname = 'AC_PERCENTAGE'.
        cw_field_name-changeable = 'X'.
        append cw_field_name to ct_field_name.
        cw_field_name-fieldname = 'AC_TYPE_T'.
        cw_field_name-changeable = 'X'.
        append cw_field_name to ct_field_name.
        cw_field_name-fieldname = 'MODE'.
        cw_field_name-changeable = 'X'.
        append cw_field_name to ct_field_name.
        cw_input_fields-field_names[] = ct_field_name[].
        append cw_input_fields to ct_input_fields.
        loop at et_orderadm_i into ew_orderadm_i.
          clear cw_input_fields.
          cw_input_fields-ref_guid = ew_orderadm_i-guid.
          cw_input_fields-ref_kind = 'B'.
          cw_input_fields-objectname = 'AC_ASSIGN'.
          append cw_input_fields to ct_input_fields.
        endloop.
        clear cw_input_fields.
        cw_input_fields-ref_guid = iv_guid.
        cw_input_fields-ref_kind = 'A'.
        cw_input_fields-objectname = 'ORDERADM_H'.
        append cw_input_fields to ct_input_fields.
        loop at et_orderadm_i into ew_orderadm_i.
          cw_orderadm_i-guid = ew_orderadm_i-guid.
          append cw_orderadm_i to ct_orderadm_i.
          clear cw_orderadm_i.
        endloop.
        loop at et_orderadm_i into ew_orderadm_i.
          clear cw_input_fields.
          cw_input_fields-ref_guid = ew_orderadm_i-guid.
          cw_input_fields-ref_kind = 'B'.
          cw_input_fields-objectname = 'ORDERADM_I'.
          append cw_input_fields to ct_input_fields.
        endloop.
        call function 'CRM_ORDER_MAINTAIN'
         exporting
           it_ac_assign                  = it_ac_assign
         importing
           et_exception                  =  et_exception
         changing
    *       ct_orderadm_h                 = ct_orderadm_h
    *       ct_orderadm_i                 = ct_orderadm_i
           ct_input_fields               = ct_input_fields
           cv_log_handle                 = cv_log_handle
    *       ct_partner_attributes         =
    *       ct_doc_flow                   =
         exceptions
           error_occurred                = 1
           document_locked               = 2
           no_change_allowed             = 3
           no_authority                  = 4
           others                        = 5
        if sy-subrc <> 0.
    * message id sy-msgid type sy-msgty number sy-msgno
    *         with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          message 'error in updating' type 'e'.
        endif.
    Can anyone please suggest what am I doing wrong
    Regards,
    Abdullah

  • Purchase order save issue, Using through BADI  PROCESS_PO_CUST ME21n

    Hi,
    Pls  Experts ,can we have some solution for this
    Purchase order save issue,  we are Using  BADI  PROCESS_PO_CUST currently we are throwing a
    message  using MMPUR_MESSAGE_FORCED if mandatory custom fields are not entered by the User,
    When we are saving the PO we are getting a exception which is raised by us ( custom message ) .
    Pls let me know is there any way to clear the message or to make mandory custom fields to be entered by user ..
    thanks  in advance...
    PK

    Hi Arnab,
    Thanks for quick response ..
    My requirement is if user is not entering the cusome fields then  i dont want to allow him to process any other Tabstrips  in the order .. thats the reason i am throwing an error message asking to enter custom fields.. then once user enters the custom fields which are created by   me .. then i should consider those values for further process like some other tab strips values maintained by the user then when we try to Save the PO still my custom error will be creating issue its not allowing to save..
    Can i have some solution ..
    thanks in advance.
    kumar

  • Pricing Issue Pricing Analysis - BADI ME_DEFINE_CALCTYPE

    Hi Guys,
    My requirement was to trigger new pricing on change of Delivery Date. I have to retrigger pricing only if there is any change in fields EKKO-INCO1, EKKO-INCO2,EKET-EINDT, EKPO-MATNR and EKPO-ADRNR.
    For the same I have implemented three badi's and one pricing routine.
    BADI's are -
    ME_DEFINE_CALCTYPE - Method DEFINE_CALCTYPE : Setting the Flag CH_X_LF_CALCTYPE If there is difference between the old value and new value of Fields mentioned above.
    ME_CHECK_ALL_ITEMS - Method RECALCULATE_ITEMS Setting the Flag CH_X_RECALCULATE. If there is change in the Incoterms field at PO Header.
    In these BADI's I am checking if there is any change in the above mentioned fields. It retrigger the Pricing.
    I have implemented one more BADI (ME_PROCESS_PO_CUST-Method PROCESS_SCHEDULE) which will trigger the pricing process, If we change the delivery date. This will pick the current delivery date and EXPORT it to memory ID which will be later IMPORTED to pass on this date to pricing header based on which the Pricing will be done on the changed delivery date. ( I hope I am correct here )
    I have a pricing routine for one of the condition type in pricing. I am exporting the changed delivery date to the routine and changing the value of KOMK-PRSDT with this new delivery date value.
    The issue is, When I do changes for the first time the pricing is working correctly. And I am able to see the PO field values for which the condition record is matched in the pricing analysis .But when I am saving the PO and again changing the values of Delivery date and any one of the fields mentioned. Pricing Analysis shows the same old values of PO fields for which the condition records were matched on last pricing cycle.
    Please let me know where I am wrong or where I can correct to display the current values of PO fields for which the condition records matched in the Pricing Analysis.
    Regards,
    Mayank
    PS : Points will be rewarded for all the helpful posts.

    hi this is the code:
    method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.
      DATA:   RE_DATA TYPE MEPOITEM,
              IM_DATA TYPE MEPOITEM.
         CALL METHOD IM_ITEM->get_data
         RECEIVING
            RE_DATA = RE_DATA.
    MOVE 'B' TO RE_DATA-calctype.
    CALL METHOD IM_ITEM->set_data
             EXPORTING
                IM_DATA  = RE_DATA.
    endmethod.
    Upon creation of PO error message prompt
    'Data from Business Add-In ME_PROCESS_PO_CUST not adopted'

  • Backdate Posting of Goods Issue using standard BADI

    Hi Experts!
    The standard BADI we are using creates an STO then a Delivery and Goods Issue via a userexit. We have a requirement to backdate the posting dates and have a concern of deficit stock levels at the point of Goods Issue. How do we control this?

    Hi,
    Instead of updating entire data of deliveries and PGI once, you can manually update the stock for a specific period and then update the Deliveries and PGI in the system.
    Or update entire stock at once till date and only then update the Deliveries and PGI in the system.
    Hope this helps.
    Regards,
    Sharan

  • 10gAS Portal and SSO issue, HTTP 400 Bad Request

    New installation
    10gAS Portal (9041)
    Sun Solaris 9
    Internet Explorer 6.0.28
    After installation, I changed the mid-tier web cache listening port to 80 by following the instruction in Oracle® Application Server 10g Administrator's Guide:
    http://download-east.oracle.com/docs/cd/B10464_05/core.904/b10376/ports.htm#sthref362
    Now I am able to go to portal homepage with port 80:
    http://<host-name>/pls/portal/
    And when I click on the Login link, it correctly directs me to the SSO login page.
    However, when I type in username and password, it returns HTTP 400 Bad Request error.
    The weird thing is, if I enter the portal homepage URL again in the same browser, and click the login link again, I am logged in.
    Any idea what might cause this issue?
    Would re-register portal help?
    Thanks,
    Carol

    The IIS settings probaly also need to get increased as well to accommodate the large number of groups. 
    I'll see if I can find a better link, but this should get it working.http://support.microsoft.com/kb/970875
    Bump up the values, restart the box and see if this continues.
    Cheers,
    Rhoderick
    Microsoft Senior Exchange PFE
    Blog:
    http://blogs.technet.com/rmilne 
    Twitter:   LinkedIn:
      Facebook:
      XING:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Issue with MIR7(BADI or User exit needed for stop SO data updating)

    Hi,
    While using MIR7 to post invoice, corresponding sales order item data is changed ,such as 'Billing date'.
    We don't want this happen. Please let me know if there is any BADI or Uer exit for achieving this. Thanks in advance..
    Regards..

    Hi,
    These are all BADI/Exit of MIR7 transactions.
    MRM_TRANSACT_DEFAULT
    MRM_HEADER_DEFAULT
    WRF_PREPAY_INVOICE
    MRM_ITEM_CUSTFIELDS
    BADI_FDCB_SUBBAS01
    BADI_LAYER
    BADI_FDCB_SUBBAS02
    BADI_FDCB_SUBBAS03
    BADI_FDCB_SUBBAS04
    BADI_FDCB_SUBBAS05
    PPA_CUST_BADI
    FI_TRANS_DATE_DERIVE
    Thanks ,
    Abhijit

  • BBP_PD_MSG_ADD  issue in CHECK badi

    Hi all,,
    SRM 5.0 ECS
    I want to display an error message in the cofnirmation screen bit in the form op a POP UP !
    I tried using the FM BBP_PD_MSG_ADD in the CHECK badi but it doesnt display the message in the pop up format!
    The strange thing is that the pop up msg is being displayed in the search list screen before I click on CREATE CONFIRMATION button!
    I want the pop up msg to be displayed after the user clicks on the next screen after user clicks on create confirmation button...
    Please help as to where I am going wrong....
    Here is my code:
    IF flt_val = 'BUS2203'.
        IF sy-ucomm = 'BUTTON_CHECK'.
    REFRESH et_messages.
          CALL FUNCTION 'BBP_PD_CONF_GETDETAIL'
            EXPORTING
              i_guid          = iv_doc_guid
              i_with_itemdata = 'X'
            IMPORTING
              e_header        = lt_conf_header
            TABLES
              e_item          = lt_conf_item.
          LOOP AT lt_conf_item INTO ls_conf_item.
    *get the PO # and doc type
            lv_po = lt_conf_header-be_refobj+0(10).
            CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
              EXPORTING
                i_object_id = lv_po
              IMPORTING
                e_header    = lt_po_header.
            IF lt_po_header-process_type = 'ECV' .
    CALL FUNCTION 'BBP_PD_MSG_ADD'
                  EXPORTING
                    i_msgty       = 'W'
                    i_msgid       = 'BBP_SC'
                    i_msgno       = '014'
                    i_msgv1       = text-001
    *            i_doc_guid    = iv_doc_guid
                    i_field_name  = 'EXPRESS'
                  EXCEPTIONS
                    log_not_found = 1
                    OTHERS        = 2.
    EXIT.
    ENDIF.
    ENDLOOP.
        ENDIF.

    Thanks Jay.
    If I change the SY_UCOMM to that of "CREATE CONFIRMATION" button,custom message does get displayed in POP UP form,but then the next screen (which should be displayed after lcicking on CREATE CONFIRMATION button) is not dsplayed and controlstays on the same screen which is worse!
    Please let me know if something wrongly written in  my code or if SRM CONFIRMATION screen is designed in such a way that custom messages cannot be diplaye din form of pop up!

  • Issue with New BADI activation

    Hi,
         I am working with BADI BADI_HRTMC_DR_FIELDS. I need to create a new implementation with filter value 'SAP_BP'. Already a standard implementation HRTMC_IM_DR_FIELDS_BUS_PARTNER exists with same filter value, but I dont want it to get executed. When I tried to activate my new implementation, I get error saying another implementation exists with same filter value. I am not seeing any options for deactivating the standard implementation. Please suggest how I can make my new implementation run instead of the standard.
    Thanks,
    Mahesh

    Done through IMG settings for this BADI.

  • Has anyone found solutions in LR5.2 to slideshow issues., i.e. bad color, corrupted images, etc?

    I am having major issues with LR5.2... first, the slideshow stopped working, though in LR 4 it worked, and still works, fine. Issues are that most of the time the slideshow would not start when "play" is started.  When it does start, images are totally distorted and do not playback correctly.  I spent two hours on with help desk, and they sent me 5 links to try, including deleting the preference files.  Did not help.  The only think I have not tried is re-installing the program, which is next.  I am leary because I have collections that I fear may be lost, though I know the catalog will be safe.  Can anyone shed some light on this disaster?

    Slideshow in Lr5 does not work well enough for me to use - I have found no solution other than "don't use it".
    Either export a slideshow from Lr, export (or publish) photos from Lr and feed them to a 3rd party slideshow app, or use a plugin like ShowBiz.
    That's all I can think of..
    R

  • K8T Master1-FAR issues, need help badly!!

    Hey guys been searching through the posts but cant find anything that specifically relates to my problem so though I would see if anyone has any suggestions before i take my mobo back.
    Basically i just went out and bought an entire new system because i had cash to spare and for once wanted a somewhat decent comp so i bought:
    athlon fx
    msi k8t master1-far mobo
    1gig of eff ddr 400 ram
    gf fx5900 ultra
    sb audigy 2 zs
    2 x 120gig sata h/ds (running on raid0)
    400w psu
    So i put everything together, posted fine, looked like everything was going smoothly, however i noticed the onboard lan con didnt light up, my router didnt register a new connection and the network controller didnt come up in the list of hardware on the dos screen right after the bios/post screen.
    So once I installed windows xp (have since installed 32 and 64 bit version no difference) found that it just cannot find any lan device at all, so i assumed the onboard lan was just faulty, no biggie i can just buy a new card for 20 bux, and everytime i tried to install any driver for my sb card it would get a page fault error and blue screen, which i didnt take much notice of since i saw so many posts with issues with sb cards and msi boards, so was just going to whack it into a new pci slot.
    If you are still with me sorry about the long ended post but i will try and get to the problem now.
    So i went out got a new nic, whacked it in, once again didnt see it AT ALL yet my router saw a new con and the green led lit up so it has power, i also put in my tv capture card which was detected by hardware but when installing the drivers just kept coming up with errors and would not start the device. At this point i thought it was xp32 issues so i installed xp64, exact same probs, but this time when i try to install sb drivers it says cannot detect any sb card installed. This leads me to believe that my board has a faulty pci bus or controller since everything on it seems to be gone to  regardless of which pci slot.
    So being rather frustrated i played with a lot of bios settings and even put the bus speed to 220mhz which ran the chip @ 4ghz according to winxp and it did detect the 3rd party nic but was so unstable i couldnt use windows at all. Also the entire time i have been running in 64 bit mode with the ram using banks 1 & 3 when i tried doing dual chan, banks 1 & 2, comp would not post at all unless i took out my 3rd party nic and the tv capture card, leaving only the sb audigy card in. yet i still could not get the sb card to run nor the onboard lan.
    So as it stands im at a total loss to what exactly is the problem, if i am totally forgetting something or if my board is just bung i have no idea but if anyone has any suggestions i would be most appreciative, thanks.
    kinda makes me wish i just stayed with gigabyte boards (first msi board i used ever)

    Nope as the CPU and Videocard take enough to let your current PSU crash
    Also, it can be a combination of RAM and PSU!!!!!
    But you will know after you installed the Enermax

Maybe you are looking for

  • How to delete multiple desktop in the address book option?

    I am trying to synchronise the adress book to a blackberry. Here`s the setting, BES version 4.0.3.5 blackberry 8330 e-mail platform: Lotus Notes on Domino servers The adress book is the names.nsf file from the computer that is copied to a server. In

  • Agent Desktop call duration active ?

    Experts,          Agent user email conversation.    "This has happened to me when I miss a call that comes thru the agent.  I'm not on the other line or anything.  Doesn't happen all the times, The only way to end the call is for me to log out of the

  • Connecting the source and target schemas to ODI

    Hi , I have recently started learning ODI tool for data integration. I need to use this tool as a part of Deal Management product related work. I have gone thru the documentation available in OTN for ODI. they were describing everything using the dem

  • "knowledge source failed"

    "knowledge source failed" gather form data(1) when i try and use the form wizard. have done four others with no problem, each of very similar content etc. I noticed others have asked but no solution... could someone help me figure this one out? windo

  • Move tool distress...

    Hello, I got this strange thing which, probably, easy can be solved: Normally when I want to select a layer I selected the Move-tool en pressed ctrl+on the part of the image in that particular layer (which worked fine for me). Now when I just click w