How to turn greyish/disable a field in ME52N/ME53N (working on a user exit)

Hi experts,
simple question: I'm working on an user exit that is used by ME5?N, and I'd like to do something like:
"looping on the items of a purchase req., if position X has a particular value as attribute, then don't allow any change to the field PSTYP".
I can easily implement the check in the code of the user exit; I don't know how to turn grey/disable for any change the field PSTYP at screen as a consequence of a positive check. Can anybody guide me thru this - I hope simple - operation? Thanks in advance

You will not get any answer here, Post your question in correct section after mark this thread as answered
Oracle Discussion Forums » Oracle Database » Application Express

Similar Messages

  • How can I get the No. of package and requesting system name in user exit?

    Dear all,
    Is there anybody knowing how to obtain the extracting package number and requesting system name in the user exit "EXIT_SAPLRSAP_002" ? here is detail on my questions as below:
    For package number. If extracting 100,000 records of 0MATERIAL_TEXT , and the package size is 20,000, then there are 10 packages, when executing the user exit, how can I know which package I am extracting on?
    For requesting name, when executing the user exit, how can I know the logical system name from which the extraction request is sent?
    Thanks.
    best regards
    Patrick

    Hi Mansi,
    Thanks for your quick response.
    The background of this requirement is, in the datasource 0material_Plant_Att, we added two fields in the extraction structure, one is variable price, another is previous year's variable price, which need to be obtained by searching data KEKO & CKIS in the user exit, these tables have the huge data volume, in each data package, the user exit needs to be executed once, so the heavy searching needs to be done once, consequently, the total running time of this request including several data packages is very long. In order to improve the performance, we design the following logic:
    1. Create the temporary tables YCKIS & YKEKO in R/3.
    2. Run BW request in BIW.
    3. In R/3, If this is first data package of this request, delete all data in YCKIS & YKEKO, then search the data from CKIS & KEKO ( Average 20 million records), then insert these data into YCKIS & YKEKO ( Average 0.2 million records). 
    4. In R/3, if this is not first data package of this request, then search the data directly from YCKIS & YKEKO.
    You can see in the above, in the step 4, the data searching performance can be improved significantly due to reading data from temporary table, this is why I need to know the No. of data package. In addition, apparently, it can not be done in BIW side since the performance issue is in the user exit rather than in BIW. Also it is very difficult to setup one counter to deliver this since we do not know when to reset the counter. For example,
    - Assuming there are 3 data packages.
    - 1st day, we schedule one request from BIW, in R/3,
       -> At 1st package, counter = 0+1=1
       -> At  2nd package, counter =1+1= 2.
       -> At 3rd package, counter = 2+1= 3, then reset counter = 0 for next request.
    Question 1:  How can we know the 3rd package is last one?
    Question 2: If during the 2nd package, the extraction job is cancelled exceptionally, the counter value is 2 not 0, then for the next request, the data searching is not correct, right.
    Hope the above is clear, and apology this email is too long.
    Thanks.
    best regards
    Patrick

  • How to grap the disable text field values

    Dear All,
    i have a lov,
    in this lov,i create 3 mappings for display those return values in text iput fieldss
    i want to grab those text fields valuess
    and assign those those values to another vo(table)
    those grapping fields are not changed thats y i kept in disable mode
    that time whenever any action is occure then disable field values are gone
    that time i pass only null to vo.
    but i want to grap the value when i kept those fields are in disalbe alsooo
    how can i grap those valuess.

    you have to create item of type form value & create lOV mapping so that the value will not get lost
    Thanks
    --Anil                                                                                                                                                                                                                                           

  • How to turn off / disable a Coldfusion Server?

    I have a Coldfusion MX 7 server running on a test machine.
    This server is just for testing applications on the local machine
    (of which I am the administrator of). At times I also use this same
    machine to do 3D Rendering. When the Coldfusion server is running
    it hogs a lot of precious RAM unecessarily. I count 7 services
    running in the task manager related to the Coldfusion server.
    How do I disable or turn off the Coldfusion server upon
    bootup? Either set something so that it will not run at all upon
    bootup, or be able to somehow shut the CF server down, so that no
    services for it are running after booting up. In other words
    sometimes I would like the CF server to run, other times I don't
    want it running AT ALL. How can I do this? After searching the CF
    docs I have come up with no answer..
    Any help would be most appreciated!

    Coldfusion runs as a service. You can manage them by going to
    start > Administrative tools > Service (or by going to start
    > run > services.msc). This will list all of the services
    running on the system. There are several services that may be
    running, depending on what type of installation you did. You can
    either stop or disable these (by stopping, the service will start
    again the next time you reboot; disabling prevents them from
    starting on startup - this may still require you to stop the
    service... if you disable you will have to re-enable the next time
    you want to use CF).
    Some of the services you may have to stop:
    Macromedia CFMX
    Macromedia JRun Cfusion Server
    ColdFusion MX 7 ODBC Agent
    ColdFusion MX 7 ODBC Server
    ColdFusion MX 7 Search Server

  • How can we make disable a Field of a FORM at run-time?

    Hi to everybody,
    I want to know that how can we make a filed DISABLE at runtime <whenever we run a FORM>.
    I know about SET-ITEM-INSTANCE-PROPERTY but don't know how to use it,
    please make it clear.
    I will be gratefull to all of you
    Thanking you in advance.

    There's no property values for enabled or disabled in SET_ITEM_INSTANCE_PROPERTY.
    Instead what you can do is set INSERT_ALLOWED, UPDATE_ALLOWED and NAVIGABLE to FALSE which basically what a disabled item behaves like.
    Regards,
    Tony

  • How do I create a text field that can be manipulated by the user?

    I have created a form that will be changed by the user from month to month. In this form they may have the need to make some of the font bold.
    The text fields that will end up being bold will not be the same every time so I can't format the field to be bold.
    Is there any way to allow the user to be able to choose whether a text field is bold or not?
    Thanks,
    T_Sands

    Thanks GKaiseril. When I do that and go to preview the form I see where the properties are listed as an option, but they are in light gray so I can't select them. Any idea why this is happening?

  • How do I install Flash 10 so that it will work in all user accounts?

    I have added an account for an 8-year old boy to access DisneyXD, Nick, etc. The problem is that I can only get Flash to work from my account.
    I am running Windows XP and IE Explorer 8.0. I've tried the following:
    * Giving administrator privilege to the new account and installing from there.
    * Applying for and obtaining a free license from Adobe that's suppose to enable me to allow access via shared folders.
    * Made certain that all the flash-related files in my account's Documents and Settings directory tree are also in the new account's, and in the Shared Documents.
    The behavior is:
    * If I install it from my account, it works in my account. When I got to the new account and access a page requiring it, it doesn't see it and asks me to download/install/upgrade Flash. When I try, the installation fails with no explanation. (I followed the trouble shooting steps suggested at this failure.)
    *If I remove it from my machine and try to install it first from the new account (still with administrator privilege) I get the same unexplained failure.
    I'm certain that I am not the first to want to do this. What am I doning wrong?
    Thanks for any help you can give me.

    Sharma,
    Here's step by step what I did after your last post:
    1) I re-installed Flash from my account.
    2) I Deleted the other account, along with all files associated with it.
    3) I created a new account with administrator privilege.
    4) I logged off my account and logged onto the new account.
    5) I started WINDOWS explorer and navigated to windows/system32/Macromed/Flash
    6) I ran FlashUtil10c (See Screen Shot One)
    7) Clicked "Install Now", program ran and I got a box that indicated it was 100% complete.
    8) As I watched, FlashUtil10c, Flash10c.ocx and uninstall_activeX all three disappeared from the folder. (See Screen Shot 2)
    9) Logged 0ff the newly created account and logged back into my account.
    10) Tried to access a game that required flash and got the screen in Screen Shot 3.
    11) Re-installed Flash from my account.
    I'm right back where I started. This has got to be a common thing for people to do. Where am I going wrong? The installer I'm using is "Install_flash_player_10_active_x" that I downloaded from a site I got with my free license and about which Adobe declared: "You may not share the above link, share information with others, or publish the above link on websites, blogs, or by any other means that can be publicly accessed. "
    I appreciate your help.
    Wayne

  • Help on how to assign a field as mandatory in MIRO and name of user exit

    Hi all,
    the requirement is...
    In MIRO,the Incoimg invoice should not be posted without an empty field of amount(WRBTR) in the Basic Data.Currently as per std,it's not a mandatory field and can be posted by not entering any amount in that.So, either we have to make it as a mandatory field or should restrict not to saving the data if posting of empty field.(Not giving any amount)***seems,it tells the user to give the amount as mandatory.
    How to do this.....if its coming under the USER Exit object...pls post both how to get the std program and enhancement assignment(it asks while creating user exit in CMOD) also for user exit.
    thanks & regards
    sankar.

    Hi,
    Double click the screen number in the table maintainece generator for which you want to make the field mandatory. Goto element list tab, in that goto the special attributes tab, there you change the input column value of the field to required from the drop down list and save, activate. Now the field will be mandatory in the table maintainence screen.
    OR
    1) Make the field as a KEY field in the table, If Possible.
    2) If the field can't be made as a part of the key field, then you have to create Event for the Table. Goto the table maintenance generator. Goto Environment->Modification->Event and add your logic in the required event.
    Make change in the Screen will not help i think because whenever the Table maintenance is regenerated, the changes will be reverted back.
    Reward points if found helpful...
    Cheers,
    Chandra Sekhar.

  • How to use a screen-field when applying BADI or User Exit to a T Code

    Hi Experts,
    I need your help on this problem.
    I have created a BADI for the transaction code miro. I have got the Exit name on which the enhancement has to be done. I want to perform a check on a text field (Scrren field name INVFO-SGTXT).
    When my break point occurs i enter INVFO-SGTXT in the field to check the value present in it. But it shows that no such field exists.
    My Basic doubt is how to use a value entered in a text field in a tcode while performing a User Exit or BADI on it.
    Do I have to declare it. If yes please mention how?
    Thanks in advance guys.

    Hi,
    The first question here would be... do you plan on having multiple implementations down the road because if not there really isn't any reason to create a BADI inside the exit.  If that is the case then add the field as an importing parameter in your BADI interface and then you should be able to see it inside the BADI at your break-point.
    Regards,
    Ryan Crosby

  • How to make Credit Control Area field mandatory in fb01, f-01, f-02, f-04

    Dear all,
    Whenever we are trying to create any accounting document for a Customer, we need to make Credit Control Area a mandatory field in transactions fb01 / f-01 / f-02 / f-04.
    This is required because we have different Credit Control Areas for different Sales Areas for a Customer.
    Can this be achieved through Customizing (making screen field mandatory) or one needs to use user exit?
    Another option could be screen variant, however, it would result in multiple t-codes e.g. zfb01 / zf-01 / zf-02 / zf-04
    I appreciate your help in this regard.
    Thanks and Best regards,
    SAP_ROI

    Hi,
    You need to write validation rule for to make Credit Control Area field  as  mandatory field for the Transaction codes FB01 / F-01 / F-02 / F-04 and please  use T. codes GGB0 & OB28 for the same.
    Regards,
    Shailesh Verma

  • How to access variables outside user exit

    Hi,
    I'm working with a user exit and my problem is that in a particular moment I have to access variables located outside the scope of the user exit (they are in a standard program)
    How can I reach these variables?
    thanks in advance

    Hi,
    If they are global variables then you can access them using Global assign technique,
    For example,
    FIELD-SYMBOLS: <fs_value> TYPE ANY.
    ASSIGN ('(SAPMV45A)XVBAK') TO <fs_value>.
    It is basically,
    ASSIGN ('(<Std. Program Name>)<Variable name>') TO <field symbol>.
    NOTE: To make sure they are accessible in your user exit, just put a break-point in the user exit and once you are there in debugging, type in,
    (<Std. Program Name>)<Variable name> in the Field names section and if it does not show it in RED then it is accessible..
    Hope this helps.. 
    Sri
    Message was edited by: Srikanth Pinnamaneni

  • How to find the specifed user-exit

    Hi, experts. i am first time to do enchancement. can anyone tell me how to find specifed user-exit. for example, how to find MV45AFZZ?  Also, what i should pay attention to when doing enhancment works? thanks.

    Hi Jrockman,
    There are many things associated to user exit.
    a) Tcode- CMOD.    here you can find
    b)  USER-EXIT triggering points ->
    Go to se93 and give the tcode to find the main program associated to it.
    Go to se38 and give the main program.
    Find the package associated to it.Go to->Object Directory Entry.
    Go to smod transaction.
    Press f4.
    Press Information System Button.
    Give the Project(Dev Class).
    Press enter.
    Find the enhancements associated
    c) Check the code posted by me ,to get the list of User exits and Badi for a particular tcode in the link mentioned below.
    Re: User Exit for IW22 - to populate custom fields
    d) few useful links to understand User exits.
    http://www.sapdevelopment.co.uk/enhance/enhancehome.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sappoint.com/abap/userexit.pdf
    ABAP Enhancements and Modifications - General
    https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/webcontent/uuid/2342e1f3-0b01-0010-a186-fdd404884050
    Menu Exit
    http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/menu-exits-72696#
    Screen Exit
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    Hope it helps.
    Manish

  • How to use user exit to complete the PR item valuation price?

    Hi Experts,
    I am working on a user exit about Purchase requisition and the description is as following:
    In standard SAP, the Purchase Requisition (PR) is an internal document to translate a pur-chasing requirement. Standard, at the moment of a PR, no supplier is known and therefore no purchase price is known.
    In standard SAP, the purchase price and price conditions are introduced in the Purchase Or-der (PO); these fields are not available in the PR. Instead, the PR contains an estimated valuation price per item, this is the historic purchasing price (standard price or moving aver-age price).   
    For the GFP project, the purchase price needs to be introduced in the PR. This is due to the fact that budget reservations are made for PRu2019s. Therefore, each PR needs to have a correct purchasing value. As budget forecasting also takes into account the tax (VAT), the PR value needs to be VAT inclusive.
    The goal of this development is to ensure that the user does not need to complete the PR item valuation price manually. Instead, this field should be filled with the item contract or info record price.
    The purpose of this development is to extract the correct purchasing price from the agree-ment / info record when applicable. Thus:
    u2022If the user does not assign a source to an item, do not overwrite the item valuation price
    u2022If the user assigns a source to an item based on an agreement, use the agreement number and item to extract the purchasing item price
    u2022If the user assigns a source to an item based on an info record, use the info record number and purchasing organisation to extract the purchasing item price
    The enhancement trigger is the assignment of a source of supply by selecting a certain pur-chasing agreement (contract) or a certain info record.
    can anyone help me on this? do you know how to know the time when the trigger of the source of supply by selecting a certain pur-chasing agreement (contract) or a certain info record happens? thanks in advance!
    Kind regards
    Dawson
    Edited by: Julius Bussche on Jul 25, 2009 7:06 AM
    "Hi" removed from subject title...

    Hi Debadatta,
    Welcome to SDN.
    Have you looked report program <b>RM07MAAU</b> (Report for Material Document Archiving)?
    Hope this will help.
    Regards,
    Ferry Lianto

  • User exit CONFPP05, how to use data

    Hello,
    I need to use user exit CONFPP05, because I need to trigger a printout when there is a specific operation number entered in CO11n.
    My question now: how can I use the operation number I enter in CO11n in the user exit CONFPP05 ?
    I tried to use table AFRUD and field VORNR, but when testing it with a break point, the field was just empty.
    *&  Include           ZXCOFU15                                         *
    TABLES:   AFRUD.
    CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
    EXPORTING
    TEXTLINE1 = 'hallo'
    EXCEPTIONS
    OTHERS = 1.
    So what do I have to do to use this field here?
    Thanks

    Dear,
    Please refer the OSS note 11104 which contain all details of printing.
    Regards,
    R.Brahmankar

  • How to create user exit search help

    Hi,
    I have created a search help from se11 with a field (PT9653-ZDOCENTE) of table control.
    Now I want to fill another field (PT9653-ZMATERIA) of table control  when the user select a value in the search help.
    How do I do it?
    I read that I must use a user exit, is it correct?
    could you give me some examples?

    I have created a exit that should upgrade the second field with the function 
        dynpvaluetab2-fieldname = 'PT9653-ZDOC_TXT'.
        WRITE wa_nome TO dynpvaluetab2-fieldvalue.
        dynpvaluetab2-stepl = sy-stepl.
        APPEND dynpvaluetab2.
        CLEAR   dynpvaluetab2.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            dyname     = 'MP965300'
            dynumb     = '2000'
          TABLES
            dynpfields = dynpvaluetab2.
    but it is not work.
    Instead, if the first use F4IF_INT_TABLE_VALUE_REQUEST to see the search help and then the DYNP_VALUES_UPDATE to update the other fields work.
      SELECT objid stext FROM hrp1000
        INTO CORRESPONDING FIELDS OF TABLE tab_materie
      WHERE plvar EQ '01'
       AND otype EQ 'ZM'.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'OBJID'
          dynpprog        = sy-repid
          dynpnr          = '2000'
          dynprofield     = 'PT9653-ZMATERIA'
          value_org       = 'S'
        TABLES
          value_tab       = tab_materie
          return_tab      = tb_ret_conc
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
        MESSAGE s000(zh) WITH 'Non trovati record per questa selezione'.
      ENDIF.
      GET CURSOR FIELD pt9653-zmateria LINE riga_corrente.
      READ TABLE tb_ret_conc INDEX riga_corrente.
      REFRESH dynpvaluetab.
      dynpvaluetab-fieldname = 'PT9653-ZMATERIA'.
      WRITE tb_ret_conc-fieldval  TO dynpvaluetab-fieldvalue.
      dynpvaluetab-stepl = riga_corrente.
      APPEND dynpvaluetab.
      CLEAR   dynpvaluetab.
      READ TABLE tab_materie WITH KEY objid = tb_ret_conc-fieldval.
      dynpvaluetab-fieldname = 'PT9653-ZMAT_TXT'.
      WRITE tab_materie-stext TO dynpvaluetab-fieldvalue.
      dynpvaluetab-stepl = riga_corrente.
      APPEND dynpvaluetab.
      CLEAR   dynpvaluetab.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname     = sy-repid
          dynumb     = sy-dynnr
        TABLES
          dynpfields = dynpvaluetab.
    bold The problem is that for this field, I need a collective search help , and therefore I can not use the F4IF_INT_TABLE_VALUE_REQUEST. bold

