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.

Similar Messages

  • Status determination in CRM order connected with delivery in R/3

    Hi Experts,
    I need to determine status "completed" in CRM order always when a delivery took place in R/3.
    Of course this is no problem, when all positions were delivered. But in R/3 we do have only one delivery per order and a Badi determines the order "completed". This global status is not transfered to CRM.
    So I am thinging of doing the same in CRM, implementing a BADI that determines status "completed" in the moment the order has a delivery.
    Can anybody help me to find the correct BADI and Methode to do so?
    Thanks,
    Cristina

    Hi Cristina,
    basically it's the same case as mine with the difference you have to read another status type in STATUS TAB.
    In my case requirement was to read invoice status and cover quantity if the invoice status was completed.
    In your case you have to read delivery status and change the overall status of CRM order according to your delivery status.
    I suggest using two BADIs:
    <b>CRM_ORDER_FIELDCHECK</b>
    <b>METHOD if_ex_crm_order_fieldcheck~fieldcheck</b>
    or <b>ORDER_SAVE
    method IF_EX_ORDER_SAVE~PREPARE</b>.
    Basically in both cases you have to call FM <b>CRM_ORDER_CHANGE_STATUS_GET</b>
    to read your delivery status. (I suggest testing in SE37 to check the reading of your status).
    Once there write your code concerning the overall status.
    In my case the final code in badi CRM_ORDER_FIELDCHECK was:
       CALL FUNCTION 'CRM_ORDER_CHANGE_STATUS_GET'
          EXPORTING
           iv_ref_guid                  = wa_fieldcheck-ref_guid
           iv_ref_kind                  = 'B'
         IMPORTING
           et_change_status_ord_i       = t_status_i_tab
           es_change_status_ord_i       = i_status_i
           et_return                    = i_return
         EXCEPTIONS
           parameter_error              = 1
           inconsistent_data            = 2
           no_return_values             = 3
           OTHERS                       = 4.
        IF sy-subrc <> 0.
        ELSE.
    CHECK i_status_i-invoice_status = 'C'.
    LOOP AT ct_input_field_names INTO i_fields_names_tab.
            check i_fieldS_names_tab-fieldname = 'QUANTITY'.
            i_fields_names_tab-changeable = 'A'.
            MODIFY ct_input_field_names FROM i_fields_names_tab.
          ENDLOOP.
        ENDIF.
    <b>Please let me know if it helps and do not forget to reward with points</b>,
    AndreA

  • Do u know how to prompt user to enter password and validate the password?

    hi all,anyone knows how to prompt user to enter password and validate the password as well?I do not need the GUI.Can someone post the codes here?Thanks!

    hi all,anyone knows how to prompt user to enter
    password and validate the password as well?I do not
    need the GUI.Can someone post the codes here?Thanks!Codes are
    BufferedReader
    System.in
    if
    else
    System.out.

  • HT4972 How to update I phone 4( iOS 4) to the latest version .not only that but updating my old software to a new in a iPhone 4 will it make any problem to the device or loose it's data completely .

    How to update I phone 4( iOS 4) to the latest version .not only that but updating my old software to a new in a iPhone 4 will it make any problem to the device or loose it's data completely .

    chrissaji1998 wrote:
    How to update I phone 4( iOS 4) to the latest version ...
    All the Information you need is in the Support Article you posted from.
    iOS 4: Updating your device to iOS 5 or later

  • 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

  • Workflow status column is not showing the internal status values (Inprogress, Started, Suspended, Completed)

    I've created SPD 2013 workflow and deployed them onto that document library, This workflow execute on item update event. When updating library item, workflow triggered and completed successfully but workflow status column is not
    showing the Internal Status values rather it is showing the Stage information. I've unchecked the "Automatically update stage name on workflow status" and republished the workflow. After that, it is still showing the stage information. Any help
    is really appreciated.

    Hi Venkadesh,
    It is by design that 2013 workflow will show stage name in the workflow status column when
    Automatically update the workflow status to the current stage name is checked.
    And the workflow status column will be blank when Automatically update the workflow status to the current stage name is unchecked.
    For existing workflows, the workflow status will still exists with the previous values after unchecking Automatically update the workflow status to the current stage name.
    We can use Set Workflow Status action to update the workflow status value based on our needs.
    Best regards,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Run status is still "processing" but the distribution status is "posted"

    Hi all,
    We have run a process yesterday.
    The process' run status is still "processing" but the distribution status is changed to "posted". what could be the reason for this? i have never seen such thing in process monitor.
    Please help me.
    Thank you,
    Bye.

    And does the report posted and accessible from the monitor ?
    Peopletools version ? OS ? Database ?
    Did you try to refresh the page (not through the refresh button but with your web browser) ?
    Did you try to disconnect and reconnect ?
    Nicolas.

  • How to update user status in the QM notifications

    Dear Experts,
    PLz tell  how to update/change user status in the QM notifications..I have maintained the user status profile and assigned the same to the notification type,but user status are not getting updated in the notifications..
    Thanks in advance
    Ankush

    Hi,
    SPRO - Quality Management - Quality Notifications - Overview of Notification Type.
    In that select the concerned notification and click on the status profile and there you can assign the status profile for the concerned notification Type.
    There will be two types,
    status profile for notifications and status profile for tasks, assign as per the requirement.
    Regards,
    Naveen.

  • Update user staus on production order

    Hi,
    Can you please let me know if it is possible to update the user status on production order while saving.
    I have tried with exit PPCO0007 but with no success.
       header_exp-astex = 'X'.
       header_exp-asttx = 'XDIS'.
    I have checked exit PPCO0001,but this exit is trigerred after the log record has been saved and just before update.
    So this does not serve the purpose.
    Can some one advise here.
    Many Thanks.
    Regards,
    Babul

    Hi,
    I see in your code, you won't fill AUFNR.
    Try this because SAP check first if HEADER_IMP-AUNR = HEADER_EXP-AUFNR.
    HEADER_EXP = HEADER_IMP.
    header_exp-astex = 'X'.
    header_exp-asttx = 'XDIS'.
    Rgds

  • How to update Serial Number from Work Order to Sales order in MTO flow

    Helo Experts,
    I have a requirement to update automatically the Serial number in Make to Order flow, from the Work order to the sales order and then to delivery.
    In fact the flow is the following, when raising the sales order we don't know the SN, it will create a Work order with stock type E, when work order is released a Serial Number is assigned to the material created. After Goods receipt of WO, We need to have the SN updated in the sales order and then in the delivery.
    I tried with the parameters of Serial number profile, i was not able to update from WO to Sales Order.
    DO you have any idea how this requirement could be fullfiled? is it possible in standard?
    Thanks

    I don't think that it is possible in standard.

  • How to set User-field in Plan order

    Hi
    could you tell me please how to set a user-filed in plan order. when I run MRP planing, I can write some data in this filed.
    thanks
    henry

    Hi,
    Actually these user defind fields are used/assigned in the routing.
    Initially u have to define your own user defind profile through OPEC transaction.
    Assign this profile in the routing.
    So when ur executing Mfg activities, suppose if ur using some high materials like silver...etc.
    Then after executing the particular operation some amount of silver chips or silver scrap will generated .
    To keep chip/scrap qty operation and date which user defind is used.
    Once u have assigned this profile to routing, then it will be automatically copied in the planned order/production order.when ur confirming the order then u have to enter the all related data.
    Regards
    Vijay

  • How to update users' Trusted Locations settings on open?

    I am looking for a function that will trigger on opening of Access 2010 that will automatically update users' Trusted Locations to include the local network.  Only authenticated users have access to the drive, so there should be no security
    issues in making it a trusted location for anyone who opens the application. 
    It would be too time consuming to explain to 100+ how to add the network to their trusted locations, so I am looking for something to bypass this. 

    I put the function into the AutoExec macro, but when the database is not in a trusted location yet, I get a macro error number 2001.  After pressing Stop All Macros, then pressing Enable All Content, the function runs and properly adds the location. 
    Obviously the error occurs because the location is not trusted yet, so how do I get it to trust a macro beforehand?
    <v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe"
    stroked="f"><v:stroke joinstyle="miter"><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"><v:f eqn="sum @0 1 0"><v:f eqn="sum 0 0 @1"><v:f eqn="prod @2 1 2"><v:f
    eqn="prod @3 21600 pixelWidth"><v:f eqn="prod @3 21600 pixelHeight"><v:f eqn="sum @0 0 1"><v:f eqn="prod @6 1 2"><v:f eqn="prod @7 21600 pixelWidth"><v:f eqn="sum @8 21600
    0"><v:f eqn="prod @7 21600 pixelHeight"><v:f eqn="sum @10 21600 0"></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:formulas>
    <v:path gradientshapeok="t" o:connecttype="rect" o:extrusionok="f"><o:lock aspectratio="t" v:ext="edit"></o:lock></v:path></v:stroke></v:shapetype><v:shape alt=""
    id="Picture_x0020_1" o:spid="_x0000_i1025" style="width:372.75pt;height:229.5pt;" type="#_x0000_t75"><v:imagedata o:href="cid:[email protected]" src="file:///C:\Users\ropelen\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"></v:imagedata></v:shape>

  • How to obtain GUID of a CRM Order Object

    Hello, I want to retrieve an external reference number of a CRM Order. First I should obtain the GUID of a CRM Order Object(component type CRMT_OBJECT_GUID). My problem is, which FM should I use?
    Thanks.

    Hello sasi,
    thanx for your help, with which I go a step further. What I need is to obtain a service order GUID(at last the external reference number) according to a notification number in SAP Support Desk. In CRM_JCDS, CRM_JEST I got a lot of infos but not the notification number, so that I could not establish a relationship between them. And I'm not quite clear what you mean by FM STATUS_TEXT_EDIT(why I should edit the status text)? Can you explain more?
    Greetings.
    Nuno.

  • We create proforma invoice for a sales order.If the object status for the sales order is changed we have to add an output type that is record should be added to NAST table.User exit/Function Module/program .

    Please provide me with a solution

    Q1.  will it charge material price to work order automatically ?
    No you have to go with user exit for this
    Q2.  Unless the business is so specific such that they would like to treat this activity via sales, there is no significance in capturing the activity via SD.  Perhaps, I would say, MM route is more appropriate.
    Q3.  The above holds good.  That you go with MM route.
    G. Lakshmipathi

  • How to set up that a CRM order is transferred to SCM?

    Where must the setting be done that a CRM order is transferred to SCM?

    Hi,
    You have to do the middleware config in CRM and few settings in SCM system to replicate orders. After doing the setting you have to start the initial load and then the delta load will be taken care automatically based on settings.
    Go through the below link it might help.
    http://help.sap.com/saphelp_sm40/helpdata/EN/3f/40623c046a9b67e10000000a11402f/frameset.htm
    Regards,
    Sanjay

