Creating maintenance order from enhancement IMRC001

Hi
I am trying to create a maintenance order from the customer exit EXIT_SAPLIMR0_001 inside enhancement IMRC001. For order creation i have invoked the BAPIs  BAPI_ALM_ORDER_MAINTAIN and bapi_transaction_commit subsequently to write changes to the database. But once the control returns from main program I receive an express message which states
Update was terminated
System ID....   ECD
Client.......   400
User.....   SSEN
Transaction..   CO11N
Update key...   48DCDEE6DD6E01AFE1008000093362E1
Generated....   15.10.2008, 09:11:42
Completed....   15.10.2008, 09:11:43
Error Info...   00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
Can any of you help me on this. I am doubtful on commiting from a include; but in the doc for this enhancement it is mentioned that we can create order from it. Is there any other way to do this?
Thanks in advance
Sudip

udip,
I think there's some sample code with this user-exit..
Have a look at that, it may give some pointers...
Also try without the BAPI_TRANSACTION_COMMIT.
PeteA

Similar Messages

  • Creation of maintenance order from notification

    Hi experts,
    Is there any standard settings available by which I can block to create maintenance order from a notification until & unless it's system status is "NOPR"?i.e when the system status of notification is OSNO ,system should not allow to create maintenance order.
    Also in notification front page under TAB 10\TAB01(Notification1), I want to populate activites under screen area 015(item+cause) like object part,damage, cause code as my users do not want to enter the activities under tab 10\Tab12(Activities) due to the complexity it containes.
    Would appreaciate of any suggestion pl
    rgds
    rajib

    Hi Rajib,
    First one:
    Create a user status profile for the notification . In the initial status make it forbidden for the create of order. So as soon as you create the notification system will set to the initial status and will make it forbidden to create order at OSNO.
    You have to assign this status profile to the notification type you want to do. Further you can make status profile in auhtorization control also.
    refer the config path: Maintenance and Service Processing ->>Notification Processing>>User Status for Notifications>>Define Status Profile.
    Second one:
    In the config path
    Maintenance and Service Processing>>Maintenance and Service Notifications>>Overview of Notification Type
    select the notification type you want to include the activity code in the header data. click on Screen Structure for Extended View >> selec the 10\TAB01 add the 045 in the screen area , most possible it will be at 10\TAB01
    Hope this will meet your requirement.
    DP

  • Error determining posting period(infostructure S008,Variant Z2,RC3) while creating Sales orders from Inbound IDOCS

    Hello,
    I am getting this Error message"error determining posting period(infostructure S008,Variant Z2,RC3)" while creating Sales order from Inbound Idocs in the IDOC,which is affecting sales order creation.
    While viewing this Info structure S008, I could see no records have been maintained. Wanted to know the reasons behind this Hard error?
    Is it something related to Date Field used in the Update Rules for this Infostructure which is causing this posting period error?
    Appreciate your inputs on this.
    Thanks and Regards
    Mohammed Roshan

    Thank you Jelena,I checked the Ship. Delivery dates in the IDOC which are for Current Fiscal Year- 20140703 and 20140711,Could there be any other reason for this error?
    Could it be an issue with e Update rule in this Infostructire S008
    Secondly when we try change the update rule thru MC25 for this Infostructure S008,It gives a message"
    "Maintenance of SAP standard updates not allowed"
    Kindly advice
    Thanks and Regards
    Mohammed Roshan

  • While creating Maintenance order using t-code iw31 mainwork center not pick

    Hi,
    while creating Maintenance order using t-code iw31 Maintenance work center not picking from drop down (already have in drop down)but giving manually accepting.
    --Ganesh

    Hi,
    My understanding is that the selected work center is not copied into the input field. This can be corrected with note [1451299|https://service.sap.com/sap/support/notes/1451299]. Check if the note is relevant for your system.
    -Paul

  • Object RESB within Critical Area - creating Maintenance Order

    Hi All,
    We are getting warning message while creating Maintenance Order. It says " Object RESB within Critical Area". After checking we found that 90% of the number range for reservation documents have been consumed and it is maintained in settings that the warning will come up when number range enters last 10%.
    we have changed this setting to 5% but still the issue is not resolved. We are still facing the same warning message.
    Kindly guide.
    Regards
    DM

    DM,
      This maybe due to the buffering of the number range numbers on the application servers.once these numbers are exhausted and new  block of numbers are picked up  from the database server this should go off.  Ideally you may want to adjust to a new  number range so that this warning message doesn't irritate the end users.
    Regards
    Narasimhan

  • Creating an order from a notification

    Hi,
    I need to create the Maintenance order from Notification number.
    is there any BAPI that creates an order from a given notification ?
    thank's

    Hi Mayaa,
                   Use FM <b>"BAPI_ALM_ORDER_METHOD"</b>
    to create the Maintenance order from Notification number.
    Reward points if helpful.
    Regards,
    Hemant

  • Error while creating Maintenance order

    Hi,
    While creating Maintenance order with any order type (PM01,PM02 & PM03) & entering material in component Tab, the system is giving this Error 'Entry does not exist,check your entry'
    The used material is already maintained in the Material Master with all necessary information.
    Kindly suggest the best possible solution for this problem.
    Thanks in advance 
    Rohit8384

    Hi,
    The following error is coming while order processing.
    Entry    does not exist - check your entry
        Message no. 00 058
    Diagnosis
        Input values must be defined in Table MARA. The value or values '  ' are
        not specified in this table.
    Procedure
        Check whether the input is correct and correct if necessary.
    Procedure for System Administration
        If this is not an incorrect entry, check the system settings and change
        them if necessary.
        If there is a connection to the Customizing system, you can maintain the
        system settings by choosing Maintain entries (F5)
    Thanks in Advance.
    Rohit

  • Serial number copy functionality when creating return orders from standards

    Hi all,
    Serial number is not copying when i create return order from the standard orders in below scenario.
    I implemented one BADI for copying Serial number to Sales order when doing Post goods receipt.
    So after doing inbound delivery and PGR, serial number is copied to the sales order but when i create return order with reference to the Standard order Serial number is not copying.
    When i go VA02 for standard order and selecting the technical objects then if i create the return order serial number is copying.
    Please help me in the above issue.
    I used the following logic to copy serial number from inbound delivery PGR.
    UPDATING THE SERIAL NUMBER TO THE RESPECTINVE SALES ORDER LINE ITEMS
                CALL FUNCTION 'SERNR_ADD_TO_AU'
                  EXPORTING
                    sernr                 = lwa_sernr-sernr
                    profile               = 'NEOP'
                    material              = lwa_mseg-matnr
                    quantity              = 1
                    document              = lwa_mseg-kdauf
                    item                  = lwa_mseg-kdpos
                    debitor               = lwa_mseg-kunnr
                    vbtyp                 = 'C'
                    sd_auart              = lv_auart
                    sd_postyp             = lv_pstyv
                  EXCEPTIONS
                    konfigurations_error  = 1
                    serialnumber_errors   = 2
                    serialnumber_warnings = 3
                    OTHERS                = 4.
                IF sy-subrc = 0.
                  CALL FUNCTION 'SERIAL_LISTE_POST_AU'.
                IF sy-subrc EQ 0.
                  COMMIT WORK.
                  WAIT UP TO 2 SECONDS.
                ENDIF.
    Edited by: Rajesh Sanapala on Feb 16, 2009 12:48 PM

    hi.
    I have the same problem.
    Can you please share how you solved it?
    thank you
    Bill

  • BADI trigered in CRM while creating a order from B2B webshop

    Hellow Gurus,
    Could you please tell the BADIs triggered in CRM when we create an order from B2B webshop. I have to keep a validation to ensure the delivery type 'Standard' should be applicables orders having gross weight less thatn 4 kg only.
    I should also throw an alert in B2B webshop saying ' Please choose other type' as well. I dont know how to proceed for this.
    Please help.

    Hello,
    The  best way to determine the BADI's called is to look at the Log files.  The following OSS Notes (based on your release) will instruct you how to create a session trace.
    Note 569976 (Release 4.0)  - creation fo session logs
    Note 1090753 (Release 5.0) - Creation of logs for B2B and B2C
    Note 1156730 -  Creation of logs for ISAUserAdm and ShopAdmin
    You can also look at the [Modifiation and Extension guide |https://websmp210.sap-ag.de/~sapdownload/011000358700000469462006E/]for instructions (chapter Session Tracing).
    I hope this helps.
    Deb

  • Update was terminated while creating purchase order from ME21N

    Hi Experts,
    We are getting this dump when try to create purchase order from ME21N;
    Our system ECC 6.0 and IS-AFS (Apparel & Footwear Solution) V600 component has installed,
    How can we prevent this error,
    Regards
    Here is the dump and sm21 log,
    Runtime Errors         LOAD_PROGRAM_NOT_FOUND
    Exception              CX_SY_PROGRAM_NOT_FOUND
    Date and Time          10.10.2008 10:22:03
    Short text
         Program "RMCMS431 " not found.
    What happened?
         There are several possibilities:
         Error in the ABAP Application Program
         The current ABAP program "SAPLMCS4" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
         or
         Error in the SAP kernel.
         The current ABAP "SAPLMCS4" program had to be terminated because the
         ABAP processor detected an internal system error.
    What can you do?
         Note down which actions and inputs caused the error.
         To process the problem further, contact you SAP system
         administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_PROGRAM_NOT_FOUND', was not
         caught in
        procedure "TMC2F_FROUT_CALL" "(FORM)", nor was it propagated by a RAISING
         clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        On account of a branch in the program
        (CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)
        or a transaction call, another ABAP/4 program
        is to be loaded, namely "RMCMS431 ".
        However, program "RMCMS431 " does not exist in the library.
        Possible reasons:
        a) Wrong program name specified in an external PERFORM or
           SUBMIT or, when defining a new transaction, a new
           dialog module or a new function module.
        b) Transport error
    How to correct the error
        Check the last transports to the R/3 System.
        Are changes currently being made to the program "SAPLMCS4"?
        Has the correct program been entered in table TSTC for Transaction "ME21N "?
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "LOAD_PROGRAM_NOT_FOUND" "CX_SY_PROGRAM_NOT_FOUND"
        "SAPLMCS4" or "LMCS4F10"
        "TMC2F_FROUT_CALL"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
           In the editor, choose "Utilities->More
        Utilities->Upload/Download->Download".
        4. Details about the conditions under which the error occurred or which
        actions and input led to the error.
        The exception must either be prevented, caught within proedure
        "TMC2F_FROUT_CALL" "(FORM)", or its possible occurrence must be declared in the
        RAISING clause of the procedure.
        To prevent the exception, note the following:
    sm21 log ;
    Transaction Canceled 00 671 ( LOAD_PROGRAM_NOT_FOUND 20081010102203saptest_TET_00 EYUCE 100
    Update terminated
    > Update key: F39796DD5421F1509233001E0BD601E0
    > Update module: MCE_STATISTICS_UPD_V2
    Run-time error "LOAD_PROGRAM_NOT_FOUND" occurred

    Please follow the oss note 800335
    V2 Update terminations in Purchasing transactions after upgrading or installing AFS 5.0 release.
    Other terms
    AFS, LIS, MIGO, ME22N, OLI3, S433, S431
    Reason and Prerequisites
    AFS Purchasing infostructure S431 is no longer used. S433 is the valid infostructure for the release AFS 5.0.
    Solution
    Please do the following.
    For customers upgrading to AFS 5.0 only:
    > Rebuild Infostructure S433.
    - Goto transaction: OLI3 (Statistical Set up of Infostructures)
    - Info structure to be compile: S433
    - Specify the 'Name of run'.
    - Execute.
    > Please also follow the instructions given below.
    For both Upgrade and Non-upgrade Customers:
    > Create the report 'ZDELS431'.
    - Transaction: SE38
    - Give Program name as ZDELS431.
    - Create (F5).
    - Title : 'Program to delete S431'.
    - Type  : 1 (Executable Program).
    - Status: T (Test Program).
    > Copy the program text from the note and paste in the program.
    > Save and activate the program.
    > Execute the report for all clients in Update mode.
      (Two check-boxes will appear: P_ALL_CL, P_UPDATE.
       Please check both of them).
    This report will delete all the references to infostructure S431.

  • 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

  • Create Sales order from Internal Purchase Order using IDOC

    Hello Friends,
    I have requirement to create Sales Order from Internal Purchase Order Using IDOC.
    Backgorund, we have already configured IDOC orders05 to create Sales Order from external Purchase order from Inbound IDOC, and it is working fine.
    Now we have new requirement to create Sales Order from our own Purchase order, i.e. When PO is created in one plant corresponidng sales order automatically must needs to create in another Plant with respect PO.
    I m trying to design a solution for above problem as follows,
    1.create an Inbound Idoc from PO, by creatiing one new message type on PO save.
    2.Process that Inbound  IDOC same as it is from external PO.
    3.Once processed Sales order will create.
    Please help me in step 1. to create Inbound IDOC from PO.
    If you want any further clarification please write me.
    Thanks,
    Mahesh

    I had done a similar scenario before and we achieved it through SAP XI. The problem is with the control record. When we create a ORDERS IDOC from a PO the control record will be for outbound transmission. We sent the file to XI and XI resent it back with some data parsing and a new inbound control record. This way it went neat outbound and inbound.
    I'm not sure what kind of architecture you have. If you have to do it within your ECC/R/3, then you could create the outbound IDOC to a new port and write a fresh RFC to pick it up from the same folder and create a new control record for inbound processing.
    I haven't tried this; but there is a "processing w. trigger (inbound)" option on the outbound process code. May be you can explore into that a bit more.
    I'm sure there could be better approaches to handle this within ECC so if you stumble on any, do write back. I would like to know to update my knowledge .

  • How to create Transfer order from material document   uFF08Move type is 101uFF09

    Hi all,
    is there any function module, BAPI to create transfer order from a material document number?
    I want to use FM L_TO_CREATE_SINGLE,but the result is "Movement type 101 for manual transfer orders does not exist".
    Is the parameters error?
    Thank you in advance
    Regards

    The error message you get is number 196 from message class L3, do a where-used on it from transaction SE91 and then put a break-point on each line result.  Afterwards, re-execute your function call and see which break-point is hit and investigate from there.
    With that said, you really should be using Bapi BAPI_GOODSMVT_CREATE for all goods movement operations.  It shares code with MIGO and executes the same Badi's and user-exits, so data integrity is not broken.  Don't forget Bapi BAPI_TRANSACTION_COMMIT to commit changes in the database after a successful call.
    cheers

  • How to create Transfer order from material document

    Hi gurus,
         is there any function module, BAPI to create transfer order from a material document number.
    waiting for positive reply.
    thanks
    vinod

    Hi,
    The FM L_TO_CREATE_SINGLE or L_TO_CREATE_MULTIPLE could solve your problem.
    Hope it helps.
    Chang

  • Migration of historical maintenance orders from 4.6 to 6.0

    Hi,
    There is one requirement to transfer the historical maintenance orders from version 4.6 to 6.0. I can use IDOC or TDMS or LSMW for this. But the thing is it should not affect the costing area.
    Please help me to migrate this data without effect on costing.

    Hi dear,
    I dont think this is possible as you are merging old data in to live environment it will definately affect costing area.
    Consult your FICO guys or wait for the opinion from the experts.

Maybe you are looking for

  • Cache problem when coming back from external application

    Let's see if I can explain this properly. We have an application consisting of a left menu with books and pages. Each page consists of one Struts portlet. In one case we direct the user to an external mail application. This is handled by the Struts a

  • Help with working on Word files that were created in Framemaker and saved as PDF

    Please help. I was given a pdf from a vendor that they created in Framemaker. The pdf was 2+MB. I saved it as a Word doc so I could delete sections that I don't need for our folks but the file is saving at over 20MB (after I deleted a lot of pages fr

  • Oracle 9i R2 in Windows XP

    I installed Oracle database as well as developer suite in my system. Everything works good in windowsXP except forms.I cannot run the forms. I came to know that Oracle Jinitiator 1.1.8.16 doesn't allow me to run forms in windows XP. But Oracle Jiniti

  • How to rip DVD?

    New to Mac still... trying to rip DVDs... should I be using iDVD? or am I totally going nuts here?

  • FREEZING AND SKIPPING ON IPOD

    I received a message that my Ipod was corrupted and I had to reinstall to factory settings. I did that and since then my Ipod freezes when playing and skips songs. Does anyone have any suggestions on how to fix this? Thank you. Dell   Windows XP