Sort field in maintenance order

Hello;
I want to make sort field in maintenance order as a mandatory field. But if I make it as a mandatory field, system still allows me to save the order as long as I have not clicked 'Location' tab. So there is no positive control over this field. May I know, how do I achieve this? I have even tried to put order type as the influencing field but it does not help.
Points assured.
Regards
Hemant

Hello Hemant,
access to the SAP service marketplace via www.service.sap.com to create an OSS message. Choose link "product errors". Therefore you need an OSS user and you have to be authorized to create OSS messages.
To create an user-exit, you have to go to transaction CMOD. There you have to create a project and assign the enhancement you want to use (I'm not really sure, but I think IWO10009 is the correct one in your case - you can search the user-exits via transaction SMOD - search for IWO*).
After this you have to implement your coding and then you have to activate the project.
The implementation of the user-exit should be done by an ABAP developer.
By the way - I've had a look at the OSS. There's note 768576.
Reason and Prerequisites
The problem is caused by a missing function.
Influences set via field selection will only become effective if a screen with the corresponding fields is processed. You must also refer to the documentation defined in the corresponding Customizing area. For the location & account assignment data, no additional check is (such as with the general order header data) is realised during the saving.
Prerequisite
Via field selection you declared fields of the location & account assignment data as mandatory field, and no screen that contains these fields was passed.
Solution
By means of the example code, you must implement a corresponding mandatory field check via customer enhancement IWO10009 at the time of the order backup.
1. Create subroutine Z_IWO10009_GET_DATA_FOR_FAW in program SAPMILA0. It would be best if you create an own include ZMILA0F1 for this so that you will not have any unnecessary expenditure for future Support Packages (via Transaction SE80).
FORM Z_IWO10009_GET_DATA_FOR_FAW.
  CALL FUNCTION 'CO_IH_GET_HEADER'
       IMPORTING
                 CAUFVD_IMP = CAUFVD.
  CALL FUNCTION 'CO_IH_GET_ILOA'
       EXPORTING
                 CAUFVD_IMP = CAUFVD
       IMPORTING
                ILOA_WA    = ILOA.
ENDFORM.                    "Z_IWO10009_GET_DATA_FOR_FAW
2. Create the following source code in customer enhancement IWO10009:
STATICS: XTFAWF LIKE TFAWF OCCURS 0 WITH HEADER LINE.
tables:  tfawf.
DATA: wa_screen    LIKE screen.
FIELD-SYMBOLS:  'A'.
  perform Z_IWO10009_GET_DATA_FOR_FAW(SAPMILA0).
  if xtfawf[] is initial.
    SELECT * FROM TFAWF INTO TABLE XTFAWF
             WHERE PROG = 'SAPMILA0'.
  endif.
  LOOP AT XTFAWF WHERE CUST_M = 'X'.
    CALL FUNCTION 'FIELD_SELECTION_INFLUENCE'
         EXPORTING
              dynprogruppe = '7   '
              mode        = 'C'
              modulpool    = 'SAPMILA0'
              fieldname    =  XTFAWF-MFELD
         IMPORTING
              input        = wa_screen-input
              output      = wa_screen-output
              active      = wa_screen-active
              required    = wa_screen-required
              intensified  = wa_screen-intensified
              invisible    = wa_screen-invisible
         EXCEPTIONS
              OTHERS      = 1.
    if wa_screen-required = 1.
      clear lv_mfeld.
      lv_mfeld = 'CAUFVD_IMP-'.
      case XTFAWF-MFELD.
        when 'ILOA-AUFNR'.
          lv_mfeld+11 = 'IAUFNR'.
        when 'ILOA-KOKRS'.
          lv_mfeld+11 = 'IKOKRS'.
        when 'ILOA-BUKRS'.
          lv_mfeld+11 = 'IBUKRS'.
        when 'ILOA-GSBER'.
          lv_mfeld+11 = 'IGSBER'.
        when 'RILA0-ARBPL'.
          lv_mfeld11 = xtfawf-mfeld6.
        when others.
          lv_mfeld11 = xtfawf-mfeld5.
      endcase.
      ASSIGN (lv_mfeld) TO  IS INITIAL.
        Message E461(IW)
        with 'Mussfelder der Standort&Kontierungsdaten füllen'.
        EXIT.
      ENDIF.
    endif.
  endloop.
endif.
3. Activate the changes
Correspondingly you can implement this solution also for the order release, for example, via customer enhancement IWO10002.
Bear in mind that this is a source code proposal. It might be useful or necessary to adjust this source code to special applications.
Best regards
Stephan
Edited by: Stephan Theis on Jan 5, 2008 11:20 AM

Similar Messages

  • Copy Planning Plant to Sort field in Maintenance Plan

    Hi All,
    Is there any User Exit User exit is available to Copy Planning Plant to Sort field in Maintenance Plan.
    Regds
    Vinit

    I think it is not possibe as the sort field in maintenance plan is a customizing field. you can not enter any value in the sort field but you in SPRO first you have to maintain the values  for sort field.
    The sort field in order and notification, there you can copy the planning plant or anything else as they are manual input fields

  • Planner group field in Maintenance order

    Hi,
    When we create a General Maintenance Order, the planner group from Equipment/Functional Location, value, will automatically appear in the Order.
    But in Refurbishment Order, which is for material, the planner group field do not come automatically.
    Is there any option to maintain the planner group field in the Material master, so that, this can appear automatically in the Refurbishment order.
    Kindly suggest.
    Raja.

    Hi Kutti Raja,
    The Material Master route you are looking for does not look feasible,as there is no relation between Planner Group and Material .
    If your Refurbishment Order is triggered through a Notification (M4), then Planner Group automatically flows to Order.
    The other alternative can be
    1. Create a Z-Table having Material vs Planner Group.
    2, Use the User-Exit  IWO10018  to have default planner group INGPR value.
    This works as I have already tested while replying to a discussion. Please go through this.work order completed by
    and go through my reply having 6 steps. You need to work in the similar lines.
    Take help of an ABAPer.
    Jogeswara Rao K

  • Control date fields in Maintenance Order

    Hi experts,
    I need to implement a control between the dates of operation of the maintenance order (NTANF and NTEND) and the dates of the header of the order (GSTRP and GLTRP) with an error when saving.
    Can you suggest me a BADI or an exit?
    Thanks a lot!
    L.

    Hi,
        If u want to have checks while saving the Maintenance Order then User exit : IWO10009 PM Order: Customer Check for 'Save' Event Triggeres at the saving the Maintenance Order
    Regards
    pushpa

  • Activity type field in Maintenance Order

    Hi all
    My client requirement is that activity type (LARNT)should me mandatory in maintenance orders to capcture the cost with out fail.
    Could any body suggest me that when we need to do that?
    Regards
    Srinivas

    Hi
    Since the work center is mandatory you can make the activity type mandatory for workcenter master data record in OPFA IMG
    or check in OIOPL where you can make the activity type as mandatory ,but i think it will only work once you nagivate the operation tab
    or check whether user exit order at save will be useful
    regards
    thyagarajan

  • Fields in Maintenance order subscreen Location are uneditable

    In ECC 6.0, In the maintenance work order screen, the fields related to Location tab are not editable. I have maintained the fields in OIAZ as input field . Then also, the fields in the location tab are uneditable.It is displaying the data from equipment master data. How can we make this editable?
    Thanks,
    swami

    Hi ebenalfa,
    Check whether there is a transaction variant created for the transaction IW31/ IW32 and activated as a standard variant in SHD0. If there is, deactivate that transaction variant, that would resolve the problem.
    Regards,
    Muhammad Usman Kahoot

  • PM-maintenance order

    sir,
    what is the significance of "user definable fields'' in enhancement TAB of maintenance header data??
    please reply..

    S pavan:
    This an area needed for PM consultants to set up some non generic fields in maintenance orders at header level. If you want to extract these fields you have to check the content of the table holding these data. then You will have to append the 2lis_17**** extractors.
    Regards
    RAP

  • Sort Field to be made mandatory while creating maintenance plan(IP42)

    Hi Experts,
    Please suggest me the way by which i can make the field "Sort field" mandatory while creating maintenance plan (IP42).
    Regards,
    Vivek

    Vivek,
    There is no std config to acheive this. Please use IPRM0004 Maintenance plan/item: Customer check for "Save" to accomplish the same.
    Mahee

  • The sort field is not used when ordering multiple cds in one alumn folder, how do I correct this?

    It is using the track number and not the sort order field.  The reason I have multiple cds in one alumn is because they are books on cd.

    Sorry for the typo my "b" key was not working correctly.
    The sort field is not used when ordering multiple cds in one albumn folder, how do I correct this?  It is using the track number and not the sort order field.  The reason I have multiple cds in one albumn is because they are books on cd.

  • Work field in operation tab pages of maintenance order.

    Hi,experts,
    i need to enter work time in operation tab pages of maintenance order followed by two decimal digit like 2.55 mint or 2.65 H.System is not allowing to enter two or more than this decimal digits,it is allowing upto only one decimal digit like 1.5 H,2.3 min etc.How can I enter value like 2.56 min.Client is not accepting to enter after converting the unit.this is required for one of my specific scen.please suggest how I will enter 2.55 min or 2.55 H etc.thanks in advance.
    rgd
    rajib

    As standard the field is set to 1 decimal place.
    You cannot change this value without modifying your system (not recommended)
    I think you can enter more decimal places in the confirmation documents e.g. IW41
    PeteA

  • Wrong user ID appearing in entered by field of planned Maintenance Orders

    Hi,
    Only few planned orders those are generating from maintenance plan (Having order types PM02  and PM05 for QM Inspection plan), Instead of user ID system is being taken a code in entered by field as {IP1020100416 It looks like the combination of IP10 scheduling T-code of Maintenance plan and 020100416 = 16042010 is the created on date of Maintenance order}
    Please advise, what should I do to bring user ID instead of above shown code?

    This is the Batch input : Group name (contains the session name). It is not specific to any user. This is helpful in listing down all the maintenance call objects that the system generated during deadline monitoring.
    In the field Entered by, enter the group name that the system proposes on the initial screen of the date monitoring session.
    IP1019950101 --> All maintenance orders from January 1, 1995
    IP10199501 --> All maintenance orders in January 1995
    This is helpful when background scheduling is activated for Maintenance Plan.
    To View which User was responsible for the Scheduling of the maintenance Plans, View the Transaction IBIPA, give the user name it would list all of the Sessions run by this user and the Group Names for the correponding sessions.
    Edited by: Usman Kahoot on Jun 2, 2010 10:43 AM

  • Field costs in maintenance order

    Good morning,
    DdsCabeç tab. the maintenance order (IW31/IW32/IW33) there is a field that costs just under the Note field.
    This field is released for publishing costs while the order is only with ABER status. I wonder if this release has the field to iissue a final or at least the status of the maintenance order LIB.
    Thanks,
    Edited by: Equipe PM on Apr 6, 2011 2:38 PM

    Hi Rupesh,
    Has this been resolved? If so, what did you do? We have a similar problem. I am seeing the "Planned Costs", but not the "Actual Costs" for my services.
    When trying to save the SES, I get the following pop-up message:
    "No message record could be found for output of message. Save anyway?"
    Also, when I try to accept the SES, I get the following error message:
    RC=
    3  BP              
    045 Profile PM0001 does not exist
    Can someone please guide me on troubleshooting this?
    Thanks in advance
    DKK

  • Field "User responsible" in Maintenance Order.

    Hello experts,
    I am looking for the field "User Responsible" in a Plant Maintenance Order, but I can't find it!
    If i go to table COAS and type in a PM order, the field name is "VERAA USER".
    Where is this field when I am creating a PM Order?
    Can this be manually populated or is it automatically populated by other means?
    Thanks!
    Gilberto Gallardo

    Dear Gilberto Gallardo,
    COAS is a Database View and not a table. It is based on table AUFK which is populated from transaction KO01                 Create Internal Order or from Easy Access Accounting -> Controlling -> Internal Orders -> master data -> Special functions -> order -> Create and other related transactions for controlling
    Regards,
    Naveen.

  • Field Selection Setting - Maintenance Order Reg.

    Hi All,
    When a maintenance order is in "CHANGE" mode, I want a particular filed in the maintenance order to be in "DISPLAY" mode (i.e: Masked, so that no changes can be made). Currently that filed is in "OPEN" mode (so that changes can be made).
    The field is as follows:
    In "Components" tab;
    by double-clicking the item number;
    "General Data" tab is displayed;
    in general data tab; under "general indicators" screen;
    "CostingRelevncy"  field
    (Table Name - RESBD / Field Name - SANKA)
    I need this field to be in display mode when the order is in "Change" mode. 
    I tried to look around for this field in SPRO, but in vain.
    Request furnish the menu path in SPRO or some other way, so that this requirement could be accomplished.
    Many thanks in advance.
    Best Regards.
    Kannan J

    Hello Shiv;
    Can you let me know how did you find out : Screen variant, program & screen for the table name & field name?
    Also did you use transaction variant or screen variant?
    Thanks & Regards
    Hemant
    Edited by: Hemant Roplekar on Dec 21, 2007 1:03 PM

  • Sorting of calculated field in descending order

    Hi Gurus, Expert
    I have this code in BIP to get the Total Amount:
    <?xdoxslt:set_variable($_XDOCTX,’MRCTot’,0)?>
    <?for-each:ROW?>
    <?xdoxslt:set_variable($_XDOCTX,'MRCTot',xdoxslt:get_variable($_XDOCTX,'MRCTot')+(MRC_ADD_PHP+MRC_DELETE_PHP+MRC_UPDATE_PHP))?><?MRC_ADD_PHP+MRC_DELETE_PHP+MRC_UPDATE_PHP?>
    <?end for-each?>
    <?xdoxslt:get_variable($_XDOCTX,'MRCTot')?>
    Can you help me please how to sort this in Descending Order.
    Regards,
    John Paul

    <?for-each:ROW?>
    <?sort:A+B+C;'ascending';data-type='number'?>should help

Maybe you are looking for

  • HT201269 My iPhone 5 isn't being recognized by my laptop anymore?

    My iPhone 5 isn't being recognized by my laptop since I upgraded from the 4S.  Any ideas?

  • Would 100% width on a Fluid Grid Layout be bad for any reason?

    I was thinking of setting 100% width on my Fluid Grid Layout (for all media queries) so I wouldn't have to go outside the fluid container for my header and footer bar. Would this be bad for any reason? I feel like they probably preset sizes below 100

  • HELP!-Desk​top SW says Memory is Over-Capac​ity- Card shows "other" as the issue

    When syncing my Tour that has a 1GB memory card installed onto my MAC, the Blackberry Desktop SW says Memory is full at "+94MB", which doesn't make any sense as I only have about 20 pics (all less than 300-400KB each) saved to the card.. no video, no

  • SoundBlaster X-FI MB3 software problem

    Hello MSI Forums, New purchaser of the Z87-GD65 motherboard.  Has anyone else purchased this board and installed the XFI MB3 software from the included driver CD?  I installed the software and it states that "There is no supported audio device availa

  • IPP Printing Problem

    I have a printer on the local network that I need to print to using ipp.  The problem is, I can't.  I can print to it using lpd and the directjet setups, but when I try to use ipp, it just says the "Network host is busy". All that said, my fundamenta