User Exit Maintenance Order Business Completion

Hello Gurus,
User Exit IWO10004 triggers when TECO the Maintenance order.
What is the User Exit which can triggers when Business Completion?
My requirement is I want to restrict the Business Completion only for TECO orders,
Currently I even REL order also can be CLSD by business completion which is bypassing TECO status.
how can I restrict this?
Please advice
Thanks
Ashok

Ashok,
Adding some inputs of Pete, the following code seems to be working fine. This throws this error
in the taskbar, when you Business Complete and try to save a Non-Teco Order.
DATA: V_PHAS TYPE PM_PHASE,
       V_STAT TYPE J_STEXT.
SELECT SINGLE IPHAS FROM AFIH INTO V_PHAS
WHERE AUFNR = CAUFVD_IMP-AUFNR.
CALL FUNCTION 'STATUS_TEXT_EDIT'
   EXPORTING
     FLG_USER_STAT = 'X'
     OBJNR         = CAUFVD_IMP-OBJNR
     ONLY_ACTIVE   = 'X'
     SPRAS         = SY-LANGU
   IMPORTING
     LINE          = V_STAT.
IF V_PHAS <> '3'.
   IF V_STAT+0(4) = 'CLSD'.
     MESSAGE: 'Status ''TECO'' is essential for Business Completion' TYPE 'E'.
   ENDIF.
ENDIF.
CLEAR: V_PHAS, V_STAT.
Please test and confirm.
KJogeswaraRao

