Transaction iw31

hi
when i execute the transaction code iw31 and try to create maintanance order and execute it says syntax error in abap program  SAPLSRABAX_EXC is this a basis problem.if so what to do
regards
sathi

Technically not a Basis problem , Look at the abap Dump and see if the program has been modifed by one of your programmer had modfied the code, If the code / related code has not been modified at your end , report the problem to SAP

Similar Messages

  • Settlement rules in transaction IW31

    Hi gurus,
    Here is the requirement.
    After going into transaction IW31, we usually create settlement rules using the separate icon for that on the IW31 screen.
    Instead of that is it possible to create settlement rules either when we release the order or when we save the the order? The settlement rules has to be created automatically. Is it possible using user exits or BADIs?
    Thanks
    Nobz

    Customizing
    Plant Maintenance and Customer Service->Maintenance and Service Processing->
    Maintenance and Service Orders->Functions and Settings for Order Types->
    Settlement Rule: Define Time and Creation of Distribution Rule->
    Order type + 1 Mandatory for release
    ================================================================================
    CMOD - Enhancement: IWO10027 User exit: Generate user-defined settlement rule
    Example
    *&  Include           ZXWOCU24                                         *
      data char24(24).
      CLEAR pmdfu_tab.
      REFRESH pmdfu_tab[].
      pmdfu_tab-konty = 'PR'.
      pmdfu_tab-fdind = caufvd_imp-pspel.
      pmdfu_tab-perbz = 'PER'.
      pmdfu_tab-prozs = 100.
      APPEND pmdfu_tab.
      CLEAR pmdfu_tab.
      pmdfu_tab-konty = 'PR'.
      pmdfu_tab-fdind = caufvd_imp-pspel.
      pmdfu_tab-perbz = 'GES'.
      pmdfu_tab-prozs = 100.
      APPEND pmdfu_tab.
      CLEAR pmdfu_tab.

  • Enhancement for Transaction IW31

    Hi All,
      Is there a userexit or BADI or Enhancement point to update the Planned cost or the Estimated cost in transaction IW31. Please let me know a way to change the planned cost or the extimated cost.
    Thanks,
    Rajesh.

    Rajesh,
    There is no user-exit/badi to change the planned or estimated cost directly.
    Anyway, you should not change the planned costs through any form of ABAP coding...
    See [here|http://www.sapfans.com/forums/viewtopic.php?f=7&t=316175] for a similar post relating to estimated costs
    PeteA

  • User Exit / BADI for Transaction IW31 to create a POP-UP.

    Hi,
    I need to have a POP-UP Message in transaction IW31 on the press of ENTER. Could you give me the name of the EXIT or BADI which can be used for this purpose.

    Hi!
    In IW31/IW32, there is no user-exit/badi for pressing Enter. User-exits are attached to well determined event (enabling, closing, saving the order and so on).
    If you wanted to solve it, it seems, you have to modify the standard COIH function group. Use SE80 transaction for it. The first dynpro is 3000.
    Regards
    Tamá

  • Error occured for transaction IW31

    Hi all,
    I am doing upgrade project from 4.6 C to ECC 6.0
    when running the transaction code IW31 i got the pop up window stating " Bussiness transaction cannot be carried out".
    The parameters as follows:
    Order Type MIT1, Functional Location 9001827-00130054-MS-001, and Planning Plant 3001
    But in development client this error is not coming it is coming in quality.
    How can i solve this error.
    Regards
    Jai

    Answered

  • LSMW method for transaction IW31 (Service Order)

    Hi all,
    I am looking for a way to create multiple Service Orders using LSMW, but no Recording.
    Transaction would be IW31.
    Can you give some tips please?
    Thank you! Walter.

    Hi Brenda, thanks for the confirmation you found in the notes!
    Can you tell me how to use the BAPI for mass-upload / migration? I haven't done that before, but it looks to me that we won't use LMSW for that, but tr.code SE37, right?
    I found out that the BAPI you mention belongs to Business Object BUS2088A, wich cannot be selected in the first LSMW-step.
    So the idea is then to write an Abap-program which reads my input-file (which contains all the data to create the service-orders) and then call the BAPI several times to create the Service-Orders one by one. Am I right, or is there a standard way to use this BAPI for mass-upload?
    Thanx again, Walter.

  • Screen exit for transaction IW31 for ref. object O150

    Hi,
    I need for find screen enhancement for trasaction iw31 in plant maintenance.
    The requirement is to add 2 more fields (Functional location and Assembly) in the 'reference object' O150 on header tab. Currently the reference object has 2 fields and we want to add 2 more above mentioned fields.
    Please help me, thanks
    Sanjay Singh

    HI
    To search for a badi, go to se 24 display <b>class cl_exithandler.</b>
    double click on method get_instance, get a break point on case statement.
    execute and start the required transaction in new session.
    look for variable <b>exit_name.</b> It would show the available badi's.
    Please do reward if useful
    Regards
    Dinesh

  • In the transaction IW31, How to set "UNPLANNED ORDER" in CONTROL tab

    Hi All,
       I want to set the indicator as  "UNPLANNED ORDER"  for creating a new work order in (IW31) with order type as ZMS2.
         I m using the Bapi "BAPI_ALM_ORDER_MAINTAIN".
          and providing the value " SPACE"  for "UNPLANNED ORDER". but its not getting updated for new work order.
        Can anyone help me out of this...
    Thanks in Advance!!!!!!!!!!!!
    Regards,
    Thulasi.

    Hi Surekha,
    You can pass the order number.  First store the order number in one global memory id .
    by using this statement
    SET PARAMETER ID .'(w_uname)' FIELD w_orderno  where order_no will be the order number selected on CRM WEBUI.
    now go to class defined in the transaction launcher for va22.
    in the class there is a method PREPARE_DATA_FLOW , in this method read the global memory using the statement
    GET PARAMETER ID '(w_uname)' FIELD w_orderno.
    set the parameter icwebclientborkeyparameter with the order value.
    Now in ECC go to transaction swo1. Give the object name as ZTSTC or the one defined in the transaction launcher. In the execute method you can retrieve the value of the order number.
    Regards
    Sohit

  • BAPI for transaction IW31 (creating a work order)

    Hi all,
    I need to be able to create a work order ( IW31) using ABAP code and was wondering if any knew if there was a BAPI that should be used for this functionality.
    Thanks in advance
    Mart

    hi,
    You can use
    BAPI_ALM_ORDER_MAINTAIN.
    Have a look at the following documentation.
    FU BAPI_ALM_ORDER_MAINTAIN
    Text
    Process Maintenance-/Service Order
    Functionality
    This Business Application Programming Interface (BAPI) is used for changing maintenance- or service orders and their lower-level objects. The following objects of an order can be processed (for restrictions, see the note at the end of the documentation):
    Order header
    Partner
    User status
    Order operations
    Relationships
    Components
    Long texts for order header, operations, and components
    Function
    Calling up this BAPI once allows you to perform all the operations. For this the system supplies the function module with a method table containing the methods to be performed. The entries in the method table refer to data records in the optionally filled-out data tables. All the methods from the method table are performed. Alternatively, just lower- level objects from existing orders can be changed.
    You can process the transferred data with the Business Add-In (BAdI) IBAPI_ALM_ORD_MODIFY to, for example, merge data from the external system with data from the R/3 system. The BAdI is called up as soon as the transferred data is converted into the internal format. The tests then take place after this.
    Construction of Method Table
    REFNUMBER Reference number for linking object methods - attributes
    The reference number is the line of the database which contains the corresponding data. The data table is determined by the object type.
    OBJECTTYPE Object category
    The object category specifies which object from the order should be processed. The key words listed here are not language-dependent and must be transferred exactly as they are. The following objects exist:
    HEADER Order header
    PARTNER Partner data
    USERSTATUS User status
    OPERATION Operation data
    RELATION Relationships
    COMPONENT Components
    TEXT Long texts
    (empty) ,General BAPI functions (save)
    METHOD Methods
    The methods with which the data should be processed. The following functions exist:
    CREATE Create objects
    CHANGE Change objects
    DELETE Delete objects
    RELEASE Release
    TECHNICALCOMPLETE Technically complete
    ATPCHECK Availability check
    CALCULATE Calculate
    SCHEDULE Schedule
    DELELTEDSEX Delete the status for external scheduling at operation level
    SAVE Save all data
    DIALOG Call-up dialog. See explanation below.
    TRACE Write trace file in the specified file to the frontend
    OBJECTKEY SAP external object key
    This key is for assigning the lower-level objects correctly to the corresponding objects, as there is always just one key in the data table. The key must have the following structure:
    1-12 Order number
    When creating orders with internal number assignment, a reference number beginning with % must be entered here. The BAPI then returns this number and the number actually assigned.
    13-16 Operation number
    17-20 Sub-operation number
    For relationships, the key is structured as follows:
    1-12 ,Order number from
    13-16 Operation number from
    17-28 Order number to
    29-32 Operation number to
    The following methods are permissible for the individual objects:
    HEADER:
    CREATE, CHANGE, RELEASE, TECHNICALCOMPLETE, ATPCHECK, CALCUALTE, SCHEDULE
    OPERATION
    CREATE, CHANGE, DELETE, DELETEDSEX
    PARTNER, RELATION, COMPONENT, USERSTATUS, TEXT:
    CREATE, CHANGE, DELETE
    (empty):
    SAVE, DIALOG, TRACE
    Data tables and update tables
    The objects have one or more data tables. For some objects you can specify which of the fields specified in the structure should be changed. For this you must set the field in the corresponding table to X as in the data table. If no update-table is transferred, then only those fields are set that have a value that is not initial. This simplifies the transfer data. However, this means it is not possible to delete fields. If an update structure should only be specified for some data records, the table with the update fields must nonetheless have the same amount of lines as the data table. The empty lines are then treated as if no update structure was transferred. The objects "Partner", "User Status", and "Text" have no update tables. The whole data record is always copied here.
    References
    The objects use the field REFNUMBER from the method table to refer to the lines in the data table. Counting always begins with 1. In doing this, REFNUMBER also refers to the update table. However, in the method table there is a second reference to higher-level objects for lower-levels objects. The field OBJECTKEY must be filled with order number, operation number, and sub-operation number, as specified above. If lower-level objects of a newly-created order should be changed, then you must enter a temporary order number that must begin with %. Several orders can be numbered serially, for example, with %00000000001, %00000000002 ... .
    The following objects have special treatment for REFNUMBER:
    Partner
    Texts
    Partners have an order number in the data table. During processing of the method table, all those entries in the data table are processed which have an order number that is the same as that in the line to which the method refers. Thus, through just one entry in the method table, several partners can be changed.
    Texts are composed of two tables. The first table (IT_TEXT) is made up of the header data of the text. Here you must specify the object and the first and last line of the text table (respectively inclusive, counting from 1). Through this, a line segment is specified in the text line table (IT_TEXT_LINES).
    Peculiarities in processing
    The BAPI processes the transferred methods in a particular sequence, which must not correspond to the sequence in the methods table.
    Write trace file
    Change user status time period 1
    Delete objects (dependent first)
    Create new objects
    Change existing or newly-created objects
    Change user status time period 2
    Status change of order
    Save data
    The methods are performed such that lower-level objects can also be assigned to newly-created objects. For example, first the operations are created, and then the components. Long texts can also be created for the objects.
    Components have an exceptional position. Components are created through the assignment to an operation, that is, using the "key" order/ operation (item number). However, as this is not the unique component key, you can only access the components to change them, delete them, or add long texts by using the reservation number/-item, which is only given after saving. This means that, for example, you cannot create a long text when you create the component.
    User status changes can take place at two different time points. Time point 1 is before the object changes, time point 2 is after the object changes and before the status change of the system. These time points should be defined in the transfer table in the field CHANGE_EVENT. The field documentation contains the possible values.
    The external scheduling is offered by the BAPI as a special function. THe BAPI can set the date field directly at the operation level, and select the operation with the status DSEX "Date set by external system". This status prevents any further scheduling of the operation, it keeps the transferred dates. For this, set the category 'X' in the restriction categories. When reading the operation, this category is also returned, independent of the category of restriction set in the dialog. To delete the status, you can call up the method DELETEDSEX for the object operation. The external scheduling cannot be influenced in the dialog. All changes to the scheduling restrictions in the dialog are saved as normal, but are not relevant for the scheduling as long as the status DSEX is active.
    Every time the BAPI is called up, a SAVE or DIALOG method must be transferred. Normally, calling up a BAPI is seen as a transaction. All data that is changed in the BAPI should be saved to the database immediately. The BAPI checks whether a SAVE method exists, otherwise it terminates processing. A test run of the BAPI is composed of a normal call-up using the SAVE method and a subsequent BAPI_TRANSACTION_ROLLBACK. To call up the BAPI without the SAVE method, for example, to realize dialog transactions, the BAPI can be called up with the DIALOG method. This switches off the check for the SAVE method. The processor must then ensure that later either a SAVE method or a BAPI_TRANSACTION_ROLLBACK is called up.
    A BAPI_TRANSACTION_COMMIT without SAVE method terminates processing in the update to ensure that no inconsistent data is written to the database. The processor who called up the BAPI does not receive any confirmation for the termination of the update in the target system. This logic is necessary as the order data was flagged for updating with BAPI_TRANSACTION_COMMIT through the SAVE method. However, the status information was already flagged for updating when the BAPI was called up. A BAPI_TRANSACTION_COMMIT without SAVE method then just saves the status information and would generate inconsistent orders, if the updating was not terminated.
    Customer Enhancement
    The BAdI IBAPI_ALM_ORD_MODIFY can be used to change the transferred data. The BAdI is called up after the conversion of the transfer structure into the structures used internally. Additional data can be transferred using the table EXTENSION_IN. Only then is the data checked.
    Example
    The following examples should clarify the use.
    Creating an order
    OBJECTKEY should be filled with a temporary key. The BAPI returns this key together with the assigned order number in the return table ET_NUMBERS . The order number in the HEADER table should also be filled with the number. For external number assignment, the external number should be specified. The update structure can be transferred if necessary.
    Methods table
    REFNUMBER OBJECTTYPE METHOD OBJECTKEY
    1 HEADER CREATE %00000000001
    IT_HEADER
    ORDERID ORDER_TYPE PLANPLANT ...
    %00000000001 PM01 1000 ...
    Creating an order with operation and long text
    Methods table
    REFNUMBER OBJECTTYPE METHOD OBJECTKEY
    1 HEADER CREATE %00000000001
    1 OPERATION CREATE %00000000001
    1 TEXT CREATE %000000000010010
    IT_HEADER
    ORDERID ORDER_TYPE PLANPLANT ...
    %00000000001 PM01 1000 ...
    IT_OPERATION
    ACTIVITY SUB_ACTIVITY CONTROL_KEY WRK_CNTR ...
    10 PM01 MECHANIC ...
    IT_TEXT
    ACTIVITY ... TEXTSTART TEXTEND
    10 ... 1 2
    IT_TEXT_LINES
    TDFORMAT TDLINE
    Longtext for operation 10, line 1
    Line 2 of the long text
    Notes
    Using the BAPI to process the order data cannot support all the functions of the transaction. This applies in particular for the following functions:
    Order header data
    The object list cannot be processed.
    Refurbishment orders are not supported.
    The estimated costs cannot be processed - only the estimated overall costs of the order.
    Notification data cannot be processed with the order BAPI. Even if the settings in Customizing are such that the orders and notifications can be maintained on one screen, no notification is created for the order.
    Permits cannot be processed.
    The order addresses cannot be processed.
    Individual partner addresses cannot be maintained.
    The settlement rule cannot be maintained.
    Order functions
    Printing the papers is not possible.
    Locking and unlocking the order is not possible.
    Accepting and rejecting quotations is not possible.
    Business completion is not possible.
    Flagging for deletion is not possible.
    The log cannot be displayed.
    User default values are not used.
    The field selection is not checked.
    The Customer Exits/BAdIs are not executed completely.
    Joint ventures are not supported.
    Funds Management is not supported.
    Investment orders are not supported.
    No integration of service products with task lists possible.
    No integration of configurable service products possible.
    Assignment of sales document items with service products in accordance with the aforementioned conditions.
    Operation data
    A change of the control key in the operation is not possible, if this leads to a change of the processing type (internal-/external processing)
    User status change not possible.
    Production resources and tools cannot be processed.
    Service lines cannot be processed.
    Task list integration is not supported.
    Linking operations with object list is not supported.
    Component data
    User status change not possible.
    BOM data cannot be processed.
    The delivery address cannot be processed.
    Further Information
    See also the documentation for the individual transfer tables.
    Parameters
    IT_METHODS
    IT_HEADER
    IT_HEADER_UP
    IT_HEADER_SRV
    IT_HEADER_SRV_UP
    IT_USERSTATUS
    IT_PARTNER
    IT_PARTNER_UP
    IT_OPERATION
    IT_OPERATION_UP
    IT_RELATION
    IT_RELATION_UP
    IT_COMPONENT
    IT_COMPONENT_UP
    IT_TEXT
    IT_TEXT_LINES
    EXTENSION_IN
    RETURN
    ET_NUMBERS
    Exceptions
    Function Group
    IBAPI_ALM_ORDER
    ~~Guduri

  • BAdI for the Transaction IW31

    Hi all,
    I need a BAdI for the TC IW31
    my requirement is like review of the order data should be required when the order is created or changed.
    Unable to find the BAdI. please provide me the information.
    its urgent.
    Thanks in Advance.
    Regards,

    Hi,
    Please go through following Navigation.
    SPRO -> Plant Maintenance and Customer Service -> System Enhancements and Data Transfer -> Business Add-Ins
    You can find various BADIs, Use appropriate one after going through documentation.
    Regards,
    Krishna Mohan

  • Rename Custom tab in IW31 transaction

    Hi Friends,
    Anybody has idea of how to change the custom tab name for transaction IW31?
    I have created custom tab using enhancement IWO10018, By default it has come as <b>'Enhancemnt'</b>. How can i rename this to my own name.
    Thanks,
    Satish

    Have you tried editing the screen directly?  The enhancement uses screen 1180 of program SAPLCOIH.  This includes an element CUSTSCR1 for your custom screen area, which appears to be screen 0900 in SAPLXWOC.  Somewhere in one of these two screens you should be able to edit the tab name through screen painter (transaction SE51).  I hope this helps.
    - April King

  • Need User exit or BADI for IW31/IW32 transactions

    Hi all,
    Is there any user exit OR BADI availble for transactions IW31 and IW32. I need to restrict some Activity types and work centres(Error message should come when we give wrong combination of these 2 and press on save button).
    Thank you very much in advance.
    Thanks,
    Venu

    Hi,
    Check the BADI
    WORKORDER_UPDATE  - Business Add-In PM/PP/PS/PI Orders  Operation: UPDATE
    This is multiple use Badi , hope this is the one you are looking for.check by implementing and placing the breakpoint in appropriate methods.
    Alos check the below
    IWO1_SCREEN_MODIFY
    IWO1_PREQ_BADI
    WOC_FL_DETERMINE
    Regards,
    Raj.

  • Custom transaction for WORK ORDER in ECC

    HI all,
    I need to create a custom transaction which incorporates the functions of transactions IW31,Iw32 and Iw33.DO I need to create a custom Module ppool for the above requirement or can I use a BDC for creating,updating and retrieving the created Work orders?

    Hi Rads1234,
    yes, you can use BDC to implement it. besides, you can use BAPI_ALM_ORDER_MAINTAIN to do this, which is better than BDC from my point of view.

  • Setting default costing relevancy on IW31

    Hi all,
    i have problems with the definition of the default value of the costing relevancy during the creation of an orden by the transaction IW31.
    In particular i have to set that default value just for a specific order type.
    is it possible doing it?
    Thanks.
    Lello

    Hi,
    To define your own logic you can use BAdI IWO1_ORDER_BADI with method CHANGE_COSTRELEVNCY to set 'relevant for costing flag'. See also some information in note [649743|https://service.sap.com/sap/support/notes/649743].
    -Paul

  • Bapi's for creating Maintenance order in IW31 with notification

    Hi All,
       Is there any bapi's for creating Maintenance order with Notification number in the transaction iw31.
      Also is there any bapi's for creating measurement document.
    Points will be awarded.
    Regards,
    vinoth

    RFC MeasDocument: Individual Processing, Create
    MEASUREM_DOCUM_RFC_SINGLE_001
    RFC MeasDocument: Individual Processing, Change/Display or Read
    MEASUREM_DOCUM_RFC_SINGLE_002

Maybe you are looking for

  • Use of javax.jdo.Transaction in BMT

    Sections 16.1.3 and 16.1.4 of the JDO spec (version 0.95) state that the application code with a Bean Managed Transaction has the option of getting a Persistence Manager before a UserTransaction is opened and managing the transaction through the java

  • Help me with my survy

    I am doing this survy for my professor- I am at Bethedsa community college. (Currently, our JVM runs about 400% faster than commercial JVM, so this is definitely in research stage. ) I will appreciate your response- I need to get 20-30 responses- bef

  • Reducing a picture file to attach to an e-mail message on a new Z10

    Hello out there, recently got a new Z 10,  love it by the way.   Does any one know how to reduce the picture files that you take with the Z10 to attach one or more to an email message.   There is no prompt in the sending process that warns you the fi

  • XSLT mapping and XSD definition

    I have an XSLT and one source/input XSD. Do I need another target/output XSD? I heard that I may not need target/output XSD since I can generate this using the XSLT and source/input XSD. In order to use XSD which references to other XSDs (Referencing

  • Oracle 10g and Windows 2008

    I'm trying to install Oracle 10g x86 on Windows 2008 x64. Installation crashes in the beginning with the next error message: Abnormal program termination. An internal error has occurred. Please provide the following files to Oracle Support: "Unknown"