Program need to change the milestone in the sales order

Hello,
I have a scenario to change the sales order milestone in the billing plan tab.
Since the user doesn't want to do this manually. So they need a program to upload the milestone for the respective sales order.
Kindly let me know is there any function module or any program available.
Best Regards,
Vijay
Edited by: Vijayakumar Sundaram on Jul 12, 2010 4:03 PM

HI Vijay,
Please check the below FM.
CN2M_ACT_MLST_CHANGE
CN2M_MLST_CHANGE

Similar Messages

  • Change the  sales order reason for rejection for line item

    Hi,
    i want to change the  sales order reason for rejection for line item.
    iam using bapi_salesorder_change.but i unable to change the sales order.
    if possible please provide me what are the fields necessary  for changing
    sales order reason for rejection for line item.
    Regards,
    Suresh

    This is the standard config to supress printing on the rejected item. Are you using standard programs or customised ?

  • Sales Order - Returns change the sales order item delivery status

    Hi All,
    we have the following requirement from our users:
    after creating a return, the original sales order should have the
    delivery item status changed.The system should permit that a new
    delivery can be created for sales order item already delivered / billed (a new delivery with the quantity that has being returned) but has a return document,
    without increasing the sales order quantity.
    Does any body got the same requirement ?
    Thanks in advance,
    Marcus

    Hi Marcus,
      After creating return order you have to do the goods receipts.But this doesn't mean that you will be able to create a delivery with the old order itself.
      You have to create the order again and ahve to create a new delivery,goods issue and billing.
      Another option is as Roberto said that you have to reverse the goods issue thru VL09 and then cancel(delete) your delivery and then you can create a new delivery wr.t to your original sales order.
      Reward points if it helps.
    Regards
    Karan

  • Need to update the sales order status

    Hi Friends,
    I have one query.
    we are doing archiving of sales documents.during the preprocessing we have identified that there are some non-archivable documents due to status check.
    Example:As per Sales order schedule line category "CT" is relevant for delivery. Now we had a talk with business and removed the "item relevant for delivery indiacaotor" from schedule line category.
    This config changes will apply for newly created sales orders.
    Now the requirement is to update the status of old sales orders with this new config change to make these non archivable data to be ARCHIVED.
    can any one help me out by providing relevant SAP note or by sending me the program name which will update the old order status with the new config changes.
    Thanks & regards,
    Shaik Hussain

    Hi Liam,
    In the Program MV45AFZZ in the FORM userexit_save_document
    you use the following fn module to change the user status
    'STATUS_CHANGE_EXTERN'
    Example
    IF t180-trtyp = 'H'.  "Only creation time
      READ TABLE xvbap WITH KEY matnr = c_matnr.
      IF sy-subrc = 0.  "If above material exist then change status
        LOOP AT xvbap WHERE cuobj NE space
                       AND  matnr =  c_matnr.
          l_objnr = xvbap-objnr.
          CALL FUNCTION 'STATUS_CHANGE_EXTERN'
            EXPORTING
              objnr               = l_objnr
              user_status         = 'E0013'  "Send ej IDOC
              set_chgkz           = 'X'
            EXCEPTIONS
              object_not_found    = 1
              status_inconsistent = 2
              status_not_allowed  = 3
              OTHERS              = 4.
        ENDLOOP.
      ENDIF.
      sy-subrc = 0.  "Restore the previous condition
    ENDIF.
    Reward if helpful *********

  • Get name of user depending on condition types by changing the sales order

    Hi,
    I need to display the name of the user who made the changes in the condition types
    i.e.. need to get the name of the user , by changing in the condition types through transaction VA02.
    I am having object id and tabkey (of table CDPOS) but in table CDHDR, i am getting only one entry for object Id and there i can not get the user name depending on the different conditions types.
    Please help me to solve this issue.
    Regards,
    Darshana

    Hi,
    Item details are stored under the TABNAME = 'VBAP'.
    For example if you execute the function module 'CHANGEDOCUMENT_READ' for order number 5000000000, item number 10,
    Function module will return an entry with TABNAME = 'VBAP', TABKEY = '5000000000000010', and other details.
    Execute the function module by passing object class = 'VERKBELEG' and object id = <order number>
    Regards
    Vinod

  • Error while changing the sales order

    hi,
    Thanks in advance.i am trying to change already created sales order in va02.system is throwing an err "the sales document cannot be blocked".my purpose is to create a delivery with reference to this sales  order..when i try to create delivery with this same order it gives the err "you cannot block the transaction at the moment".
    Thanks
    Raks

    Dear friend,
    As our friend says check the schedule line first is it confirmed order qty and try delivery before that see if you have any delivery block in order if you don't have any block in sales order, once you get that error double click and see what response you get from performance assistant, see if you could locate the area were u get the problem.
    Regards,
    Arun.

  • Changing the sales order checking rule

    Hi all,
    Is there any way to change the checking rule of a sales order type?
    Thanks

    Hi
    Is there any way to change the checking rule of a sales order type?
    The answer is NO
    Checking rule is picked by the system internally and that is transaction based like a sales order creation picks checking rule A that is SD sales order and a deliveryer creation picks checking rule B that is SD delivery
    If your sales order item category is marked with spcial stock indicator like these E orders on hand ,Q project stock or W
    consignment stock then while creating sales order creation that is VA01 transaction  the  checking rule will be AE or AQ or AW
    It the item category special stock indicator is blank like TAN then system will pick simply A as checking rule during sales order creation
    So the item category settings also play a role but not the order type
    During delivery creation that is VL01 transaction it will be simply B or BE or BW or BQ
    Regards
    Raja

  • Need to create the sales order by using FM; crm_order_maintain

    Dear Expert's.
    can any body help me on creation of sales order by using FM; crm_order_maintain.
    Regards,
    Tanveer.Ahmed

    data: et_status type crmt_status_comt,
          es_status type crmt_status_com,
          ct_orderadm_h type  crmt_orderadm_h_comt,
          cs_orderadm_h type  crmt_orderadm_h_com,
          ct_orderadm_i type  crmt_orderadm_i_comt,
          cs_orderadm_i type  crmt_orderadm_i_com,
          ct_input_fields type crmt_input_field_tab,
          cs_input_fields type crmt_input_field,
          it_exception type  crmt_exception_t.
    data: gt_crmd_orderadm_h like crmd_orderadm_h occurs 0,
          gs_crmd_orderadm_h type crmd_orderadm_h.
    data: et_objects_to_save type crmt_object_guid_tab,
          es_objects_to_save type crmt_object_guid.
    data: it_saved_objects type crmt_return_objects.
    data: gt_field_names type crmt_input_field_names_tab,
          gs_field_names type crmt_input_field_names.
    data: cv_log_handle type  balloghndl.
    select single * from crmd_orderadm_h into gs_crmd_orderadm_h
    where object_id = '0005000400'.
    es_objects_to_save  = gs_crmd_orderadm_h-guid.
    append es_objects_to_save  to et_objects_to_save .
    es_status-ref_guid       = gs_crmd_orderadm_h-guid.
    es_status-ref_kind       = 'A'.
    es_status-status         = 'E0010'.
    es_status-user_stat_proc = 'ZPR01'.
    es_status-activate       = 'X'.
    append es_status to et_status.
    cs_input_fields-ref_guid    = gs_crmd_orderadm_h-guid.
    cs_input_fields-ref_kind    = 'A'.
    cs_input_fields-objectname  = 'STATUS'.
    cs_input_fields-logical_key = 'E0010ZPRO1'.
    gs_field_names-fieldname = 'ACTIVATE'.
    append gs_field_names to gt_field_names.
    cs_input_fields-field_names = gt_field_names[].
    append cs_input_fields to ct_input_fields.
    call function 'CRM_ORDER_MAINTAIN'
      exporting
        it_status         = et_status
      importing
        et_exception      = it_exception
      changing
        ct_orderadm_h     = ct_orderadm_h
        ct_orderadm_i     = ct_orderadm_i
        ct_input_fields   = ct_input_fields
      exceptions
        error_occurred    = 1
        document_locked   = 2
        no_change_allowed = 3
        no_authority      = 4
        others            = 5.
    if sy-subrc = 0.
          call function 'CRM_ORDER_SAVE'
            exporting
              it_objects_to_save        = et_objects_to_save
           importing
             et_saved_objects           = it_saved_objects
           changing
             cv_log_handle              = cv_log_handle
           exceptions
             document_not_saved         = 1
             others                     = 2.
             commit work.
    endif.

  • Procedure needed 4 changing the sequence order

    For example, there are ten employees. The first employee’s id will be 1. The second employee says his id he wants to be 14. For the third employee, the employee id should come in sequence, i.e it should assign 2 by default, if he have not requested an id. Again when the fourth employee comes, he will request for number 4. When fifth employee comes, he will be assigned number 3, when he has not requested of his choice. When sixth employee comes, number 5 should be assigned, since number 4 is already in use.
    So how can I write a Procedure for this?

    this example might be of help.
      -- assuming that you have this in your procedure:
      -- pEmpId Number        => for Employee ID
      -- vEmpId Number        => place holder for employee id
      -- vCtr   Number        => counter for checking rows
      -- emp_seq_no           => sequence for employee
      -- employee does not request for an Id
      If pEmpId Is Null Then
        Loop
          Select emp_seq_no.nextval
            Into vEmpId
            From dual;
          --check if existing on the table
          Select empid
            Into vCtr1
            From employee
           Where empid = vEmpId; 
          If vEmpId <> vCtr1 Then
            exit;
          End If
        End Loop;
      Else
        -- employee requested for an Id
        Select Count(*)
          Into vCtr1
          From employee
         Where empid = vEmpId; 
        -- check if existing on the table
        If vCtr1 > 0 Then
          -- code goes here on what do you want to do when
          -- the requested id exists
        End If;
      End If;note: this code has not been tested.

  • Program used in R/3 that creates the sales orders sent by CRM

    Hello CRMers:
    We are working with Sales orders in CRM that, via Middleware, replicate into R/3.
    We need to add a Abap development in order to change the Sales orders Delivery block status when these orders are created in R/3.
    The problem we have is that we don't know the Bapi or the program that creates Sales order in R/3 when it is sent by CRM.
    Thanks in advance!
    Laura

    Hi Laura,
    Did you consider SO doc type config in VOV8 to autoblock when created?  Its standard only and doesn't require development work....
    Actually, in VOV8 for the document type of the Sales Order in ECC (or R/3), you may add indicator A  -  Only automatic creation allowed, e.g. for rebate processing
    for the field, Sales Document Block.  So, when CRM creates the SO# and transmits to R/3, it will get blocked automatically....
    Regards

  • How do you change the movie order in iDVD?

    I'm doing a video showreel and need to change the running order of movies that I'm using. My menu page lists the 4 movies in a vertical list, which is fine, except I'd like to move the last one up the running order in the menu.
    I assumed you'd drag it, but that doesn't work. Can anyone help?

    You can drag the sub-item (movies) back into the parent item and it will place the item you dragged into it at the "end" (on the right looking at it in the top-down tree view.) You cannot put the first item on the end, but you can get around this by putting it into a child node and then back into the parent node.
    Hope this makes sense...

  • System resets the sales order item price changes after save in VA02.

    Hi All,
    We have implemented automatic credit control at sales order level.
    System is blocking the sales order once saved in VA01.
    But if I do any changes in prices at item level in VA02 and save before credit releasing the sales order then system agian reset to the original prices from pricing condition records.
    Can any body tell me why this is happening? I should able to change the sales order prices manually before releasing the sales order credit block. Is it possible?
    Regards,
    Kartheek.

    Like Lakshmipathi said, you should be able to change the prices in the order even if the order is under credit limit block.
    Please check the condition types which are being changed . In the condition type definition( T Code V/06) for the field Manual Changes - the value should be either "Manual entry has priority" or "....should allow to change manually...".
    Also in your pricing procedure ( T Code V/08) , against your pricing procedure , please select the value for pricing type as ..."copy manual conditions and redetermine others".
    Hope this helps
    Regards
    Sai

  • Restrict the Sales Order Quantity in Integer

    Hi All,
    our system need to restrict the Sales Order Quantity in having no decimal value.  
    We have got the OSS reply as:  
    "Unfortunately I regret to tell you that it is not possible to
    restrict the order quantity number to integer in standard system.
    The number of allowed decimals is defined in the system via SE12.
    In SE12, you can see that for VBAP-KWMENG, the number of allowed decimals is 3. I'm sorry but this is the standard system behavior."
    But we need to avoid programming. Can you anyone suggest any work around methods, like define rounding profile to do the restrictions.
    Regards,
    Simon

    Hello All,
    Thanks for the excellent answere.
    Please anybody can provide us the SAP OSS Note for the same as the reply received from SAP Support.
    We have got the OSS reply as:  
    "Unfortunately I regret to tell you that it is not possible to
    restrict the order quantity number to integer in standard system.
    The number of allowed decimals is defined in the system via SE12.
    In SE12, you can see that for VBAP-KWMENG, the number of allowed decimals is 3. I'm sorry but this is the standard system behavior."
    But we need to avoid programming. Can you anyone suggest any work around methods, like define rounding profile to do the restrictions.
    Regards,
    Farhan

  • How to pick-up the sales order quantity

    Hello Friends,
    I am writing a report where I need to pickup the sales order details like, item no, material, qty etc.
    But when I check qty filed it is showing field "RV45A-KWMENG" here RV45A is the structure. So can I fetch qty in my report?
    Please help me,
    Shreekant

    Hi,
    I feel you would have the fecth the data from the table, structure will not give you the data against the quantity field, so when you are using the field in your program to fetch the data, look for the relevant table and use the quantity field from that table.
    Let me know if my views are correct and please rate my answer if you find it useful.
    Regards,
    MD.

  • Any batch process to release the sales order with status profile

    Hi,
    The sales manager need to release the sales order 1 by 1.
    This is very tedious.
    Is there a process for her to release selectively?
    For example,
    if the sales value of the order is visible and within the approval limit or too small,
    she could release, says, more than 10 sales order in a single click.
    Possible?????
    Bye

    Hi,
    I like to perform a mass release of multiple Sales order from the proposed custom report.
    I would like to built the releasing coding into the report.
    I need some references on how to set the release.
    Maybe, there is a standard function for me to pass it in and it would release the sales order status.
    if that the case, it is BONUS.
    Otherwise, there must be some steps that need to be built to set the release.
    what I am asking, is there any such routines that would define the steps to release the sales order in coding?
    I understand there would be a change in status aftef the released and it is also vital to enable the audit log for future investigation.
    Having a BAPI would result the audit issue as the system would have taken care of it.
    I hope it is clearer now as to why I am requesting a sample of the standard routine.
    If there is no such routine, do let me be aware of it.
    Thanks

