SET CURSOR in USER-EXIT

Hi Experts,
I have a function module, user-exit that does a checking on a parameter for a standard transaction. I've been able to do the checking however after displaying the error message the parameter was grayed-out/disabled.
How can I enabled it after displaying the error message so that the user could enter a value in the parameter and correct the error. Can I use the SET CURSOR here?
Thanks in advance!

mostly u might have used E001(error) message...instead use I(information message) and put a stop so that field doesnot gray out and stays till user enters correct value.

Similar Messages

  • User exit/BADI in MIRO that would trigger invoice quantity block.

    Hi,
    Is there a way to enchance MIRO so that an invoice quantity block will be set automatically through user exit/BADI?
    My requirement is that if an invoice is to be posted onto a PO line using an IO, the invoice needs to be processed onto the PO line up to the total of the PO line. And if the invoice goes above the PO line and there is still some budget on the IO, the invoice should get a quantity block.
    Also, the quantity block should be set before posting the invoice.
    Thanks.

    Hi,
    Exit Name           Description
    LMR1M001            User exits in Logistics Invoice Verification
    LMR1M002            Account grouping for GR/IR account maintenance
    LMR1M003            Number assignment in Logistics Invoice Verification
    LMR1M004            Logistics Invoice Verification: item text for follow-on docs
    LMR1M005            Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006            Logistics Invoice Verification: Process XML Invoice
    MRMH0001            Logistics Invoice Verification: ERS procedure
    MRMH0002            Logistics Invoice Verification: EDI inbound
    MRMH0003            Logistics Invoice Verification: Revaluation/RAP
    MRMN0001            Message output and creation: Logistics Invoice Verification
    Badi Name            Description
    INVOICE_UPDATE       Business Add-In: Logistics Invoice Verification
    INVOICE_UPDATE       Transfer Invoice Receipt to Records Management
    INVOICE_UPDATE       Event manager communication from invoice processing
    INVOICE_UPDATE       Rückantwort ins CRM aus der Lieferantenrechnung
    INVOICE_UPDATE       Implementierung, um S1NVEXC zu übermitteln
    INVOICE_UPDATE       Save FI Document Type for Principle of Prudence
    INVOICE_UPDATE       Vendor Evaluation Based on Documents from IV
    Check this badi's and user exits.
    Hope this helps.
    Regards,
    Qamar.

  • User Exit for F-92 transaction!

    Hi everyone,
    I hope you all fine!
    I hope you guys could help me with this.  This is about user exit, I need one for the transaction F-92, when the user wants to sale a fixed asset I need to catch the fixed asset number to validate it, but I don't know if I'm doing something wrong with this user exits that I found here in the forum none of them stops when a type a break-point sentence.
    SAPLF051 Workflow for FI (pre-capture, release for payment)
    RFKORIEX Automatic correspondence
    RFEPOS00 Line item display: Checking of selection conditions
    RFAVIS01 Customer Exit for Changing Payment Advice Segment Text
    FEDI0001 Function Exits for EDI in FI
    FARC0002 Additional Checks for Archiving MM Vendor Master Data
    F180A001 Balance Sheet Adjustment
    F050S001 FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002 FIDCC1: Change IDoc/do not send
    F050S003 FIDCC2: Change IDoc/do not send
    F050S004 FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005 FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006 FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007 FIDCCH Outbound: Influence on IDoc for Document Change
    Does any body know if there's any more user exit that are not listed in here for this transaction? or in the user exit listed above there's one that could stop at the break-point. but I'm not doing it correctly!
    I hope you guys could help me with this, I'll really appreciate it.
    Thanks for your time.
    Regards,
    Guillermo E.

    Hi Vinod,
    Thanks for your reply, I also tried as you told me to use the transaction OB28, but I'm having some problems to understand how to use it.  I found this documentation to create a user exit, here is the link:
    http://www.richard-harper.me.uk/Kb/showtext.aspx?id=0007c
    I followed the steps that it says, but the functional consultant can't see the new user exit that I'm trying to use.
    I hope somebody could help me to understand how to set up a user exit with the transaction GCX2, and how to set parameters to make to make a query to a custom table and return a value to trigger the validation.
    Or if I'm supposed to use another way to do it.
    Thanks for your time!
    Regards,
    Guillermo

  • De-activating a Enhancement component in a User Exit -- Urgent

    Hi,
    How to De-activate a single Enhancement component from group of components in a User Exit(Project).
    Regards
    Jiku

    Hi
    Goto transaction CMOD & open the project. Click on Change mode.
    CLick on Components & then place cursor on user exit & click De-activate(Button next to Activate button).
    Best regards,
    Prashant

  • User exit CIFMAT01

    Dear All,
    We are facing problems while using the CIF user exit CIFMAT01.
    We have written a code to select the materials based on certain criteria. However when we acttivate the integration model the CIF user exit is not getting called.
    Is there any global setting through which user exits need to be enabled for CIF?
    regards,
    Kedar

    Hello Kedar,
    I suppose the comments I have added to this user-exit in our connected R/3 systems might help you:
    OSS 828026: This user-exit is called up to three times during
                data transfer to a SCM system.
                Parameter IV_MAP_STATUS shows for which functionality
                the current call is made.
    '1': New material master data is mapped to analyze SCM-relevant changes into the SCM format
    '2': Old material master data is mapped to analyze SCM-relevant changes into the SCM format
    '3': New material master data is mapped for the CIF transfer
    '4': Location products for MRP areas are transferred
    '5': Material master data is mapped for the CIF comparison and reconciliation report.
    Remarks:
    - the target destination is not maintained in status '1' or '2'
    - the call with status '3' is done in an update task if immediate transfer
        is executed when changing a product. In this case it is not
        possible to debug this call. If necessary CFM2, CFP1 or RIMODINI
        have to be used for debugging.
    Regards.
    Hubert

  • Trouble hitting breakpoint in User Exit Include

    Greetings,
    I am having a problem where I cannot get a transaction to stop at a breakpoint that I have set in a user exit include program (<b>ZXEDFU02</b> starting from transaction <b>VF04</b>) and I cannot figure out why.  I am sure that the exit code is being executed because of the results, and if I put a syntax error in this include and activate and execute, i receive a short dump at the syntax error - evidence that the program is in the include code. 
    I have even tried switching on system and update debugging just to be sure, but no matter what I cannot hit this exit.  The exit for those unfamiliar allows the addition of additional data to segments of the INVOICE02 IDOC in SD.
    Thank you in advance for any help you can provide.
    Geoff

    Hi Geoff,
    The problem most probably lies with the fact that in default mode VF04 does not perform the update logic synchronously (for performance reasons).  The only thing that is performed synchronously is the selection of the data, the bundling of the data into work packets, and the submission of these work packets for execution. 
    Thus, you do not hit your break point for debugging (the actual code gets executed either in a background or update work process).  You will, however, get short dumps if the synchronous section of the program uses any function module in the function group in which you have introduced syntax errors (hence how you can get short dumps but still not stop at the break point).
    The way to solve this is right down the bottom of the VF04 transaction you have an option for Update:
    Asynchronous
    Synchronous via VB log
    Synchronous w/o VB log
    By default it is set to the first option.  If you choose either option 2 or 3, you should then run the update logic synchronously and stop at your breakpoint.
    If this still doesn't work, you have still another thing to try.  Before hitting execute, put in /H at the okcode.  When you hit execute it will throw you into debug mode.  Hit the settings button (far right) and flag the option 'In background task: do not process', and then continue.  Any background processes started will be thrown up into another session in debug mode.  Go to this other session and hit continue.  You SHOULD stop at your breakpoint if it is being processed as a background job.
    If this still doesn't work then you have some options for update debugging.  Let me know and I'll see if I can help.
    Cheers,
    Brad

  • Enhancement /User Exit for logic setting call date / Horizon

    Due toe planning in IP10 we have a horizon set by the system for (eks.) 80%. This is working OK for small planning intervals (i.e. up to 24 mth intervals).
    However when intarval exceeds this limit we will set the call date to be maximum 30 days (for instance) ahead of the sceduled start date of the order.
    Thus we need a user-defined way to manipulate / set the call date by a user exit (logic in ABAP - or by IMG settings if possible) that differs from the standard SAP setting for this date.
    The question is then how we - in best practice -  can do so.
    Please advice if you need mor information on this issue.

    Hi
    Find the available exits with the following program:::
    *& Report  ZFINDUSEREXIT
    report  zfinduserexit.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    if sy-subrc ne 0.
    select single * from trdir where name = tstc-pgmna.
    if trdir-subc eq 'F'.
    select single * from tfdir where pname = tstc-pgmna.
    select single * from enlfdir where funcname =
    tfdir-funcname.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'FUGR'
    and obj_name eq enlfdir-area.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    select * from tadir into table jtab
    where pgmid = 'R3TR'
    and object = 'SMOD'
    and devclass = v_devclass.
    select single * from tstct where sprsl eq sy-langu and
    tcode eq p_tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
    write:/(95) sy-uline.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    write:/(95) sy-uline.
    loop at jtab.
    select single * from modsapt
    where sprsl = sy-langu and
    name = jtab-obj_name.
    format color col_normal intensified off.
    write:/1 sy-vline,
    2 jtab-obj_name hotspot on,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    endloop.
    write:/(95) sy-uline.
    describe table jtab.
    skip.
    format color col_total intensified on.
    write:/ 'No of Exits:' , sy-tfill.
    else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    If there are no available user exits you could go for badi's.
    To search for a badi, go to se 24 display class cl_exithandler. 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 exit_name. It would show the available badi's.
    Please reward if useful....
    regards
    Dinesh

  • User Exit / Enhancement Point to set exchange rate using GR date in MIRO

    Dear experts,
    I'm trying to set exchange rate not as default but using GR date (When I input the PO number and click enter, the exchange rate should be set). So when system set the exchange rate, it will use the PO date, not GR date.
    What user exit / enhancement point / BADI should I use?
    I've already tried all user exit and BADI for MIRO but still not succeed. Is there anyone who could help me?
    Thank you very much..
    Regards,
    Shirley

    Hi,
    So as to capture Exchange Rate w.r.t PO date, it is suggested to go for Development/Enhancement with required import purchasing doc types in it. While doing GR and before posting the document you need to capture the Exch Rate as per PO date and replace with GR date Exch rate present in it through development.
    Regards,

  • User exit to set user status

    Hi,
    We have a requirement to implement our own status management for SD orders. I have configured a new SD item object status profile in transaction BS02. Now I need to program the logic to update the item object status when the user is saving the sales order. I have looked at the relevant user exits in MV45AFZZ, but not found a way to update the item status upon saving. 
    Has anyone faced a similar problem and know a good way to update the item object status upon sales order save?
    Thanks in advance!
    Kind regards,
    Geir Kronkvist

    I had accomplished this requirement as follows.
    Step 1:-
    There is an SAP function module STATUS_UPDATE. This FM should be invoked in update task.
    Reason: SAP internally invokes this FM as an update task during the Sales order save process. Hence your updates should follow SAP's status update process.
    Step 2:
    Created a report program with 2 form routines to export and import JEST entries as follows.
    form set_usrstat tables it_jest_upd structure jest_upd.
    Export internal table into memory
    export it_jest_upd to memory id 'it_jest_upd'.
    Execute only after the next commit statement
    perform zset_status on commit.
    endform.
    *&      Form  set_status
          Form for updating status after commit
    form zset_status.
    data: it_jest_ins like jest_upd occurs 0,
          it_jest_upd  like jest_upd occurs 0 with header line,
          it_jsto_ins  like jsto  occurs 0,
          it_jsto_upd  like jsto_upd occurs 0,
          it_obj_del like   onr00 occurs 0.
    Import data from Memory
    import it_jest_upd from memory id 'it_jest_upd'.
    Run function module to update the status
    CALL FUNCTION 'STATUS_UPDATE' in update task
      TABLES
        jest_ins       = it_jest_ins
        jest_upd       = it_jest_upd
        jsto_ins       = it_jsto_ins
        jsto_upd       = it_jsto_upd
        obj_del        = it_obj_del
    endform.                    " zset_status
    Step 3:
    If you want to set a user status fill the i_jest_upd internal table accordingly and invoke the perform statement as follows.
    Execute only after the commit
                PERFORM set_usrstat(zsd_status_update) TABLES  i_jest_upd.

  • Set Credit control status in user Exit LVKMPFZ1

    Dear all
    we like to set the credit control status in the above mentioned user exit. Is there a better way than
    *VBUK-CMGST = 'B'.
    MODIFY *VBUK.
    Is there a FM, Bapi or something that can be used?
    Thank you
    Herbert

    User Exits For Credit Checks And Risk Management
       Credit Check
         If you want to carry out your own individual credit checks, that differ
         from those in the standard system, you must define them in the following
         user exits:
         o   LVKMPTZZ
         o   LVKMPFZ1: USER_CREDIT_CHECK1
         o   LVKMPFZ2: USER_CREDIT_CHECK2
         o   LVKMPFZ3: USER_CREDIT_CHECK3
         User exit for availability check
         User exit USEREXIT_AVAIL_CHECK_CREDIT exists in Include MV45AFZF.
         This user exit allows you to determine whether the system should or
         should not carry out an availability check after a blocked document has
         been released or after a new credit check.
       Risk Management for Receivables
    Regards
    Prabhu

  • User Exit/BADI while setting status as TECO for WBS in CJ20N

    Hi all,
    I need a BADI/User Exit which triggers when we try to set the status of WBS as 'TECO'  in CJ20N transaction.
    Please help.
    Thanks in Advance,
    Sagar

    Hi Sagar,
    Go through this Badis.
    AFABD_CHANGE
    DOCUMENT_MAIN01
    DOCUMENT_OBJ
    DOCUMENT_STORAGE01
    IHSA_LIST_EDITING
    IWO1_ORDER_BADI
    IWO1_ORDER_BADI
    MRO_CONTRACT
    MRO_CONTRACT
    NETW_DIR_PROCUREMENT_REF
    NETW_USER_FIELDS_F4
    PLM_CATALOG_IF
    PLM_CATALOG_IF
    PROJECTDEF_UPDATE
    PS_TRANSFER_DATES
    WBS_FIELDS_FOR_ASSET
    WBS_USER_FIELDS_F4
    WORKBREAKDOWN_UPDATE
    If Found Help Full Do Reward.
    Regards.
    Eshwar.

  • User exit to prevent setting status , if there is no budget allocated to WBS

    Hi PS Experts,
    Is it normal to experience unlimited purchases if you have forgotten to add budget $$ against WBS?
    Customer has following steps
    1) User create Project & user status is CREA which prevents most traxn
    2) User will allocate budget to WBS & set user status to OPEN which will allow Release of project.
    3) Release project & create PR/PO
    under step 2, if they forget to add budget any amount of procurement can be done against that WBS.
    We are looking at any user exit to prevent release of WBS which doesn't have budget $$ assigned to it.
    Are there any?
    Thank you so much for help,
    Jatin

    Hi Shishir,
    I am experiencing unlimited PR/PO  allowed for WBS without budget/forget to add budget(Blank entry).
    Is there a configuration which treats 'Blank' as 0. We are experiencing 'Blank' treated as unlimited( 999999999)
    In MM-Physical inventory, there is 'Radio' button to mark 'Zero Count' to make sure user whats to decelare 'Zero' instead of 'Forgot to enter'.Much in similar way , something like this is happening here.
    This is probably system reading 'Blank' field as non-zero. is there a way to alter this behavior?
    Best Regards,
    Jatin

  • User exit for setting tax indicator in Sale order

    Hi All,
    I want to know if there is a way (user exit) that could look at the Sales Order Type , particular Item Pricing Condition  and Ship-to party State and set the materialu2019s tax classification (VBAP/TAXM1) to u201C0u201D (Exempt) ?
    Thanks in Advance!
    Sonali.

    Hi Ramesh,
    I have put the code in the user exit, and I am able to set the tax classification indicator but I have a problem... Before setting the indicator I need to check for the Usage code of the line item (This code I am using instead of checking the Pricing condition) . I am able to read all the values of line item in VBAP structure in the user exit except for the first time this user exit is hit as soon as a line item is entered it is not picking up the Usage code. That field is blank.
    But if add another line item and go into the user exit I can see the previous line item Usage code in XVBPA table.
    Do you have any idea why usage code is missing in VBAP structure in the user exit or is there any other table or structure where I can get the usage code?
    Thanks in Advance!
    Sonali.

  • User exit to set user status for quote

    Hi,
    I need to update the user status in the header of quotation (using VA22) based on some conditions. I checked the user exit's under 'MV45AFZZ' but no use.
    Could any one please provide me where I can write the code to put the conditions before upating user status in header
    Thanks
    Thang Tran

    Hi,
    Is there anyone can give me some suggestions?
    Thanks in advanced
    Regards,
    Thang

  • PO Item User Exit to set Blocked Stock

    Hallo,
    is there a User Exit on PO by which I can default Blocked Stock on field INSMK on the PO item level, during PO creation?
    Or is there any other why to achieve the same result?
    thank you in advance,
    Regards,
    marco

    Hi Friend,
    Check the BADI, ME_PROCESS_PO_CUST, it will solve your problem.  I had same kind of requirement, and i had imeplemented thsi BADI, and used PROCESS_ITEM method.
    Here you can pass default value 'S' (blocked stock) to EKPO structure.
    Regards
    Krishnendu

