How to activate or deactivate screen painters element through program?

i am using module pool programming ,
i want to activate or deactivate the screen painters elements  through programming how i can do it?

Hi,
You can perform active and deactive the fileds in the selection screen using AT SELECTION-SCREEN OUTPUT event. Loop the screen table and modify the content of a screen field inside the loop based on requirements.
Check this code.
selection-screen begin of block b1 with frame.
parameters: p_g1 radiobutton group gp1 default 'X' user-command chk,
p_g2 radiobutton group gp1.
selection-screen end of block b1.
selection-screen begin of block b2 with frame.
parameters: p_gltrp type afko-gltrp modif id g1.
parameters: p_werks type aufk-werks modif id g1.
parameters: p_datum type afko-gltrp modif id g2.
parameters: p_uzeit type aufk-werks modif id g2.
selection-screen end of block b2.
at selection-screen output.
loop at screen.
if p_g1 = 'X' and screen-group1 = 'G2'.
screen-active = 0.
modify screen.
endif.
if p_g2 = 'X' and screen-group1 = 'G1'.
screen-active = 0.
modify screen.
endif.
endloop.
Also try the below code to get some idea
report zsample.
TABLES:lfm1.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_lifnr FOR lfm1-lifnr .
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS:
r_asn RADIOBUTTON GROUP rad1 USER-COMMAND uc1 DEFAULT 'X',
r_ers RADIOBUTTON GROUP rad1 ,
r_830 RADIOBUTTON GROUP rad1,
r_850 RADIOBUTTON GROUP rad1,
r_862 RADIOBUTTON GROUP rad1,
r_810 RADIOBUTTON GROUP rad1,
r_820 RADIOBUTTON GROUP rad1,
r_824 RADIOBUTTON GROUP rad1.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
SELECT-OPTIONS: s_bstae FOR lfm1-bstae MODIF ID sd1.
PARAMETERS:
p_ekorg TYPE lfm1-ekorg MODIF ID md1,
p_evcode TYPE edp21-evcode MODIF ID md2,
p_kappl TYPE nach-kappl MODIF ID md3,
p_parvw TYPE nach-parvw MODIF ID md4,
p_kschl TYPE nach-kschl MODIF ID md5,
p_vakey TYPE nach-vakey MODIF ID md6,
p_werks TYPE werks_d MODIF ID md7,
p_bukrs TYPE lfb1-bukrs MODIF ID md8.
SELECTION-SCREEN END OF BLOCK b3.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF r_asn EQ 'X'
AND ( screen-group1 = 'MD3' OR screen-group1 = 'MD4'
OR screen-group1 = 'MD5' OR screen-group1 = 'MD6'
OR screen-group1 = 'MD7' OR screen-group1 = 'MD8' ) .
screen-active = '0'.
screen-invisible = '1'.
screen-input = '0'.
screen-output = '0'.
ELSEIF r_ers EQ 'X'
AND ( screen-group1 = 'SD1' OR screen-group1 = 'MD1'
OR screen-group1 = 'MD2' OR screen-group1 = 'MD3'
OR screen-group1 = 'MD4' OR screen-group1 = 'MD5'
OR screen-group1 = 'MD6' OR screen-group1 = 'MD7'
OR screen-group1 = 'MD8' ) .
screen-active = '0'.
screen-invisible = '1'.
screen-input = '0'.
screen-output = '0'.
ELSEIF r_830 EQ 'X'
AND ( screen-group1 = 'SD1' OR screen-group1 = 'MD1'
OR screen-group1 = 'MD2' OR screen-group1 = 'MD6'
OR screen-group1 = 'MD7' OR screen-group1 = 'MD8' ) .
screen-active = '0'.
screen-invisible = '1'.
screen-input = '0'.
screen-output = '0'.
ELSEIF r_850 EQ 'X'
AND ( screen-group1 = 'SD1' OR screen-group1 = 'MD1'
OR screen-group1 = 'MD2' OR screen-group1 = 'MD6'
OR screen-group1 = 'MD7' OR screen-group1 = 'MD8' ) .
screen-active = '0'.
screen-invisible = '1'.
screen-input = '0'.
screen-output = '0'.
ELSEIF r_862 EQ 'X'
AND ( screen-group1 = 'SD1' OR screen-group1 = 'MD1'
OR screen-group1 = 'MD2' OR screen-group1 = 'MD8' ) .
screen-active = '0'.
screen-invisible = '1'.
screen-input = '0'.
screen-output = '0'.
ELSEIF r_810 EQ 'X'
AND ( screen-group1 = 'MD3' OR screen-group1 = 'MD4'
OR screen-group1 = 'MD5' OR screen-group1 = 'MD6'
OR screen-group1 = 'MD7' OR screen-group1 = 'MD8' ) .
screen-active = '0'.
screen-invisible = '1'.
screen-input = '0'.
screen-output = '0'.
ELSEIF r_820 EQ 'X'
AND ( screen-group1 = 'SD1' OR screen-group1 = 'MD1'
OR screen-group1 = 'MD2' OR screen-group1 = 'MD3'
OR screen-group1 = 'MD4' OR screen-group1 = 'MD5'
OR screen-group1 = 'MD6' OR screen-group1 = 'MD7' ).
screen-active = '0'.
screen-invisible = '1'.
screen-input = '0'.
screen-output = '0'.
ELSEIF r_824 EQ 'X'
AND ( screen-group1 = 'SD1' OR screen-group1 = 'MD1'
OR screen-group1 = 'MD2' OR screen-group1 = 'MD3'
OR screen-group1 = 'MD4' OR screen-group1 = 'MD5'
OR screen-group1 = 'MD6' OR screen-group1 = 'MD7'
OR screen-group1 = 'MD8' ) .
screen-active = '0'.
screen-invisible = '1'.
screen-input = '0'.
screen-output = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Regards,
Chandru

