How to disable fields in a report at runtime
Hi All,
i want to know is there any method to disable a particular field on the selection screen of a report program at runtime....
For example ... if i have two select options on the screen and i want to disable the second field if anything is entered in first field ....
can it be possible.. if yes then share then share the logic.
Thanks & regards,
Syed
Hi,
Please check the sample code below
AT SELECTION-SCREEN.
IF SEL_OPT1 IS NOT INITIAL.
LOOP AT SCREEN.
IF SCREEN-NAME = SEL_OPT2.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Hope this would help you.
Good luck
Narin
Similar Messages
-
How to disable fields in Table control???
Hi
How to disable fields in Table control??? I want to disable particular row in table control when enter datas are correct.lets take as example ME41 or ME51 table control.
Can anyone tell how to do disable in this table control
Points will be rewarded if its helpful.
Thanks
senthilIf you want to disable the row then you can use
in pbo module create a module in side loop,
loop at itab with control tc.
module change_screen.
endloop.
in module,,,,,
loop at screen.
if condition.
screen-input = 0.
modify screen.
endif.
endloop.
Regards
Vijay -
How to disable or rename Oracle Report Server servlet command?
Hi,
I'm using Oracle9i App Server R2.
I would like to learn how to disable or rename Oracle Report Server's servlet command?
This is to avoid user from accessing http://myserver/reports/rwservlet/showmap to view the key map file content.
Please advise.or example, my report server was rep_appserver, then i want to rename it to rep_test.
Here some step to accomplish it,
1. stop mid-tier
$ORACLE_HOME\opmn\bin\opmnctl stopall
2. stop em website
$ORACLE_HOME\bin\emctl stop iasconsole
3. rename $ORACLE_HOME\reports\conf\rep_<old_report_server_name>.conf to something else or delete it
4. rename $ORACLE_HOME\reports\server\rep_<old_report_server_name>.dat to something else or delete it
5. edit $ORACLE_HOME\reports\conf\rwservlet.properties file then change the SERVER parameter to new report server name(remember this new name has to be a unique name)
6. create a backup copy of the $ORACLE_HOME\sysman\emd\targets.xml file
7. open $ORACLE_HOME\sysman\emd\targets.xml, find old report server name and then replace it to new report server name
8. save new targets.xml file
9. open $ORACLE_HOME\opmn\conf\opmn.xml, old report server name and then replace it to new report server name
10. start em website
$ORACLE_HOME\bin\emctl start iasconsole
11. start mid-tier
$ORACLE_HOME\opmn\bin\opmnctl startall
HTH
Amkotz -
How to disable field validation when block is in query mode ?
Hi,
we use Jdev 11g TP3 and implemented a button to set a block of input fields in query mode.
Some of this fields are mandatory.
When performing an execute operation this mandatory fields are validated and the JS error message pops up.
In query mode this fields must not be mandatory !
How to disable the validation of those mandatory fields when the block are in query mode?
BR
PeterHello Peter,
A little correction to Chris' suggestion, it should be:
<af:inputText value="#{bindings.<your field name>.inputValue}"
label="#{bindings.<your field name>.hints.label}"
required="#{!bindings.<your iterator name>Iterator.findMode && bindings.<your field name>.hints.mandatory}">
...etc...The only difference is the removal of the ? : operator since it isn't required and represents both an additional parsing and processing effort. Go micro-optimization!
~ Simon -
How to disable drop down of Report Server
Hi,
i had install Report server 2012 and want to move form 2008 to 2012 .
1) how to disable drop down that show on folder and report level for end user (as shown in following screen shot).
2) report name coming on report server are not full name how to show full name of report like we have in 2008. Following is screen shotHi Mujahid,
1.) For migrating from Sql server 2008 to 2012, please follow this links
Migrating the whole Instance from 2008 to 2012 - > http://msdn.microsoft.com/en-us/library/ms143747.aspx
Migrating the rdl defination to 2008 to 2012 - > http://msdn.microsoft.com/en-us/library/a1a10c67-7462-4562-9b07-a8822188a161
2.) We can't disable the drop down box for the reporting services per user basic(end user), If you really want to do it, you
need to edit the ReportingServices.js file (This will effect all the user including admins) located at C:\Program Files\Microsoft SQL Server\<<SSRS Instance>>\Reporting Services\ReportManager\js\ReportingServices.js
If you want the end user not to perform certain action, you set appropriated permission for the report.
Managing Permissions and Security for Reporting Services
http://technet.microsoft.com/en-us/library/ms156014.aspx
3.) When report name is too long it truncated and dot dot are shown in the end. User always have a option to move from Title View to Details View
You need click on the right side of the report manager preview and click on the detail view to change between detail view and title view
Regards Harsh -
How to disable field Order quantity
Hi everyone
I want to disable field item order quantity at line item level on the transaction VA02, can anybody help me on this?
im using the user exit MV45AFZZ to make other modifications in the program, can i use the same user exit or any other alternative?The logic that you need to place should be something similar to below:
IF SY-TCODE = 'VA02' AND SCREEN-NAME = 'RV45A-KWMENG'.
SCREEN-INPUT = 0.
ENIF.
Hope this helps.
Kind Regards
Eswar -
How write a field to screen(report list) but don't display it ?
Hi, All
How write a value to screen(report list) but don't display it ? Because i will use this value as the user click the current line ,but i don't want to expose this value to the user.Hi,
U can Use the option NO-DISPLAY with PARAMETERS.
Can write in the Selection screen statement with the syntax as
Paramaters: <fieldname> type <data type>
value <value> no-display.
-Rakesh -
How to set field width and height at runtime programatically?
Hi all,
I want to set the width and height of a report field by reading its values from the database table.
Is it possible in Oracle reports?
How to achieve this in Oracle reports 10g?
Any help will be highly appreciated.
Thanks .... Best Regards
BilalYou cannot give it a specific value. During design you can set Horizontal and Vertical Elasticity properties to Variable, so the items are automatically scaled when running the report.
-
How to disable highlighting in Crystal Reports 2008
Hi,
does anyone know how I can disable highlighting of fields when using the .NET 2.0 CrystalReportViewer 2008?
See as example: http://i31.tinypic.com/30ivshs.png
The problem is, that the highlighting is meaningless and thus confusing, and additional to that it also leaves lightgray artifacts (background of the field9 on the screen after highlighting. The latter problem is not happening on every configuration though, probably related to color settings.
Regards,
FlorianI do not see this highlighting in my reports, unless I design them to be as such. Questions and a suggestion:
Do you see this highlighting in the CR designer?
Is this a web or a win app?
Download SP 2 for CR 2008 (12.x) and see if this helps. SP 2 is here:
https://smpdl.sap-ag.de/~sapidp/012002523100009038092009E/cr2008win_sp2.exe
Ludek -
How to disable Print button in Report Manager in SSRS 2008
I have a report with long list of columns. Currently we are supporting only excel export and we do not want user to print reports. I know we can disable export options by editing Render extensions in rsreportserver.config. Kindly suggest me how I can stop
user from printing reports.
Thanks.Please refer the link below:
http://msdn.microsoft.com/en-us/library/ms155874.aspx
"Report server administrators have the option of disabling the print feature by setting the report server system property
EnableClientPrinting to false. This will disable client-side printing for all reports managed by that server. By default,
EnableClientPrinting is set to true. You can disable client-side printing in the following ways:
Select Enable download for the ActiveX client print control on the Server Properties page in Management Studio. To open Server Properties pages, connect to a report server instance in Management Studio, right-click on the report server node,
and select Properties.
Write script or code that sets the report server system property EnableClientPrinting to
false."
Thanks, Michael Mei
Is there a way to enable or disable printing and export facility in the client based on report server roles. In our case some group of users only needs read access and so we want to prohibit export and print facility.
bhav27 -
How to disable fields in BP-ACCOUNT MANAGEMENT based on a condition in UI
Hi
Good Day
I have a requirement wherein I need to disable few fields in'General Data" and "Main Address and Communication Data"
in "Account Management" while changing the "Account Details" in CRM UI(web) for a particular Account Group.
Can anyone help me how can we do this, since I'm new to CRM i'm unable to find the solution for the same.
Regards
AnilHi Anil,
Click on F2 in Web UI in the relevant field.
Get the Technical Details such as names
Component
View
Context Node
Attribute
Go to TX bsp_wd_cmpwb
Give the Component name and Enhancement set
Go to corresponding view.
Doubleclicking on view on the right side u get structure of the view.
Expand Context
then expand relevant context node
then relevant attribute
you can find the GET_I_ATTRIBUTE Method
method GET_I_ATTRIBUTE.
rv_disabled = 'TRUE'.
endmethod.
Check if rv_disabled = 'TRUE'
if then change rv_disabled = 'FALSE'.
Before seeting rv_disabled = 'FALSE' check the condition for which you want to make it disabled.
Regards,
Sijo. -
How to Disable field in Selection-screen
Hi All,
I want to disable Screen field in my seelction screen. Below is my Code, but it is not working.
I want to perform.
If RB1 = X
Then Parameter P_VBELN should get disabled. Please suggest, find below my code.
*....Selection Screen
selection-screen begin of block b1 with frame title text-001.
parameters: p_vbeln like vbak-vbeln.
selection-screen end of block b1.
selection-screen begin of block b2 with frame title text-002.
parameter: rb1 radiobutton group radi default 'X',
rb2 radiobutton group radi.
selection-screen end of block b2.
*....At Selection Screen
AT Selection-screen.
if p_vbeln = ''.
MESSAGE ID 'ZID' TYPE 'E' NUMBER '000'.
endif.
*....At selection screen output
AT Selection-screen output.
if rb1 = 'X'.
Loop at screen.
if screen = 'P_VBELN'.
screen-input = '0'.
endif.
modify screen.
endloop.
endif.
*....Start of selection
Start-of-Selection.
select *
from vbak into table itab1
where vbeln = p_vbeln.
if itab1 is initial.
select *
from vbap into table itab2
for all entries in itab1
where vbeln = itab1-vbeln.
endif.Hi Kamaljeet ,
In the code below..see the lines in BOLD..explanation is given as to why they are required
Code----
selection-screen begin of block b1 with frame title text-001.
parameters: p_vbeln like vbak-vbeln.
selection-screen end of block b1.
selection-screen begin of block b2 with frame title text-002.
parameter: rb1 radiobutton group radi default 'X' user-command ucomm,
rb2 radiobutton group radi.
selection-screen end of block b2.
AT Selection-screen output.
if rb1 = 'X'.
Loop at screen.
if screen-name = 'P_VBELN'.
screen-input = '0'.
endif.
modify screen.
endloop.
else.
Loop at screen.
if screen-name = 'P_VBELN'.
screen-input = '1'.
endif.
modify screen.
endloop.
endif.
Explanation----
If the user command is not given,the system will not trigger on the click of radio button..
Once triggered it comes to "At selection screen output"..where we must also mention the case when
radio button 2 is selected RB2 ..the p_vbeln must be input and when RB1 is selected the field
p_vbeln must be display only..Paste the code and see how it works
Then use the logic as desired...
Hope it helps
Regards
Byju -
How to disable fields on selection screen?
hi,
i have two fields f1 and f2 on selection screen and two radio buttons r1 and r2.
if i select r1, f1 should be input enable and f2 shuld be disabled.
and if i select r2, f2 should be input enable and f1 shuld be disabled.
i hav code like this
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
PARAMETERS: p_Pfile TYPE rlgrap-filename, "presentation server input file
p_afile TYPE rlgrap-filename. "application server input file
p_efile TYPE rlgrap-filename. "error file
SELECTION-SCREEN END OF BLOCK blk1.
SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
PARAMETERS: R_ps TYPE c RADIOBUTTON GROUP rd default 'X', "radio button for presentation server
R_as TYPE c RADIOBUTTON GROUP rd . "radio button for application server
SELECTION-SCREEN END OF BLOCK blk2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF R_PS = C_X.
IF SCREEN-NAME = P_PFILE.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ELSE. "IF SCREEN-NAME = P_AFILE.
SCREEN-ACTIVE = 1.
SCREEN-INPUT = 1.
MODIFY SCREEN.
ENDIF.
ELSEIF R_AS = C_X.
IF SCREEN-NAME = P_PFILE.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ELSE. "IF SCREEN-NAME = P_AFILE.
SCREEN-ACTIVE = 1.
SCREEN-INPUT = 1.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
but i could not get that .
plz help meHi ,
This is my test code look at "at selection screen output" part you will get it.
data: g_user_has_auth(1) TYPE c,
v_key LIKE sy-pfkey,
it_ucomm TYPE TABLE OF sy-ucomm.
CONSTANTS : c_yes TYPE c VALUE '1' ,
c_no TYPE c VALUE '0' .
INITIALIZATION.
Code to remove standard execute button from selection screen.
v_key = sy-pfkey.
APPEND : 'ONLI' TO it_ucomm.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = v_key
p_program = ' '
TABLES
p_exclude = it_ucomm.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
SELECTION-SCREEN SKIP 1.
PARAMETERS: r_iobj RADIOBUTTON GROUP rb1 USER-COMMAND OP1.
PARAMETERS: r_ods RADIOBUTTON GROUP rb1.
PARAMETERS: r_cubes RADIOBUTTON GROUP rb1.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02 .
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) text-t02 FOR FIELD p_info MODIF ID OP1.
PARAMETERS: p_info TYPE string MODIF ID OP1.
SELECTION-SCREEN: PUSHBUTTON 68(10) but1 USER-COMMAND cli1 MODIF ID OP1.
SELECTION-SCREEN : END OF LINE.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t04.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) text-t02 FOR FIELD p_ods MODIF ID OP2.
PARAMETERS: p_ods TYPE string MODIF ID OP2.
SELECTION-SCREEN: PUSHBUTTON 68(10) ods1 USER-COMMAND cli3 MODIF ID OP2.
SELECTION-SCREEN : END OF LINE.
*SELECTION-SCREEN SKIP 1.
*PARAMETERS: r_exe RADIOBUTTON GROUP rb2.
*PARAMETERS: r_st1 RADIOBUTTON GROUP rb2.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN: PUSHBUTTON /1(20) ods_cr USER-COMMAND cli4 MODIF ID OP2.
SELECTION-SCREEN END OF BLOCK b3.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'OP1'.
IF R_IOBJ = 'X'.
SCREEN-INVISIBLE = C_NO.
SCREEN-ACTIVE = C_YES.
ELSE.
SCREEN-INVISIBLE = C_YES.
SCREEN-ACTIVE = C_NO.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'OP2'.
IF R_ODS = 'X'.
SCREEN-INVISIBLE = C_NO.
SCREEN-ACTIVE = C_YES.
ELSE.
SCREEN-INVISIBLE = C_YES.
SCREEN-ACTIVE = C_NO.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP. -
How to remove # fields from my report
Hi,
In our Bex query, fields which have no data are displayed as '#'. because of this many fields are shown '#' since no data for those fields. As this looks odd we want in our report , these fields to be shown as blank ' ' instead of '#'. Is it possible to make those fields leave empty instead of showing up #.
I have searched all the forum questions found similar questions but could not find a convincing answer .
Please help required
thanks & regards
KrishnaHi
you can use a macro to do this.
You can find the following link for the proceedure to add a macro:
http://wiki.sdn.sap.com/wiki/display/BI/SAPBWMacros--BExFormatting+Features
and you can add a macro like for your requirement:
Sub DelX()
Dim c As Range
For Each c In ActiveSheet.UsedRange
With c
If Replace(LCase(.Value), "#", "") = "" Then .Value = ""
End With
Next c
End Sub
Let me know if the Macro worked for you.
Regards,
Krishna Tangudu -
How to disable field based on the selected value
Hi everyone,
I have "employee" table,
it contains the following field,
emp_name
emp_designation
Category
YearsHere the "category" is the select list value which has the following values in select list,
Fresher
Experienced,
when the value :Fresher" is selected for "category" then the "Years" field should be disabled.
I tried the following dynamic action ,
Name:Disable_year
sequence:20
Event:Change
Selection Type:Item
Item(s):Category
Condition:equal to
value:Fresher
Fire When Event Result Is:TRUE
selection type:P1_YEARBut it doesnt work.
can anyone give alternate solution?
Thank you.
Regards,
gurujothiName:Disable_year
sequence:20
Event:Change
Selection Type:Item
Item(s):Category
Condition:equal to
value:FresherTry return value instead of this display value(Fresher) of select list
Fire When Event Result Is:TRUE
selection type:P1_YEARIn your above dynamic action, where is the disable action?
Maybe you are looking for
-
PHOTOSHOP CS4 AND ILLUSTRATOR CS4 CRASH WORKAROUND
hey guys i find something interesting!!!! (and this is an obvious sign that adobe didn't test the software but only open and close it while counting money eheh) first of all the clean CS4 install won't work so don't do it! 11.0.0 and 11.0.1 it's the
-
Address book: Find and replace characters?
Hi all, I just imported VCF file from Outlook to Address book. I am in Iceland and the Icelandic characters came wrong. Is there any way to batch find and replace characters in Address book? That is in individual cards. Thanks, Hilmar
-
My Final Cut Projects folder were missing some files, I went to my time machine backup to restore and it said I don't have permission to access the time machine folder "Final Cut Projects". Why?
-
ORA-01665 : control file is not a standby control file
I've already tested Dataguard configuration on Oracle 10g Enterprise edition for Windows. While configuring the same in Sun Solaris, I'm receiving this error: ORA-01665: control file is not a standby control file Steps I follow are as below: 1) Creat
-
Unable to login to update the photoshop or the illustrator through the Creative cloud dock in Mac
I am unable to login in the Creative cloud dock in Mac but am able to login in their website with the same ID and password. Everytime i try to update, it asks for authentication but is not accepting the details. I tried to contact support through cha