Grayed out input screen field

Hi all,
How can I check the status of a screen field if it is displayed only in some case?
e.g. an input field in a sales order is grayed out
Thanks.

http://www.sapdevelopment.co.uk/reporting/selscr/selscr_loopscreen.htm
In the event AT SELECTION SCREEN OUTPUT you can do a LOOP AT SCREEN and turn off the ACTIVE indicator. Use the debugger to determine what the name of the field is that you want to hide.
something like
LOOP AT SCREEN. 
IF SCREEN-FIELDNAME = 'the name'. 
  SCREEN-ACTIVE = '0'.   
MODIFY SCREEN.
ENDLOOP
parameters : fname like rlgrap-filename.
      DATA : filename TYPE string.
      DATA : table1 TYPE filetable,
             rc TYPE i.
DATA : VAL LIKE DYNPREAD-FIELDVALUE.
data: dynfields type table of dynpread with header line.
PARAMETERS : R1 RADIOBUTTON GROUP RG  modif id abc.
PARAMETERS : R2 RADIOBUTTON GROUP RG modif id def.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR fname.
  CALL METHOD cl_gui_frontend_services=>file_open_dialog
      EXPORTING
        default_filename = '*.*'
      CHANGING
        file_table       = table1
        rc               = rc.
    IF sy-subrc <> 0.
      MESSAGE e000(zXXX) WITH 'Error'.
    ENDIF.
read table table1 index 1 into fname.
IF fname cs '.XLS'.             "substitute .csv
dynfields-fieldname = 'R1'.
dynfields-fieldvalue = 'X'.
append dynfields.
dynfields-fieldname = 'R2'.
dynfields-fieldvalue = ' '.
append dynfields.
elseif fname cs '.DOC'.
dynfields-fieldname = 'R1'.
dynfields-fieldvalue = ' '.
append dynfields.
dynfields-fieldname = 'R2'.
dynfields-fieldvalue = 'X'.
append dynfields.
ENDIF.
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = sy-cprog
dynumb = sy-dynnr
tables
dynpfields = dynfields
exceptions
others = 8.

