Global Variable for selection screen variable
Hi All,
We need to create a report where calendar day has to be included in the selection screen.Later after executing the report we should be able to retrieve the selection screen input for calendar day and modify it and use the modified one for other calculations.Can somebody help me out in finding the global variable in the variable exit where we find all the inputs for selection screen variables....
Regards,
Shravani
shravani,
I_vnam will store the varaible names...if you have varaible in the query...
please use this code for ur help...
DATA: ww_der_date LIKE sy-datum,
wzdate LIKE sy-datum,
wzact_gi_dte TYPE /bi0/oiact_gi_dte.
wzact_gi_dte = sy-datum.
IF i_step = 2.
READ TABLE i_t_var_range INTO wa_i_t_var_range WITH KEY vnam =
'ZNODAYS'.
ww_der_date = sy-datum - wa_i_t_var_range-low.
CLEAR wa_i_t_var_range.
IF i_vnam = 'ZVAGIDCUSTEXIT'.
CLEAR l_s_range.
l_s_range-low = ww_der_date .
l_s_range-high = wzact_gi_dte.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
APPEND l_s_range TO e_t_range.
CLEAR l_s_range.
ENDIF.
ENDIF.
in this case user will enter no.of days in ZNODAYS and that being is used in calculation and used in the next varaible....
Similar Messages
-
Hi
I have two fields one for reporting period and another for Creation date on which user can seletct on selection screen(variable). I have made both of the variable mandatory so that if user does not enter value any one of them , it is showing message to make an entry in all required fields.
Now user wants
1. If user enters value in any one of the seletcion field and keep other field blank, report
should display without giving error message. But if he keeps both fields blank and
execute report, it should display error message to enter value in required field.
Can anybody please guide me is it possible?
If i make one field(reporting period )mandatory and other(Creation date ) optional, when user will execute report without giving any value in reporting period , it will show message to make entry for Reporting Period.
Regards
DeepHello Guys,
i am facing an issue with pop up of error message on the screen after validation. here is my code
case i_step.
when 3.
loop at i_t_var_range into lv_temp.
if lv_temp-vnam = 'ZCUR_TYP'.
var1 = lv_temp-low.
exit.
endif.
endloop.
clear: lv_temp.
loop at i_t_var_range into lv_temp.
if lv_temp-vnam = 'ZVEXRATE'.
var2 = lv_temp-low.
exit.
endif.
endloop.
clear: lv_temp.
loop at i_t_var_range into lv_temp.
if lv_temp-vnam = 'ZVICOMPC'.
var3 = lv_temp-low.
exit.
endif.
endloop.
select single * from /BI0/PCOMP_CODE into compcode where
COMP_CODE = var3.
if sy-subrc = 0.
if compcode-currency = var1
and var2 ne ''.
MESSAGE E000(ZBW).
endif.
endif.
endcase.
when i try to texecute this code, i am getting disconnected from BW with a message connection closed without message (CM_NO_DATA_RECEIVED)
its working fine in RSRT. i get the message at the bottom in the scrol bar.
please let me know if there is any thing wrong inthe code.
Thanks
Krishna -
Input Variable on Selection screen in BEx
Hi Team,
Is there a way to change the sequence of Input variables on Selection screen in BEx ?
Thanks in Advance.Hi,
Go to query designer - query poperties - you find variable sequence tab
you change the sequence of your variables
Thanks,
pk. -
Storing Selection Screen variables in TVARVC
Hi,
When we execute Bex Query, how do you save input values from Selection Screen variables into TVARVC table dynamically.Anita,
you need to write code in STEP = 2 in the customer exit where you can move values to TVARVC -
Hierarchy Node Variables in Selection Screen
Hi Experts!
I have a hierarchy Node variables of InfoObject in BEx. When I execute the report, I choose Hierarchy variables in Selection screen of BEx Web. I see all of attributes of infoObject, I want to reject all of those.
Suppose that: In infoObject 0COSTCENTER has attributes (Controlling Area, BusinessArea, CompanyCode, ProfitCenter u2026.), I donu2019t need to see those attributes of Costcenter when I choose node in Hierarchy variables. I only want to get the CostCenter. Please some advise to solve that issue or how can I do that?
Thanks in advance,hii
Try This:
Double click on the info object
then go to the Hierarchy Tab
here u find a button of External Char in hierarchies
Click on this
On right hand side u find some of the attributes of the info object
place them on left hand side
Execute it & activate the Info object.
Thanks
Neha -
Dinamic variant for selection screen
Hi,
I got a requirement where i need a Dynamic variant for selection screen .There is a date field in the selection screen i want to create a variant such that when i choose it,it should give the current day date in selection screen.can anyone help me.
Regards,
RaviHi,
Using Customer Exit code you can give it.
Create a Customer Exit Variable and write simple code in CMOD. See the usefull Exit code for reports in the following url.
https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
WHEN 'ZV_DAT'.
IF i_step = 1 .
CLEAR l_s_range.
l_s_range-low = sy-datum.
l_s_range-opt = 'EQ'.
l_s_range-sign = 'I'.
APPEND l_s_range TO e_t_range.
ENDIF.
Thanks
Reddy -
Code for selection screen, urgent
Hi Everyone,
I need code for selection screen.
I have four radio buttons, p1, p2,p3,p4(assume)
If I select second radiobutton, remaining three radiobuttons should be in disable mode and also the information under them should be in disable mode. Give the coding details. Thanks in advance. U will be rewarded.
Regards,
NagarajuHi,
REPORT ZTEST222 .
PARAMETERS : p_add RADIOBUTTON GROUP radi
USER-COMMAND radio MODIF ID MOD,
p_disp RADIOBUTTON GROUP radi DEFAULT 'X' MODIF ID pod,
p_chng RADIOBUTTON GROUP radi MODIF ID rad,
p_er_log RADIOBUTTON GROUP radi MODIF ID cod.
SELECT-OPTIONS : s_idn FOR vendor MODIF ID mod,
s_pcode FOR ws_c_pcode MODIF ID pod.
PARAMETERS: p_plant LIKE zaw_pol_plan-plant MODIF ID rad,
p_zzvend LIKE zaw_pol_plan-zzvendor MODIF ID cod.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF p_add EQ 'X'.
IF screen-group1 EQ 'MOD'.
screen-active = 1.
MODIFY SCREEN.
ELSE.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
IF p_disp EQ 'X'.
IF screen-group1 EQ 'POD'.
screen-active = 1.
MODIFY SCREEN.
ELSE.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
IF p_chng EQ 'X'.
IF screen-group1 EQ 'RAD'.
screen-active = 1.
MODIFY SCREEN.
ELSE.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
IF p_er_log EQ 'X'.
IF screen-group1 EQ 'COD'.
screen-active = 1.
MODIFY SCREEN.
ELSE.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
Pls. reward if useful
ENDLOOP.
Pls. reward if useful -
How to write HTML code in Web Template for selection screen
Hello All,
Is it possible to write a html code in the web template html tag so that the output of the html is displayed in the selection screen, i.e before the execution of query.
I know that we can write html, which will be displayed once the query has been executed, but can it be done for selection screen.
if so, how.
My exact requirement is : to display a 2-3 lines of text in the selection criteria screen - sort of, various options available to user for entering values in the selection screen. I was thinking of putting this text using HTML code in the selection screen.
Regards,
Nagendra.Hi Erick,
No, unfortunately nobody replied to this thread. So i assumed it is not possible to modify the selection screen thru html code.
Btw, as my requirement was to provide user with multiple answers on the selection screen. I did the validations on customer exit and popped an errror dialog when applicable.
Regards,
Nagendra. -
Change default value (200) of Max No of Hits for selection screen in WAD
How do i change the default value of Maximum Number of Hits from 200 to 1000 for selection screen's find box in Web Application Designer .
Thanks in Advance
Points will be surely RewardedDear Hammad,
Please refer to the wiki created by me,
http://wiki.sdn.sap.com/wiki/display/BI/Information+on+the+user+setting+for+the+selector+dialog
Regards,
Arvind -
How to set default variant for selection screen
Hi,
I want to make one variant as default for selection screen for one user.
For eg., take COOIS. For the selection screen, i have 3 variants. But i want one variant to be default. Thsi is not for all users. Thsi is for particular user.
I am not seeing any way to do this. please help me..
Thanks
SriniHi,
If you are using Z program then you can ask your developer to get Variant name Runtime from Parameter ID.
This means you decide a Parameter ID name : ZVAR in your Z program and ask your developer to load variant each time your Z program loads.
Now, second step will be using SU01 transaction you can set value of ZVAR in Parameters tab for the user. This value will be the variant which you created for this user.
This will solve your problem and you can make n number of variants and assign it to different users.
Regards,
Arpit -
Transaction Variant for Selection Screen
Hi, experts!
A question regarding transaction variants: Is it possible to create screen variants and transaction variants via SHD0 for selection screens? I' ve created a customer report with one selection screen including parameters and select options and would like to provide the users with a variant transaction for this.
Utilizing the "Save as variant" option from the selection screen itself works out perfectly, but this variant cannot be transported. And trying to create a transaction variant via SHD0 fails because values entered in the selection screen parameters and select options help screens are not saved and presented.
Any hints are more than welcome!
Regards,
ThomasYou wrote
Utilizing the "Save as variant" option from the selection screen itself works out perfectly, but this variant cannot be transported.
But, give the variant a name beginning with "CUS&" and this variant will be transported. Variant beginning with "CUS&" or "SAP&" are so-called "system variant" and are transported automatically. You can then copy the transaction code and use this new variant in the new transaction.
Regards,
Raymond -
Default value for selection screen field
Hi all,
I am using LDB PNPCE. I want to give default value for field Personnel area on selection screen.
How can I do it?
Thanks
RahulHi Rahul,
In the INITIALIZATION event we can set the default values for selection screen fields.
INITIALIZATION.
loop at screen.
if screen-name = 'S_MATNR-LOW'.
CLEAR S_MATNR.
s_matnr-low = '1234'.
s_matnr-option = 'EQ'.
s_matnr-sign = 'I'.
append s_matnr.
CLEAR S_MATNR.
s_matnr-high = '5678'.
s_matnr-option = 'EQ'.
s_matnr-sign = 'I'.
append s_matnr
clear s_matnr.
endif.
endloop.
Hope it helps.
Mark if useful
Regards,
Saumya -
How to create variant for selection screen which is in subscreen
Hi,
How to create variant for selection screen which is in subscreen in a module pool program?
it is very urgent.
Thanks in advance.Hi,
You can create the 'Parameter Transaction' so that whenever you run the particular transaction it will run with the initial value given when the Tcode was created and hence you can skip the initial screen of the module pool program.
To create Parameter transaction from SE93 you have to choose the last option i.e Parameter Transaction.
Regards
Sudheer -
Display description of query variable in selection screen
Hi @ All.
we have a query with a variable (..UVO_0currency_001D).
In the selection screen of the query I see the technical name of the variable instead of the description "Currency".
What and where I have to change to see the description of my variable?
Thanks a lot!
StephanHi,
change the infoobjec property for that perticular infoobject at Multi provider if your Query is on Multiprovider. goto Change mode of multiprovider - > expand respective dimension -> right click ob perticulat infoobject - > select provider - specific properties of the infoobject. select disply ad key and text.
hope this helps
Regards,
Daya Sagar -
How to Restrict Variables in Selection Screen
Hi Experts,
I have set filter variable for my Region which includes (East, West, North, South).
And I'm restricting North and South in the Selection Screen and displaying a choice of East or West on the Selection Screen.
I tried right click variable in filter pane-> Restrict -> Move.....East and West to right side. and saved it.
When I tried executing it I'm being displayed all the 4 values at the Selection Screen.
Can any real experts help me resolve this
ThanksHi
There are two ways in which you approach this
- Create a variable for Region and set the Default values to East and West. This way when the user runs the query the selection will be by Default populated as East and West. You don't have to go in and do a selection.
- Personalize the variables.
Refer to the link below which contains details on Personalizing variables.
http://help.sap.com/saphelp_nw70/helpdata/en/45/6e4f4db9cc1956e10000000a11466f/frameset.htm
In short, when you run the query you can see a Personalize variables button where you can just choose Ease and West. You can also choose whether to display or hide the personalized variable. When you hide it will internally be restricted to Ease and West.The result is displayed with your personalized values the next time you execute the query. The down side to this is this is specific to a user.
Apart from the above two, i don't think you can choose the selection only to display East and West. As long as your master data and info provider has all four values you cannot hide them.
In the query designer, when you click on the Region infoobject in the Advanced tab, you will see four options. You can only choose among the four. Here you can see that you can only choose between Master data, infoprovider etc.
Regards,
Maybe you are looking for
-
How to send a PDF document to a FAX Server in SAP ? - Urgent
Dear All Can you please provide inputs as to how one can send a PDF document to a FAX server . In my SCOT i have config done for FAX . I am able to send PDF document via e-mail . Wonder how to use FM 'CONVERT_OTF_AND_FAX' for sending fax ? There is
-
Uploading videos from phone to laptop but getting ...
Hi there I have a nokia 6303 classic and i'm trying to upload videos filmed on it to my laptop via the data cable. the videos seem to be uploading fine but i'm not getting any sound on them. Just wondered what i am doing wrong?? thanks
-
Classifying the Project Purchase requisition as Budgeted/Non-Budgeted.
Dear All There is a budget limit that is maintained for each project. However there are some expenses that are not planned at the time of setting the budget value.Thus when budget gets exhausted ,the budget value is increased but there is no track as
-
Unselected calenders in the notification center
Dear Apple Community, I'm having a problem with my unselected calenders, which appear, even unselected in the notification center. Here is what I wrote (via iPhone feedback) to Apple: "Dear Apple, since iOS 5 (I hope it would be fixed with iOS 6, it
-
Cant Open Print Dialog for Powerpoint in Firefox
Whenever i try to print off Firefox, there will be a small box saying "preparing to print" (with a small spinning series of dots) that lasts for 3 seconds or less. Then the box will disappear and there will be a TINY box saying "javascript" at the ve