Similar Messages

  • Can not see the ICON of Complete Order (Business Completion) in the IW32.

    Hi All,
              I want to Complete the Maintenance Order (Business Completion) but I can not see Icon - Complete Order. to complete the Maintenance Order. I understand Order --- Function -
    Completion  path can be used for competeion but it is disabled.
              For Superuser's LOGIN they have the ICON for complete Orders and they can see any error message for completiing Orders. Since I cant perform complete Order I can not see any error message.
             Is there any user settings for ICON's display.
    Regards,
    Narendra

    It is assigned in role 
    To display - run PFCG and select the role click display and select authorisation tab click details icon and click organisation level to view the Buisness transaction
    To maintain - Run PFCG and select role : SAP_Workorder_Closer ,Click the pencil and click on the authorisation tab and change authorisation value and eithier you can manually maintain I_BETRVORG with BABS value. or Choose Plant maintenance business transaction from the structure and add BABS and generate the profile. then execute the transaction.
    Co-ordinate with Basis or Security team
    Thanks
    S.N

  • How to find the user exit for order cancellation

    I want to find the user exit for order cancellation. And also to ensure that no one amends the order once the canellation has taken place. The cancellation shall be deemed to be affected only if the vendor has confirmed the acknowledgement of the order cancellation.
    I have got a Zreport where this order should not come as open order item.
    Please tell me the method of finding the users exit for order cancellation and stop the order from getting modified. And also how to find the tables in which the data has to be updated that the order has to be cancelled.
    In the PO header i want an additional tab <cancellation> by which the user by the help of userid and password should be able to cancel the order. An order once cancelled cannot be undone. A new order has to be placed. The new order can be placed refencing the cancelled purchased order.
    My client has got a very stringent requirement. In the past cancelled order has been undone and caused lot of problems.
    Regards.

    hi
    pls tell me t.code so that i will send all user exits related to that particular t.codes
    Thanks & Regards
    phaneendra

  • Update transfer requirement user exit, with order

    Dear experts,
    I want to use exit MWMTR001, function module EXIT_SAPLL03T_003 to update the Transfer requirement with the Order number created in COR1.
    But I see that by the time the user exit is called, the order number has not yet been created in the database.
    Is there maybe another place to do what I want?
    Thank you in advance,
    Roxani Athousaki

    Hi Frenchy,
    Thanks for the answer. I have one more question.
    Is it possible to automate it based on a movement type, so that every time we create a Transfer Order for this movement type the relevant TR will be automatically marked for 'final delivery'. This would help us, because then we would not have to go to WAM everytime to mark it as complete.
    Or some kind of configuration that will dictate that only one Transfer order will be allowed for a Transfer Requirement and the TR will be set to complete as soon as the TO is confirmed.
    Thanks,
    Mike

  • MIRO User exit - processing order

    Hi
    I've had a user request to try to copy the text line entered in the header part of MIRO into the posted transactions in BSEG so that when GL account analysis jobs are run eg FS10N, relevant text info is shown as well (as it does when manual invoices are posted). I've worked on the User exits available and with the Export/Import to memory option I thought that I'd cracked it.
    I used the Export option in EXIT_SAPLMRMP_010 as required input data is available there. Then I used the Import option in EXIT_SAPLMRMP_004 as that exit is used to post data to the accounting functions. For testing I put a breakpoint into each of them.
    During testing, I was surprised to find that EXIT_SAPLMRMP_004 was actually processed before EXIT_SAPLMRMP_010 during MIRO although I proved that the concept would work would work by manually keying some text into the relevant field at the breakpoint as it appeared in BSEG afterwards.
    Can anyone please advise if there is an easy way to discover the order of processing of the exits available to MIRO (dozens of includes in SAPLMR1M!!) so I can put the Export option into the correct place.
    Thanks
    Jim Jackson

    Hi Jim,
    You can try with BTE (Business Transaction Events).
    Goto SE37 - SAMPLE_PROCESS_00001120 (this is the standard BTE for account document posting). copy this with ZSAMPLE_PROCESS_00001120.
    In this you cannot modify the tables t_bkpf and t_bseg. you can use t_bkpfsub and t_bsegsub.
    For this a little bit config is required.
    1) Goto t-code FIBF-> settings->Products->... of a customer.
        Click new entries -> product name- ZPRODUCT , text - any text, RFC dest -                                     ZSAMPLE_PROCESS_00001120, A - enable check box -> save.
    2) Go back -> settings -> P/S Modules -> ... of a customer.
        Click new entries -> event - 00001120, Product - ZPRODUCT, Ctr - Country key, Appl - FI-FI,   Function module - ZSAMPLE_PROCESS_00001120 -> save.
    3) Go back -> settings -> Process Modules -> ... of a customer.
        Click new entries ->Process - 00001120, Ctr - Country key, Appl - FI-FI, Func module - ZSAMPLE_PROCESS_00001120, Product - ZPRODUCT -> save.
    Now goto SE37->ZSAMPLE_PROCESS_00001120
    logic.
    loop at t_bkpf.
    loop at t_bkpfsub.
         move 'your value' to t_bkpfsub-value.
         modify t_bkpfsub index sy-tabix.
    endloop.
    endloop.
    loop at t_bseg.
      loop at t_bsegsub.
          move 'your value' to t_bsegsub-value.
          modify t_bsegsub index sy-tabix.
      endloop.
    endloop.
    ''your value' is imported value.
    no need to worry abt modified values. after execution of BTE it will go to standard prog and copy the values of t_bkpfsub[] and t_bsegsub[] to SAP tables. so pls be perfect with code. SAP wouldn't allow change the values in t_bkpf[] and t_bseg[] values. you can add your own fields in bkpf_subst and bseg_subst.
    But make sure that, pls write the code in FM with conditions like cocode doc type etc. bcz this BTE is very important. it will executes before acc doc is posted.if you do not specify any conditions it will execute for all co codes in acc doc. it will affect business. you can debug this BTE. put a break point in FM and see the values while post the MIRO.
    once import the values free memory id and clear the variables what ever u used in BTE.
    Best Regards,
    Mohan.

  • User exit sales order change (VA02)

    Hi 
    For certain users , field shipping conditions  VSBED (Header)  needs to be  in display mode only in T-code Va02
    i am creating a security object and that will be assigned to those  user roles.
    I need user exit which can be used to trigger this change ( executing security object)
    Sri

    Hi Please check these
    Userexit
    SDTRM001                                Reschedule schedule lines without a new ATP check
    V60F0001                                SD Billing plan (customer enhancement) diff. to billing plan
    V46H0001                                SD Customer functions for resource-related billing
    V45W0001                                SD Service Management: Forward Contract Data to Item
    V45S0004                                Effectivity type in sales order
    V45S0003                                MRP-relevance for incomplete configuration
    V45S0001                                Update sales document from configuration
    V45P0001                                SD customer function for cross-company code sales
    V45L0001                                SD component supplier processing (customer enhancements)
    V45E0002                                Data transfer in procurement elements (PRreq., assembly)
    V45E0001                                Update the purchase order from the sales order
    V45A0004                                Copy packing proposal
    V45A0003                                Collector for customer function modulpool MV45A
    V45A0002                                Predefine sold-to party in sales document
    V45A0001                                Determine alternative materials for product selection
    Business Add-in
    BADI_SD_SCH_GETWAGFZ             Scheduling Agreement: Read WAGFZ from S073
    BADI_SD_V46H0001                        SD Customer functions for resource-related billing

  • User exit for order operation and internal assignment (SAPLCY18)

    Dear all,
    I am currently facing the problem below, which I have posted in PLM forum. However, I have been advised to ask in EAM forum, since probably my problem is more EAM-related.
    The problem currently facing is related to PM order operations. The customer's requirement is to use operations and to include the personnel numbers involved. For this solution, our proposal is to have the operations and within internal operation data to use the tab requirement assignments in order to include the personnel numbers. Also at this level, the client expects to maintain the the 'hr' (work requirements) for each personnel. For example there are used 2 personnel ids with hr requirements of 2hrs and 3 hrs respectively. Let me mention that in the operation screen, the hr requirements are initially defined equal to 1 hr.
    In the above case the message "The work of all the splits is greater than the work in the operation" apperas, since 1hr 5hrs. The question is if there is any way (user exit, badi) to update the work requirements in the operation with the sum of the internal assignment data.
    Program SAPLCY18 may be help, although I have not found the work around.
    More explanatory details to help:
    The combination using Work-Number of capacities-Duration and the Calculation key is already used, however the requirement is to use specific personnel numbers. SAP, as far as I am aware, allows you to define personnel numbers within internal operations.
    TAB Requirements assignements is available as long as in the operations main tab you have completed for the selected line the values Work-Number of capacities-Duration and Calculation key. Thus, in TAB Requirements assignments you can input the personnel numbers and the work of each one.
    The question is if we can use the Requirements Assignments TAB, using the button internal in the operations tab in order to define the personnels involveld and according to the work (hrs) to update the respective field of the operation (otherwise let's say to update the duration field for each personnel id and automatically the operation respective duration field to be updated).
    Your feedback is highly appreciated,
    thank you in advance,
    Bou.Lis

    PeteA,
    thank you for your response. I am actually looking for such a development solution (more-or-less I know that it is not possible using standard SAP customizing) but unfortunately I have not yet found such a user exit or BADI that could help solving the problem facing.
    Do you have any idea of such a development tool to use?
    Thansk and regards,
    Bou.Lis

  • USER-EXIT - sales order, credit block

    Moderator message: moved to correct forum.  In future please use meaningful subject.
    my requiremnet is, Delivery for an sales order should be created even if it is a credit block i.e even the credit check is unsuccessful the order should be deliverd when we deliver the order from salesdocument->deliver.
    i need a user-exit for this to put this check.
    can ne one help me.
    regards,
    pavan,

    Hi,
    According to Std SAP if in case credit mgmt is activated system will check for credit limit for that customer before delivery.You will be trying to change the std scenario which is not advisable.
    However,
    Try user exit MV45AFZZ & in that
    FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
    Also check other exits related to delivery & credit mgmt from
    SPRO->Sales & Distr-> System Modifications->User Exits
    and check out the documentation part next to each exit in that category.
    Regards,
    Amit

  • BADI/User Exit for Order processing

    Hi Experts,
    I have a requirement that whenever someone modifies the order belonging to a specific order category then some error/ warning is issued. Can you please suggest some User Exit/BADI in APO for the same.

    Hi Tiago,
    My requirement is to block the processing of Released process order from both Product view and Detailed Scheduling Board.
    If I am getting you correctly then in the mentioned BAdI and Method --I should call FM --/SAPAPO/OM_PEG_CAT_GET_ORDERS (to fetch orders by order category) to see whether the order category is for released process order or not.
    If its Released process Order --then I should block the change. Is that correct for both Product View and Planning Board?

  • User-Exit-- Notification & order

    Hi all.
    Notification with order --> IW51 transaction
    for eg.
    i am creating notification in iw51 with some 5 items. ven i am click the sales orders button which is @ iw51. what are the items found in notification is not copied to order, so i am again adding the items manually in order .
    so what i need is , i  need the user-exits r anytin to solve the problem
    my probelm is
    if i create notification with 5 items in IW51 transaction, ven i click the order button which is @ notification, all the items which is at notification (here v have 5 items in notification),that has to copy to order also..
    again again, i  dont want to add all the things in which is @ notification..
    Points vil be rewarded
    apart from this exit,  i dnt think, this belowed exit worked out.
    IWO10026
    IWO10027
    IWOC0001
    IWOC0002
    IWOC0003
    IWOC0004

    Hi,
    I found the exit . Its EXIT_SAPLCOIH_009. The warning message is showing up now.
    Regards,
    Dikshitha

  • User-Exits-Notification & Order

    Hi all.
    Notification with order --> IW51 transaction
    for eg.
    i am creating notification in iw51 with some 5 items. ven i am click the sales orders button which is @ iw51. what are the items found in notification is not copied to order, so i am again adding the items manually in order .
    so what i need is , i  need the user-exits r anytin to solve the problem
    my probelm is
    if i create notification with 5 items in IW51 transaction, ven i click the order button which is @ notification, all the items which is at notification (here v have 5 items in notification),that has to copy to order also..
    again again, i  dont want to add all the things in which is @ notification..
    be clear :
    what ever items @ notification, that should be copied to Order.
    that all.
    Points vil be rewarded
    APart from this exit , i want, i dnt think, this vil be useful
    IWO10026
    IWO10027
    IWOC0001
    IWOC0002
    IWOC0003
    IWOC0004

    Hi Shiva
    Kindly let me know which field or internal table i can capture the user status value in the exit.I put the break point in exit and not able to find the checked user status value.
    Thanks

  • User exit:Customer order-profit center

    Dear friends,
    While creating customer order, after ı fill customer and material SAP brings profit center automatically.
    I think this situation is related to user exit.. Can anyone please tell me which user exit it is?
    Regards,

    Hello,
    The Profit center is derived from material master plant view . the determination as described by you is from standard functionality.
    if you are using a WBS element, it would be derived from the WBS elements org parameters
    hope this helps
    Thanks
    Akasha

  • User Exit-Prod Order Release

    Hi all!
    Is there any user exit available at the time of the production order release? I found only one exit but it is triggered only when the components of BOM are batch managed.
    thanks a lot

    Hi Deepak,
    Please try searching the user exit in the link below.
    It has the list of all the User Exits available.
    http://www.easymarketplace.de/userexit.php
    Hope it helps.
    regards,
    Raj

  • User exit: sales order  VA01: Customer number

    Hi friends,
    While creating Sales order, before saving the document, I need to check the Customer (Sold to pary?) details in KNEX table. KNEX-KUNNR KNEX-TDOCO KNEX-DHRCO. if condition fails, I need to display an error message V1525,
    which should contain
    1)customer(sold-to -party?KNEX-KUNNR)
    2)partner function PARVW (VBPA-PARVW?)
    3)country LNDEX KNEX-LNDEX
    Functional spec says, 1)V45A0002
    2)V45A0003
    3)V45S0001
    4)V50EPROP User exits can be levaraged.
    1)triggers before we enter customer (sold-to-party) in VA01. so may not be used.
    2)V45A0003: i am able to fetch KUNNR, LNDEX(land1), and able to validate KNEX Fields.
    But I need to fetch partner function (PARVW), which exist in VBPA , KONP etc tables. But I am not able to write the query, which sould have all the primary keys of the table.
    Please help me the way.
    i) the above user exits can be used?if not, help me with user exit name.
    ii)if yes, how to fetch PARVW ..as all the primary keys must be used in the select query.
    Please help me ASAP.

    You can try with the form USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE in the program MV45AFZZ (this program contains the userexits for SD).
    You can access work aread VBAK and internal tables XVBAP, XVBPA with latest data for that transaction.
    Regards,
    Naimesh Patel

  • User exit - sales order

    Hi Gurus,
    We need to have specific requirement while creating or changing a the sales order.
    In the sale order if the line items are BOM material, then the system should ensure that confirmation of the qty between the BOM materials (both header and sub utems ) are same.
    We wanted to achieve this with the help of a User Exit, which will look at the confirmation qty of each line item and then changes confirmation qty of all the line items if there exist a difference.
    So wanted to which is the actual user exit which we can use to achieve above requirment.
    Regards,
    Babs

    system should ensure that confirmation of the qty between the BOM materials (both header and sub utems ) are same.
    Is this means that you want to compare the quantity in the Sales Order with BOM Master.
    Else you can sue User Exit as MV45AFZZ.
    Best Regards,
    Ankur

Maybe you are looking for

  • How can I use LDAP searching from OSX Lion Server to Mozilla Thunderbird?

    How can I use LDAP searching from OSX Lion Server to Mozilla Thunderbird?  We have a super awesome contacts server that works great for our Mac users.  About 30% of our company are on PCs, and I would like to use the Mozilla Thunderbird mail client f

  • Issue in BSI TUBS Implementation

    Hi Experts, My Client wants to launch a facility in Alabama and therefore we need to set up the Tax Authorities pertaining to Alabama. These Tax Auth have been introduced in BSI TUB 7.0 and presently our SAP system is at BSI 8.0 I found that the Tran

  • Can you recommend me a PDF to learn to code in Objective-C

    Can you recommend me a PDF to learn to code in Objective-C

  • Garageband 10.0.1 drummer crashing

    I installed my mid 2007 Imac latest Mavericks and latest 10.0.1 garageband. Latest garageband update fixed several problems( for example guitar connection and keyboards working now) but now is one major problem pop up. When is use drummer(for example

  • Important notice for HERE products

    When Microsoft bought the Devices and Services division from Nokia in the spring 2014, a Transition Service Agreement (TSA) was agreed where Microsoft committed to support the HERE owned products for 6 months from the closing of the deal, these 6 mon