Maybe you are looking for

  • GR/IR Clearing Account - Clearing of old items

    Hi All, i am facing a serious issue; in our company the GR/IR account was not managed properly for years and has no about 3000 open POs w/ more than 8000 line items. We want to make a cut and clear w/ MR11 everything older than 6 months which include

  • SOAP Framework Error

    Hi, I created adobe form .while activating it I got below exception. Adobe document services error: SOAP Runtime Exception: CSoapExceptionTransport : (100101) I checked ABAP Connection. I checked destination service from Visual Adminstrator. They are

  • Itunes on windows 7 causes computer display problem

    i have had my laptop for 6 months and it has widows 7, i have used the latest version of itunes(10.1.2) with no problems. Then my kaspersky anti virus expired so i downloaded norton security suite from our internet provider because it was free. The n

  • Why are the programs in my creative cloud not showing?

    Hi I've been trying to download programs out of my creative cloud and they're not showing up, I uninstalled and re-installed it back on my computer and I'm still having the same problem. I also upgraded from the single plan to the full plan where I c

  • CRM Portal Integration

    I have a stand alone CRM system. I created a user and assinged him CRM Sales Manager role in the back end as well as in the Portal. Also I gave the user necessary RFC Authorization and BSP APPL authorization. I can see all the related tabs and iViews