Hide Variant button
Hi experts!!
We have a report ZREPORT for which we have created 2 t-codes ZCODE1 and ZCODE2. Now, ZCODE1 should start with variant TEST and should not be changed by any means. And hence we are planning to hide variant button only for ZCODE1 t-code. But for ZCODE2 t-code variants can be changed.
Can somebody suggest how this can be handled?
Thanks a lot!!
Try something similar to
AT SELECTION-SCREEN OUTPUT.
IF sy-tcode = 'ZCODE1'.
DATA: status TYPE sy-pfkey,
prog TYPE sy-repid,
excl_tab TYPE rsexfcode OCCURS 1 WITH HEADER LINE.
" identify current status
GET PF-STATUS status PROGRAM prog EXCLUDING excl_tab.
" disable some function codes
excl_tab-fcode = 'GET'. " Get Variant...
APPEND excl_tab.
excl_tab-fcode = 'VSHO'. " Variants, Display...
APPEND excl_tab.
excl_tab-fcode = 'VDEL'. " Variants, Delete...
APPEND excl_tab.
excl_tab-fcode = 'SPOS'. " Save as Variant...
APPEND excl_tab.
SORT excl_tab.
DELETE ADJACENT DUPLICATES FROM excl_tab.
" update status
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = status
p_program = prog
TABLES
p_exclude = excl_tab.
ENDIF.
Regards,
Raymond
Similar Messages
-
Hide variant button in menu toolbar
Hi experts
I would hide the variant button in the menu toolbar for the transaction vl10g
Link:[http://img104.imageshack.us/img104/5439/vl10g.png]
somebody can help me??
thanks
MarcoSelect the variants, click the save button. In the next screen, choose the option Only display in catalog. Do this for all variants. Then the variant button will not be displayed.
the other Variant Attributes are below.
On this screen, you can define the attributes for the variant. Make sure
that you enter a meaningful short text.
o Only for background processing
If you select this option, the variant can only be used in
background processing. You will not be able to start the program
with this variant in dialog mode.
o Protect variant
If you select this option, the variant can only be changed by the
person who created it or the last person to change it. If you start
a program using a protected variant, none of the fields on the
selection screen accept user input.
o Only display in catalog
If you select this option, the variant is not displayed in the input
help list; it is only displayed in the catalog.
o System variant
This option is set automatically, and cannot be changed. For details
of how to create and maintain system variables, refer to the
documentation for the initial variant maintenance screen.
Cheers,
Balaji -
'Get Variant' button not working correctly for report
Hi,
I have created an internet service for a custom report. For some reason, when I click the 'Get Variant' button I get a popup, but it does not have any entries to choose from. It is blank. In SE80, the button works correctly. Any ideas?I figured it out myself. I didn't have the parameter ~webgui set.
-
How can I hide a button with javascript in Captivate 8?
I need to run some javascript in my project and at the same time I want to hide a button, so I can't use advanced actions.
It is very strange, most users who have focus on JS try to do everything with it, whereas lot of simple actions can easily be done with advanced/shared actions. I will only go to JS when it is not possible with advanced/shared actions.
You are lucky, I was just restarting to work on an advanced training for next week when your question showed up. -
How to hide 'SAVE' button in adobe form layout
Hi Friends,
I have a requirement to hide 'SAVE' button in adobe form layout .They dont want to save the form .
Is there any way to achieve this .I have gone through scn ,but couldnt find the proper solution
Thanks and Regards,
Subeesh KannottilHi Subeesh,
Are you talking about restricting the User from Saving the Adobe Form Output.
Regards,
Sivanand Ala -
How to hide variant configuration screen in sales order
Hi Friends,
Could you please help : how to hide variant configuration screen in sales order for a configured material
RanjanHi
The very purpose of VARIANT CONFIGURATION is to for this material these are the characteristics available
In this you choose one characteristic then these are the values available
If you make a choice then this is the price
Means Maruthi car is the product
Say 800
Alto
Zen
These are characteristics
In this you choose say black, cherry red, white these are the values
When you put a sales order for Maruthi car then if it is 800 black colour then price is X
if it is 800 white colour then price is y
So that according to the choice of the customer the pricing and other details are fetched
Why do you want to defeat the very purpose of VARIANT CONFIGURATION
Rather than listing out of the whole product list the system simplifies the thing
Without that popup variant configuration is meaningless
Regards
Raja
Edited by: ramanathan raja on Dec 11, 2008 3:48 PM -
How to Hide advance button in input list of values Popup
I am using input List Of Values component to select value from search Pop up, in that popup i need only basic search only , i am unable to hide advance button... plase tell me how to hide this advance option
I haven't tried this, but check
How to remove basic/advanced button in inputListOfValues search dialog
This does not have complete solution, but might give you some lead. -
I have simulated what I'm trying to do here:
http://jsfiddle.net/dayjuuk5/
Let me know if you can't see it for any reason.
My question- I'm not sure I understand why this method of hiding this td tag doesn't work. I'm looking for a way to hide this button on page load (not click driven).
Thank you for your time.
SamirHi Samir,
Thanks for your sharing.
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
SHOW ALL / HIDE ALL BUTTONS produce error in chm but not in "View Selected Item"
My SHOW ALL and HIDE ALL buttons work in the View Selected
Item mode. However, the compiled version generates an error tag:
Line: 72
Char: 1
Error: Object expected
Code: 0
URL:
mk:@MSITSTORE:C\Documents%20and%20Settings\glenn_michaels\RoboHelp%206.0\TCA\!SSL!
In short, the the compiled chm is located in the SSL. I tried
adding showhide.js and ehlpDhtm.js to the SSL folder, but that
didn't make a difference. What is missing? How do I fix this?
Many thanks in advance...
glennitoMr. Grainge,
I've tried to follow your instructions to the letter, but I'm
not having any luck.
1) I copied the showhide.js to
a) RoboHelp 6.0 > Project Folder
b) RoboHelp 6.0 > Project Folder > SSL
c) RoboHelp 6.0 > Project Folder > SSL >
MicroSoft_HTML_Help
2) I pasted btnhideall.gif, btnshowall.gif, printerblue.gif
into
a) RoboHelp 6.0 > Project Folder > SSL
b) they are also listed in RoboHelp 6.0 > Project Folder
3)The Project Manager > Baggage File originally displayed
a
a) Project (Name) folder
b) ehelp.xml
c) RoboHHre.Ing
I opened the Baggage File > Project (Name) folder,
selected New Baggage File, and added, respectively:
i. btnhideall.gif
ii. btnshowall.gif
iii. ehlpDhtm.js
iv. printerblue.gif
v. printerred.gif
vi. showhide.js
vii. TCA.fpj
vii. root.fpj
4) I also opened rhbag.apj in Notepad. It shows
a) ehelp.xml and RoboHHRE.Ing accompanied by
<usercreated>false</usercreated> tags
b) the remaining baggage files are accomanied by
<usercreated>true</usercreated> tags
5) Finally, I used Notepad to display two topic files in
which the error message identified a Line: XX. In one case the line
# is 42, in another, 19. In both cases, when I counted lines,
starting with <body>, I ended up on:
onClick="JavaScript:hideEm()"
However, I am none the wiser for my effort and don't know
what (5) might be telling me.
6) The only thing I can think of is that the compiled chm
file is two levels away from the Project Name directory that holds
all the files. The files live in Robohelp 6.0 > Project Name
while the compiled help is found in Robohelp 6.0 > Project Name
> SSL! > MicroSoft_HTML_Help > Project Name.chm.
Should I be adjusting the Relative Path within the topics?
Many thanks for your attention and assistance.
glenn -
JavaScript in the PDF can hide toolbar buttons
Hi Leonard,
You mentioned in http://forums.adobe.com/message/2161074#2161074 that "JavaScript in the PDF can hide toolbar buttons."
According to the Javascript docs for Acrobat 7 the App.HideToolbarButton function only runs at AppInit. Which means that I would have to have the javascript in a file. How can I do that from within the document? Is there another way to to do set this from our web application?
RobPerhaps that's simply a feature that isn't supported by presenting a Captivate intended for the web from inside a PDF?
Just guessing... Rick -
How to hide default buttons on WD selection screen
Hi Experts,
Is there a way to hide default buttons ( Cancel, Check, Reset, Copy ) on web dynpro selection screen ??
Please let me know how can I achieve this..
Thanks in advance !
AnandBy selection screen do you mean the select-options reusable component? If so, then there is an API of the component that you can call to disable these fields. Use the SET_GLOBAL_OPTIONS method of the select-options API to acomplish this:
data: l_ref_cmp_usage type ref to if_wd_component_usage.
l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ).
if l_ref_cmp_usage->has_active_component( ) is initial.
l_ref_cmp_usage->create_component( ).
endif.
wd_this->lv_wd_select_options =
wd_this->wd_cpifc_select_options( ).
* init the select screen
wd_this->lv_sel_handler =
wd_this->lv_wd_select_options->init_selection_screen( ).
wd_this->lv_sel_handler->set_global_options(
EXPORTING
* i_display_btn_cancel = ABAP_TRUE " Displays "Cancel" Button
* i_display_btn_check = ABAP_TRUE " Displays "Check" Button
* i_display_btn_reset = ABAP_TRUE " Displays "Reset" Button
i_display_btn_execute = abap_false " Displays "Apply" Button -
I have a scenario where the ITS Template OK CODE is working in ECC 6.0 so we have had decided to Hide Push Button.Plz can any one give the solution for this
Check for the authorization using AUTHORITY CHECK and accordingly fill the itab for excluding the buttons.
SET PF-STATUS 'MENU' EXCLUDING ITAB.
ITAB will have the lis to the function codes that you don't want the user to acess.
Regards,
Ravi
Note - Please mark all the helpful answers -
How can hide the buttons based on condition
Dear all
I have to hide the button based on condition
When I open the third page directly I want to hide that button
When I open the third page via first and second page I need to visible that button
I pass spell parameter from first to second and second to third
In third page I get the value using pagecontext
I write the code in third page co
If I go directly third page it is null
If I go to third page via first the value is Y
If(“Y”.equals(pmode))
OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
If(!btn=null)
btn.setrendered(true);
else
btn.setrendered(false);
but the button is not hiding
Regards
SreekanthHi Srikanth,
I have modified ur method:
OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
If(btn !=null)
If(“Y”.equals(pmode))
btn.setrendered(true);
else
btn.setrendered(false);
Thanks,
'Kumar
Edited by: Kumar Kovela on Aug 3, 2009 5:53 AM -
How to enable the variant button in my report
Hi experts,
How can I enable the variant button at the top menu bar of my report?Hi Miv,
In the above post of mine I didn't give info. on creating variant.
Here is how to create a variant:
On the Selection screen after giving INPUT. <b>Just press ctrl+S</b>.
to create a variant.Give the variant name and save it.
<b>
Reward all helpful answers</b><b>
One request, i.e., don't forget to close the thread by giving points if your problem.</b>
Regards,
V.raghavender. -
How to hide sort buttons in BEx Web?
Hi,
I've got an input-ready query with hierarchy on lead column and key figures on data columns. I'd like to hide sort buttons in column headers to decrease the space required and make the screen simpler. Any possibilities to get rid of these, in this case useless, arrows?
Thanks!
AkiHi,
Create a new GUI Status for your program.. put whatever button you require for it..
In the AT SELECTION-SCREEN OUTPUT event..
SET pf-status xxx.
Regards,
Anand
Maybe you are looking for
-
User exit for sales order - schedule lines
Hi all, I have requirement in SO, that user has not to change the scheduled lines date and quantity in va01, va02. I could find FV45EFZ1 as the include program for this and the value of CH_SUBRC should set to > 0. But i put break point here and the c
-
How do I move my music from pc to a new mac
I bought a mac a few weeks back but have been afraid to move my ipod and songs over from my pc; not having any luck. Do I have to deauthorize the pc?
-
Logical page/Physical page/Page Break
I have to create a form like report. Without data it takes 3 A4 pages, with data it can expand to 5 pages or more. So in report developer I create for Main section: Width=21 Height=29.7, Horizontal Panels per page=1, Vertical Panels per page=3. First
-
Upgrade boot drive in MAC PRO Early 2008 to SSD
Looking to upgrade my boot drive on Mac Pro Early 2008. Possibly with SSD, but wasnt sure of compatibility. Also, is it a huge sacrafice in storage? I'd appreciate any assistance. Thank you!!! Lyle
-
No session available for Eaely Watch Report
Hi, For one system I have problems to generate en EWA report. TC SDCCN for datacollection has finished without errors. Data is transfered collectly to the SOLMAN using the appropriate RFC destinations which work wery well. When I start Jjob SM:EXEC S