Upload a list on BW selection screen
Hello
please could someone help - I am trying to find a way of uploading a list for the selections on the BW front selection screen - the same as in R/3 select-options where you can upload a list.
is it possible within BW?
any help would be great
cheers
Nick
To personalize:
http://help.sap.com/saphelp_nw04/helpdata/en/3f/30ae3d47afd652e10000000a114084/content.htm
Saving Variants:
http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a54f5e09411d2acb90000e829fbfe/content.htm
Once you have a variant, append it like this:
http://yourAppServer:yourPort/SAP/BW/BEx?CMD=LDOC&template_id=yourTemplate&variant=nameofvariant
Thanks,
Jeff
Similar Messages
-
How to create list box in selection screen
Hi Experts,
I want to create 2 list boxes, each one is having 5 fields. suggest me the logic.
Thanks.
TonyHi,
Below is the link to help you.
[List Box in Selection Screen;
Or here is the sample code.
TYPE-POOLS: vrm.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.
PARAMETERS: ps_parm(10) AS LISTBOX VISIBLE LENGTH 10.
AT SELECTION-SCREEN OUTPUT.
name = 'PS_PARM'.
value-key = 'scooby1'. APPEND value TO list.
value-key = 'tweety2'. APPEND value TO list.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list.
Hope it will help you. Please revert back in case of any query.
Regards
Natasha Garg
Edited by: Natasha Garg on Jan 8, 2009 6:28 AM -
How can we use list box on selection screen
hi, howe can we use list box on selection screen and how can we populate the dat ainto the list box and how can we retrive data based on list box from ther database.
thanks in advance
rajuUse the VRM_SET_VALUES function module.
DATA: list TYPE vrm_values,
value LIKE LINE OF list.
AT SELECTION SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
name = 'P_OBJECT'.
CLEAR list.
REFRESH list.
CLEAR value.
value-key = '1'.
value-text = 'Development Class'.
APPEND value TO list.
CLEAR value.
value-key = '2'.
value-text = 'Program'.
APPEND value TO list.
CLEAR value.
value-key = '3'.
value-text = 'Function Module'.
APPEND value TO list.
CLEAR value.
value-key = '4'.
value-text = 'Database Table'.
APPEND value TO list.
CLEAR value.
value-key = '5'.
value-text = 'Structure'.
APPEND value TO list.
CLEAR value.
value-key = '6'.
value-text = 'View'.
APPEND value TO list.
CLEAR value.
value-key = '7'.
value-text = 'Data Element'.
APPEND value TO list.
CLEAR value.
value-key = '8'.
value-text = 'Table Type'.
APPEND value TO list.
CLEAR value.
value-key = '9'.
value-text = 'Class / Interface'.
APPEND value TO list.
CLEAR value.
value-key = '10'.
value-text = 'Type Group'.
APPEND value TO list.
CLEAR value.
value-key = '11'.
value-text = 'Domain'.
APPEND value TO list.
CLEAR value.
value-key = '12'.
value-text = 'Search Help'.
APPEND value TO list.
CLEAR value.
value-key = '13'.
value-text = 'Lock Object'.
APPEND value TO list.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF. -
Hanling List box in Selection screen
Hi,
i have a requirement as ,
i have one selection screen with two blocks
in one block i have warehouse no input field
in another blocke i have list box for barcodes.
1.i need to get barcode for the entered warehouse no from custome barcodes table.
2.If i select any barcode from the list box that has to be filled into that barcode parameter.
i have achieved first thing.
I need ur suggestions for the second one
Thanks & Regards
EswarOne more thing here i am populating the list box with all the barcodes present in the custom table.
-
Text upload in Web Template variable selection screen
Hi all,
In the Analyzer it is possible to upload text files in the variable selection screen but I can't find this feature in the variable selection screen for Web Templates.
Anyone has an idea ?
Regards,
OlivierHi,
it's is not possible with standard.
I read in some sap feature paper that it will come.
Maybe it will be possible with modification, but that's only an idea.
Kind regards,
Tobias -
How to display list in Agent Selection Screen?
Hi,
I am using DISPATCH method in Agent Selection screen ( obj. type WF_TASK ).
In description it says that this method could display a list of users but
in reality it displays only one item.
If anyone was able to display a list would you share how to do it?
Thank you.I think you will need to give more information. What does your binding look like, what are the possible agents for the task you give in the binding? This last one if you get a list or search functionality.
Regards,
Martin -
List boxes on selection screen
i have a selection screen on which there are two list boxes of which one should accept matnr, as soon as matnr is selected the werks in the other list box should be displayed for that matnr....
thanks
regards
johnRefer the links -
Dynamic Listbox
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm
Regards,
Amit
Reward all helpful replies. -
Drop Down List in Query Selection Screen Takes Long Time.
I open a report, refresh the query and get a selection screen. But when clicked on the drop down list it takes 4- 5 mins for displaying the drop down options.
How can I speed up the displaying of drop down list in selection screen?
Could any one please help regarding the setting to enable this?
Thanks.Hi,
I guess there is a setting to look up the master data tables or use the dimension,which would speed up the time that it takes to display the drop down selections
Do you have any idea about the setting?
Thanks. -
Dynamic selection list based on selection screen values ?
I have a requirement which I can't solve in one step in a selection screen
first field I have to select the contract like you do with me33k
in the second field I have to select the position of the contract filled in at the first field ?
if the position is selected I have to fill other fields in the selection screen and block them for altering the information entered by the position selected
anybody got some sample on how to do this ??
kind regards
arthur de smidtI really don't understand why it's not working. after input of the parameter field debugging doesn't start when is it evaluated ??
I want the screen modified at every change of p_contr.
SELECTION-SCREEN: BEGIN OF BLOCK s01 WITH FRAME TITLE text-s01.
parameters: p_bukrs like ekko-bukrs MEMORY ID BUK obligatory,
P_WERKS like EKPO-WERKS MEMORY ID WRK OBLIGATORY,
p_ekorg like ekko-ekorg MEMORY ID EKO obligatory,
P_EKGRP like EKKO-EKGRP MEMORY ID EKG OBLIGATORY.
SELECTION-SCREEN: END OF BLOCK s01.
SELECTION-SCREEN: BEGIN OF BLOCK s05 WITH FRAME TITLE text-s05.
parameters: p_contr AS CHECKBOX USER-COMMAND contr,
p_konnr like EKKO-ebeln MATCHCODE OBJECT MEKK ,
P_KTPNR like EKPO-ktpnr.
SELECTION-SCREEN: END OF BLOCK s05.
SELECTION-SCREEN: BEGIN OF BLOCK s02 WITH FRAME TITLE text-s02.
parameters: p_lifnr like ekko-lifnr modif id CTR,
p_EVERK like EKKO-VERKF," obligatory,
p_afnam type zafnam,
p_uwkenm like EKPO-TXZ01,
P_IHRAN like EKKO-IHRAN DEFAULT SY-DATUM,
P_KDATB like EKKO-KDATB," obligatory,
P_KDATE like EKKO-KDATE," obligatory,
p_cntVU LIKE RP50G-PERNR OBLIGATORY
MATCHCODE OBJECT PREM,
p_advies type lifnr.
SELECTION-SCREEN: END OF BLOCK s02.
SELECTION-SCREEN: BEGIN OF BLOCK s03 WITH FRAME TITLE text-s03.
SELECTION-SCREEN PUSHBUTTON /1(17) WERK USER-COMMAND WERK.
parameters: P_TXZ01 like EKPO-TXZ01 obligatory,
* p_txt9 type tline,
P_MATKL like EKPO-MATKL DEFAULT 'DNST-02' OBLIGATORY.
selection-screen begin of line.
SELECTION-SCREEN COMMENT 1(31) TEXT-001 FOR FIELD p_menge.
parameters: P_MENGE like EKPO-MENGE DEFAULT '1' OBLIGATORY,
P_MEINS like EKPO-MEINS DEFAULT 'ST' OBLIGATORY.
selection-screen end of line.
selection-screen begin of line.
SELECTION-SCREEN COMMENT 1(31) TEXT-002 FOR FIELD p_netpr.
parameters: P_NETPR like EKPO-NETPR obligatory,
P_EPEIN like EKPO-BPRME DEFAULT 'ST' OBLIGATORY.
SELECTION-SCREEN POSITION 55.
parameters: p_schpr like ekpo-schpr.
selection-screen end of line.
parameters: p_saknr like mepoaccounting-sakto obligatory,
p_aufnr like mepoaccounting-aufnr obligatory.
SELECTION-SCREEN: END OF BLOCK s03.
initialization.
clear h_exit.
set pf-status 'STANDAARD'.
move 'Werkomschrijving' to WERK.
at selection-screen on p_contr.
loop at screen.
if p_contr = 'X'.
if screen-group1 = 'CTR'.
screen-input = 0.
screen-active = 0.
screen-required = 0.
modify screen.
else.
screen-input = 0.
screen-active = 1.
screen-required = 1.
modify screen.
endif.
endif.
endloop.
at selection-screen on exit-command.
case sy-ucomm.
when '&F03' or '&F015' or '&F12'.
leave program.
endcase.
at selection-screen on block S01.
case sy-ucomm.
when 'ONLI'.
type_doc = 'B'.
when 'ONLI1'.
type_doc = 'O'.
endcase.
perform checks_org.
at selection-screen on block S02.
perform checks_lev.
at selection-screen on block s03.
check sy-ucomm(4) eq 'ONLI'.
perform checks_werk.
at selection-screen.
case sy-ucomm.
when 'WERK'.
perform lange_omschrijving.
when 'SPOS'.
CALL FUNCTION 'RS_VARIANT_SAVE_FROM_SELSCREEN'
EXPORTING
CURR_REPORT = 'ZBESTELLING'.
endcase.
start-of-selection. -
Display month and year in dropdown list on selection screen
Hi
Can anyone tell me how to display months and year in a dropdown list on a selection screen?
also please tell me how to get the first and the last dates upon selecting the month and year on the dropdown list.
Month: January Year:2007 .
After selecting the required month and year, the first date and last date i.e '01.01.2007 - 31.01.2007' should be displayed on the right side.
Reward Points assured..
thanks,
ChetanHi..,
<b>
Just copy, paste and execute this program !!</b>
type-pools: vrm.
parameters : p_month(2) type n as listbox visible length 10,
p_year(4) type n as listbox visible length 10.
DATA : W_DATE type d, w_ldate type d.
initialization.
perform user_drop_down_list_fordt.
perform user_drop_down_list_foryr.
start-of-selection.
concatenate p_year p_month '01' into w_date.
call function 'BKK_GET_MONTH_LASTDAY'
exporting
i_date = w_date
IMPORTING
E_DATE = w_ldate
write /: w_date,w_ldate.
build user_drop_down_list
form user_drop_down_list_fordt.
data: name type vrm_id,
list type vrm_values,
value like line of list.
data: t_months type t247 occurs 0 with header line.
clear list. refresh list.
name = 'P_MONTH'.
select * into table t_months
from t247 where spras eq 'EN'.
sort t_months ascending by mnr.
loop at t_months.
clear value.
value-key = t_months-mnr.
value-text = t_months-ltx.
append value to list.
endloop.
Set the values
call function 'VRM_SET_VALUES'
exporting
id = name
values = list.
endform.
for year...
form user_drop_down_list_foryr.
data: name type vrm_id,
list type vrm_values,
value like line of list.
clear list. refresh list.
name = 'P_YEAR'.
do 9999 times.
clear value.
value-key = sy-index.
append value to list.
enddo.
Set the values
call function 'VRM_SET_VALUES'
exporting
id = name
values = list.
endform.
<b>
Hope this solves ur problem..</b>
regards,
sai ramesh -
How to use dropdown list in selection screen
Hi everyone.
I'm stating a new report and a drop down list is required in initial filtering. I red different articles in google but istill just don't get it... please help...Sample Code:
TYPE-POOLS: vrm.
DATA: name TYPE vrm_id, list TYPE vrm_values, value LIKE LINE OF list.
* List box
PARAMETERS: ps_parm AS LISTBOX VISIBLE LENGTH 10.
INITIALIZATION.
* Populate list box values
name = 'PS_PARM'.
value-key = '1'. value-text = 'Line 1'. APPEND value TO list.
value-key = '2'. value-text = 'Line 2'. APPEND value TO list.
AT SELECTION-SCREEN OUTPUT.
* Set list box with value
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list.
START-OF-SELECTION.
WRITE: / 'Parameter:', ps_parm.
Regards,
Angelo. -
Drop down list in selection screen.
hello there,
How to get a drop down list box in selection screen and in module pools.
explain also, how to populate some data into that.*& Report ZSREE_DROP *
REPORT ZSREE_DROP .
TABLES : LFA1,EKKO,EKPO.
TYPE-POOLS : VRM.
DATA I1 TYPE I VALUE 0.
DATA : BEGIN OF WA_LFA1,
LIFNR TYPE LIFNR,
NAME1 TYPE NAME1,
END OF WA_LFA1.
DATA IT_LFA1 LIKE TABLE OF WA_LFA1.
DATA : BEGIN OF WA_EKKO,
EBELN TYPE EBELN,
END OF WA_EKKO.
DATA IT_EKKO LIKE TABLE OF WA_EKKO.
DATA : BEGIN OF WA_EKPO,
EBELP TYPE EBELP,
END OF WA_EKPO.
DATA IT_EKPO LIKE TABLE OF WA_EKPO.
DATA : BEGIN OF WA_VRM,
KEY(40) TYPE C,
TEXT(80) TYPE C,
END OF WA_VRM.
DATA IT_VRM LIKE TABLE OF WA_VRM.
*& Module USER_COMMAND_0100 INPUT
text
module USER_COMMAND_0100 input.
CASE SY-UCOMM.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'PDOC'. "fctcode for first list box
CLEAR IT_EKKO.
SELECT EBELN INTO TABLE IT_EKKO FROM EKKO WHERE LIFNR = LFA1-LIFNR.
CLEAR IT_VRM.
LOOP AT IT_EKKO INTO WA_EKKO.
WA_VRM-KEY = WA_EKKO-EBELN.
WA_VRM-TEXT = WA_EKKO-EBELN.
APPEND WA_VRM TO IT_VRM.
CLEAR WA_VRM.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'EKKO-EBELN'
VALUES = IT_VRM
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WHEN 'PITEM'. "fctcode second listbox
CLEAR IT_EKKO.
SELECT EBELP INTO TABLE IT_EKPO FROM EKPO WHERE EBELN = EKKO-EBELN.
CLEAR IT_VRM.
LOOP AT IT_EKPO INTO WA_EKPO.
WA_VRM-KEY = WA_EKPO-EBELP.
WA_VRM-TEXT = WA_EKPO-EBELP.
APPEND WA_VRM TO IT_VRM.
CLEAR WA_VRM.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'EKPO-EBELP'
VALUES = IT_VRM
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDCASE.
endmodule. " USER_COMMAND_0100 INPUT
**& Module STATUS_0100 OUTPUT
text
module STATUS_0100 output.
SET PF-STATUS 'ZSREE'.
SET TITLEBAR 'ZSREE'.
endmodule. " STATUS_0100 OUTPUT
*& Module SELECT_LIST OUTPUT
text
module SELECT_LIST output.
CLEAR IT_LFA1.
SELECT LIFNR NAME1 INTO TABLE IT_LFA1 FROM LFA1.
CLEAR IT_VRM.
LOOP AT IT_LFA1 INTO WA_LFA1.
WA_VRM-KEY = WA_LFA1-LIFNR.
WA_VRM-TEXT = WA_LFA1-LIFNR.
APPEND WA_VRM TO IT_VRM.
CLEAR WA_VRM.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'LFA1-LIFNR'
values = IT_VRM
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endmodule. " SELECT_LIST OUTPUT
Bye Murthy -
Display list on selection-screen
Hello everyone,
I've got a question concerning selection screen. I want to know, if there is a way to display list/table on selection screen after user input. Specifically, when user enters for example 30 invoice numbers into select-options, I need those 30 numbers displayed on the same selection screen.
Thanks in advanceinstead u can print selection screen....along with output.....
for this....
You can use given function module to print your
selection screen
RS_REFRESH_FROM_SELECTOPTIONS
>This will get Current contents of selection screen
RS_LIST_SELECTION_TABLE
>This will Generates list according to values in selection table(RSPARAMS)
Sample
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = p_repid
TABLES
selection_table = it_int_tab
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3.
IF sy-subrc EQ 0.
WRITE:1 'Selection Criteria'(i19),
/1 sy-uline(18),
/1 'Variant Name'(i21),
23 sy-slset.
*-- This function module lists the Selection Screen contents
CALL FUNCTION 'RS_LIST_SELECTION_TABLE'
EXPORTING
report = p_repid
seltext = 'X'
newpage = space
TABLES
sel_tab = it_int_tab
EXCEPTIONS
sel_tab_empty = 1
OTHERS = 2. -
Creating a list box to the selection screen field
Hi folks,
Could any one suggest me how to add a list box (drop down list) to a selection screen field.
Thanks,
Santosh.
Edited by: shyam prasad on Apr 3, 2009 6:07 AMHi,
just follow the code like below,
TYPE-POOLS: vrm.
TABLES sscrfields.
PARAMETERS: p_values AS LISTBOX VISIBLE LENGTH 10.
PARAMETERS: p_key TYPE char40 DEFAULT '5',
p_text TYPE char80 DEFAULT 'Motorcycle'.
SELECTION-SCREEN PUSHBUTTON /10(10) but USER-COMMAND abc.
DATA: i_val TYPE vrm_values,
wa_val TYPE vrm_value.
AT SELECTION-SCREEN OUTPUT.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_VALUES'
values = i_val
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
AT SELECTION-SCREEN.
IF sscrfields-ucomm = 'ABC'.
IF p_key IS INITIAL AND p_text IS INITIAL.
MESSAGE e001(00) WITH 'Enter both Key and Text to add value'.
ELSE.
CLEAR: wa_val.
wa_val-key = p_key.
wa_val-text = p_text.
APPEND wa_val TO i_val.
ENDIF.
ENDIF.
INITIALIZATION.
CLEAR: wa_val.
wa_val-key = 1.
wa_val-text = 'Bus'.
APPEND wa_val TO i_val.
CLEAR: wa_val.
wa_val-key = 2.
wa_val-text = 'Car'.
APPEND wa_val TO i_val.
CLEAR: wa_val.
wa_val-key = 3.
wa_val-text = 'Van'.
APPEND wa_val TO i_val.
CLEAR: wa_val.
wa_val-key = 4.
wa_val-text = 'Bicycle'.
APPEND wa_val TO i_val.
Hope it helps!!
Regards,
Pavan -
Selection screen in abap report
Hi,
I am using 2 selection options in my report.
But the list of values for second selection options is depends on the selected value in the first selection option.
how to do this.
because i cant use selected value of first option in AT-SELECTION point.Hi again,
1. There are 2 list box on selection-screen.
2. 1st shows all company code, and company text.
3. On selecting the first,
the second is populated.
(it selects again from T001
and shows the same company information)
4.
REPORT abc.
TYPE-POOLS: vrm.
DATA: it_val TYPE vrm_values.
DATA: ekk TYPE vrm_values.
Sel Screen.
PARAMETERS p_diff LIKE t001-bukrs AS LISTBOX
VISIBLE LENGTH 16
USER-COMMAND ab.
PARAMETERS hh LIKE ekko-ebeln AS LISTBOX
VISIBLE LENGTH 16 .
AT SELECTION-SCREEN OUTPUT.
REFRESH it_val.
CLEAR it_val.
SELECT bukrs butxt FROM t001 INTO TABLE it_val.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_DIFF'
values = it_val.
Second List Box
REFRESH ekk.
CLEAR ekk.
SELECT bukrs butxt
FROM t001
INTO TABLE ekk
WHERE bukrs = p_diff.
clear hh.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'HH'
values = ekk.
regards,
amit m.
Maybe you are looking for
-
Startup problem - no startup options
I've been having numerous problems with my X61 7675-CTO with Win Vista Business and most of them are due to Lenovo's system updates. But this one is a "residue" from when I had my computer sent in for service. Ever since, upon startup I hear three be
-
I'm running Mavericks and imported a time machine backup of Snow Leopard during installation. I am trying to free up space on my boot SSD and was thinking of moving Users and Applications folders to their own partitions or drives. I'm doing a lot of
-
Designing a query and displaying the query output
The goal is to create a report (in HTML form) of all the jobs (and job-related information) for a given department. I envision the department name as a hyperlink to a report based on the unique DepartmentID. For example, the "Sales" department might
-
Project and Checklist templates - Copy
Hi, We are on PPM5.0. Is it possible to copy project and/or checklist templates from one client/system to another? We are not carrying out any client or system copy. We have a significant number of projects and checklist templates in a training clien
-
hi how do you create instance of bean in action. i am getting error when i try to do it. can you please suggest. thanks jayashree