CRM 4.0 ABAP Changing the Delivery priority of an Order

I tried changing the Delivery priority of an Order forcefully through the program  which I was able to do successfully using both the function modules CRM_SHIPPING_PUT_OB and CRM_SHIPPING_MAINTAIN  but when I tried changing the Delivery priority forcefully through the ORDER SAVE badi method-change before update using all the three function modules CRM_SHIPPING_PUT_OB, CRM_SHIPPING_MAINTAIN and CRM_ORDER_MAINTAIN it didn't work. I also tried to change it using the shipping BADI but it didn't work.
Please Advise !!!!

Hello Gerwin,
Maybe you have to change the start event of your action to another one that occurs outside the CRM_ORDER_SAVE.
There is another thread in the forum called "CRM BADI" where Aidan create an action that save a document.
He is facing some problems too, but it seems that it is not a recursive call problem.
Take a look at it...
Regards,
Mauricio

Similar Messages

  • BAPI_SALESORDER_CHANGE using this i want to change the Delivery Block

    Hi ABAP Gurus,
    i am working on a urgent requirement of changing the Delivery Block of sales order VA02. I am trying to do this using FM            BAPI_SALESORDER_CHANGE .
    Please see the following code which i am giving for the time being.
    it_headerx-updateflag = 'U'.
    append it_headerx.
    it_bapischdl-itm_number = '00010'.
    it_bapischdl-req_dlv_bl = '01'.
    APPEND it_bapischdl.
    it_bapischdlx-itm_number = 'X'.
    it_bapischdlx-req_dlv_bl = 'X'.
    APPEND it_bapischdlx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument               = '0000000560'
       order_header_in             = it_header
        order_header_inx            = it_headerx
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
      NO_STATUS_BUF_INIT          = ' '
      TABLES
        return                      = it_return
      ORDER_ITEM_IN               =
      ORDER_ITEM_INX              =
      PARTNERS                    =
      PARTNERCHANGES              =
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
       schedule_lines              = it_bapischdl
       schedule_linesx             = it_bapischdlx
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      CONDITIONS_IN               =
      CONDITIONS_INX              =
      EXTENSIONIN                 =
    But the Delivery block is not changing from Credit limit to Pending Allocation
    But i am getting the following messages in the it_return table
    1     S     V4     233     ORDER_HEADER_IN has been processed successfully
    2     S     V1     041     No data was changed
    I am waiting for your suggestions
    Thanks in Advance

    Hi Prashanthi,
    Check whether delivery number is already created or not for that  order.
    If deliver already  existthen u can not create delivery block on that.
    and also check whther r u calling bapi commit after this.
    Regards,
    Siva

  • How to change the unload priority of a table in SAP HANA?

    Hi Experts,
    How we can change the unload priority of a table in SAP HANA? I know by default the priority is 5. Is there any way so that we can check the unload priority of a particular table in HANA studio? Is there any SQL statement to get the same?
    Please suggest.
    Thanks in advance.
    Regards,
    Arindam

    Hello Arindam,
    Just for the future:
    ALTER TABLE - SAP HANA SQL and System Views Reference - SAP Library
    To check before hand:
    select
    table_name, unload_priority from SYS.TABLES
    where table_name = '<Your Table>'
    To Make the change:
    alter table <Your Table>unload priority <Priority You Want>.
    As you have asked in the BW on HANA section I assume you're on BW and you could also have checked this with tx SE14.
    Hopefully the above gives you everything you need.
    Kind Regards,
    Amerjit

  • Changing the Delivery

    Hi..
    if we create a delivery for a sales order and also do the PGI, can i go back and correct the quantity later or do i need to cancel the delivery and then re-post with correct units?
    Also, can you please tell me the transactions/steps to change / cancel the delivery?
    E..g: If you have an order for 50 units, and you created a delivery/ PGI  for 45 units and later can we go back and change the quantity to 50 units with out cancelling the delivery/PGI? If not, what is the standard way to handle this issue?
    Also, what is the back order processing? Can it be used in these scenarios?

    Hi,
    If you have an order for 50 units, and you created a delivery/ PGI for 45 units and later can we go back and change the quantity to 50 units with out cancelling the delivery/PGI? If not, what is the standard way to handle this issue?
    There are two ways
    A. If you want the goods to go in the same delivery, reverse (VL09) the existing delivery and change the delivery quantity as required and do PGI
    B. If the goods can go in a different delivery, creata a new delivery with the remaining goods and do PGI.
    And if the invoice has alreday been created , Cancel invoice (Vf11/Vf02) -- VL09 -- VL02 -- VF01.
    In the second case you can club both the deliveries into a single invoice.
    Backorders
    Orders for which goods are still pending to be shipped, this occurs when the quantity is insufficent.

  • How to cancel the second ATP after changing the delivery date in the SO

    Hello,
    our solution creates automaticly a production order accorting to sales order.
    The system calcule ATP for each items at the creation of the sale order.
    Sometime, we change the delivery date on the scheduled line and SAP do another ATP. If the composants are not available we get an TSUP status on the order production.
    How can we cancel the second ATP ?
    Is it possible to cancel it when we change delivery date ?
    Thanks
    Regards
    Pierre

    I think its not possible to skip the atp during change of the sales order.  All these determinations will trigger before saving the order
    regards,
    Ramana

  • Can I use SD_DELIVERY_UPDATE_PICKING to change the delivery qty?

    hi experts,
    I have used  SD_DELIVERY_UPDATE_PICKING to updating the picking quantity in a delivery document and post goods issue. also want to use  the FM to change the delivery qty ,when the picking qty < delivery qty ; and do the post goods issue automatic .
    and i find the field :
       VBPOK-LIANP         *Change delivery quantity
    i do like this ,when  VBPOK-LFIMG > VBPOK-PIkMG ,
    VBPOK-LIANP = 'X'.
    VBPOK-LFIMG = VBPOK-PIkMG 
    but the FM also can't change delivery qty.
    please help me !

    Hi,
       We need only Delivery Number and its item for picking. I am not clear with what reference number you were referring to.
    Thanks,

  • Sales order as complete and change the delivery status.

    Hello All,
    We  produces an order but then the customer calls and does not want the material so we in turn will scrap the material against the production order using transaction MB1A mvmt type 951 E. 
    Since the material were scrapped and no material were shipped against the sales order, the sales order u201Coverall statusu201D remains open and the delivery status is u201Cnot deliveredu201D.
    To close the order  we u201CRejected line itemu201D and moved on.
    I would like to know if there is another way we can set the sales order as complete and change the delivery status. 
    Regards
    Amit

    Hello,
    you can use the status profile for the same. but a better way would still be to use the rejection reasons . the rejectionr reasons are very well integrated with the document flow as well as transfer of requreiemnts to Production
    so a best practise would be to use rejection reason
    hope this helps
    Thanks
    akasha

  • User exit or BADI to change the delivery date in ME51N  transaction

    Hi Gurus,
       I need a user exit or a BADI where I can change the delivery date in the item overview  tab for each material. I need to calculate the date according the vendor contact details.
    Please let me know if there is any BADI or a user exit for the same
    Thanks a lot!!!
    Sharath

    quick search for exits/badis: get package name and supply it into se80
    or
    se15
    thanq

  • Changing the TO Priority in LRF1

    Hi,
    We need to change the TO priority from LRF1 monitor. When I try to highlight the TO and drag up or down, it is not moving in the ALV and changing the priority. It worked for me in my previous projects. Do I need any other additional authorizations for this functionality? I have authorization to LRF1 and I could move the TOs between the queues. But I could not change the TO priority from LRF1. If you have any inputs, please let me know.
    Thanks

    Hi,
        Do you see any value in the Field "TO priority" Colomn, after changing the order.
    Regards
    GK.

  • Recently I moved from Spain to Australia, how can I change the delivery country of the photo albums?

    Recently i moved from Spain to Australia, how can I change the delivery country of the photo albums?
    I tried to change all my country information in my apple id but when I'm going to pay the photo album in iphoto 11 only can change the addres but not the country.
    thanks.

    iPhoto Menu -> Preferences -> Advanced
    Bottom of the page you can choose your Print Store
    Regards
    TD

  • Changing proposed delivery date in sales order for one specific sales org

    Hi All,
    I want to change proposed delivery date in sales order automatically for one specific sales org only without changing lead time in VOV8.
    For that can I use MV45AFZZ. But it is asking access key to make changes. Is there any other user exit for the same. And how does exactly change it.
    Thanks in advanced.
    Points will be awarded.
    Regards,

    EXIT_SAPFV45E_001 has nothing to do with this - it is meant to update the purchase order from a sales order. It might not even be triggered if the sales order has no link to a purchase order.
    USEREXIT_SAVE_DOCUMENT is not really good for this either, because the delivery date has to be changed before that. If memory serves, it also influences the schedule lines and probably the ATP check and such. I would strongly advise against it. One of the other routines in MV45AFZZ should do just fine, USEREXIT_MOVE_FIELD_TO_VBAK for example.

  • How to clear the delivery group in sales order?

    Dear All: 
          My sales order is auto created from CRM by BAPI, but in vbap table, the GRKOR field is 001, only one order ,  how to clear the delivery group in the sales order ?
    Regards
    Peter.

    Thread Locked - Reason Duplicate Post
    How to clear the delivery group in sales order?
    Please dont post the same query twice.  Continue all your queries in one thread
    G. Lakshmipathi

  • How to change the Profit Center in Sales Order

    Hi Gurus,
    Previously they setted the profit center (YB999) in sales order, now i want to change the profit center and need to give the amount into this profit center 100500.
    So, could you guide me how to change the profit center in sales order.
    Thank you for your replies.....
    Thanks & Regards,
    Chandrababu.B
    Edited by: Chandrababu Naidu on May 25, 2011 12:44 PM

    Hi
    If this SO is processed partially - i.e. transactions happened - You cant change it
    You can use ABAP and change it in Debug mode, but not advisable... Better to short close the SO and open a new SO for Balance qty
    br, Ajay M
    Edited by: Ajay Maheshwari on May 25, 2011 5:10 PM

  • Modify/Change the center cost in purcharse order

    Hi Gurus,
    For this year I have changed the cost center for G/L Account number 600000 (Old cost center: CMERC / new cost center: 1017). Now I have a purchases order that created the year before and these have the cost center old assign.
    When I try doing the goods receipt for purchase order, the system produces the following error: u201CCost Center FDB/CMERC does no exist on 08.01.2010u201D
    Anybody know if you can change the cost center for purchasing order last year, with cost center old, to account pending the goods receipt?
    Thanks for your help.
    Xevi Gràcia.

    Hi,
    Two options:
    Change the PO before to do the PGI.
    If you use MIGO to de the goods inbound, try with the BADI MB_MIGO_BADI (I suggest method LINE_MODIFY, you have GOITEM-KOSTL that you can change). So, set the hardcode (period, relation between old cost center and new cost center, and so on) with ABAP.
    If you use other tcodes (eg: MB01, MB1B and so on), check these notes:
    Note 1284654 - Caution with implementations of the BAdI: MB_DOCUMENT_BADI
    Note 92550 - Stock inconsistency due to customer enhancement (exit, BAdI)
    I hope this helps you
    Regards,
    Eduardo

  • How to default Delivery Priority on Sales Order Items from Ship To?

    Is there a way to pull the Delivery Priority from the Ship To partner when creating sales order items rather than pulling from the Sold To partner?  I've checked all of my documentation -- including OSS notes; searches on SDN, IT Toolbox, and internet.  This doesn't appear to be configurable.  Can someone confirm that or tell me how to configure?  If not configurable, what is the recommended user exit? 
    Thanks!

    Thanks for responding - you are the first person to do so.  Unfortunately, I think you missed the point of my question.  We do not want to create and maintain customer materials - the delivery priority is in generally not material dependent.  We simply want to be able to have the Sales order item use the Ship To partner's delivery priority rather than the Sold To partner's delivery priority as the default delivery priority on the sales order items.  Ideas on how to do that?

