Hiding a selection screen
Hi,
I have a small issue in hding a selection screen.I am able to hide the screen but when i use a push button to display it i am not able to it.Can some one tell me where i am going wrong .I am herewith sending you the code.If i use the flas then it works.
TABLES VBAK.
SELECTION-SCREEN BEGIN OF SCREEN 9000.
SELECTION-SCREEN PUSHBUTTON 10(5) PB1 USER-COMMAND AB1.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : P_VBELN FOR VBAK-VBELN MODIF ID A1.
SELECTION-SCREEN END OF BLOCK B1.
*DATA FLAG.
SELECTION-SCREEN END OF SCREEN 9000.
INITIALIZATION.
PB1 = 'Push'.
*FLAG = 0.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'A1'.
SCREEN-ACTIVE = 0.
SCREEN-ACTIVE = FLAG.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
START-OF-SELECTION.
CALL SELECTION-SCREEN 9000.
AT SELECTION-SCREEN.
CASE SY-UCOMM.
WHEN 'AB1'.
CLEAR FLAG.
FLAG = 1.
CLEAR SCREEN.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'A1'.
SCREEN-ACTIVE = 1.
SCREEN-ACTIVE = FLAG.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDCASE.
I do not want to use the flag.Can someone tell me what should i do to rectify it.
Thanks
Regards
Harish
Try this
TABLES: VBAK.
DATA ok_code TYPE sy-ucomm.
SELECTION-SCREEN BEGIN OF SCREEN 9000.
SELECTION-SCREEN PUSHBUTTON 10(5) PB1 USER-COMMAND AB1.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : P_VBELN FOR VBAK-VBELN MODIF ID A1.
SELECTION-SCREEN END OF BLOCK B1.
*DATA FLAG.
SELECTION-SCREEN END OF SCREEN 9000.
INITIALIZATION.
PB1 = 'Push'.
*FLAG = 0.
AT SELECTION-SCREEN.
ok_code = sy-ucomm.
AT SELECTION-SCREEN OUTPUT.
CASE ok_code.
WHEN 'AB1'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'A1'.
SCREEN-ACTIVE = 1.
* SCREEN-ACTIVE = FLAG.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
WHEN OTHERS.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'A1'.
SCREEN-ACTIVE = 0.
* SCREEN-ACTIVE = FLAG.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDCASE.
START-OF-SELECTION.
CALL SELECTION-SCREEN 9000.
Similar Messages
-
Hiding a selection screen field for Standard Report Transaction
Hello All,
We are trying to hide a check box on the selection screen for a standard sap report transaction (s_alr....). We can hide it by creating a variant but then if the users don't select it, the checkbox will be visible. We can't use transaction variant to hide this since its not a dialog transaction.
We don't want any users to select that option by clicking on the checkbox and then running the report. Any suggestions or help is much appreciated.
Thanks,
SalDid you think about modifying the standard report by adding NO-DISPLAY to the parameter option?
If you are not allowed to modify another option - although much more effort - would be to replicate the standard selection screen in an own Z-report and at the end do a SUBMIT standard report WITH parameter
In your won report you can easily hide that parameter and always pass a space to the standard report.
To submit data to the standard report just use
DATA: lt_par TYPE TABLE OF rsparams.
build the selection table based on the selection criteria the user entered and do:
SUBMIT rep USING SELECTION-SCREEN 1000
WITH SELECTION-TABLE lt_par.
Then just remove access to the standard transaction and create an own transaction for your custom report which is added to the users authorized transactions.
Not the easiest way to do it, but it does work.
Regards,
Michael -
Hiding the Selection-screen contents
Hi all,
I wants to hide below selection screen contents(do'nt wants to display in the output)
SELECTION-SCREEN BEGIN OF BLOCK alv WITH FRAME TITLE alvframe.
PARAMETERS:
p_layout LIKE disvariant-variant,
p_list RADIOBUTTON GROUP alv ,
p_grid RADIOBUTTON GROUP alv DEFAULT 'X' .
SELECTION-SCREEN END OF BLOCK alv.
How to do this?
Thanks
Umeshwrite as below ...
SELECTION-SCREEN BEGIN OF BLOCK alv WITH FRAME TITLE alvframe.
PARAMETERS:
p_layout LIKE disvariant-variant modif id abc,
p_list RADIOBUTTON GROUP alv modif id abc,
p_grid RADIOBUTTON GROUP alv DEFAULT 'X' modif id abc .
SELECTION-SCREEN END OF BLOCK alv.
INITIALIZATION.
loop at screen.
if screen-group1 eq 'ABC'.
screen-active = 0.
modify screen.
endif.
endloop. -
Hiding the selection screen blocks
Hello SDNers,
This is my scenario.
I need to have 2 selection screens ie b1 and b2.
initially b2 should be hidden and when i make a selection on b1 the block b2 should be displayed.
Eg :
selection-screen begin of block B1.
parmeter : r_cust radiobutton group grp1,
r_ven t radiobutton group grp1.
selection-screen end of block B1.
selection-screen begin of block B2.
parmeter : r_cret radiobutton group grp2,
r_chg radiobutton group grp2,
r_disp radiobutton group grp2,
selection-screen end of block B2.
Is this possible if yes please paste a sample snippet for understanding.
Help would be highly appreciated and rewarded.
Thanks in advance
Regards,
Ranjith NHi...
Please check the code...
It will solve your problem
selection-screen: begin of block c1 with frame title text-001.
selection-screen skip.
parameter: p_singl type char01 radiobutton group rsel
default 'X' user-command s_per, " Single record
p_mult type char01 radiobutton group rsel." Multiple recrd
selection-screen: end of block c1.
selection-screen: begin of block c2 with frame title text-001.
selection-screen skip.
parameter: p_matnr type matnr modif id m1, " KMAT
p_atwrt type zcatnum modif id m1, " Catalog string
p_sr_des type atwrt modif id m1. " Series Designator
selection-screen: end of block c2.
selection-screen: begin of block c3 with frame title text-001.
selection-screen skip.
PARAMETER: p_pc radiobutton group err user-command ucomm
modif id m4, " Presentation server
p_server radiobutton group err default 'X'
modif id m4, " Application server
p_f_pc type localfile modif id m3, " PC file name
p_fname type localfile modif id m2. " Apltn srvr file path
selection-screen: end of block c3.
at selection-screen output.
Design selection parameters dynamically
perform sub_set_file_param.
form sub_set_file_param .
loop at screen.
If single record is checked
if p_singl is not initial.
if screen-group1 = 'M2' or
screen-group1 = 'M3' or
screen-group1 = 'M4'.
screen-active = 0.
endif.
If multiple record and application server is checked
elseif p_mult is not initial and
p_server is not initial.
if screen-group1 = 'M1' or
screen-group1 = 'M3' .
screen-active = 0.
endif.
If multiple record and presentation server is checked
elseif p_mult is not initial and
p_pc is not initial.
if screen-group1 = 'M1' or
screen-group1 = 'M2' .
screen-active = 0.
endif.
endif.
Modify the screen
modify screen.
endloop.
endform. " sub_set_file_param
Thanks
Subhankar -
Problem with Hiding fields of selection screen which is called as subscreen
Hello All,
I have problem while hiding the selection screen which is called as subscreen.
Flow of my logic:
Selection-screen with one field and three buttons CREATE,DISPLAY and CHANGE in application toolbar.
user enter some value in field and either he press change or dispaly
When change i need to call selection screen when it is in dispaly i need to stop calling this selection screen.
Upto my knowledge we can't stop calling selection screen in display mode so there is only one possibility is hiding the fields when it is in display mode.
How can i hide the fields and where i need to hide fields?
Please post some codes.
Regards,
Lisayou can refer the sample code which i mentioned in your previous post. that will solve the problem.
-
Filtering of the data based upon the selection screen data using ldb
Hi Experts ,
I am using ldb pnpce, for my report ,and i created my own report category with selection paramaters
action type and payroll area
now the problem is when i am giving the action type as Z0 ,the data to be extracted is not getting filtered
based upon the action type ,the data consists the records having different action types other than Z0
Please give me some solution for thisThanks Durga ,but the link wat ever u was for hiding the selection screen fields
but my question is when am using get pernr event my data is not getting filtered with the selection screen paramater value
i,e m giving action type as only hiring ,but m getting the data for all the action types ,its not filtering based upon my selection -
Hideing the select options in selection screen
I have 2 radio buttons in the selection screen.
SELECTION-SCREEN BEGIN OF BLOCK b2 with frame title text-018.
parameters : GR1 Radiobutton group rg1 default 'X',
GR2 Radiobutton group rg1.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b1 with frame title text-017.
Select-options : z_s_werk for t001w-werks obligatory,
z_s_matn for marc-matnr,
z_s_bdat for mkpf-budat obligatory.
z_s_lifn for mseg-lifnr.
z_s_sgtx for mseg-sgtxt.
z_s_bwar for mseg-bwart.
SELECTION-SCREEN END OF BLOCK b1.
if GR1 = 'X'.
i have to hide z_s_sgtx for mseg-sgtxt.
if GR2 = X.
I have to hide z_s_lifn for mseg-lifnr.
is there any way for hideing this.
Regards,
Selvapriya S.hi,
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-018.
PARAMETERS : gr1 RADIOBUTTON GROUP rg1 DEFAULT 'X' USER-COMMAND ud,
gr2 RADIOBUTTON GROUP rg1.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-017.
" Remove obligatory and do validations for the fileds which have OBLIGATORY at EVENT
" AT SELECTION-SCREEN .
SELECT-OPTIONS : z_s_werk FOR t001w-werks ,"(OBLIGATORY)
z_s_matn FOR marc-matnr,
z_s_bdat FOR mkpf-budat," OBLIGATORY,
z_s_lifn FOR mseg-lifnr,
z_s_sgtx FOR mseg-sgtxt,
z_s_bwar FOR mseg-bwart.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN OUTPUT.
IF gr1 = 'X'.
LOOP AT SCREEN.
IF screen-name = 'Z_S_SGTX-LOW' OR
screen-name = 'Z_S_SGTX-HIGH' OR
screen-name = '%_Z_S_SGTX_%_APP_%-VALU_PUSH' OR
screen-name = '%_Z_S_SGTX_%_APP_%-VALU_PUSH' OR
screen-name = '%_Z_S_SGTX_%_APP_%-TO_TEXT' OR
screen-name = '%_Z_S_SGTX_%_APP_%-OPTI_PUSH' OR
screen-name = '%_Z_S_SGTX_%_APP_%-TEXT'.
screen-active = 0.
ELSE.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF screen-name = 'Z_S_LIFN-LOW' OR
screen-name = 'Z_S_LIFN-HIGH' OR
screen-name = '%_Z_S_LIFN_%_APP_%-VALU_PUSH' OR
screen-name = '%_Z_S_LIFN_%_APP_%-VALU_PUSH' OR
screen-name = '%_Z_S_LIFN_%_APP_%-TO_TEXT' OR
screen-name = '%_Z_S_LIFN_%_APP_%-OPTI_PUSH' OR
screen-name = '%_Z_S_LIFN_%_APP_%-TEXT'.
screen-active = 0.
ELSE.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
for example.
AT SELECTION-SCREEN on Z_S_SGTX.
if Z_S_SGTX is initial.
" Raise an error message here
Endif.
Thanks & REgards -
Hi All,
I have a requirment to hide a selection-screen block based on the radio button option displayed in selection-screen.
I am able to do this, but in this block there are some mandatory fields to be filled .
So every time when i change the radio button , i have to fill the mandatory fields in order to hide it .
Pls let me know how to hide a block without entering the mandatory fields in it .
Thanks & Regards,
Rajasekhar.Hi Rajasekhar,
Either remove the 'obligatory' keyword from the syntax when you declare the mandatory fields, rather, check in your program, whether these fields are filled for suitable radio-button corresponding to that block, and if these are empty, give error message 'Fill in required fields'. Thus while hiding the block for a different radio-button You do not require to fill these fields.
Else, just code some default values in the program to these mandatory fields, so that You need not enter the values to these fields before hiding the block.
Regards,
Birendra -
Hiding Screen fields in a Report selection screen
Hi Experts,
I have a requirement to hide/disable screen fields in a report selection screen when the user clicks on some radio buttons .
Here is the scenario,
1) There are 4 radio buttons four radiobuttons in one group on the selection screen:--
Block no:1
PARAMETER: r_not TYPE c RADIOBUTTON GROUP a1 DEFAULT 'X'.
PARAMETER: r_prgs TYPE c RADIOBUTTON GROUP a1.
PARAMETER: r_remv TYPE c RADIOBUTTON GROUP a1.
PARAMETER: r_noresp TYPE c RADIOBUTTON GROUP a1.
2) Based on the user clicking/selecting the radio buttons no.2,3 nad 4 i need to hide some fields in the other selection block
in the selection screen.The parameters are as follows:
Block no:2( These fields need to be hidden/disabled)
PARAMETER: r_occ(3) TYPE c OBLIGATORY DEFAULT '1'.
PARAMETER: r_and TYPE c RADIOBUTTON GROUP g1.
PARAMETER: r_or TYPE c RADIOBUTTON GROUP g1.
PARAMETER: r_days(3) TYPE c OBLIGATORY DEFAULT '1'.
ThanksContd.....
AT SELECTION-SCREEN.
CASE SSCRFIELDS-UCOMM.
"When Customer button is clicked set flag 1
WHEN 'FC01'.
L_FLAG = '1'.
"When Sales Order button is clicked set flag 2
WHEN 'FC02'. "Sales order
L_FLAG = '2'.
"When Execute button is clicked set flag 4
WHEN OTHERS.
L_FLAG = '4'.
ENDCASE.
AT SELECTION-SCREEN OUTPUT.
CASE L_FLAG.
WHEN '1'. "When Customer button is clicked
LOOP AT SCREEN.
"Set the Production and Customer Block as inactive
IF SCREEN-GROUP1 = 'BL1' OR SCREEN-GROUP1 = 'BL3'.
SCREEN-ACTIVE = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
WHEN '2'. "When Sales Order button is clicked
LOOP AT SCREEN.
"Set the Production and Customer Block as inactive
IF SCREEN-GROUP1 = 'BL1' OR SCREEN-GROUP1 = 'BL2'.
SCREEN-ACTIVE = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
WHEN '3'. "When Refresh button is clicked
LOOP AT SCREEN.
"Set the all Blocks as active
IF SCREEN-GROUP1 = 'BL2' OR SCREEN-GROUP1 = 'BL3' OR SCREEN-GROUP1 = 'BL1'.
SCREEN-ACTIVE = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
WHEN OTHERS."When Execute button is clicked
"Set the Sales order and Customer Block as inactive
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'BL2' OR SCREEN-GROUP1 = 'BL3'.
SCREEN-ACTIVE = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDCASE.
ENDFORM. -
Hiding fields in Report Selection Screen which have Mandatory Fields
Hi Friends,
I have 2 Radio Buttons. PO and SO. If PO is selected, user need to input the Plant value in the Sel.Scrn which is mandatory and Storage Location field will be invisible.
If SO is selected, then user need to input the Plant and Storage Location value which are mandatory. Now Storage Location will be visible.
When radio button SO is seleted, SAP triggers an error message as 'Make an entry in all required fields' without displaying Storage Location input field in Sele. Scrn.
How to do this.? I checked in SCN and not find perfect match to solve for Mandatory Input Fields.
Regards,
SureshHi,
Yes. What Rob has told is correct. Try like this.
AT SELECTION-SCREEN.
IF po_po EQ 'X'.
IF so_werks[] IS INITIAL.
MESSAGE 'Please enter plant' TYPE 'E'.
ENDIF.
ELSE.
IF so_lgort[] IS INITIAL.
MESSAGE 'Please enter storage location' TYPE 'E'.
ENDIF.
IF so_werks[] IS INITIAL.
MESSAGE 'Please enter plant' TYPE 'E'.
ENDIF.
ENDIF.
Thanks,
Vinod. -
Hiding some fields in default selection screen in hr abap created by pernr
Hi experts,
I have created default selection screen,in that in the Period option I wants display only 'Today'.
And in the selection criteria i wants to display personnel number,companycode,personnelsubarea,employee status and instead of payroll area i wants to display 'Org unit'.please tell me step by step procedure,that could be greate helpfull.
Thanks in advance,
mohanhi mohan,
try this
**Local constants
CONSTANTS:
c_0 VALUE '0' ,
c_089 TYPE char3 VALUE '089',
c_091 TYPE char3 VALUE '091',
c_095 TYPE char3 VALUE '095',
c_097 TYPE char3 VALUE '097'.
At Selection Screen
at selection-screen output.
LOOP AT screen.
IF
screen-group4 = c_089 OR
screen-group4 = c_091 OR
screen-group4 = c_095 OR
screen-group4 = c_097 .
screen-active = c_0.
MODIFY SCREEN.
ENDIF.
ENDLOOP. -
Hiding of Select Options in screen based on selection in selection list box
Hi People,
I have a screen where i have put a selection list box, it is pre-filled with values, Now based on the value which user selects, I want to show/hide some select-options fields. I have declared the select options in the top include of my program,
SELECT-OPTIONS: so_user FOR ls_rsp_user-user_id MODIF ID 222,
so_userg FOR ls_rsp_usergrp-user_grp_id MODIF ID 333,
so_ccode FOR ls_vdmp-bukrs MODIF ID 444,
then in the PBO of my screen, I have written a module, set screen in which I loop over screen & check the group id's
LOOP AT SCREEN.
IF screen-group1 = '111'.
IF gv_hier_resp_fields_flag IS NOT INITIAL.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
ELSEIF screen-group1 = '222'.
IF gv_user_fields_flag IS NOT INITIAL.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
ELSEIF screen-group1 = '333'.
IF gv_user_group_fields_flag IS NOT INITIAL.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
I am setting some flags based on the value which user selects in the selection list box, When I debugged I found that the flags were being set correctly, but the screen group value never set to '222' or '333', these are id's i have used for select options. Hence I am unable to hide/show the select options fields. Kindly suggest some solutions for this.
Thanks & Regards,
Deepakthen in the PBO of my screen
Your SELECT-OPTIONS are defined in a SELECTION-SCREEN so the PBO actions must be maintained in a AT SELECTION-SCREEN OUTPUT block.
I suppose the selection-screen is a subscreen, if you dont want to get unwanted interactions with a main selection-screen of the report, check sy-dynnr
AT SELECTION-SCREEN OUTPUT.
CASE sy-dynnr.
WHEN '1000'. " main screen of report
WHEN '0100'. " selection-screen defined as subscreen
LOOP AT SCREEN.
CASE SCREEN-GROUP1.
WHEN '111'.
ENDCASE.
ENDLOOP.
ENDCASE.
Regards,
Raymond -
Hiding variable values in the input selection screen.
Hello Experts,
We have an authorisation relevant characteristic on which we have built a variable. We have restricted few values for this characteristic through the analysis authorisation.
The business requirement is that these values which are maintained in the analysis authorisation should not be populated in the input selection screen for that particular variable. In other words we have to hide these values but the variable should a part of input selection screen.
Can anyone please guide on how can we hide these variable values inspite of maintaining them in our analysis authorisations.
Thanks..
Best Regds,
Suyog...Hi Suyog,
Have you got any solution on this issue. I have same kind of issue in BI7. When running the RSRT transaction manager has to give some comments for a document option. but the subordinates should not modify or see the comments. Is there any way to restrict this access to certain users. Our requirement is to either disable the document option or should not appear in the list.
please give your inputs to find a way to solution.
Thanks in advance.
Regards,,
Appala Raju -
Hiding some fields in default selection screen in hr abap
Hi Experts,
I am new to hr abap.I have created default selection screen by using LDB .in that i wants to display only the personnel number field.
could any help me how to hide further selections,sort order and search helps at top of screen.
thanks in advace,
mohanuse
at slection-screen output.
loop at screen.
if screen-name = 'PNPBUKRS'. (example)
screen-active = '0'.
endif.
modify screen.
endloop.
==========================
u can do it as group wise also.
loop at screen.
if screen-group1 = 'group name'. (could be group1,2,3,4)
screen-active = '0'.
endif.
modify screen.
endloop.
====================
Hi,
Can u tell me which LDB and report category u are using so that i will send u the code as per the req.
If the above code suits to ur req. pls reward the points.
Regards
eswar -
Hiding and Unhiding Fields On The Selection Screen
Hi Guys/Dolls
I've managed to grey out and hide some fields on a selection screen within the AT SELECTION-SCREEN OUTPUT section but don't know how to re-instate them.
basically on initial entry of the screen some fields are hidden but once I enter some pre-requisite data I need to display them but in a greyed out manner.
I've done the first bit but don't know how to do the 2nd bit i.e re-display the fields.
Any help would be appreciated.
Many thanks in advance.
Raj
My code is as follows:-
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION POS_LOW.
PARAMETERS: begcalsh LIKE t549q-begda MODIF ID pe4.
SELECTION-SCREEN COMMENT (1) text-199 FOR FIELD endcalsh
MODIF ID pe4.
PARAMETERS: endcalsh LIKE t549q-endda MODIF ID pe4.
SELECTION-SCREEN POSITION POS_HIGH.
PARAMETERS: begrefsh LIKE t549q-begda MODIF ID pe5.
SELECTION-SCREEN COMMENT (1) text-199 FOR FIELD endrefsh
MODIF ID pe5.
PARAMETERS: endrefsh LIKE t549q-endda MODIF ID pe5.
SELECTION-SCREEN END OF LINE.
AT SELECTION-SCREEN OUTPUT.
* Grey out the parameters.
PERFORM params_grey_in_out USING 'false' 'PE4'.
PERFORM params_grey_in_out USING 'false' 'PE5'.
* Hide the parameters.
PERFORM params_show_hide USING 'false' 'PE4'.
PERFORM params_show_hide USING 'false' 'PE5'.
AT SELECTION-SCREEN.
PERFORM params_show_hide USING 'true' 'PE4'.
PERFORM params_show_hide USING 'true' 'PE5'.
*& Form params_grey_in_out
FORM params_grey_in_out USING value(iv_triggering_param)
value(iv_screen_group).
*this form activates fields with MODIF ID = IV_SCREEN_GROUP
*if IV_TRIGGERING_PARAM eq TRUE and greys them out otherwise.
DATA lx_input LIKE screen-input.
IF iv_triggering_param EQ 'true'.
lx_input = 1.
ELSE.
lx_input = 0.
ENDIF.
LOOP AT SCREEN.
IF screen-group1 EQ iv_screen_group.
screen-input = lx_input.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDFORM. " params_grey_in_out
*& Form params_show_hide
FORM params_show_hide USING value(iv_triggering_param)
value(iv_screen_group).
*this form displays fields with MODIF ID = IV_SCREEN_GROUP
*if IV_TRIGGERING_PARAM eq TRUE and hides them otherwise.
DATA lx_active LIKE screen-active. "(1) type n.
DATA lx_invisible LIKE screen-active. "(1) type n.
IF iv_triggering_param EQ 'true'.
lx_active = 1.
lx_invisible = 0.
ELSE.
lx_active = 0.
lx_invisible = 1.
ENDIF.
LOOP AT SCREEN.
IF screen-group1 EQ iv_screen_group.
screen-invisible = lx_invisible.
screen-active = lx_active.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDFORM. " params_show_hidehi u use this logic
LOOP AT SCREEN.
IF screen-group1 = 'GR3'.
screen-active = 1.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF screen-group1 = 'GR2'.
screen-invisible = 0.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
Maybe you are looking for
-
My daughter apparently set up some kind of password on her iPod Nano but now cannot remember it. We have tried resetting. The screen says "Enter Code" and has what looks like a safe combination. Does anyone know how we can take this off? This is not
-
Copying into other application doesn't work
Copying an image in iPhoto and pasting it into another application like GC, has always worked fine. Now, when I click Copy (in Edit), and want to paste in GraphicConverter, Paste and all sub-menus are greyed out. Maybe it's a GC problem. Pasting into
-
I had a suspiciuos php file that I had examined, hopefully safely, but maybe not? that I noticed on my desktop. Is deleting this file enough, or should I take my mac in to see somebody?
-
App Expose showing all previous opened files
If I go into App Expose (3-finger swipe down) in apps like Textedit or Pages, I see a row of icons showing the last x docs thart have been opened. I don't want this to happen. I thought that App Expose only revealed all open windows of an app. Is t
-
HH5 Replacement or migrate to Sky?
So, ive had Infinity for 3 days and been getting the frequent disconnections that everyone here is complaining about. I havnt got the patience to speak to BT as its clear they are not acknowledging the problem with there faulty hardware. Please can I