Maybe you are looking for

  • Is it possible to send data from a webcam to a server via flash?

    I've been reading about the Flash CS3 Camera class and can't seem to find out if there is any way I can grab a frame or two off the camera and send it to a web server. Is this possible?

  • How do I install a driver?

    Mac-mini Mac OS X (10.4.7) I have joined my Mac-mini to a Windows workgroup. The printer for the workgroup is Epson Photo Stylus R320. The Mac Printer setup utility found the printer and I went thru the steps of selecting the printer driver. R320 is

  • Window Controls Missing?

    Okay, back in my previous OSX, if I opened a folder I got a window with various control icons across the top.  Among them, on the far right, was an oblong button that toggled this control bar visible or invisible.  In Lion, this toggle button has dis

  • How to unlock without a keypad

    I have a blackberry curve 8320 and the keypad broke, so it's now impossible to unlock it or even reset it because i cannot write all the letters needed. how do i reset it or unlock it without the keypad?

  • Indesign CS4 OSX crash, usually when opening

    Hi, I'm running with latest osx and Indesign patches (clean install), but this happening 3-4 times per hour: com.apple.launchd.peruser.503[133] ([0x0-0x5f05f].com.adobe.InDesign[1851]): Job appears to have crashed: Bus error I uploaded one crash repo