Maybe you are looking for

  • Unable to access files on Windows 7 computer from Windows 8.1 computer

    I have a Windows 7 desktop and a Windows 8.1 laptop.  Both connect wirelessly to the internet via my Home Hub.  Because the desktop is my main repository of documents / pictures etc. I want to be able to access them from the laptop, but despite spend

  • PI 7.0 SP12 - Mapping test tool and activation very long response

    Hi all I have performance issue only in IR on both actions : - displaying queues (debugging mapping) - activating mapping objects For all others things (runtime...), server is ok and fast... Do you have an idea ? Thanks a lot

  • Problem in Scheduling trace for other user

    Hi,   I scheduled SAT/SE30 trace for other user(From user X, I scheduled for user Y). I executed the corresponding program in background in Y Login. Then, if I see the traces in X as well as Y Login, Nowhere I am getting the trace. The status is "In

  • Compressor is not supported on dual quadcore MacPro (12gb RAM/ATI4870)

    MacPro dual-quadcore with 12gb RAM and ATI radeon 4870 (512MB RAM): - Installed MacOS X Server 10.6 successfully - Installed Final Cut Server 1.5 successfully - Launched Compressor and got this error: "This system does not meet the following min. req

  • Java is safe, and UNIX viruses do not exist.

    Hi! Its me Ronillo. Is it true that java cannot be the source of virus? Java is cross platform right? So, java can be the the medium to carry virus and spread it? I dont know if its okay to open a topic like this one, so Im sorry cause I really dont