Assign EQUNR to VORNR in Service Order

I'm using R/3 v4.70.  After a Service Order has been created via a Service Notification, I need to 1. Add new Operation(s); 2. Add new Equipment(s); and 3. Assign those equipments to the appropriate operations.  The problem arises in that the user does not want to execute IW32 on-line, and wants the modification done via BDC, BAPI or whatever in custom ABAP program.
The problem is this...the operations and equipments can be added easily.  However, from the objects tab in IW32, we choose the "Assignments" action button and proceed to a pop-up screen with tree and node structure.  Adding one operation and one equipment at a time results in one available node, which is the simplest way to do the associations.  But, SAP does not "see" the selection of the node on the SAPLIOPEXT 0300 screen (on single click), or if it does, SAP assigns some temporary value like '%_GC 163 22' to the OK_CODE upon double-click, but the value is not consistent. It may change (or remain the same) on each subsequent entry to the screen.  SAP does see the OK_CODE WEIT, and proceeds normally whether or not the relationship actually gets created (or whether double-click did or did not occur).
Questions:  How does one accomplish this one-to-one assignment of object to operation in IW32 outside of the OLTP environment?  Or, is there an alternative transaction, BAPI, or ? that will result in creation of this relationship?
I note that SAP is using FM IOPOL_RELATION_CREATE internally...Is there a way we can somehow replicate that action (which appears to ultimately result in an entry in table OBJK) outside of IW32?

SAP has responded. We're going to use some development that I already have, which updates IW32 for activities (operations) and objects (equipments), and saves.  Subsequently, I have a custom function module which looks at operations and objects (AFVC and OBJK), searches OPROL for the links and calls the SAP function module IOPOL_RELATION_CREATE.  At the end of the process, I commit work to cause the update buffer contents to be pushed to OPROL.

