Problem in Changing the Service Order Using BAPI_ALM_ORDER_MAINTAIN

Hi ABAPers,
  I want to change the Service order(<b>TCODE-IW32</b>) Using <b>BAPI_ALM_ORDER_MAINTAIN</b>.But i don't know what are all the
Parameters needs to be passed.I want to chnage the <b>COMPONENT</b> of the Service Order.Please anyone tell me what all are the
mandatory parameters should be passed to change the <b>COMPONENT</b> of the Service Order.If anyone has the code Please send me.
  It is very Urgent Kindly help me to Solve this problem.
Regards,
Ashok.

Hi Ashok,
i am sending u the sample eg thread for bapi create i thnk u can find out the mandatory fields frm tht ...
check this link though it is for create the mandatory fields and structure will be same .
Create Order BAPI
regards
Sana M.
reward for useful answers..

Similar Messages

  • Help required in BAPI_ALM_ORDER_MAINFm to change the service order quantity

    Hi,
    Can any one tell me Fm To change the srvice order quantity??
    I am using fm

    Hi,
    Can any one tell me Fm To change the srvice order quantity??
    I am using fm

  • How to know I'm creating or changing the service order in ICweb?

    Hi,
    I need to disable or enable some fields based on if the service order is being created or changed . I'm new to IC web .. .can someone pelase help me understand how can I differentiate ?

    Hi,
       Which view in service order are you referring to? Normally there will be two seperate inbound plugs in the window level e.g. IP_CREATE and IP_EDIT that displays the same edit view.
    One way will be to set a flag in either of the inbound plugs for you to identity in the corresponding view whether it is a edit scenerio or a create scenerio. Depending on this flag value, you can proceed to disable fields selectively (may be in do_prepare_output method).
    Reward points if helpful!
    Thanks,
    Sudipta.

  • How to create the service order using CRMXIF_ORDER_SAVE

    Hi Friends,
    I want to create service order using thsis function module
    CRMXIF_ORDER_SAVE and quantity also in this service order transaction.
    Any body please explain the above question

    Hi Friends,
    I want to create service order using thsis function module
    CRMXIF_ORDER_SAVE and quantity also in this service order transaction.
    Any body please explain the above question

  • Problem with changing the Standard Price using MR21

    I'm upgrading the system from 4.6C to ECC6.
    Upgrading the Standard Price works normally in 4.6C. However, in ECC6, I notice that the data saved to CDPOS table is wrongly formatted. Therefore the other programs fail to read from this table.
    Standard price is supposed to be right-justified. But it not like that in ECC6.
    Can anyone tell me we should I look into to control the process of saving the data to CDPOS?
    Thanks.
    Han

    Thanks Amuktha.
    The link doesn't seem to help resolving my problem.
    The changes is saved into CDPOS in the field Value_New (CHARACTER 254) in the way that the actual data can be retrieved by:
    value_new+238
    But any update to the standard price using MR21 now result in the value of Value_New that require:
    value_new+7
    to get the actual data.
    Further more, in the old system, the standard price value in the decimal form like: "55.66" will be save to VALUE_NEW as "5566". So to get the real value, the system need to devide the value by 100 to get the actual new price.
    In the ECC6 system, it is exactly the same as what we input: "55.66".
    My question is: Is there an user exit, BADI or any way that can interfere the process of saving the data to CDPOS so that I can ensure the new Price will be save as "5566" and can be extracted using VALUE_NEW+238?
    Thanks.
    Han

  • Error while  changing Service order through  BAPI_ALM_ORDER_MAINTAIN.

    Hi Frens,
    I am facing problem while  changing a service order .
    I am changing the  HEADER ( Planner group & Basic Finish date )   through
    BAPI_ALM_ORDER_MAINTAIN.
      lt_methods-refnumber = '000001'.
      lt_methods-OBJECTTYPE = 'HEADER'.
      lt_methods-METHOD = 'CHANGE'.
      lt_methods-OBJECTKEY = l_aufnr.
      append Lt_methods.
      lt_methods-refnumber = '000001'.
      lt_methods-OBJECTTYPE = ' '.
      lt_methods-METHOD = 'SAVE'.
      append lt_methods.
      lt_header-orderid = l_aufnr.
      lt_header-PLANGROUP = 'GE'.    " Hard coding for testing
      lt_header-FINISH_DATE = '20081114'.
      append lt_header.
      lt_headerup-orderid = L_AUFNR.
      lt_headerup-PLANGROUP = 'X'.
      lt_headerup-FINISH_DATE = 'X'.
      append LT_headerup.
      CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
        TABLES
          IT_METHODS   = LT_methods
          IT_HEADER    = LT_header
          IT_HEADER_UP = LT_headerup
          RETURN           = LT_return.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           wait = 'X'.
    I am getting error No : IWO_BAPI2  ( 118 )"  *Order 5001887 cannot be saved, since no operation is maintained."*

    Hi Balu,
    You can refer to the note 966289 which talks about this problem if a service order template is used.
    Thanks
    Abishek

  • Date Error on the Service Order while using service product

    Hi PM experts,
    I am working on the scenario resource-related billing, using service product in the service order created from a service notification linked to a contract with service product as the line item.  service product is the material of DIEN material type.
    when i was trying to save the service order created using transaction code-IW31, i am getting the  Error Message:
    " *SYS:Date 00.00.0000 not expected*".
    This error started only yesterday, and it was not there before. Basis team has confirmed that they have not done any new
    updates to the system.
    Had anyone encounered this problem before, if yes kindly let me know the solution and the steps to resolve it.
    thanks for the help.
    regards,
    rajaraman

    Hi,
    Here is the error description with message number,
    SYST: Date 00.00.0000 not expected.
    Message no. FGV004
    As an update to this thread, while searching for the reasons for the problem, i found that the characteristics used in the
    warranty class were carrying default date value as 00.00.0000.  can this be a reason for getting this error as the service
    product number which is a DIEN material type is linked to the master warranty which is in turn assigned to the equipment.
    Hope this information helps.
    regards,
    rajaraman

  • How to create Service Order using bapi BAPI_ALM_ORDER_MAINTAIN

    Hi,
    I want to create the Service Order with multiple Operations & Components.
    I am using this bapi BAPI_ALM_ORDER_MAINTAIN.
    But this BAPI creates the service order with only one Operation at a time. Can multiple operations be created using this bapi.
    If not could any one please guide to use this or other BAPI to create Service Order with multiple Operations & Components?
    Thank's in advance,
    Chetan

    Read the Documentation of the BAPI.
    Operations and Components are table parameters, you can pass multiple data. did you check that....

  • IMP: How to delete the service order

    Hey Experts,
    Can you tell me how to delete the service order which was created in IW31..? or we have any Functions Module to delete the service order?
    and one more question is I have more than 100 service order in the table ,but it will display only 50 order when i execute this Functions Module BAPI_ALM_ORDERHEAD_GET_LIST
    can you tell me how to solve this problem...?
    Thanking you in advance,
    Regards
    J Sarathi

    This is what the BAPI_ALM_ORDERHEAD_GET_LIST documentation says
    "You can use this method to determine a list of orders according to a list of selection criteria. The number of hits that are produced for the person calling up the list, can be specifically reduced; without further parameter transfers, the first 50 hits are displayed. A complete list of the hits is stored internally. If you call up the selection again within a Logical Unit of Work (LUW) without changing the selection parameters, but with other refurbishment parameters, then you receive further partial quantities of the selection result, as specified by you."
    and for deletion
    check whether you can set any deletion status through the fm BAPI_ALM_ORDER_MAINTAIN
    Also check the business objects BUS2007, BUS2088

  • Work center change in Service order not happening

    Hi Experts,
    I am facing a problem when i try to Call a function module in update task where the Function module contains a call to BAPI_ALM_ORDER_MAINTAIN without COMMIT WORK.
    This is done in order to update the Work Center while there are changes to the Warranty Status of the Repair Order.
    So , i have written the Code in the Userexit_SAVE_Document so that the Update gets done.
    But there might be problems when the Repair order does not get saved.
    So keeping that scenario in mind, I tried using the Update task Function  Module in which i wil lbe calling the BAPI for Changing/Updating the Service order.
    BUT , The Change is not getting reflected in the Work centre of the Service order.
    Thanks
    VIJAYB
    Edited by: Rob Burbank on Jun 5, 2009 10:10 AM

    Hai experts,
    i have found the way to do the work center change in update task method .
    I did call the BAPI_ALM_ORDER_MAINTAIN but without using COMMIT since this function module is called in Update task method so whatever is the change being done by that BAPI will be reflected in the Service order once the Update  task has been done for that service order.
    Thanks and regards,
    VIJAYB.

  • Creating a service order using FM

    Hello everyone,
    I am new to CRM technical. I have a requirement to create a service order using standard function module passing only 3 parametrs like category1, category2 and short text. How should I start the report. Can anyone help me in posting the code and the approach.
    Thanks in advance!

    Hi Sandeep,
    The best approach to learn this development is to debug the standard functionality by providing the data which you need in your requirement. Then you will get familiar with what are structures which needs to be populated and send to One Order API - CRM_ORDER_MAINTAIN.
    This above mentioned API will be the one which you need to use in the creation of Service Order. So, you can also search with the above mentioned Module.
    Hope this helps. Scan the Forum for FAQ's on problems that you might get in the development.
    Thanks,
    Samantak.

  • Creating service order using BAPI_BUSPROCESSND_CREATEMULTI

    Hi Experts,
    I have a requirement to create a Service order using a BAPI.
    I'm trying to use the BAPI BAPI_BUSPROCESSND_CREATEMULTI. I found some code related to this BAPI on this forum and and I've written my code based on that and while executing it i'm getting a short dump. Could anyone please help me figure out what the problem is.
    My code is as follows:
    data: lv_header_guid type guid_32.
    data: begin of lit_header occurs 0,
          include type BAPIBUS20001_HEADER_INS,
          end of lit_header.
    data: wa_header type BAPIBUS20001_HEADER_INS.
    data: begin of lit_inputfields occurs 0,
          include type BAPIBUS20001_INPUT_FIELDS,
          end of lit_inputfields.
    data: wa_inputfields type BAPIBUS20001_INPUT_FIELDS.
    data: begin of lit_partner occurs 0,
          include type BAPIBUS20001_PARTNER_INS,
          end of lit_partner.
    data: wa_partner type BAPIBUS20001_PARTNER_INS.
    Create Contract header guid
      CALL FUNCTION 'GUID_CREATE'
        IMPORTING
          ev_guid_32 = lv_header_guid.
    Fill orderadm_h
      wa_header-guid         = lv_header_guid.
      wa_header-process_type = 'YSC'.
      APPEND wa_header TO lit_header.
    Fill input fields
      MOVE: lv_header_guid  TO wa_inputfields-ref_guid,
            'A'             TO wa_inputfields-ref_kind,
            '0001'         TO wa_partner-ref_partner_handle,
            'ORDERADM_H'    TO wa_inputfields-objectname,
            'PROCESS_TYPE'  TO wa_inputfields-fieldname.
      APPEND wa_inputfields TO lit_inputfields.
      CLEAR wa_inputfields.
    Fill PARTNER DETAILS
    Sold to Party
      MOVE: lv_header_guid TO wa_partner-ref_guid,
            'A'            TO wa_partner-ref_kind,
            '0001'         TO wa_partner-ref_partner_handle,
            'CRM000'         TO wa_partner-partner_fct,
            '5000000288'    TO wa_partner-partner_no,
            'BP'           TO wa_partner-no_type,
            'BP'           TO wa_partner-display_type,
            'X'        TO wa_partner-mainpartner.
      APPEND wa_partner TO lit_partner.
      CLEAR wa_partner.
    Fill input fields
      MOVE: lv_header_guid TO wa_inputfields-ref_guid,
            'A'      TO wa_inputfields-ref_kind,
            '0001'         TO wa_inputfields-logical_key,
            'PARTNER'     TO wa_inputfields-objectname.
      MOVE  'PARTNER_FCT' TO wa_inputfields-fieldname.
      APPEND wa_inputfields TO lit_inputfields.
      MOVE  'PARTNER_NO' TO wa_inputfields-fieldname.
      APPEND wa_inputfields TO lit_inputfields.
      MOVE  'NO_TYPE' TO wa_inputfields-fieldname.
      APPEND wa_inputfields TO lit_inputfields.
      MOVE  'DISPLAY_TYPE' TO wa_inputfields-fieldname.
      APPEND wa_inputfields TO lit_inputfields.
      CLEAR wa_inputfields.
      CALL FUNCTION 'BAPI_BUSPROCESSND_CREATEMULTI'
        TABLES
          HEADER                  = lit_header
        ITEM                    =
        ACTIVITY                =
        SALES                   =
         PARTNER                 =  lit_partner
        ORGANISATION            =
        SHIPPING                =
        APPOINTMENT             =
        TEXT                    =
        SERVICE_OS              =
        STATUS                  =
         INPUT_FIELDS            =  lit_inputfields
        CREATED_PROCESS         =
        RETURN                  =
        LEAD                    =
        OPPORTUNITY             =
        PRODUCT                 =
        SCHEDULELINE            =
        CUSTOMER_HEAD           =
        CUSTOMER_ITEM           =
        PRICING                 =
        PRICING_ITEM            =
        CONDITION_CREATE        =
        BILLING                 =
        CONFIG_CFG              =
        CONFIG_BLB              =
        CONFIG_INS              =
        CONFIG_PRT              =
        CONFIG_VAL              =
        CONFIG_VK               =
        CONFIG_REF              =
        ADDRESS                 =
        BILLPLAN                =
        BILLPLAN_DATE           =
        EXTENSIONIN             =
        DOCUMENT_FLOW           =
        BATCH                   =
        PRICING_AGR_CRM         =
        FINPROD_ITEM            =
        CANCEL                  =
        CANCEL_IR               =
        PRODUCT_LIST            =
        PRODUCTS                =
        OBJECTS                 =
        PAYPLAN                 =
        PAYPLAN_DATE            =
        CONFIG_FILTER_CFG       =
        CONFIG_FILTER_INS       =
        CONFIG_FILTER_PRT       =
        CONFIG_FILTER_VAL       =
        ACTIVITY_I              =
        EXT_REF                 =
    ENDFUNCTION.
    I'm getting the following dump.
    Runtime Errors         ITAB_ILLEGAL_COMPONENT
    Date and Time          07.09.2006 21:29:03
    Short dump has not been completely stored (too big)
    Short text
    Invalid line component &V2 in "... KEY k1 = v1 ... kn = vn".
    Error analysis
    When the ABAP/4 program "SAPLCRM_BUSPROCESSND_BAPI" attempted to process the
    internal table "HEADER[]"
    with "... KEY k1 = v1 ... kn = vn", a component "HANDLE " was specified
    dynamically as the contents
    of the field "LV_STR_HANDLE". However, the line type "u" of the internal table
    "HEADER[]"
    contains no component "HANDLE ".
    |                                                                         -
    Information on where terminated
    Termination occurred in the ABAP program "SAPLCRM_BUSPROCESSND_BAPI" - in
    "SET_RETURN_VALUES".
    The main program was "RS_TESTFRAME_CALL ".
    In the source code you have the termination point in line 36
    of the (Include) program "LCRM_BUSPROCESSND_BAPIF80".
    Source Code Extract
    Line
    SourceCde
    6
    7
          text
    8
    9
         -->P_LT_ORDERADM_H_COM  text
    10
         -->P_LT_ORDERADM_I_COM  text
    11
         <--P_HEADER  text
    12
         <--P_ITEM  text
    13
    14
    form set_return_values  tables  header structure BAPIBUS20001_HEADER_INS
    15
    item structure BAPIBUS20001_item
    16
    using   p_lt_orderadm_h_com type any table
    17
    p_lt_orderadm_i_com  type any table
    18
    19
    20
    data: lv_str_handle type fieldname,
    21
    lv_str_headerhandle type fieldname,
    22
    lv_str_objectid type fieldname.
    23
    24
    25
    field-symbols: <ls_orderadm_h> type crmt_orderadm_h_com,
    26
    <ls_orderadm_i> type crmt_orderadm_i_com,
    27
    <ls_header> type BAPIBUS20001_HEADER_INS,
    28
    <ls_item> type BAPIBUS20001_item.
    29
    30
    31
    lv_str_handle = 'HANDLE'.
    32
    lv_str_headerhandle = 'HEADER_HANDLE'.
    33
    lv_str_objectid = 'OBJECT_ID'.
    34
    35
    loop at p_lt_orderadm_h_com assigning <ls_orderadm_h>.
    >>>>>
    read table header with key (lv_str_handle) = <ls_orderadm_h>-handle
    37
    (lv_str_objectid) = <ls_orderadm_h>-object_id
    38
    assigning <ls_header>.
    39
    if sy-subrc = 0.
    40
    <ls_header>-guid = <ls_orderadm_h>-guid.
    41
    endif.
    42
    endloop.
    |   43|                                                              
    Could anyone please help me with this.
    Thanks,
    Preethi
    Message was edited by: Preethi Sooth

    First off. Debug.
    Put a break point on the line that is generating the short dump and run your code. The ABAP debugger should display before the dump...now....
    The error specifies that the line type of the table HEADER (which is the internal representation of your lit_header table and has line type BAPIBUS20001_HEADER_INS ) doesn't have a field called HANDLE.
    Check if it does (it should have or something is very wrong, and you should report a bug to SAP).
    Check all runtime variables for that command. See if the table has any values in it. Try using your lit_header table with header-line or not.
    Your in a far better position to determine what the error is then me. Right now, I don't have access to a CRM server.
    From my experience that BAPI is a piece of .... It is hard finding functions in CRM that actually do what you want...properly...Try using CRM_ORDER_CREATE (i think it's called like that). Much better, and if you need RFC capability just write a wrapper RFC.
    Message was edited by: João Sousa

  • User Exit or BADI to update the service order  in R/3

    Hi,
    When creating a service order the following fields need to be populated automatically using an user exit or badi.
    1. Planner Group
    2. PMActType – Plant maintenance activity type
    3. Cost/Profit Centre
    4. WBS element
    5. Work center
    so my requirement is there any function module or Badi or user exit to update the service order details when service order is created / changed.
    Pls do the needful.
    Reg
    Ramana

    Hi Ramana,
    Go to SPRO Transaction and follow the below path
    Customer relationship management>Transactions>Settings for Service Processes>Business Add-Ins and you will find 8 BADI's.
    Check these BADI's useful for you.
    Regards,
    Lijo Joseph

  • Pricing date change on service order when creating confirmation.

    Hi gurus,
    I want  to change the pricing date (and recalculate prices)on service order to the date confirmation is created from the service order.I would like to know if this can be achieved by copy control BADI or order save BADI or pricing BADI ?
    Please  guide if anybody has already achieved this functionality.
    Thanks
    Dona

    Hi Dona,
    Pricing manipulation for an order can be done by using CRM_PRICING_BADI.Use the method CRM_PRICING_MERGE, here you can use the changing parameter CS_PRICING_BADI to change the pricing data.
    Hope it helps you.
    Regards,
    Shweta

  • How change the sort order of searched items so last search item shows first. I DO NOT mean the order of search engines, but existing searches by down arrow key

    I want to be able to change the sort order of items I have already searched for in the search box. I want to be able to hit the down arrow key and see my previous searches in the order of last search showing first. At the moment I have no idea how it is sorting and it's very annoying to have to re-type a query I typed 5 minutes earlier but because I typed in another 10 since it is lost somewhere in the list. Can this be done, I have googled but did not find the topic anywhere. Just to clarify, I DO NOT MEAN the order of search engines (which is all that comes up in google), I mean the actual text typed in which has been saved in the drop down list.
    Thanks

    The "form fill" feature uses a "frecency" algorithm, frequency + recency, similar to the address bar autocomplete list.
    I found an extension that seems relevant, but the reviews are old so I'm not sure it's still working: [https://addons.mozilla.org/en-us/firefox/addon/searchbar-autocomplete-order/ Searchbar Autocomplete Order].
    But... is the autocomplete not working? I would expect that typing a couple characters of the earlier query would filter the list so you can easily select it? Or is the problem that the list doesn't remember enough searches for that?

Maybe you are looking for

  • Adobe Application Manager stuck at "About 2 seconds remaining"

    I've successfully installed Macintosh CS6, the apps launch and run, and I checked for updates. There were a bunch of updates for CS6 so I ran the udpater. Everything seemed to go smoothly but the Adobe Application Manager says the following (see pic

  • Could not complete the color halftone command because apple talk is not connected

    i'm getting this error, can someone please help me to resolve? it makes absolutely no sense. Thanks! -JS [email protected]

  • Sender HTTP adapter

    Hi, I have been working with SOAP sender / receiver adapters.. Now I am working on a new scenario where I am developing scenarios from and to HTTP servers. 1. I use http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel URL to ca

  • Iphoto 6 to iphoto 9 question. Please help.

    Hello, I have years of albums and slideshows from iphoto6 on my G5 tower (Tiger). I just recently purchased a used 27 inch imac with iphoto 9 on it. I used migration assistant to transfer my files to the imac. When I launched itunes it successfully u

  • How do you arrange 2 columns together in bin?

    I have a bin of footage of 5 different tapes. When I click on the top of the reel column it will arrange all my footage by tapes, which is great because all my tape 4 clips are together and tape 3 clips etc etc... When I click on media start column i