Dynamic selections in a selection screen
Hi Gurus,
When I am using dynamic selections for a selection screen using FM "RS_SET_SELSCREEN_STATUS".
If I am using dynamic selection screen, the variants which I am able to save are not visible in the application toolbar of the seclection screen.
That is the variant button is not visible in the application toolbar of the selection screen. By this the user is facing problem to select the variant be'cos he is not able to see the variant button.
Please do help me to show this variant button on the application toolbar in the selection screen.
<b><REMOVED BY MODERATOR></b>
Regards
Mac
Message was edited by:
Alvaro Tejada Galindo
Hi,
When you use the "RS_SET_SELSCREEN_STATUS" you set the application tool bar and others.
In your PF-Status include the an item for Variants with the details below
Function Code - GET
Function Type - E
Function Text - Get Variant...
Icon name - ICON_VARIANTS
Fast Path - V
let me know if that works.
Regards,
Santosh
Similar Messages
-
How to display the dynamic text in the selection screen
Hi All,
I want to display the dynamic text in the selection screen .... ( I searched in forums , didnt get the any answer fot this sort of qustion ).....
EX: If i have the date of today 31st it has to show message like " today date is 31 like some thing " when i execute the report .
Could any one face this sort of requirment, Please let me know.
Thanks in advance.
Reagrds,
BharaniWhere would you like this dynamic text being displayed? As an "message" or in some parameter field?
If first
parameters date type d.
data: text type string.
at selection-screen.
concatenate 'Today is' date into text.
message text type 'I'.
If second
parameters pa_text type c length 50.
at selection-screen on date.
if date is not initial.
concatenate 'Today is' date into pa_text.
enidf.
at selection-screen output.
"show it as read only
loop at screen.
if screen-name = 'PA_TEXT'.
screen-input = abap_false.
modify screen.
endif.
endloop.
Regards
Marcin -
How to get the values of Select-options from the screen.
The value of parameter can be obtained by function module 'DYNP_VALUES_READ' but How to get the values of Select-options from the screen? I want the F4 help values of select-options B depending on the values in Select-option A.So I want to read the Select-option A's value.
Hi,
Refer this following code..this will solve your problem...
"Following code reads value entered in s_po select options and willprovide search
"help for s_item depending upon s_po value.
REPORT TEST.
TABLES : ekpo.
DATA: BEGIN OF itab OCCURS 0,
ebelp LIKE ekpo-ebelp,
END OF itab.
SELECT-OPTIONS s_po FOR ekpo-ebeln.
SELECT-OPTIONS s_item FOR ekpo-ebelp.
INITIALIZATION.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_item-low.
DATA:
dyn_field TYPE dynpread,
temp_fields TYPE TABLE OF dynpread,
zlv_dynpro TYPE syst-repid.
zlv_dynpro = syst-repid.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = zlv_dynpro
dynumb = syst-dynnr
request = 'A'
TABLES
dynpfields = temp_fields
EXCEPTIONS
OTHERS = 0.
LOOP AT temp_fields INTO dyn_field.
IF dyn_field-fieldname EQ 'S_PO-LOW'.
SELECT * INTO CORRESPONDING fields OF TABLE itab FROM ekpo
WHERE ebeln EQ dyn_field-fieldvalue.
EXIT.
ENDIF.
ENDLOOP. -
Dynamic date in the selection according to fiscal year variant
Hi
Is it possible to set dynamic date input parameter from the fiscal year variant sap table (OB29 transaction).
For example when I run valuation (F.05) I want the value date input field to be the last day of the previous period.
Thanks
OferHi,
The dynamic dates on the selection parameters may come from the variant.
You need to create the variants accordingly to your requirements and specify how the date on the selection screen has to be calculated.
You have different options for this purpose.
T T: Table Variable from TVARVC
D D: Dynamic date calculation -
How to hide a select option on slelection screen??
Hi all,
I wanna hide a screen field (select option) on selection-screen. I looped the screen in AT SELECTION-SCREEN OUTPUT and found the name of screen to hide. But the <option_name>_low and <option_name>_high are always show here.
Who can give me a way to do that???
In fact, i wanna hide or display the select option after choosing a radiobutton.Who can give me a way??Hi,
Check the below code.
tables: pa0000, pa0001.
parameters: p_rad1 radiobutton group rad1 default 'X' user-command rusr,
p_rad2 radiobutton group rad1,
p_rad3 radiobutton group rad1,
p_rad4 radiobutton group rad1,
p_rad5 radiobutton group rad1.
selection-screen: begin of block blk1 with frame.
select-options: s_pernr for pa0000-pernr modif id ABC,
s_stat2 for pa0000-stat2 modif id DEF,
s_werks for pa0001-werks modif id GHI,
s_persg for pa0001-persg modif id JKL,
s_persk for pa0001-persk modif id MNO.
selection-screen: end of block blk1.
AT SELECTION-SCREEN output.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'ABC'.
IF p_rad1 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'DEF'.
IF p_rad2 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'GHI'.
IF p_rad3 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'JKL'.
IF p_rad4 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'MNO'.
IF p_rad5 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
*Note
*Titles for Rado buttons and parameters.
*P_RAD1 Personal Number
*P_RAD2 Employment Status
*P_RAD3 Personnel Area
*P_RAD4 Employee Group
*P_RAD5 Employee Sub group
*S_PERNR Personal Number
*S_PERSG Employee Group
*S_PERSK Employee Sub group
*S_STAT2 Employment Status
*S_WERKS Personnel Area -
Calling Dynamic Variable within a select
Hi
Trying to build up a dynamic proc and can't see to figure out why I can re use variable If I specify within the select what the code is then its fine but when I add in the variable doesn't workany help would be great !
create table basetable (id int, code varchar(15))
insert into basetable values (1,'SAP'),(2,'REG'),(3,'NRI')
create table Transactiontable (id int identity(1,1), baseid int, Product varchar(15))
insert into Transactiontable values (1,'AAAA'),(1,'BBBB'),(1,'CCCC'),(1,'DDDD'),(1,'unknown'),(2,'AAAA')
DECLARE @SQL NVARCHAR(max),@Cols NVARCHAR(max),@Cols2 NVARCHAR(max);
SELECT * FROM basetable
SELECT * FROM Transactiontable
DECLARE @SQL NVARCHAR(max),@Cols NVARCHAR(max),@Cols2 NVARCHAR(max), @Code NVARCHAR (3) ;
SET @CODE = 'REG'
;WITH mycte0
AS (SELECT ROW_NUMBER()
OVER(
partition BY baseid
ORDER BY id) rn
FROM transactiontable ),
mycte
AS (SELECT DISTINCT rn
FROM mycte0)
SELECT @Cols = STUFF((SELECT ', ' + QUOTENAME(rn)
FROM mycte
ORDER BY rn
FOR XML PATH('')),
1,
2,
,@Cols2 = STUFF((SELECT ', ' + QUOTENAME(rn) +' as [Product'+ cast(rn as varchar(5)) +']'
FROM mycte
ORDER BY rn
FOR XML PATH('')),
1,
2,
SET @SQL = 'select code,'+ @Cols2+' from (select b.code, t.Product, row_number() over(partition by t.baseid order by t.id) rn
from transactiontable t inner join basetable b on b.id=t.baseid where code = '+ @Code + ' --- ''REG''
) src PIVOT (max(Product) For rn In ('
+ @Cols + ')) pvt'
EXEC (@SQL)
DROP TABLE transactiontabledrop ;
DROP TABLE basetable;but when I add in the variable doesn't workany help would be great !
DECLARE @SQL NVARCHAR(max),@Cols NVARCHAR(max),@Cols2
NVARCHAR(max);
SELECT * FROM basetable
SELECT * FROM Transactiontable
DECLARE @SQL NVARCHAR(max),@Cols NVARCHAR(max),@Cols2
NVARCHAR(max), @Code NVARCHAR (3) ;
Within a batch the declare variable name must be unique,you can not (or don't Need to) declare it twice, like here @SQL, @Cols, @Cols2...
In the second declaration part just declare @Code and remove the other; they already exists.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Create a select option in a screen
Is it possible to create a select option in a screen?
I can easily create the 2 input boxes, but not with the little button on the right like when we create a select option in a report.
Is the any other simple way to create a select option without creating a report? (the reason is because I want to have everything in the same module pool)Hi,
Please refer to SAP's documentation here: http://help.sap.com/saphelp_nw70/helpdata/en/e4/2adbec449911d1949c0000e8353423/frameset.htm.
Especially Part 'Subscreens and Tabstrips for Selection Screens', there go to 'Selection Screens as Subscreens'.
HTH, Gerd Rother -
Length of select-options in selection screen.
Hi,
I was able to give the lemgth of select-options only upto 8 characters.
Select-options :S_Mtrial for mara-matnr.
But my requirement is I want total name which is more than 8 characters.
Select-options:Material_numberl for mara-matnr.
Can any one help how to do.
Thanks in advance.The Statement...
Select-options :S_Mtrial for mara-matnr
The selection screen length depends on the type that you are assigning to it. Since the length of type
mara-matnr is less, the selection option S_Mtrial will be displayed with short length in the selection screen.
The alternate to do this is...
selection-screen begin of line.
selection-screen comment 2(10) text-001.
select-options : <ur select option name>
selection-screen end of line.
Text element,text-001 contains the select option text to be displayed in the screen
Hope it helps. -
Cannot select the newly created Screen variant in ENJOY transactions.
Hello All,
I have created a screen variant for a specific requirement from the client in transaction SHD0.
However I am unable to select this new screen variant in all ENJOY transactions.
When I try to select the screen variant in FB50-Post GL through>EDIT>Screen Variant, Select,Reset and Create Screen variants are greyyed out.
I have checked the setting in SU3, as well as FB00 for the Parameters, it appears to be correct.
Kindly help at the earliest!!
Regards
ShrutikaHi,
Shrutika.
Try this I hope this may help you.
Go to FB50 at above left hand side will see Tree On option button. Click on that you will see Screen vairants for items option with drop down object. Simply click on that now select your desired screen variant by double clicking applied.
I hope this may help you to solve your issue. If you have any doubts feel free to ask.
Regards,
Pankaj A Bhalerao. -
Reading videos with iphoto and select iphoto in the screen saver
Since I've upgraded my mac with mavericks, I can not read videos in iphoto'09.
I have an other proble: I can't select iphoto in the screen saver module.
Can you help me? thanxAbout videos in iphoto'09: before upgrading my mac with mavericks, in order to read videos I just click on it. Now, itunes don't find the good software to read the video in iphoto.
About selecting a new screen saver: my mac can not find the iphoto library in the right place when I'm in the screen saver module -
How to create the select option in the screen
HI,
I am developing one module pool program and I have below requirement,
currently plant is acting like PARAMETER and the now it should be changed to select option.
how to create the select option in the screen
Thanks and regarding,
Malla
Moderator message - Please search before asking - post locked
Edited by: Rob Burbank on Dec 16, 2009 1:41 PMTry RANGES.
The RANGES has same structure as that of select-options. -
Side by side select options in selection screen
Hai Gurus,
In a report, I need to place Period From and Period To date select-options in selection screen.
In one line (i.e side by side).
Appreciate your immediate response.
Thanks and Regards,
Kiran.Thanks to all,
I got it.
my code here.
SELECTION-SCREEN: BEGIN OF BLOCK sel1 WITH FRAME TITLE text-sel.
PARAMETERS: SUMMARY AS CHECKBOX USER-COMMAND SUMMARY.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(13) text-pfr.
SELECT-OPTIONS: VALID_FR FOR ZZUTIL_RATE-VALID_FR MODIF ID RAM no intervals NO-EXTENSION. "changed
SELECTION-SCREEN COMMENT 30(13) text-pto.
SELECT-OPTIONS: VALID_TO FOR ZZUTIL_RATE-VALID_TO no intervals NO-EXTENSION. "changed
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN: END OF BLOCK SEL1. -
Output from tables which I mention in select options of the screen as input
Dear All,
I want to fetch the data in the form of output from tables which I will mention in select options of the screen as input.
In selection screen option if I write any table name then how can i select this table in select query of ABAP program ?.
I may select any tables in select options of screen. But In select query I should get that table name automatically.. How ?
e.g. If i put table name as an input i.e. MARA in select option .
In program how to write select query to get records from that table ?
SELECT MTART MATKL from MARA
Every time I should not go to select query of program & replace the tablename.
How to solve this problem ?Hi,
PARAMETERS p_table(30)." type string.
"This is a Tested code Just Execute and Check
START-OF-SELECTION.
DATA: lt_tmp TYPE REF TO data.
DATA : line TYPE REF TO data.
FIELD-SYMBOLS: <lt_tmp> TYPE STANDARD TABLE, <wa>, <dyn_field>.
CREATE DATA lt_tmp TYPE STANDARD TABLE OF (p_table).
ASSIGN lt_tmp->* TO <lt_tmp> .
CREATE DATA line LIKE LINE OF <lt_tmp>.
ASSIGN line->* TO <wa>.
SELECT * FROM (p_table) INTO TABLE <lt_tmp>.
IF sy-subrc = 0.
LOOP AT <lt_tmp> ASSIGNING <wa>.
DO.
ASSIGN COMPONENT sy-index
OF STRUCTURE <wa> TO <dyn_field>.
IF sy-subrc NE 0.
EXIT.
ENDIF.
IF sy-index = 1.
WRITE:/ <dyn_field>.
ELSE.
WRITE: <dyn_field>.
ENDIF.
ENDDO.
ENDLOOP.
ENDIF.
Cheerz
Ram -
Select-options/range in screen
Hi all,
I just wanted to display select-options in the screen numbered 1000,
by putting which control can i do this ??........
regards
Joseif u want to pass values in the selection screen use
Ex:
selection-screen begin of block b1
select-options : p_matnr for mara-matnr.
selection-screen end of block b1.
else if u want to pass while execution of program
use Ranges
Ex: ranges: p_matnr for mara-matnr.
Pass variables
p_matnr-low, p_matnr-high....................
Regards,
Ajay -
Multiple select-options in a screen But no screen space
Dear Experts,
I have mutiple select options in a screen, i am finding it a problem to display them all in one screen.
it should be done with out any vertical scroll nor horizontol scroll.
Awaiting to hear from you all.
Regards,
KarthikHi,
You can include more than one selct options or parameters in a single line..that might be favourable as u do not want to have scrolls..
the syntax goes like this
SELECTION-SCREEN BEGIN OF LINE.
<declare your parameters and select options>
SELECTION-SCREEN end OF LINE.
whatever u have written between begin of line and end of line will appear in a line..in this way you can reduce the page size..Hope the information was useful.
Regards
Vasavi
Edited by: Vasavi Kotha on Jan 6, 2009 5:29 PM
Maybe you are looking for
-
..
-
Red frames popping up after upgrade to media encoder cc
I'm having some issues with Media Encoder CC. My workflow is AMA SxS card (footage is in XDCAM HD 1080/50i) into Avid Media Composer 6, edit, and export as XDCAM HD 1080/50i mxf file into a watch folder that Media Encoder picks up and converts to SD
-
Solution for the Finance AR aging report by BW
Dear gurus, In our bw system , we want to realize the AR aging report . but there are some problems . for the partial pay logic in the R/3 , we want to combine the partial incoming payment line item with the customer invoice in t
-
HTTPService is not working.
I have an application in which I send an HTTP request using HttpService.send. It works fine when I run it using FlexBuilder but when I simply open the main.html file in web browser(directly) it stops working. In this case no Http Request is sent and
-
PDFs from InDesign CS4 too large
I'm trying to make a small PDF of a 20pp A4 publication (magazine) to email to my client (file/adobe PDF presets), but no matter what I do the files are huge. This never used to be an issue in earlier versions of CS??? Help Please