Similar Messages

  • User exit Or Badi for  creating Service order while modifying sales order.

    Hi Experts,
    I am creating Notification using transaction IW51.
    In IW51 there is a button to create a sales order.
    I click on sales order button and create a sales order.
    Now notification and sales order are created.
    Now i go in transaction VA02 and click on avalibility check push button .It gives me some popups in which i select copy all options.Then  i click on save button
    .At this point service order gets created.
    My requirement :
    Before the service order gets created i want to pass the notification data ; for ex- Equnr(Equipment number) to service order.
    Thanks & Regards,
    Chetan

    Hi,
    Are you saying first create notification,then service order
    and then Sales order.
    But the requirement is create notification then sales order and when you go in va02 and while modifying the sales order and create service order.
    Thanks & regards,
    chetan.

  • Creating Service Order from Campaign

    Hello Guru's
    I m really stuck presently with my Task.
    My scenario is, we have modified service order transaction (zsrv), and this service order has been modified by adding custom developed classification that we assign every time we create service order manually. I have to create same service order from campaign execution.
    At the same time when we create campaign, this classification is assigned in campaign screen and stored in bespoke table. Then i have to create service order automatically from campaign when executed.
    So can any one help me on this scenario. what BADi i have to use, what is the best approach for this. How i can pass the classification of campaign to service order.
    please help me
    thank you
    shankar

    Hello. What was the solution, please?
    I have a similar scenario in which I need a mass creation of service requests from a target group.
    Thanks a lot,
    Luis.

  • Using Function modules in  BSP - Operations on Service Orders

    Hi,
    We are creating a custom BSP application for scheduling resources and updating appointments for resource personnel.
    The process is as follows:
    From the list of Service Orders with some product added as line item, with status OPEN, the user selects a SO and makes an online payment.
    Returning from the site, the Status of the Service order is changes to Released. Following this, the available resource is assigned to the Service order and the appointment details are populated in the Service Order. Subsequently, another line item of the Service order is set to Released.
    We are using the following function modules in the order as given below:
    To set status of a line item to Released
    1)     CRM_ORDER_INITIALIZE
    2)     CRM_STATUS_SET_INTERN_OW
    3)     CRM_STATUS_SAVE_OW
    4)     COMMIT WORK
    To assign a resource to the Service Order
    1)     WFD_RES_GET_AVAIL
    2)     CRM_ORDER_INITIALIZE
    3)     WFDS_GET_ASSIGNMENT_TO_SO_ITEM
    4)     CRM_ORDER_INITIALIZE
    5)     WFDS_CRM_SRV_ASSIGNMENT_MODIFY
    6)     WFDS_SAVE
    7)     WFD_TRANSACTION_COMMI
    To update the assignment dates in Service Order
    1)     CRM_ORDER_DEQUEUE
    2)     CRM_ORDER_INITIALIZE
    3)     CRM_ORDER_INIT_OW
    4)     CRM_ORDER_MAINTAIN
    5)     CRM_ORDER_SAVE
    6)     BAPI_TRANSACTION_COMMIT
    To set status of a second line item to Released
    1)     CRM_ORDER_INITIALIZE
    2)     CRM_STATUS_SET_INTERN_OW
    3)     CRM_STATUS_SAVE_OW
    4)     COMMIT WORK
    Using these FM’s in a report program or even in Debug mode works fine, except in the BSP’s where the behavior is random.
    The issue that we are facing:
    1)     Calling the Function modules sequentially, it takes time to update the order after execution of a BAPI/RFC and at times the order gets locked although we are using the Function Module CRM_ORDER_DEQUEUE after a logical block, and the Service Order is un-available for subsequent actions
    2)     At times, the Steps get executed correctly
    3)     At times the Steps get executed correctly after adding certain delay after each logical block of steps, but at times the time is not enough for the order to get updated.
    Can someone help us solve this un-predictable behavior?
    If someone has previously worked on such a requirement, please provide inputs on the scenario.
    Also, please let me know if there is a fail-proof procedure to ensure that the steps get executed completely and also if there is a need to use alternative BAPI’s in a specific order.
    Thanks,
    Regards,
    Siddhartha Jain

    I am afraid you would have :
    - to copy the standard FM 'MS_EXCEL_OLE_STANDARD_DATA' (it is wrapped up into EXCEL_OLE_STANDARD_DAT)
    - to comment this line in this newly created FM
      SET PROPERTY OF obj_ex_app 'Visible' = 1.
    - to call your own 'ZMS_EXCEL_OLE_STANDARD_DATA'
    That should do the trick.

  • Default settlement rule with settlement type as FUL for service orders

    Hi Folks,
    Could you please advise me on the below issue?
    Requirement: setting up of default settlement rule with default settlement receiver as u201CCOST CENTREu201D and settlement type as u201CFULu201D for the maintenance orders (Order category u2013 30).
    I was trying to configure the same in transaction KSR3_ORI to assign the strategy to the service order type by clicking u201CNew Entriesu201D system not showing the drop list for the status column which is a mandatory field.
    We have applied the below notes:
    Note 313454 - Info: Default value for settlement type
    Note 851975 - Settlement use automatic generation creates
    Could you please guide us to get the default settlement rule for service orders along with settlement type as u201CFULu201D

    I was also with this problem in 2013 january and only found some information about this, here.
    Our solution was change the Maximum number of distribution rules in Maintain Settlement Profiles to 1, because we wanted the FUL rule and it is always in the first line.
    Now, for curiosity, I was search for another solution and found the SAP note 2028108 that explain that is not possible to change the strategy for PM/CS orders.
    This note was released at 09.06.2014

  • In Service Orders - Adding addition status in User Status Profile

    Hi Guyds,
    I have a question.
    Customer have a requirement where, in repair process when they receive the defective device (equipment) thru return delivery they want to put the device in contamination. And once the contamination is done they want to stage the device for repair. They are asking how can this requirement be met or mapped in SAP system? I suggested we can define additional user statuses in user status profile. Like when the device is received the user can manually set the user status as "Put to decontamination" status in service order. And once the decontamination is complete, then user can manually set another user status as "Decontamination complete" (just as an example). Customer has agreed with this suggestion.
    Now, my question is I can meet this requirement by adding addtional statuses to the user profile and then assigning the user profile to service order right? And as customer has agreed that user will have to manually set these statuses in service order, so customizing/configuring the status profile should suffice right? Or do I have to perform any enhancement? Please advice but remember that the customer has agreed to setting the user status manually, automation is not required. So, in this case do I still have to go for any enhancement to meet this requirement or can I do it just by defining extra statuses in user status profile.
    Please guide me. Appreciate your help.
    If you have any questions or need any clarifications, please let me know.
    Best regards,
    Abdul Rafey

    Hi
    As you correctly pointed out user status will be straight answer. there is no enhancement required. you have to create the user status and assign the same for the order type .
    also you can automate to some extent ex while order created you can make the "Put to decontamination" as initial and while releasing the order you can automate that "device for repair" will be set on releasing
    regards
    thyagarajan

  • Components of a product are not visible in service order

    Hi all,
    I have created a product and assigned various other products as components to it. For e.g i have created a refrigirator and assigned components such as compressor etc. But after i assign the product while creating service order , i am not able to see the components. For e.g i can only see refrigirator and not compressor.
    I want even the components to be visible in the transaction Can anyone help me in doing that?
    Regards,
    Madhu.

    Hi Madhu,
    My Understanding:
    1. When you enter the main/header product in the item details, the item catefory for the header product gets determined.
    2. Your components can also be seen below as sub-items automatically, but the item category is not determined.
    Tell me if my understanding is correct.
    If Yes, u need to maintain the item category determination for the sub-items or components as well.
    Transaction Type: Put the service order transaction type
    Item Category Group: Check the item category group of your component product in COMMPR01 (Material tab/ Sales and Distribution Tab)
    Item Category Usage: Leave it Blank
    Main Item Category: Put the header product item category
    Item category: Put the desired item category here.
    Also ensure that in the customizing of the header item category, u have maintained the Structure Scope as A- Single Level Explosion of Structured Products.
    Regards,
    Shalini Chauhan

  • Service order - components to be billed thru sales order?

    Dear PMCS experts,
    I have a requirement where service order-components are to be billed thru sales order (thru special stock indicator).
    I am giving below the process flow:
    1.Pr raised in notification-service order through components tab using as "Non stock Item), and the pr is converted to PO,
    2.User does MIGO/GR for the same po. and after migo/gr, costs are booked in service order. movement type used is 101.
       My requirement, the migo/gr is to be using movement type 101 with special stock indicator, how this is possible, so that after
       migo/gr, the costs are booked to service order, and components quantities are appeared as special stock indicator (W or any
       other special stock indicator)
    3.I raise sale order in notification and take the same components in sales order manually. after sales is created, the i wanted to
      do  pgi for the same components using using special stock indicator with storage location. Actually this stock is virtual stock
      pgi  thru vl01n.
    Kindly help in customising settings in PMCS module, materials/components -account assignment settings,  so that the service order after migo/gr, the special stock indicator is activated along with 101 movement type.
    pl help
    thanks in advance.
    Regards
    Srihari

    Hi,
    It seems that you are in need of Resource related billing (RRB) with external material.
    1. Create Service notification
    2.Create service order , plan your materials ( stock and / or non stock) ---> triggers PR for Nonstock items
    3. Procure, GR and book the cost to the order.
    4.Create Debit memo request (DP90), will generate sales document for consumed components.
    5. Do the billing
    If this meets out your requirement, create DIP profile setting and assign it the Service order. POST elaborately  your requirement with an example for further clarifications.
    BAB

  • Service order-Error during account assignment

    HI experts,
    I am facing a problem in CRM when saving Service Orders.
    Issue:No account assignment found for this service process
    An error has occurred in the system XXX while copying the document
    Message no. CRM_ORDER_MISC 020
    Diagnosis
    Errors occurred while transferring the document into another system.To view the error messages,see the enclosed log.
    Transmission log
    No account assignment found for this service process (Notification E CRM_SRV_LOG_EXT_OLTP 008)
    Actually,We have a problem about service order,how to integration with WBS element.
    We can see Account assignment in service order item from GUI,but search help is nothing.
    Account assignment is missing in UI.
    If anyone know it,please share with me.
    Thank you.

    Hi Fan Ding,
    1. Would you please check the Controlling integration settings in CRM and ECC systems.
    Most importantly, Replicate service characteristics relevant to controlling
    Assigning cost centres to service org units
    Establishing controlling type, controllin glevel and scenarios
    Assigning plant and storage location to service org units
    etc.,
    2. Please check whether Sales/Service organization assigned to Billing unit and in turn the Billing Unit is assigned to company code or not.
    Regards,

  • In service order Issu:No account assignment found for this service process

    Issue:No account assignment found for this service process
    An error has occurred in the system RT1400LS while copying the document
    Message no. CRM_ORDER_MISC 020
    Diagnosis
    Errors have occured while transferring the document into another system. Remove the error messages from the enclosed log.
    Transmission log
    No account assignment found for this service process (Notification E CRM_SRV_LOG_EXT_OLTP 008)
    While we created the service order as a fallow up document of the quotation system unable to create the PR. System showing the above error in the service order.
    We created the service order with same items directly not as fallow up document to quotation PR created with out any fail.
    As per my analyses above error because system unable to find out the Internal order to create the PR hence we created service order as a fallow up document of the service quotation.
    Revert require data to understand the issue more.
    Best Regards,
    Prakesh

     Dear Gurus,
    Thanks for your update. we checked as per your suggestion but the issue is PR is not determining the IO while creating the PR.
    We used the different item cat in quotation and service order system generating the PR, But our Clint want to use the same item cat in the both service order and quotation.
    If we created the quotation after that service order with the service line item and spare part line item system creating the IO (internal order) but PR not generating.
    Please help me in this scenario what should we do.
    Best Regards,
    Prakesh.

  • How to assign status profile to components in service order

    Hi,
    For my business requirement, I want to assign status to individual components planned in the service order. Even though there is a status button on the component tab, there is no config where I can assign the status profile. We can only assign status profile to the order header and the operations and not to components level.
    As SAP has provided the status button in the component tab, I am hoping that there is a way to assign the status to the parts planned.
    Your help is much appreciated.
    Regards,
    Ram.

    hi all,
    It will be helpful if you give any useful tips on maintaining status for the component level in the service order.
    regards,
    ram.

  • Assign of Service order to Service Notification using BAPI_ALM_NOTIF_CREATE

    Dear Guru's,
    I am using BAPI_ALM_NOTIF_CREATE for creation of Notification.
    Then BAPI_SERVNOT_SAVE & At last BAPI_TRANSACTION_COMMIT.
    Notification    is getting created .
    But I want to assign the service order to this notification. ( IW52 ).
    I have tried with the filing the data of      REFOBJECTTYPE  = 'BUS1004'.
                                                              REFOBJECTKEY =  ' 003120007' &
                                                              REFRELTYPE.  = 'ASGN'.
    But it is not getting assigned.
    Needed Help.
    Regards,
    Amitav

    Sorry , Typo error.
    REFOBJECTTYPE IS 'BUS2088A'.

  • Service order type assignment

    Dear all,
    How i am goin to assign the service order with the repair order type?
    Regards,
    Mohsin

    The links are as follows:
    Item category --> Requirements type --> Requirements classes. In the requirements classes the order type is assigned.
    In customization:
    Sales & Distribution --> Basic Functions --> Availability Check and Transfer of Requirements --> Transfer of Requirements
    B A

  • Service order creation based on counter reading assigned to the Ibase.

    Hi All,
    I've created a service contract (ZXXX) with the item category (ZIT1) of service plan.
    In the item category (ZIT1) definition i've copied the standard item cat. of service plan (SPLA) and assigned the standard date profile SERVPLAN to the item category.
    Requirement - Service order has to be created automatically if the counter reading assigned to the Ibase is greater than counter reading that is maintained in the service plan template that is assigned to the service plan product(Item) in the service contract transaction.
    Master Data -
    Service Interval Template - Created service plan template for counter based interval and maintained the interval as 100HR.
    Assigned the template to service plan product(item) which is assigned in the service contract.
    Created a counter ID and assigned the counter to the Ibase.
    In the item date profile SERVPLAN , I've assigned the date rule (Planned time based on the counter reading) to 'Release date' date type.
    In the item action profile ., Action is defined as it should create a service order (ZSER) with the template defined in the item if the (Release date =< today's date) as start condition.
    I've maintained the complete master data.
    Now Release date should be picked based on the counter reading of the Ibase assigned to the service plan item in the service contract.
    If Ibase counter reading > counter reading maintained in the interval the release date = todays date.
    If Ibase counter reading < counter reading maintained in the interval the release date = future date.
    which is not happening now in my case. service order is getting created even the counter reading of Ibase is less than the interval.
    Please let me know if further more changes to be done to map the scenario.
    Thanks
    Syam

    Hello,
    I found the following:
    If you fill someting in the fields REFOBJ_IBASE, this value is being converted into a GUID internally
    This happens in function CRM_BSP_OIC_1O_SEARCH_FROM_RF
    So you have to make sure that the search field REFOBJ_IBASE points towards the field CRMD_SRV_REFOBJ~GUID_OBJECT ( via table CRMC_REPDY )
    And even then I have the impression it only works when you only fill the Ibase in the order. When you fill the component there is a different GUID.
    In my case I found out it is even more complex, so I will need to create my own search field (extend search structure )
    Regards,
    Erwin

  • Error in requirement class while assigning service order type.

    Hello All,
    I am getting below error message whenever I am trying to assign a service order type to requirement class.
    This the error meassage:
    Maintenance order type ZSC3 is either not flagged as a service order type or revenue posting is allowed for this order type.
    System Response
    The system does not allow any further processing.
    Procedure
    Enter a service order type that does not allow revenue postings.
    Please help urgently.
    Best regards,
    Partha Das

    Ya do same thing but I dont think using this FM will solve the problem...
    You get the Update Terminated message when the normal course of the program has been halted by user intervention.
    Now could u please check that are u calling any FM in your program.
    If yes just list out all of them.
    Thanks.

Maybe you are looking for