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
Similar Messages
-
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,
Shravanishravani,
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.... -
Personalization and Default values in selection screen variables
Hi everyone,
I have certain questions regarding Front end part:-
1) Can we have multiple personalizations for a single user in Web templates; I know it is quite possible in BEx using Variants. Is there any such approach or any other solutions regarding it?
2) In our project we had a range selection screen customer exit variable on 0CALMONTH, which is showing a default value of 07.2007 to 09.2007, although we have removed the default values from the query variable and also checked the customer exits where it is used, but still its showing the value. We cant delete and recreate the variable as such, as it is used in number of function module. Also these values are also transported to Quality system, where also its showing the same value.
Did anyone face such a situation before?
Eagerly waiting for a solution.....
Thanks in advanceHi Chiran,
Please try with following approach for multiple personalizations for a single user in Web templates.
While Defining Variable Choose the Option Copy personalization data from variable .
The Features of above approach is as follows.
1)It will personalize variable values for Input Variables for each user.
2)These values are saved for each variable as well as for user.
3) At the time of defining variable it will allow us to enter one or more default values.All these values are appear in the variable screen when u execute the query or Web Application.
So you can see the variable values in web also.Just try with this approach.
May be it will resove u r issue some extent.
Regarding u r Second Query Just try with Some tables, all the default values entries were saved in those tables. Delete default values from those entries.
Thanks & Regards,
Chandu. -
Report Selection screen variable validation
Hi
I have three customer selection on my report input screen. My requirement is I need to check uniqueness of those there customers during input itself.
i.e. input for cust 1 != cust 2 != cust3. those must be distinct.
How can I do. Please help.
Regards
DollyCASE i_step.
WHEN 3.
data: wa_cust1(10), "assuming 10 is the size of customer.
wa_cust2(10),
wa_cust3(10).
READ TABLE i_t_var_range INTO wa_i_t_var_range WITH KEY vnam = 'VAR1'. "First Variable
wa_cust1 = wa_i_t_var_range-low.
READ TABLE i_t_var_range INTO wa_i_t_var_range WITH KEY vnam = 'VAR2'. "2nd Variable
wa_cust2 = wa_i_t_var_range-low.
READ TABLE i_t_var_range INTO wa_i_t_var_range WITH KEY vnam = 'VAR3'. "3rd Variable
wa_cust3 = wa_i_t_var_range-low.
IF wa_cust1 = wa_cust2 OR wa_cust1 = wa_cust3 OR wa_cust2 = wa_cust3.
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
i_class = 'CD'
i_type = 'E'
i_number = '121'
i_msgv1 = 'Please enter 3 different customers'
EXCEPTIONS
dummy = 0
OTHERS = 0.
RAISE no_processing.
ELSE.
EXIT.
ENDIF.
ENDCASE.
please use this code as it is and put ur customer size in declaration and 3 varaibles as shown above.. -
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 -
Need Different Selection screen for different Queries in a Workbook
Hi,
I have created a workbook with Multiple tabs in BI 7.0. Each Tab has different Queries and each query has different Selection screens (Variable Selections).
When i open the workbook and refresh it, the selection screen is appearing only for one query. All the queries are refreshed by this single selection screen, though each query has different Variable selections. What i need is a seperate selection screen i.e seperate Variable selection appearing for each queries, when i refresh each one of them.
Is it possible to do this? If anybody has tried this, help me in solving this issue. Thanks for ur time.
Regards,
MuraliMurali,
If you un-check the 'Display Duplicate Variables Only Once' this WILL solve your problem.
When you Refresh, you should be presented with a single variable selection dialog box, but it should contain an area for each Query (DataProvider) that is embedded in the Workbook.
This is the case if the queries are all on the same tab, or on different tabs.
However, if you have multiple tabs each with a query on it, each query must have it's own DataProvider. If all queries are based on the same DataProvider, it will not work as the Workbook only 'sees' one Query for which it needs variable input.
If you REALLY want multiple variable selection dialog boxes, then maybe the best way to do this is to have the queries in separate Workbooks.
If you don't want the User to have to open 5 queries manually, you could use a Macro in each Workbook that runs on opening, to open the next Workbook in the sequence.
I hope this makes sense!
Regards
Steve -
How to clear parameters defined in selection screen on back button
Hi,
I have a report with parameters, few being input fields, and check boxes. After report is executed when user selects the back button, the selection screen is displayed again but with the old selection values. I want to clear them.
So in the Initialization even I added the code to clear all these parameters;
CLEAR: p_aaa, p_bbb, p_ccc.
I debugged and control passes through this code but still the fields are not cleared and they retain the old input values.
How to clear them ?
thnks>
Rob Burbank wrote:
> Yes he did. My mistake.
>
> But isn't this what he wants? To clear the Selection screen so that something has to be entered?
>
> Rob
IMO, he only wants to clear the selection screen parameters on the click of 'BACK' button
in the list screen. If the OP clears the selection screen variables in AT SELECTION-SCREEN OUTPUT
even, the values assinged to the selection parameters in the INITIALIZATION and with the DEFAULT addition of the PARAMETERS and SELECTION-OPTIONS statements will also be overwritten even when the report is executed for the
first time.
-Rajesh. -
Selection screen value not assigning to the value when executed for the first time
Hi ,
Im My program at selection screen there are company code, vendor account and open items at key date(takes system date as default value).
Facing problem at open items at key date - Open key date parameter is taken from LDB - KDF.
First time when I am executing the program it is taking system date value in the selection screen variable even though I have given the different date.
This problem is only when I execute for first time or press enter without giving company code.
Can any one please help us to come out of this problem.
Regards
Sri BhargaviHI,
you can use the Event as AT SELECTION-SCREEN -
User option in selection screen of report
In a report, want to give user an initial option of Calendar year/month OR calendar year/week...
Only the one the user wants should be displayed on the selection screen.
1 Is there a way to give user an option while running the query before the selection screen(variables - uesr input) of the report appears
OR
2 Is there a way to give user a toggle option on the selection screen which displays either calendar year/month or calendar year/week based on user choice but not both.
I am aware that user can easily toggle once the report has been executed, but the purpose is to give user this option initially.
As of now, in the report at the selection screen there are four periods based on calendar year/month. (to facilitate comparison of periods)
eg (m- cal year/month, w - cal year/week)
P1(m)
P2(m)
P3(m)
P4(m)
If we add four more for week
then user will have a cluttered selection screen (as there are many other selection options apart from time)
eg 8 time choices
P1(m)
P2(m)
P3(m)
P4(m)
P1(w)
P2(w)
P3(w)
P4(w)
What I need is a way for at any time, either cal year/month or cal year/week is visible based on user choice.In a report, want to give user an initial option of Calendar year/month OR calendar year/week...
Only the one the user wants should be displayed on the selection screen.
1 Is there a way to give user an option while running the query before the selection screen(variables - uesr input) of the report appears
OR
2 Is there a way to give user a toggle option on the selection screen which displays either calendar year/month or calendar year/week based on user choice but not both.
I am aware that user can easily toggle once the report has been executed, but the purpose is to give user this option initially.
As of now, in the report at the selection screen there are four periods based on calendar year/month. (to facilitate comparison of periods)
eg (m- cal year/month, w - cal year/week)
P1(m)
P2(m)
P3(m)
P4(m)
If we add four more for week
then user will have a cluttered selection screen (as there are many other selection options apart from time)
eg 8 time choices
P1(m)
P2(m)
P3(m)
P4(m)
P1(w)
P2(w)
P3(w)
P4(w)
What I need is a way for at any time, either cal year/month or cal year/week is visible based on user choice. -
Infoset-query-selection-screen-default-values
Hi All,
I am having the requirement as I need to put default values in the selecion-screen of the report by using Infoset query. Let me know the settings required for this.
I am using SQ01, SQ02, SQ03 T.Codes.
And I need display one record only if any field contains mulitple records, for example in the HR-ABAP, field p0105-usrid contains multiple values depending on the subtype.So, I need to display USRID when URSTY = '900'. All these should display by Infoset query only.
Pls help me in this scenario , its an urgent requirement.I am very much thankful for you for reading my proble, if you will provide some sort of solution, I feel very happy.
Advance thanks for this .
Regards,
Prakash.Prakash,
To default the values on your selection screen, you will need to do some ABAP I guess. (if you do not want to use variant). Open up the infioset in SQ02 and then goto code option for the PNP**** field and then you can code to initialize the selection screen variables. Test with an ABAPer.
To display multiple records as multiple columns, you will have to create custom fields in infoset, and then go from there. Again see ABAPer. -
Prob in Submit Report via Selection screen.
Hi,
I have to submit a report via selection screen.
The report name is detemined at run time.
This i am able to handle easily as we can use SUBMIT (V_PROG)...
WHERE V_PROG contains the name of the report that i get at runtime...
Now the issue :::::::
I have to also populate a select-options on the called report on submit.
usually this is done by :
SUBMIT (V_PROG)
name of select-option in itab...
However in my case the name of the <name of select-option> is also detemined at runtime say PNPPERNR.
Now if i use any variable / field symbol for the name of the select - option (like for the called program), it does not work (the called report does not have the values i populate in ITAB for the particular select-option)
I have also tried Macro but cant find solution...
ANY IDEAS ??Hi Anuj,
When you are getting the report name in runtime, you can also get the report selection screen information during runtime.
Now how are you going to decide which values you will move to which selection screen variables of which report? If you have a way to determine this, then here is a program that works on that assumption.
REPORT ztest1 .
DATA: i_seltab TYPE TABLE OF rsparams WITH HEADER LINE,
i_selections_info TYPE TABLE OF selinfo WITH HEADER LINE.
DATA: v_report LIKE sy-repid,
v_matnr LIKE mara-matnr.
PARAMETERS: p_rep1 RADIOBUTTON GROUP rad DEFAULT 'X',
p_rep2 RADIOBUTTON GROUP rad.
SELECT-OPTIONS: s_matnr FOR v_matnr.
START-OF-SELECTION.
IF p_rep1 = 'X'.
*-- some criteria to determine the name of the report
v_report = 'ZTEST2'.
ELSE.
v_report = 'ZTEST4'.
ENDIF.
*-- get the parameters for the report
CALL FUNCTION 'RS_SELECTIONS_DESCRIPTION'
EXPORTING
report = v_report
TABLES
selections_info = i_selections_info
EXCEPTIONS
no_selections = 1
report_not_existent = 2
subroutine_pool = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LOOP AT i_selections_info WHERE name = 'S_MATNR'.
*-- some criteria based on which, move the values from this program
* to the called program
CLEAR i_seltab.
i_seltab-selname = i_selections_info-name.
i_seltab-kind = i_selections_info-kind.
i_seltab-sign = 'I'.
i_seltab-option = 'EQ'.
i_seltab-low = s_matnr-low.
i_seltab-high = s_matnr-high.
APPEND i_seltab.
ENDLOOP.
IF NOT i_seltab[] IS INITIAL.
SUBMIT (v_report) VIA SELECTION-SCREEN
WITH SELECTION-TABLE i_seltab .
ENDIF.
If this works for you, please reward and close the post.
Regards,
Srinivas -
How to add Material type(MTART) field on Selection screen of MB5B transaction code.
Hi All,
Please let me know how to add material type field on selection screen of MB5B transaction
For that i made copy ZMB5B_COPY of original report RM07MLBD.
Thanks in adv .
SamadhanHi,
Once you copied the standard report to Z report, you can MTART in selection screen like below.
and in order to inlcude the same in programming logic, we have three option.
1) Check all related select queries, and include MTART in SELECT query using inner join with MARA.
2) In START-OF-SELECTION event fill MATNR as shown below.
3) If user entered any value in MTART, then before displaying the report just check material type of each material in the final internal table(which is used to display report) delete enteries from internal table accordingly.
START-OF-SELECTION.
IF MTART[] IS NOT INITIAL AND MATNR[] IS INITIAL.
SELECT MATNR FROM MARA INTO MATNR-LOW WHERE MTART IN MTART.
MATNR-OPTION = 'EQ'.
MATNR-SIGN = 'I'.
APPEND MATNR.
CLEAR MATNR.
ENDSELECT.
ENDIF.
The above option has one limitation: The selection screen variables has some restriction, please read the below thread.
Facing problem in select statement dump DBIF_RSQL_INVALID_RSQL CX_SY_OPEN_S
Getting Dump in the select query has more than 2000 entries
Hope this will work for you .
regards,
Rajesh Sadula. -
Submitting of report using selection screen
Hi,
My requirement is iam having one report so it is executed when we r given site and date it gives one excel file data so now iam having 150 sites so now I want to write the report as date as selection screen and I want to submit that report in this one (new report) so it wants to take the sites automatically from werks (t001w table) and it wants to execute in a loop upto 150 times then it gives 150 excel files so now how can I pass the sites and date to the submitting selection screen date as same for all but only the site wants to varry in the submitting report pls provide the coding ..
Thanks & Regards,
Mohan Reddy.Hello Mohan Reddy,
I think we can try in this way
data: y_v_rspar_line LIKE LINE OF y_v_rspar_tab,
y_v_rspar_tab TYPE TABLE OF rsparams,
y_lk_parm3 TYPE char5 VALUE 'SPERR'. " Selection screen variable name
y_v_rspar_line-selname = y_lk_parm3.
y_v_rspar_line-kind = y_k_p.
y_v_rspar_line-sign = y_k_i.
y_v_rspar_line-option = y_k_eq.
y_v_rspar_line-low = y_k_e. "Excel file site value.
APPEND y_v_rspar_line TO y_v_rspar_tab.
SUBMIT Program name USING SELECTION-SCREEN '1000'
WITH SELECTION-TABLE y_v_rspar_tab AND RETURN.
But try in 2different ways i.e
1) Keep the submit program in the loop of the excel file internal table
and take the site value in the variable and pass the value to this y_v_rspar_line-low
and call submit program.
2) Sort the excel file internal table then pass all the values to y_v_rspar_line-low and use the append statement in the same way and then call the SUBMIT program outside the loop. -
Can I call a selection-screen that is in another function group?
I am writing a function module in function group ZFG_A.
There exists a Dypro 9001 that exists in function group ZFG_B.
How can I call the dynpro 9001 from my function in ZFG_A?
This is not OO so I am not sure how to qualify the 9001? Such as ZFG_B=>9001
call selection-screen 9001 starting at 5 5
ending at 70 15.
I get compile errors on the selection-screen variables because they are not found.
Thank you,
OlivierIts not at all possible to call a screen of different program from other program.
But u can copy the screen using a FM called 'RS_SCRP_COPY' or 'RS_SCREEN_COPY'. In the former u can copy the screen with out popup but u have to specify the SOURCE program name and screen number and TARGET program name and screen no.
In the later u ll get the popup similar to when u copy a screen in SE51.In the popup as u know u have to enter source name and screen no. and target program name and screen no.
Thanks & Regards
Santhosh -
Showing Selection screen Varible values on the workbook report
Hi,
I want to show values of selection screen variables on the workbook report.
Please help me on this.
Thanks,
Isiri.Hey All,
I'm also face the same problem.
IF i use the TEXT related with filter,the workbook become bigger.
In BEx analyzer 3.5 you had the possibility to remove query results from your workbook before saving it.
Any idea's how you can do this in the BI 7.0 Analyzer?
Maybe you are looking for
-
How to connect to dsl airport extreme with built in modem
Hello everybody, while we were tiding our cellar, i found an old airport extreme (a1034) with a built in modem, but i aint able to connect to my isp. I looked throug the manual, but i didnt got answers there (maybe because of my poor english) . Is th
-
How to create an Aux object on Arranger?
I've got an audiotrack open on the left, which's output is routed to Bus 8. Right next to it (and this is what I really do like in the OSX Logic ) is the channel-strip of BUS8. However, being in the arranger window, I can't help but wonder - how woul
-
Total Time Processed- As Error Log in XI
Hi, I want to know if there are any means in XI to produce the Time to process an individual message in XI as the Output of XI. something like sending the total time taken to process the current XI message to a target system like a File server or Mai
-
Planning strategy for Both scenario of Make to order and make to stock
Hi My client having Both scenario of Make to order and make to stock ,so please explain me step by step which Planning strategy is use for following situation 1.Forecast the production quantities for the variants and create the PIRs 2.sales order is
-
I cannot get my Itunes updated to the 10. that is required for my new Iphone. The error is itunes setup exe not a valid Win32 application. Can someone please help me out, I really need to get this phone up and working.