Similar Messages

  • How to activate and deactivate the text fields in subscreens

    Hi  All,
    I have one requirement to activate and deactivate the fields in Sub screen.
    The requirement is initially the all screen fields are output field with some value .Suppose user want to edit the value, they choose the check box then automatically the sub screen fields are changed to input modeu2026
    How to validate these settings in the sub screens..
    Thanks & Regards,
    Samantula

    Hi,
      if it is report then use the both at-selection screen.
    if it is in dialog program  AT SELECTION-SCREEN OUTPUT instead of PBO and AT SELECTION-SCREEN instead of PAI
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_chk <> 'X' AND screen-name = 'FLATFILE'.
          screen-required = 0.
          screen-input = 0.
           MODIFY SCREEN.
         ENDIF.
    AT SELECTION-SCREEN.
      LOOP AT SCREEN.
        IF p_chk <> 'X' AND screen-name = 'FLATFILE'.
          screen-required = 0.
          screen-input = 0.
           MODIFY SCREEN.
        ELSEIF p_chk = 'X' AND screen-name = 'FLATFILE'.
           screen-input = 1.
           MODIFY SCREEN.
        ENDIF.
    Thanks & Regards,
    Vallamuthu.M

  • How to activate or deactivate a user-exit based a specific condition

    hi all,
    i want to activate or deactivate(make it trigger) a particular user-exit based in a condition.
    can i do that. if yes please tell me how.
    can we use COMMIT in user-exits or BADI's.
    Thanks & Regards,
    Saroja.

    Hello Saroja
    The solution provided by Rich should be used for testing purposes only in the the reverted sense:
    IF ( syst-uname ne '<specific user>' ).
      RETURN.
    ENDIF.
    " Execute user-exit for specific user
    However, for serious programming you should use a a better strategy. In principle, user-exits are either ON or OFF and, if they are ON, they are ON for <b>all </b>user which is usually not intended.
    The following example shows a (possible) strategy how to execute user-exits based on specific conditions.
    The SAP extension CATS0001 contains the component EXIT_SAPLCATS_001 with the following interface:
    FUNCTION EXIT_SAPLCATS_001.
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(SAP_TCATS) LIKE  TCATS STRUCTURE  TCATS
    *"     VALUE(SAP_PERNR) LIKE  CATSFIELDS-PERNR
    *"     VALUE(SAP_DATELEFT) LIKE  CATSFIELDS-DATELEFT
    *"     VALUE(SAP_DATERIGHT) LIKE  CATSFIELDS-DATERIGHT
    *"     VALUE(SAP_DATEFROM) LIKE  CATSFIELDS-DATEFROM OPTIONAL
    *"     VALUE(SAP_DATETO) LIKE  CATSFIELDS-DATETO OPTIONAL
    *"  TABLES
    *"      SAP_ICATSW STRUCTURE  CATSW
    *"      SAP_ICATSW_FIX STRUCTURE  CATSW OPTIONAL
      INCLUDE ZXCATU01.
    ENDFUNCTION.
    The include ZXCATU01 contains only the following coding:
      CALL FUNCTION 'Z_EXIT_SAPLCATS_001'
        EXPORTING
          sap_tcats            = sap_tcats
          sap_pernr            = sap_pernr
          sap_dateleft         = sap_dateleft
          sap_dateright        = sap_dateright
          SAP_DATEFROM         = SAP_DATEFROM
          SAP_DATETO           = SAP_DATETO
        tables
          sap_icatsw           = sap_icatsw
          SAP_ICATSW_FIX       = SAP_ICATSW_FIX.
    This function module is just a copy of the exit function module in the customer namespace.
    Let us assume that your condition at which the user-exit should be executed is that the employee (SAP_PERNR) belongs to a specific controlling area. Thus, we make another copy of the original exit function module and call this fm within the "general" customer-specific exit function module:
    FUNCTION z_exit_saplcats_001.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(SAP_TCATS) LIKE  TCATS STRUCTURE  TCATS
    *"     VALUE(SAP_PERNR) LIKE  CATSFIELDS-PERNR
    *"     VALUE(SAP_DATELEFT) LIKE  CATSFIELDS-DATELEFT
    *"     VALUE(SAP_DATERIGHT) LIKE  CATSFIELDS-DATERIGHT
    *"     VALUE(SAP_DATEFROM) LIKE  CATSFIELDS-DATEFROM OPTIONAL
    *"     VALUE(SAP_DATETO) LIKE  CATSFIELDS-DATETO OPTIONAL
    *"  TABLES
    *"      SAP_ICATSW STRUCTURE  CATSW
    *"      SAP_ICATSW_FIX STRUCTURE  CATSW OPTIONAL
    " User-Exit specific for employees (SAP_PERNR)
    " belonging to controlling area 1000
      CALL FUNCTION 'Z_EXIT_SAPLCATS_001_1000'
        EXPORTING
          sap_tcats      = sap_tcats
          sap_pernr      = sap_pernr
          sap_dateleft   = sap_dateleft
          sap_dateright  = sap_dateright
          sap_datefrom   = sap_datefrom
          sap_dateto     = sap_dateto
        TABLES
          sap_icatsw     = sap_icatsw
          sap_icatsw_fix = sap_icatsw_fix.
    " User-Exit specific for employees (SAP_PERNR)
    " belonging to controlling area 2000
      CALL FUNCTION 'Z_EXIT_SAPLCATS_001_2000'
        EXPORTING
          sap_tcats      = sap_tcats
          sap_pernr      = sap_pernr
          sap_dateleft   = sap_dateleft
          sap_dateright  = sap_dateright
          sap_datefrom   = sap_datefrom
          sap_dateto     = sap_dateto
        TABLES
          sap_icatsw     = sap_icatsw
          sap_icatsw_fix = sap_icatsw_fix.
    ENDFUNCTION.
    Finally, within the specific exit function module we define the condition when the exit should be executed:
    FUNCTION z_exit_saplcats_001_1000.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(SAP_TCATS) LIKE  TCATS STRUCTURE  TCATS
    *"     VALUE(SAP_PERNR) LIKE  CATSFIELDS-PERNR
    *"     VALUE(SAP_DATELEFT) LIKE  CATSFIELDS-DATELEFT
    *"     VALUE(SAP_DATERIGHT) LIKE  CATSFIELDS-DATERIGHT
    *"     VALUE(SAP_DATEFROM) LIKE  CATSFIELDS-DATEFROM OPTIONAL
    *"     VALUE(SAP_DATETO) LIKE  CATSFIELDS-DATETO OPTIONAL
    *"  TABLES
    *"      SAP_ICATSW STRUCTURE  CATSW
    *"      SAP_ICATSW_FIX STRUCTURE  CATSW OPTIONAL
      IF ( <user BELONGS to CONTROLLING area 1000> ).
        "   execute user-exit
      ELSE.
        RETURN.
      ENDIF.
    ENDFUNCTION.
    The alternative would be to place the entire coding including the conditions in the include ZXCATU01. However, in this case you can test the user exit <b>only in the context of the transaction</b> in which the user-exit is passed.
    Using the strategy I have devised you are able to test the user-exit in general and the specific user-exits <b>independent </b>of the transaction. For example, if you are already working on 6.40 or higher then you could use ABAP Unit Testing for this purpose.
    The same logic can be applied for BAdI where we can have only a single active implementation.
    Finally, I hope to convince that it makes sense to spend some time into a reasonable strategy for implementing user-exits.
    Regards
      Uwe

  • How to activate the logon screen modification

    Hi,
    i modified the logon screen with some other pictures colours and texts. But I don't find how to activate this.
    I'm on EP6 sp7. The document that is available is can be used only for EP6 SP 2.
    Is there any body who can help me?
    Thanks

    you should change the pictures in the rootfolder of the IRJ directory.
    good luck,
    Daniel

  • How to use dynamic selection screen inputs in main program

    hi all,
      its a report where in it calls one dynamic selection screen( user need to enter the parameters here) after that i need to use those inputs for some check, can any buddy help how to use/ get that input parameters into main program.
    regards,
    vara..

    Hi,
    i think u have created that dynamic selection screen in seperate program and calling to ur main program.instead of that u just create that synamic selection screen program as include program and include it in ur main program.
    or u need to use set/get parameter id concept.
    rgds,
    bharat.

  • How to activate map view in photoshop elements(german)

    Hi,
    I've just bought photoshop elements(german).
    How do i acitvate the map view?
    cheers
    manuel

    Sadly no. Because you can only change the language by uninstalling and reinstalling (as far as I know).
    And even then you would have to reinstall it in English (NorthAmerica) contrary to English (International). Which will probably not accept your serial number.
    I believe this is caused by Adobe making use of Google Maps. If they switched over to Openstreetmaps or Bing Maps (or whatever the Microsoft pendant ist called) they could probably make this feature available worldwide.
    Best file a feature request ( https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform ) and step someone at Adobe on their toes ;-)

  • I don't have access to my OLD computer to deactivate the Photoshop Elements 9 program

    I don't have my OLD computer (I returned it to the manufacturer HP because of defects, after deleting the entire memory. So I can't deactivate the program installation on that OLD computer  and the program won't allow me to install it on the NEW computer (it's written that I have reached the limits of 2 installations. I had only installed it on my OlD computer (twice, because of computer defect and resetting). What do I do? And who can help deactivate my OLD computer (without me having to pay $39!!!!)
    Thank you.

    Only Adobe customer support can resolve activation issues.  You can contact them:
    http://helpx.adobe.com/contact/index.html
    If an agent is available, you can initiate an online chat session to resolve activation issues on the spot.
    Ken

  • How to activate a script when not in target program?

    So I'm trying to make a script that will rate my itunes songs when I'm not actually in the program. I found a how-to that lets me make a keyboard shortcut to rate the song while iTunes is the active program, but I'd like to make this work at all times.
    tell application "iTunes"
    repeat with theTrack in (get selection)
    set the rating of theTrack to 20
    end repeat
    end tell
    Any one know how to do this? Is there a script folder I can put this where it won't matter what program is the active program?
    thanks!

    This script doesn't require iTunes to be the active application, it should work from any app if the script is placed into the system wide script menu. Unfortunately it does not work on a "selection" in iTunes which would require iTunes to be the active app so you could make the selection (catch 22). It does work on either the current track or album of the current track and can set half star ratings. Setting a rating to zero will remove it.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #FF0000;
    width: 720px; height: 335px;
    color: #000000;
    background-color: #ffff99;
    overflow: auto;">
    try
    try
    tell application "System Events" to if application "iTunes" is not running then error number -128
    on error
    tell application "System Events" to if "iTunes" is not in (get name of every process) then error number -128
    end try
    set stars to {"0", ".5", "1", "1.5", "2", "2.5", "3", "3.5", "4", "4.5", "5"}
    tell current application
    set alb to button returned of (display dialog "Set album or track rating?" buttons {"Album", "Track"} default button 2)
    set val to (choose from list stars with title "Tune Stars" with prompt "How many?")
    end tell
    set val to (20 * val as real) as integer
    tell application "iTunes"
    if alb is "Track" then
    set rating of (get current track) to val
    else
    set album rating of (get current track) to val
    end if
    end tell
    on error errMsg number errNum
    error number -128
    end try
    </pre>

  • Selection screen in type m program

    How can we define Selection screen in type m program?
    Moderator message - please search the forum before asking. Thread locked.
    Edited by: Rob Burbank on Sep 20, 2009 2:19 PM

    Hi Anil ,
    Type M are module pool programs.
    For these you have to create you screen and then determine their flow in your program.
    These are executed by transactions.
    Search tutorials on module pool program .
    Hope its help you

  • Duplicate iPad screen on HDTV through air play

    How do I duplicate iPad screen on HDTV through air play?

    You need an iPad 2 or 3 (new iPad).
    The iPad 1 only allows basic Airplay.
    The iPad needs to be on the same network as the AppleTV.
    Airplay needs to be enabled (or not disabled) in AppleTV settings.
    On iPad, press the Home button twice, swipe to the leftmost screen where if AppleTv is detected you should have an Airplay option and a slider to turn on mirroring.  If you have a compatible ipad and don't see this try rebooting all devices and your router.
    AC

  • How to activate WBS Element in Sales Order

    Dear All,
    How to activate WBS element in sales order?
    Thanks & Regards,
    PM

    Basically in case of Repair and overhaul material is taking inside for repair purpose..for that we create service order in which we r creating component, operation(time. labor, machine) besides we create notification to allow overhead activity for this special activity..
    once this service order r created and notification is set.. we r estimating cost for this process and updating sales price(DP82) which further send to customer for approval.. once v receive approval v issue a goods along with parental serviceable material to Plant for Plant maintenance estimation..
    so all this procedure obey just like project , in this case we have to assign WBS element into sales order level..
    WBS elemet is nothing simply its hierarchy which shows what r the steps followed in project(CJ20N)..
    Correct me if i m wrong..
    thanks
    Mk

  • I have just got my first apple device, iphone 3G S. After iserting sim it does not work, cant go beyond first screen. How to activate? I am in Delhi, India.

    Hi,
    I have just got my first apple device, iphone 3G S. After iserting sim it does not work, cant go beyond first screen. How to activate it? I am in Delhi, India.Any suggestions.
    Satish

    would be best if you can download the guide here
    http://support.apple.com/manuals/#iphone

  • How to add one value into Input Entry Screen of Element

    Hi ,
    How to change the "Input Value" of Element which has already been processed and assigned. Its not allowing to update even though its been date tracked.
    I want to add one more Value into Input Value screen.
    Thanks
    Ram

    You cannot remove existing input values or add new one if you have created any entries for the element
    to know more details to maintain an element you can refer the following link
    http://ramesh-oraclehrms.blogspot.com/2007/08/maintaining-element.html
    Regards
    Ramesh Kumar S

  • How to display the selection screen with icons as well as with text element

    How to display the selection screen with icons as well as with texts (written in text elements) for PlantDate, OrderType,WareHouse..

    Report zex33.
    type-pools: icon.
    selection-screen begin of line.
    selection-screen comment 1(20) text_001.
    parameters: p_werks type marc-werks.
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) text_002.
    parameters: p_whouse(10).
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) text_003.
    parameters: p_auart like vbak-auart.
    selection-screen end of line.
    initialization.
      write ICON_PLANT  as icon to text_001.
    concatenate text_001 text-001 into text_001 separated by space.
      write ICON_WAREHOUSE  as icon to text_002.
    concatenate text_002 text-002 into text_002 separated by space.
      write ICON_ORDER  as icon to text_003.
    concatenate text_003 text-003 into text_003 separated by space.

  • How do i disable the startup splash screen in elements 9

    How do i disable the startup splash screen in elements 9

    Try making a direct shortcut for the Organizer and Editor. Make sure you have the correct file path as there is more than one exe file. You can then launch the programs directly from the desktop bypassing the welcome screen. This is generally better as the welcome screen leaves background processes running.
    On Windows, Right click anywhere on the desktop and select New >> Shortcut
    Then click the browse button and navigate to:
    "C:\Program Files\Adobe\Elements 9 Organizer\PhotoshopElementsOrganizer.exe"
    Then click Next; then click Finish
    Then make a direct shortcut for the Editor in a similar manner.
    On Windows, Right click anywhere on the desktop and select New >> Shortcut
    Then click the browse button and navigate to:
    "C:\Program Files\Adobe\Photoshop Elements 9\PhotoshopElementsEditor.exe"
    Then click Next; then click Finish
    N.B. on 64 bit systems navigate to Program Files (x86)

Maybe you are looking for

  • Itunes could not back up the iphone

    When I try to sync my Iphone i get an error "Itunes could not back up the iphone because it could not be saved to the computer" How do i fix this. I have the current software for the iphone and using itunes 9. I have 2 iphones that sync to this compu

  • Can't upload files to builder on new glassfish install

    Hi, Running Application Express 4.1.0.00.32 on Oracle Glassfish Server 3.2.1. Our new install is up and we are getting our applications mostly up and running but encountering one weird thing. We can't upload any files to the Apex builder, e.g. an ima

  • System Language is Mixed Up

    I have just started my new Retina Display MacBook Pro 15" with 10.8.2.  Noticed that some system popup windows and buttons are in a different language other than English. I have everything checked as English in the Language Preferences. Also, it appe

  • Printing multiple panels

    Hi, I am developing a custom invoice report with layout (everything included in main section) spread across 2 pages. The whole of first page (customer copy) is in one repeating frame and the other page (guarantor) is in another repeating frame both r

  • Why do I get a beveled border when creating e-promotions?

    When creating an HTML document for e-promo, I used to get a flat border when I designated border. Recently, I've been getting a beveled border from Firefox, no matter if I use HTML or CSS. This is not happening with other browsers.