Similar Messages

  • Config settings to gray out "Reqted Qty" field while creating TO via LT03

    Hi Experts,
           Could anyone please me in this. I would like to gray out "Requested Quantity" field when creating TO via LT03 transaction. Can anyone please let me know where the config setting needs to be maintained inorder to gray out the "Requested Quantity" in LT03 transaction.
    Thanks for your help.
    Regards,
    Nagarjun

    Hi,
    no there is not such a functionality.
    From a field settings perspective you may work at account group level, =>OBD2 or OVT0
    and/or at transaction type level => OB20
    With OB20 you can distinguish between creation and change.
    You may also react per authorisation. See F_KNA1_EAN. In that case you may gray out fields individually.
    BR
    Alain

  • Disable or Gray out the baseline field in miro

    Hi experts,
    Can any one help me for how to Disable or Gray out the baseline field in miro t-code
    I tried for user-exit and also for badi but i didn't get it.
    so please giude me
    Thanks & Regards
    Vishal

    sorry,
    it's baseline date fiels.

  • Make cells of Table control grayed out(input disabled) based on condition

    Hello Experts,
    I have a requirement where the data is getting populated in table control from my custom tables.
    Now in three columns of the table control if the data is coming as blank from z table then I have to show the cell as editable so that user can put the data and it can be saved back in custom table but If some data is coming from custom table and it is shown in the table control then the cell should be grayed out(Non Editable).
    To achive this I'm using the Following piece of code but it is not working still.
    In PBO 
    loop at   gi_actual_tc
           into gw_actual_tc
           with control tc_actual
           cursor tc_actual-current_line.
           module tc_get_lines. 
    endloop.
    MODULE tc_get_lines OUTPUT.
    data : lv_index  TYPE sy-index,
           lv_index1 TYPE sy-index.
    lv_index = sy-tabix.
    CHECK gw_actual_tc-zlc_subcon IS NOT INITIAL.
    LOOP AT SCREEN.
      IF screen-name = 'GW_ACTUAL_TC-ZLC_SUBCON'.
         lv_index1 = sy-tabix.
         IF lv_index = lv_index1.
         screen-active  = 0.
         exit.
         ENDIF.
        screen-intensified = 1.
      ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ENDMODULE.    
    Please let me know where I'm missing the trick here.
    Thanks,
    Jai

    hi ,
    LOOP AT SCREEN.  
    IF ( screen-name = 'GW_ACTUAL_TC-ZLC_SUBCON' AND
    gw_actual_tc-zlc_subcon IS NOT INITIAL )
    OR ( screen-name = ' GW_ACTUAL_TC-ZLC_SCWORK' AND
    gw_actual_tc-zlc_scwork IS NOT INITIAL )
    OR ( screen-name = 'GW_ACTUAL_TC-ZLC_VALJOB' AND
    gw_actual_tc-zlc_valjob IS NOT INITIAL ) .
    change code  to  below code  if it is character field 
    IF ( screen-name = 'GW_ACTUAL_TC-ZLC_SUBCON' AND
    gw_actual_tc-zlc_subcon IS  INITIAL )
    OR ( screen-name = ' GW_ACTUAL_TC-ZLC_SCWORK' AND
    gw_actual_tc-zlc_scwork IS  INITIAL )
    OR ( screen-name = 'GW_ACTUAL_TC-ZLC_VALJOB' AND
    gw_actual_tc-zlc_valjob IS  INITIAL ) .
    IF field is type P or I 
    then
    IF ( screen-name = 'GW_ACTUAL_TC-ZLC_SUBCON' AND
    gw_actual_tc-zlc_subcon =0 )
    OR ( screen-name = ' GW_ACTUAL_TC-ZLC_SCWORK' AND
    gw_actual_tc-zlc_scwork =0 )
    OR ( screen-name = 'GW_ACTUAL_TC-ZLC_VALJOB' AND
    gw_actual_tc-zlc_valjob =0 ) .
    screen-input = 1.
    MODIFY SCREEN .
    ENDIF.
    ENDLOOP.
    regards
    Deepak.

  • Grayed Out Apps Screens in iTunes 3rd Gen iPod Touch Apps Screen

    I have downloanloaded at least 200 apps t my iPod Touch.  Been playing them for 18 months now.  Never had issues. 
    The situation is, the iTunes display window, when I have my iTouch selected, (after it's plugged in to my Mac and shows up in the left hand column), and I have the "Apps" selected, will shows 2 columns.  The left column that shows your apps you have in the iTunes Library on your Mac; and the right hand column that shows the multiple page displays of the windows which simulate what you should see on your actual iPod Touch display when you scroll through all your pages. After you "Sync" these should be identical if you have all the apps in the left window "checked" and you have "checked" the box just underneath the left hand column that states "Automatically sync new apps".
    The problem is I have apps downloaded which are displayed in my left column which are the apps in my Mac iTunes Library, many of those apps are displayed on the iPod Touch right side in a grayed out page display. 3 Pages and a fourth blank grey screen.  Everything has been synced.  Te grayed out screens that are in the right column in the iTunes window, (which should be the ones on my actual iTouch), are not on my actual iTouch.
    I have even manuaaly dragged one of the grated out apps again to the blank grayed out screen (right column), re-synced, just to see if it shows up on my actual iTouch.  No go. 
    I'm not sure how long I haven't noticed this problem, but I do know a year ago, it never did this.
    Is this coincidance that I am also having the slow down issues that a few people have posted concerning the new iOS 5 for the 3rd Gen iTouches.
    Not sure.  Didn't pay attention enough to the time frames.
    Any one have a suggestion(s) as to a solution, besides the obvious "Restore" in iTunes.  Did it already.
    By the way.  When I first open iTunes and these 2 columns are displayed, there are not any grayed out display pages in the right column.  Only after I "Sync"
    Thanks
    Brett from PSL, FL
    [email protected]

    Retina display is only supported on 4th gen. The cheaper the screen is, the better the chance you have of getting ripped off. The safest way is to have Apple replace the iPod.

  • Issue with clearing a grayed out search criteria field

    Hi,
    I have grayed out a field ABC for its default  value XYZ in the search criteria of lead search...
    But when I click the CLEAR button, it clears the XYZ value of field ABC..
    I don't want the value of ABC to be cleared...
    Do I need to redefine the CLEAR method?
    How do I achieve this purpose?
    Thanks
    Madhukar

    Hi Madhukar,
    go to your eh_onclear event place the break point check the code where exactly parameters values are clearing. copy the standard code redefine the method eh_onclear past the code in your redefine method and change the logic where exactly the parameters are clearing as a standard.
    ex as the above code:
    WHILE lr_param IS BOUND.
         lr_param->get_properties( IMPORTING es_attributes = ls_param ).
    in ls_param you will get ATTR_NAME as ur field and low,high sign option values
    check this ls_param-ATTR_NAME ne 'urfield'. clear the content else check the low and high value of the remaining field values.
         IF ( ls_param-low  IS NOT INITIAL ) OR
            ( ls_param-high IS NOT INITIAL ).
           CLEAR: ls_param-low, ls_param-high.
           lr_param->set_properties( EXPORTING is_attributes = ls_param ).
         ENDIF.
         lr_param = lr_iterator->get_next( ).
       ENDWHILE.
    if you want more info share me your component and view name.
    Thanks & Regards,
    Srinivas.

  • NOTIF_CREATE has grayed out "Business Process" Field, BP are not selectable

    Hello all,
    related to another thread (notif_create), I am trying to select Business Processes in the NOTIF_CREATE Dialog. My Solution has Business Processes assigned, and I can see them in the F4 Help List, but I cannot apply them (green check mark is grayed out)
    How can I make this field changeable?
    Thank you for your help
    Kind regards

    disregard, this is another issue than what I was thinking.
    Edited by: Jason H on Feb 5, 2009 8:07 PM

  • Input Screen fields are not showing the description

    Hi
    I have copied a program, generated using SQVI, to a Zprogram, say Ztest,  and when I execute this Ztest the description of the fields on selection screen are coming as SP$00001, SP$00002 and so on.
    however if I execute the query made using SQVI the field description are the field descriptions.
    Can anybody help me resolve this, to show the field description in ZTest also.
    Thanks in advance!
    -Rahul

    Hi khanna_rahul,
    since quite a long time (10+ years) I do not use SE38 any longer - partly to avoid such errors as you are confronting now. In SE80 object tree, right mouse click on report, copy, in the popup mark everything, give new name(s) and that was it.
    For you it will be easier to just copy and paste between two sessions of report texts. Don't worry, system will ask for transport.
    Regards,
    Clemens
    N.B.: who does have much time and is willing to use it for useless tasks, will stick to SE38 until SAP removes it.

  • How gray out the fields in selection screen with parameters

    Hi,
    Can any one help me how to gray out the selection screen fields
    Start-of-selection----
    Parameters : p_status TYPE edids-status MODIF ID xyz DEFAULT co_51.
    End-of-selection----
    i want to grayed out the field p_status.
    except At selection-screeen output, can any one suggest the other method of gray out the above field.
    Thank u
    B Ravi Kumar

  • PR - material number gray out field

    hello
    I need to know if there is any way to gray out Material number field  in PR when I just enter to Tx Me51n.
    thks in advance.

    Dear,
    This action need to be done in development Enviro.
    go to IMG  screen -.> MMPuchasing---> Purchase Requisition --- > Screen Layout  , Choose ME51N (Screen Variant) field Material No choose Display.

  • Item Category Grayed Out (Not Available for Input)

    Hi Experts,
    I want to know SAPs logic for graying out it. cat. field (PSTYV) when entering an Order. Item category  cannot be changed while creating an order once its determined. How & why does SAP grays out it. cat. field and under which circumstances.
    My case: I have a configurable item and based on this item subsequent item and its it. cat. is determined, once SAP determines second item it is graying out it. cat fields on both items. Though in configuration I have manual it. cat. maintained for both items along with dependancies. Any info on this matter will be greatly appreciated.
    Thanks

    Hi Ron,
    Please refer to note 208245 as it has the answer of what you are looking for & possible workaround solution to meet your business requirement. Otherwise, please do not hesitate to update this forum.
    Thank you.
    Best regards,
    Huey Chin

  • Grayed Out Animated page Loading..../ Working... screen

    Is there a way to setup page onload process to display ...Loadnig.. / ...Working... grayed out (modal) screen while page loading?
    Thanks

    Yes!
    If you aren't using a js library like jQuery or ExtJS then you can create a 'bounce' page.
    Basically, all your bracnhes go to the same page (the bounce page) but you have a hidden item in that page that will hold the true target page.
    In the bounce page you have somthing like this in the HTML Header (assuming the bounce page is page 99 and the hidden item is called P99_TARGET)...
    <script type="text/javascript">
       function bounce(){
       var vHref = 'f?p=&APP_ID.:' + &P99_TARGET. + ':&APP_SESSION.::&DEBUG.::::';
       location = vHref;
    </script> And this in the HTML Body Attribute...
    onload="bounce()"Page 99 would be whatever you want it to be (even if its just one loading animated gif)
    Then your branches populate P99_TARGET with the correct page number - page 99 is displayed whilst they load.
    Other than that, there are quite a few javascript ways to do it.
    Thought I'd just share a different idea!
    Cheers
    Ben

  • R61i fingerprin​t login name grayed out already in use

    ThinkVantage asks for and verifies fingerprint then goes to a screen for enrolling a new user. My name is filled in but grayed out, the password field is available but when I enter my password and click continue it tells me that name is already in use (or something to that effect) but there is no way to change it, no way to get to any other choice. Please, please help....
    Moderator edit: Added more description to subject.

    Hi,
    can you describe a bit the environment in which yo uare using your system?
    Are you not using this as your terminal server? Just a guess.
    I can only imagine, that there is some confusion of the application, or it might be started twice.
    I have tried to test this and could not reproduce this situation.
    Can you describe me your environment.
    Cheers

  • Input screen feild to the standard screen.

    hi sap masters,
    i really appreciate the help that which you provide.
    i have standard sap screen where in i need to add my custum screen input field as date type syst-datum.
    i am using a badi where am able to add any number of fields however in screen how can i add an input screen field as date to the standard screen.
    waiting really for ur valuble answer. and thanks a lot in advance.
    pasala.

    Hi,
    For the Tcode REISCDCN, there is no screen exit available.
    However, there si a solution for the scenario that you want. On teh selection screen of REISCDCN, You have a button near "Execute" button called "DYNAMIC SELECTIONS".
    On click of this, you get all the fields related to contracts. Now you can click on teh date field taht you need . This in turn creates a selection option for this field, wherein you could pass on the selection criteria.
    Hope this solves your query...
    Get back in case of any query!
    Cheers,
    Varna

  • Screen field name

    Hi friend,
    In MB01, after giving the PO number and when the 'Adopt+Details' button is pressed, a new screen opens, in which there is a field 'Reference Doc'.
    My doubts on this field are as follows:
    1.  How to find out the screen field name for that field.
    2.  How to give a if condition for that field.
    Pls guide me.
    Regards,
    Mark K

    Hi Friends,
    Through F1, I am getting the field details as following :
       Program name   = SAPMM07M
       Screen no.     = 0210
       Screen field   = MSEG-LFBNR
       The value displayed in the field is '501809447'.
    Now I want to pass this field value to a variable.  How could I do this.
    Can you pls guide me.
    Regards,

Maybe you are looking for

  • 10.1.0.4 patch set results in corrupted database

    Hello! I have installed database 10g and applied the 10.1.0.4 patch set to it. After the successfully completed installation tasks, I have proceeded to the post-installation tasks. I have set the initialization parameters successfully and everything

  • JMS Control - receive-correlation-property

    Hi, I am using JMS Control in WLI 8.1. This is not a WLI JMS Control. Some application puts a message to Weblogic Queue. My JMS Control is subscribed to the queue. It gives the following error - when it receives the message... <Jun 15, 2004 4:02:56 P

  • Re: Mac OS X v10.7 Lion

    I had an issue with viewing option on the destop files! After setting up the way I want them (Snap to Grid) though they stay where they are while I am working but, once I restart, log out or shut down the computer, I find them repalced or moved aroun

  • WPUBON&WPUUMS

    Hi experts, I am new in working with SAP, so first of all sorry for my lack of knowledge. I am trying to send IDocs sales from POS DM to ECC system. I have two options, known customer sales(WPUBON) and non- known customer(WPUUMS), due to the informat

  • HT1399 I want to change my ipod from our Mac computer upstairs to the PC in the basement. How do I do that without loosing my songs?

    I have an older ipod shuffle. It was originally sinced to the MAC upstairs. I want to add it to my itunes account and sync it to my PC in the basement and not loose my songs.