Maybe you are looking for

  • GR Non valuated tick

    Dear All, I had created one PO with multiple account assignment but in that system has not ticked check box for GR non valuated. But when i am creating the same now system is not allowing to uncheck the GR non valuated check box. as per standard SAP

  • How can I remove nokia belle and return to Anna?

    I have an E7-00 that was recently replaced under warranty as the usb port had become very iffy and it was almost impossible to charge.  The replacement phone has Belle installed, which is the most un-useable piece of software I have seen in a fair wh

  • PCI Communication Controller and USB Mass Storage Device driver was missing

    Hi, Recently i formated HP Pavilion Slimline 400 PC series and reinstalled with windows 7 32 bit.\ initially i found a lot of driver was missing. i have gone through hp support forums and almost all drivers are running on 64 bit with minimum requirem

  • Clean-up code - Close Database Connection

    I have a Stateless Session Bean that implements a Web Service. This bean opens a database connection. I need to close it before the application is undeployed or the Application Server (Glassfish) is restarted, etc. I have tried shutdown hooks, predes

  • Table Maintenance (Display/ Update for today's date

    Dear All, I have created ZTable and also created Table maintenace for that. I assign Tcode. Requirement: When user Execute Tcode, only he can change or displays todays date records. I check all events but my issue is not resolved. can i call variable