Maybe you are looking for

  • FM for Background Job Check

    Hi, is there a function module that will check the background job status and will wait for it to finish before returning to the calling program? I have developed a program that triggers a background job at runtime, but i also need to make sure the jo

  • Newbie question about using more than one Ipod on same computer

    Hi everyone, I finally got into the Apple world this year with a new (16 GB) iPhone. Love it. I've now ordered a Nano as well. My question is: though I know that my iTunes will recognize the Nano as a different iPod, will I be able to transfer the mu

  • Calendar Month View won't scroll up and down

    This is a very minor, but strange issue with Calendar. I can scroll up and down in Calendar month view on my MacBook Air, but on my Mac Pro, I can only switch months by clicking the" >" button or "Command+Left Arrow". Anyone know why? Thanks.

  • Total compensation statement is not showingup in ESS portal for an employee

    HI Experts, One of my employee could nt able to view his total compensation statement through ESS  portal.It is showing only blank. I have checked the integration PCOMP  SFTCS in T77S0 table and is with  ZHR_CM_TCS. What could be the reasons for  sho

  • URGENT : Viewing HTML files & UNICODE characters

    I do not know how to view HTML files in Java2. I have various HTML files which I would just like to display in the ContentPane of a Dialog Box. Please let me know how should I do it. Also, I have another question. How do I display Unicode characters