Select-option in interactive report
Hello , this is urgent requirement.
I have one report in which in the basic report i need to display the table name like mara, mard, marc etc etc 100 table is there.
when i click on the particular table , in the secondary list the key field of the select option should display with select option.
please let me know if you have soultion.
Thanks and regards,
zubera
hi,
try this code
TABLES : dd02t,databrowse.
DATA : it_dd02t TYPE TABLE OF dd02t WITH HEADER LINE.
PARAMETERS : table LIKE dd02l-tabname default 'M%'.
SELECT *
INTO TABLE
it_dd02t
FROM dd02t
WHERE tabname LIKE table AND ddlanguage = 'E'.
LOOP AT it_dd02t.
WRITE / it_dd02t-tabname HOTSPOT.
HIDE it_dd02t-tabname.
ENDLOOP.
AT LINE-SELECTION.
CASE sy-lsind.
WHEN '01'.
databrowse-tablename = it_dd02t-tabname.
SET PARAMETER ID 'DTB' FIELD databrowse-tablename.
CALL TRANSACTION 'SE16'.
ENDCASE.
reward if helpful.
prasanth
Similar Messages
-
Populating multiple entries in the select option of a Report
Hi,
Ineed to populate multiple entries in the select option of a report where the bdctab has more entries than the number of rows in the select option. I have tried the transaction LINS ( Insert row) but it works intermittently based on the RSSEL-LOW(xx) value. Looking forward to any inputs.
cheers
AveekHi,
Here is my code dump:
**Version 0005
*CTS D7AK900899 New Version code fixed for testaveek28 case.
*MOD-1887120: Code that is changed after the release of transport.
Populate the general selection criteria on first screen
PERFORM f_populate_bdc_tab USING:
'X' 'APO_BAPI_DEL_TRANS_OBJECTS' '1000',
' ' 'BDC_CURSOR' 'EXT_PROD-LOW',
' ' 'BDC_OKCODE' '=%011',
' ' 'BDC_OKCODE' '=DUMMY',
' ' 'PLVERS' '000',
' ' 'MD_SYS' p_log,
' ' 'EXTRB' 'X',
' ' 'MO_DEL' 'X',
' ' 'SIM' space,
' ' 'P_LOGDEL' '5'.
sort it_core_prod by pcode.
delete adjacent duplicates from it_core_prod
comparing pcode.
describe table it_core_prod lines lv_line.
CLEAR lv_count.
LOOP AT it_core_prod ASSIGNING <lfs_data>.
lv_count = 1.
CONCATENATE gc_rscsel gc_l_brac lv_count gc_r_brac INTO lv_fname.
if lv_line > 1.
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000',
' ' lv_fname <lfs_data>-pcode,
' ' 'BDC_OKCODE' '=LINS'.
CLEAR lv_fname.
ENDLOOP.
*Populate the select options screen for product
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000',
' ' 'BDC_SUBSCR' 'SAPLALDB 3010SCREEN_HEADER',
' ' 'BDC_OKCODE' '=ACPT'.
sort it_prod_var by pcode prvar.
delete adjacent duplicates from it_core_prod
comparing pcode prvar.
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000'.
LOOP AT it_core_prod ASSIGNING <lfs_data>.
lv_pcode = <lfs_data>-pcode.
*lv_count = lv_count + 1.
lv_count = 1.
CONCATENATE gc_rscsel gc_l_brac lv_count gc_r_brac INTO lv_fname.
if lv_line > 1.
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000',
' ' lv_fname <lfs_data>-pcode,
' ' 'BDC_OKCODE' '=LINS'.
CLEAR lv_fname.
describe table it_prod_var lines lv_line.
sort <lfs_data> by locno pcode prvar.
LOOP AT it_prod_var ASSIGNING <lfs_data1> where pcode = lv_pcode.
lv_count = lv_count + 1.
lv_count = 1.
CONCATENATE gc_rscsel gc_l_brac lv_count gc_r_brac INTO lv_fname.
if lv_line > 1.
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000',
' ' lv_fname <lfs_data1>-prvar,
' ' 'BDC_OKCODE' '=LINS'.
else.
PERFORM f_populate_bdc_tab USING:
' ' lv_fname <lfs_data>-prvar,
' ' 'BDC_OKCODE' '=LINS'.
endif.
CLEAR lv_fname.
ENDLOOP.
ENDLOOP.
Populate the select options screen for product
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000',
' ' 'BDC_SUBSCR' 'SAPLALDB 3010SCREEN_HEADER',
' ' 'BDC_OKCODE' '=ACPT'.
Populate the select options for the Locations
PERFORM f_populate_bdc_tab USING:
'X' 'APO_BAPI_DEL_TRANS_OBJECTS' '1000',
' ' 'BDC_CURSOR' 'EXT_PRD-LOW',
' ' 'BDC_OKCODE' '=%012',
' ' 'PLVERS' '000',
' ' 'MD_SYS' p_log,
' ' 'EXTRB' 'X',
' ' 'MO_DEL' 'X',
' ' 'SIM' space,
' ' 'P_LOGDEL' '5'.
Populate the select options screen for product
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000',
' ' 'BDC_SUBSCR' 'SAPLALDB 3010SCREEN_HEADER',
' ' 'BDC_OKCODE' '=ACPT'.
CLEAR lv_count.
LOOP AT it_loc_data ASSIGNING <lfs_data>.
lv_count = lv_count + 1.
lv_count = 1.
CONCATENATE gc_rscsel gc_l_brac lv_count gc_r_brac INTO lv_fname.
PERFORM f_populate_bdc_tab USING:
' ' lv_fname <lfs_data>-locno.
' ' 'BDC_OKCODE' '=LINS'.
CLEAR lv_fname.
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000',
' ' lv_fname <lfs_data>-locno,
' ' 'BDC_OKCODE' '=LINS'.
CLEAR lv_fname.
ENDLOOP.
CLEAR lv_count.
LOOP AT it_loc_data ASSIGNING <lfs_data>.
lv_count = 1.
CONCATENATE gc_rscsel gc_l_brac lv_count gc_r_brac INTO lv_fname.
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000',
' ' lv_fname <lfs_data>-locno,
' ' 'BDC_OKCODE' '=LINS'.
CLEAR lv_fname.
ENDLOOP.
Populate the objects to be deleted on first screen
PERFORM f_populate_bdc_tab USING:
'X' 'APO_BAPI_DEL_TRANS_OBJECTS' '1000',
' ' 'BDC_OKCODE' '=DUMMY',
' ' 'PLVERS' '000',
' ' 'MD_SYS' p_log,
' ' 'EXTRB' 'X',
' ' 'MO_DEL' 'X',
' ' 'MO_STAT' 'X',
' ' 'PO_DEL' 'X',
' ' 'SL_DEL' 'X',
' ' 'ST_DEL' 'X',
' ' 'PIR_DEL' 'X',
' ' 'SIM' space,
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLSPO1' '0500',
' ' 'BDC_OKCODE' '=OPT1'.
**Version 0005
*CTS D7AK900899 New Version code fixed for testaveek28 case.
*MOD-1887120: Code that is changed after the release of transport.
Populate the general selection criteria on first screen
PERFORM f_populate_bdc_tab USING:
'X' 'APO_BAPI_DEL_TRANS_OBJECTS' '1000',
' ' 'BDC_CURSOR' 'EXT_PROD-LOW',
' ' 'BDC_OKCODE' '=%011',
' ' 'BDC_OKCODE' '=DUMMY',
' ' 'PLVERS' '000',
' ' 'MD_SYS' p_log,
' ' 'EXTRB' 'X',
' ' 'MO_DEL' 'X',
' ' 'SIM' space,
' ' 'P_LOGDEL' '5'.
sort it_core_prod by pcode.
delete adjacent duplicates from it_core_prod
comparing pcode.
describe table it_core_prod lines lv_line.
CLEAR lv_count.
LOOP AT it_core_prod ASSIGNING <lfs_data>.
lv_count = 1.
CONCATENATE gc_rscsel gc_l_brac lv_count gc_r_brac INTO lv_fname.
if lv_line > 1.
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000',
' ' lv_fname <lfs_data>-pcode,
' ' 'BDC_OKCODE' '=LINS'.
CLEAR lv_fname.
ENDLOOP.
*Populate the select options screen for product
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000',
' ' 'BDC_SUBSCR' 'SAPLALDB 3010SCREEN_HEADER',
' ' 'BDC_OKCODE' '=ACPT'.
sort it_prod_var by pcode prvar.
delete adjacent duplicates from it_core_prod
comparing pcode prvar.
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000'.
LOOP AT it_core_prod ASSIGNING <lfs_data>.
lv_pcode = <lfs_data>-pcode.
*lv_count = lv_count + 1.
lv_count = 1.
CONCATENATE gc_rscsel gc_l_brac lv_count gc_r_brac INTO lv_fname.
if lv_line > 1.
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000',
' ' lv_fname <lfs_data>-pcode,
' ' 'BDC_OKCODE' '=LINS'.
CLEAR lv_fname.
describe table it_prod_var lines lv_line.
sort <lfs_data> by locno pcode prvar.
LOOP AT it_prod_var ASSIGNING <lfs_data1> where pcode = lv_pcode.
lv_count = lv_count + 1.
lv_count = 1.
CONCATENATE gc_rscsel gc_l_brac lv_count gc_r_brac INTO lv_fname.
if lv_line > 1.
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000',
' ' lv_fname <lfs_data1>-prvar,
' ' 'BDC_OKCODE' '=LINS'.
else.
PERFORM f_populate_bdc_tab USING:
' ' lv_fname <lfs_data>-prvar,
' ' 'BDC_OKCODE' '=LINS'.
endif.
CLEAR lv_fname.
ENDLOOP.
ENDLOOP.
Populate the select options screen for product
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000',
' ' 'BDC_SUBSCR' 'SAPLALDB 3010SCREEN_HEADER',
' ' 'BDC_OKCODE' '=ACPT'.
Populate the select options for the Locations
PERFORM f_populate_bdc_tab USING:
'X' 'APO_BAPI_DEL_TRANS_OBJECTS' '1000',
' ' 'BDC_CURSOR' 'EXT_PRD-LOW',
' ' 'BDC_OKCODE' '=%012',
' ' 'PLVERS' '000',
' ' 'MD_SYS' p_log,
' ' 'EXTRB' 'X',
' ' 'MO_DEL' 'X',
' ' 'SIM' space,
' ' 'P_LOGDEL' '5'.
Populate the select options screen for product
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000',
' ' 'BDC_SUBSCR' 'SAPLALDB 3010SCREEN_HEADER',
' ' 'BDC_OKCODE' '=ACPT'.
CLEAR lv_count.
LOOP AT it_loc_data ASSIGNING <lfs_data>.
lv_count = lv_count + 1.
lv_count = 1.
CONCATENATE gc_rscsel gc_l_brac lv_count gc_r_brac INTO lv_fname.
PERFORM f_populate_bdc_tab USING:
' ' lv_fname <lfs_data>-locno.
' ' 'BDC_OKCODE' '=LINS'.
CLEAR lv_fname.
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000',
' ' lv_fname <lfs_data>-locno,
' ' 'BDC_OKCODE' '=LINS'.
CLEAR lv_fname.
ENDLOOP.
CLEAR lv_count.
LOOP AT it_loc_data ASSIGNING <lfs_data>.
lv_count = 1.
CONCATENATE gc_rscsel gc_l_brac lv_count gc_r_brac INTO lv_fname.
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLALDB' '3000',
' ' lv_fname <lfs_data>-locno,
' ' 'BDC_OKCODE' '=LINS'.
CLEAR lv_fname.
ENDLOOP.
Populate the objects to be deleted on first screen
PERFORM f_populate_bdc_tab USING:
'X' 'APO_BAPI_DEL_TRANS_OBJECTS' '1000',
' ' 'BDC_OKCODE' '=DUMMY',
' ' 'PLVERS' '000',
' ' 'MD_SYS' p_log,
' ' 'EXTRB' 'X',
' ' 'MO_DEL' 'X',
' ' 'MO_STAT' 'X',
' ' 'PO_DEL' 'X',
' ' 'SL_DEL' 'X',
' ' 'ST_DEL' 'X',
' ' 'PIR_DEL' 'X',
' ' 'SIM' space,
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLSPO1' '0500',
' ' 'BDC_OKCODE' '=OPT1'.
CLEAR gv_msg_error.
lv_ctu_params-nobinpt = space.
lv_ctu_params-dismode = gc_mode_e.
lv_ctu_params-dismode = 'A'.
lv_ctu_params-updmode = 'S'.
lv_ctu_params-racommit = 'X'.
Call Transaction /SAPAPO/BP2
CALL TRANSACTION gc_bp2 USING ct_bdc_data
OPTIONS FROM lv_ctu_params
MESSAGES INTO lt_msg_tab. -
How can I select 2 options in Interactive reports
Hi Friends
I have a doubt about Interactive reports/ ALV interactive reports. Is there any option to select multiple selections in interactive reports. If I am displaying in a screen CustNo, Name, Country.
I want to see order details of that customer in another screen using AT Line-Selection. Can I select multiple customer nos at a time and also can I see those order details whom I selected over in first list.
Please send me reply ASAP if there is any option with suitable example.
Thanks
Praveen.Check out this sample. It uses two ALV grids. On the first one you can do multiple selection, hit the continue buttons and it will throw another ALV with those material/plant records. Implement the following program. Create screen 100 and 200. One each screen create a custom container called ALV_CONTAINER(screen 100) and ALV_CONTAINER2(screen 200). Create the gui status for both. Don't forget to create a "CONTINUE" button on the gui-status 100.
report zrich_0006.
tables: mara.
type-pools: slis, icon.
* Internal Tables
data: begin of ialv occurs 0,
matnr type mara-matnr,
maktx type makt-maktx,
end of ialv .
data: begin of ialv2 occurs 0,
matnr type mara-matnr,
werks type marc-werks,
end of ialv2.
* Miscellanous Variables
data: index_rows type lvc_t_row,
index like line of index_rows.
data: alv_container type ref to cl_gui_custom_container,
alv_container2 type ref to cl_gui_custom_container,
alv_grid type ref to cl_gui_alv_grid,
alv_grid2 type ref to cl_gui_alv_grid,
row_table type lvc_t_row with header line,
ok_code like sy-ucomm,
layout type lvc_s_layo,
fieldcat type lvc_t_fcat,
fieldcat2 type lvc_t_fcat.
select-options: s_matnr for mara-matnr.
start-of-selection.
select mara~matnr makt~maktx
into corresponding fields of table ialv
from mara
inner join makt
on mara~matnr = makt~matnr
where mara~matnr in s_matnr
and makt~spras = sy-langu.
sort ialv ascending by matnr.
call screen 100.
* Module status_0100 OUTPUT
module status_0100 output.
set pf-status '0100'.
set titlebar '0100'.
data: lt_exclude type ui_functions.
* Create Controls
create object alv_container
exporting container_name = 'ALV_CONTAINER'.
create object alv_grid
exporting i_parent = alv_container.
* Populate Field Catalog
perform get_fieldcatalog.
* Optionally restrict generic functions to 'change only'.
* (The user shall not be able to add new lines).
perform exclude_tb_functions changing lt_exclude.
* Set selection mode to "D" -- Multiple Lines
layout-sel_mode = 'D'.
call method alv_grid->set_table_for_first_display
exporting
is_layout = layout
it_toolbar_excluding = lt_exclude
i_structure_name = 'IALV'
changing
it_outtab = ialv[]
it_fieldcatalog = fieldcat[].
endmodule.
* Module USER_COMMAND_0100 INPUT
module user_command_0100 input.
case sy-ucomm.
when 'BACK' or 'CANC'.
perform free_containers.
if sy-subrc = 0.
set screen 0.
leave screen.
else.
leave program.
endif.
when 'EXIT'.
perform free_containers.
leave program.
when 'CONTINUE'.
* Retrieve selected rows from ALV grid
clear index_rows. refresh index_rows.
call method alv_grid->get_selected_rows
importing
et_index_rows = index_rows.
* Do something with those selected rows here
loop at index_rows into index.
read table ialv index index-index.
if sy-subrc = 0.
select * appending corresponding fields of table ialv2
from marc
where matnr = ialv-matnr.
endif.
endloop.
perform free_containers.
leave to screen 200.
endcase.
endmodule.
* Form FREE_CONTAINERS
form free_containers.
if not alv_container is initial.
call method alv_container->free.
clear: alv_container.
free : alv_container.
endif.
if not alv_container2 is initial.
call method alv_container2->free.
clear: alv_container2.
free : alv_container2.
endif.
endform.
* Form Get_Fieldcatalog - Set Up Columns/Headers
form get_fieldcatalog.
data: ls_fcat type lvc_s_fcat.
data: columnno(3) type n value '0'.
refresh: fieldcat.
clear: ls_fcat.
ls_fcat-reptext = 'Material Number'.
ls_fcat-coltext = 'Material Number'.
ls_fcat-fieldname = 'MATNR'.
ls_fcat-ref_table = 'IALV'.
ls_fcat-outputlen = '18'.
ls_fcat-col_pos = 1.
append ls_fcat to fieldcat.
clear: ls_fcat.
ls_fcat-reptext = 'Material Description'.
ls_fcat-coltext = 'Material Description'.
ls_fcat-fieldname = 'MATKX'.
ls_fcat-ref_table = 'IALV'.
ls_fcat-outputlen = '40'.
ls_fcat-col_pos = 2.
append ls_fcat to fieldcat.
endform.
* Form Get_Fieldcatalog2 - Set Up Columns/Headers
form get_fieldcatalog2.
data: ls_fcat type lvc_s_fcat.
data: columnno(3) type n value '0'.
refresh: fieldcat2.
clear: ls_fcat.
ls_fcat-reptext = 'Material Number'.
ls_fcat-coltext = 'Material Number'.
ls_fcat-fieldname = 'MATNR'.
ls_fcat-ref_table = 'IALV2'.
ls_fcat-outputlen = '18'.
ls_fcat-col_pos = 1.
append ls_fcat to fieldcat2.
clear: ls_fcat.
ls_fcat-reptext = 'Plant'.
ls_fcat-coltext = 'Plant'.
ls_fcat-fieldname = 'WERKS'.
ls_fcat-ref_table = 'IALV2'.
ls_fcat-outputlen = '4'.
ls_fcat-col_pos = 2.
append ls_fcat to fieldcat2.
endform.
* Form EXCLUDE_TB_FUNCTIONS
form exclude_tb_functions changing pt_exclude type ui_functions.
* Only allow to change data not to create new entries (exclude
* generic functions).
data ls_exclude type ui_func.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy_row.
append ls_exclude to pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
append ls_exclude to pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_append_row.
append ls_exclude to pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_insert_row.
append ls_exclude to pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_move_row.
append ls_exclude to pt_exclude.
endform.
* Module status_0200 OUTPUT
module status_0200 output.
set pf-status '0200'.
set titlebar '0200'.
* Create Controls
create object alv_container2
exporting container_name = 'ALV_CONTAINER2'.
create object alv_grid2
exporting i_parent = alv_container2.
* Populate Field Catalog
perform get_fieldcatalog2.
call method alv_grid2->set_table_for_first_display
changing
it_outtab = ialv2[]
it_fieldcatalog = fieldcat2[].
endmodule.
* Module USER_COMMAND_0200 INPUT
module user_command_0200 input.
case sy-ucomm.
when 'BACK' or 'CANC'.
perform free_containers.
if sy-subrc = 0.
set screen 0.
leave screen.
else.
leave program.
endif.
when 'EXIT'.
perform free_containers.
leave program.
endcase.
endmodule.
Regards,
Rich Heilman -
Check box before select option in a report program.
Hi All..
I have a report program with select options..I want to put a checkbox before the select option, aligned with it...Is it possible..
Regards
RudraHi Rudra,
Take the below help program. In the below program I am disabling the text fields....
Take the refrence and do it will fix the problem
&***************************Reward Point if helpful***************************&
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-003.
PARAMETERS: P1 RADIOBUTTON GROUP G1 DEFAULT 'X' USER-COMMAND Z1.
SELECT-OPTIONS: S_PMNUX FOR S076-PMNUX MODIF ID MI1.
PARAMETERS: P_WENUX LIKE S076-WENUX MODIF ID MI1.
PARAMETERS: P5 TYPE CHAR15 AS LISTBOX VISIBLE LENGTH 15 MODIF ID MI1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 7.
PARAMETERS: P3 RADIOBUTTON GROUP G2 MODIF ID MI1.
SELECTION-SCREEN COMMENT 10(10) TEXT-001 MODIF ID MI1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 7.
PARAMETERS: P4 RADIOBUTTON GROUP G2 MODIF ID MI1.
SELECTION-SCREEN COMMENT 10(10) TEXT-002 MODIF ID MI1.
SELECTION-SCREEN END OF LINE.
PARAMETERS: P_FILE TYPE RLGRAP-FILENAME MODIF ID MI1.
PARAMETERS: P2 RADIOBUTTON GROUP G1.
SELECT-OPTIONS: S_PMNUX1 FOR S076-PMNUX MODIF ID MI2. " Product Group
PARAMETERS: P_WENUX1 LIKE S076-WENUX MODIF ID MI2. " Plant
PARAMETERS: P6(15) TYPE C AS LISTBOX VISIBLE LENGTH 10 MODIF ID MI2.
*PARAMETERS: P_EMAIL(255) TYPE C MODIF ID MI2.
PARAMETERS: P_EMAIL TYPE SOMLRECI1-RECEIVER. " Email Address
SELECTION-SCREEN END OF BLOCK B1.
* AT SELECTION-SCREEN OUTPUT *
AT SELECTION-SCREEN OUTPUT.
IF P1 = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'MI2'.
SCREEN-INVISIBLE = 0.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
SCREEN-OUTPUT = 1.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'MI2'.
SCREEN-INVISIBLE = 0.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
SCREEN-OUTPUT = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF P2 = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'MI1'.
SCREEN-INVISIBLE = 0.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
SCREEN-OUTPUT = 1.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'MI1'.
SCREEN-INVISIBLE = 0.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
SCREEN-OUTPUT = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'MI2'.
SCREEN-INVISIBLE = 0.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
SCREEN-OUTPUT = 1.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'MI1'.
SCREEN-INVISIBLE = 0.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
SCREEN-OUTPUT = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF. -
Adding Selection Options Fields in Report(Using Query)
Hi,
how can we add Selection Fields Options in Query Reports Which we create using SQ01. I need a default option by which we can add all the selection option given by user.
Anybody can help me..?
Regards
lijo JosephDo you have anything defined in the 'Calcs' section?
If so, any fields returned by the query that are not included in the calculation will be automatically added to the Group fields (using the same logic as required with calculations/group by in any SQL query). The fields won't be able to be removed from the Group list unless the Calc is also removed. -
Search help in selection screens for interactive report
A search help can only be assigned to DB table.
So my doubt is can it also be used for seletion screens created for an interactive report?
If yes what is the procedure.. Please give me one example at least...
waiting for your valuable suggestions.....
Thanks,
regards,
ChinmayHi Chinmay,
I suppose your requirement is to give search help to selection screen elements.
Here is the code.
REPORT ZSHAIL_F4HELP .
parameters: name(10) type c .
TYPES: BEGIN OF VALUES,
CARRID TYPE SPFLI-CARRID,
CONNID TYPE SPFLI-CONNID,
END OF VALUES.
dATA: PROGNAME LIKE SY-REPID,
DYNNUM LIKE SY-DYNNR,
DYNPRO_VALUES TYPE TABLE OF DYNPREAD,
FIELD_VALUE LIKE LINE OF DYNPRO_VALUES,
VALUES_TAB TYPE TABLE OF VALUES.
at selection-screen on value-request for name.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'DEMOF4HELP'
fieldname = 'CARRIER1'
SEARCHHELP = ' '
SHLPPARAM = ' '
DYNPPROG = PROGNAME
DYNPNR = DYNNUM
DYNPROFIELD = 'CARRIER'
STEPL = 0
VALUE = ' '
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
SUPPRESS_RECORDLIST = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
SELECTION_SCREEN = ' '
IMPORTING
USER_RESET =
TABLES
RETURN_TAB =
EXCEPTIONS
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5
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 OUTPUT.
PROGNAME = SY-REPID.
DYNNUM = SY-DYNNR.
CLEAR: FIELD_VALUE, DYNPRO_VALUES.
FIELD_VALUE-FIELDNAME = 'CARRIER'.
APPEND FIELD_VALUE TO DYNPRO_VALUES.
I hope your query is solved.
If so,please award points.
Regards,
Sylendra. -
Add select-option fields in report category (PNP)
Hi,
I am trying to create a new report category based on the logical database PNP.
I noted that the fields available for select-option for report category come from infotype 0 or 1. Is there anyway to include fields from other infotypes ?
Thank you.
Regards
Kir ChernHi Kir Chern
Due to the structure of the logical database you can just insert selection fields that are bestowed.
However, as Charles mentioned, you can add selection fields special to your program by coding a selection screen at your program whose fields are inserted just after the ones added by the report category.
*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a> -
Using Standard Windows Select Methods On Interactive Report
I have an interactive report. Right now I have a check box on each row to select the row. However, this means to select 10 rows you have to click 10 times. I would like to make it possible to use standard Windows select methods - click first row, hold shift key, and click 10th row to result in 10 rows selected. I haven't found how to do this in Apex but I assume it is possible. Thoughts? I googled but maybe not looking for the right thing as I find lots but not what I am looking for.
Hi,
you could do something like this:
1) Create IR report like
select
apex_item.checkbox(1,empno,'UNCHECKED') foo,
"EMP"."EMPNO" as "EMPNO",
"EMP"."ENAME" as "ENAME",
"EMP"."SAL" as "SAL"
from
"EMP" "EMP"2)In you page properties put following code in
a)Function and Global Variable Declaration:
In this code I reference f01, because in select I use apex_item.checkbox(1,......
function isKeyPressed(event)
var target = event.target ? event.target : event.srcElement;
if (target.name=='f01'){
if (event.shiftKey==1){
i_start = -1;
i_end = -1;
i_swap = -1;
end_val = target.value;
cb = document.getElementsByName('f01');
for (i=0; i <= cb.length - 1;i++){
if (cb.value == end_val)
i_end = i;
if (cb[i].value == start_val)
i_start = i;
if (i_start > i_end){
i_swap = i_start;
i_start = i_end;
i_end = i_swap;
for (i=i_start; i < i_end;i++){
if (cb[i_start].checked == true)
cb[i].checked = true;
if (cb[i_start].checked == false)
cb[i].checked = false;
else{
start_val = target.value;
b)Page HTML Body Attributeonmousedown="isKeyPressed(event)"
You can check example on http://apex.oracle.com/pls/apex/f?p=60428:9
Regards,
Aljaz -
Select List beside Interactive report
Hi All,
I am not able to place a SELECT LIST item beside an Interactive Report.
What is happening:
<selecting columns to search> Go Action SELECT LIST*
I n t e r a c t i v e R e p o r t
Even though I am able to place a button beside the Interactive Report using the Button Position attribute for the button.
<selecting columns to search> Go Action Button
I n t e r a c t i v e R e p o r t
Sadly there is no such attribute for a SELECT LIST.
What I want:
|<selecting columns to search> Go Action SELECT LIST
I n t e r a c t i v e R e p o r t
I tried using the Grid Layout Attributes but to no avail.
Thanks,
SombitHi,
I do not know is that possible without styles or JavaScript.
You can try this.
Place to page JavaScript Execute when Page Loads
$("#apexir_TOOLBAR").append($("#Px_YOUR_SELECT_LIST"));Change Px_YOUR_SELECT_LIST to your select list name
Regards,
Jari
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai
Edited by: jarola on Mar 27, 2013 8:32 AM -
Select list within interactive report.
Hello y'all,
I have a need to develop an interactive report and am lost in how to proceed. I am asking for your help. The report requirements are as such:
- There are 3 types of records that will be in the report
- The is a checkbox to associate the records to a particular event.
- If the record is of a certain value, 3 of the columns in that record have to show as select lists.
- The records with the other 2 values should not have the select lists, just show a null in those columns.
- The checkbox must be checked for the select lists to appear.
- The select lists are based on a list of values. The values are populated with an existing common function used in many of the application pages.
I am having no success in trying to get the select lists in the report. Has anyone developed an interactive report that uses select lists within the report? Is this even possible?
I am using application Express 3.2.0.00.27. Any help that you can give is greatly appreciated. Thank you so much!
*** Got it. It has to be a tabular report with updateable columns. ***
Edited by: seashell on Sep 13, 2010 5:22 AM
Edited by: seashell on Sep 13, 2010 7:07 AMHi,
I am not sure if the "equal to" condition applies to a DOM object... after all, a DOM object can be anything (any HTML element) not only a field.
Try using a javascript expression instead, like this:
$v('P6_IR_SELECT_LIST')=='Delete'UPDATE: Sorry, I just tested and "equal to" condition works for DOM objects... should have tested before posting!
Luis
Edited by: Luis Cabral on Feb 29, 2012 4:45 PM -
How to select records from Interactive Reports based on checkboxes
Referring to the link below
http://apex.oracle.com/pls/otn/f?p=31517:95
I want to select rows from the Interactve Report based on a checkbox. This demo page has 2 sections, one for classic report and other for interactive one. The classic report is able to select the whole records but the interactive report selects only the emp nos. I am looking for a functionality where I can select the whole record from the interactive report.
Any pointers will be helpful.
ThanksThat is easy. You should just modify the query:
DECLARE
v_count INTEGER := 0;
BEGIN
:p95_text_ir := NULL;
FOR i IN 1 .. apex_application.g_f20.COUNT
LOOP
v_count := v_count + 1;
FOR c IN (SELECT ename, job, mgr, sal, deptno
FROM emp
WHERE empno = apex_application.g_f20 (i))
LOOP
:p95_text_ir :=
:p95_text_ir
|| 'ID: '
|| c.empno
|| ' / '
|| 'Name: '
|| c.ename
|| ' / '
|| 'Job: '
|| c.job
|| ' / '
|| 'Manager: '
|| c.mgr
|| ' / '
|| 'Salary: '
|| c.sal
|| ' / '
|| 'Department: '
|| c.deptno
|| CHR (10);
END LOOP;
END LOOP;
:p95_text_ir := :p95_text_ir || ' / Records selected: ' || v_count;
END;Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
http://apex.oracle.com/pls/apex/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
------------------------------------------------------------------- -
To add select-options to standard report program...
Hi,
How to add a field as select-options to sap standard report program?
Regards,
sachin
Moderator Message: Do some R&D on the topic first and ask a specific question, instead of a step-by-step process.
Edited by: kishan P on Nov 25, 2010 5:40 PMHi shiva,
I have following doubts?
1) exactly where should i add select-options of a field in enhancement point?
and 2) where to keep the database extraction logic for the same select-options? -
Select option in OM report.
Hello Every One,
I have on issue hope someone can help me with it.
I wrote report in OM using PCH logical DB using standard selection Screen. it is working fine. Now the user wants to have an option at selection Screen for a custom define Infotype(9100) fields( Installation type and Organazation type/subtype) to run the report base on selection. My code is to have value in PCHOBJID field in order to run the report. such as.
GET objec.
CHECK objec-objid IN pchobjid.hi,
try this code
TABLES : dd02t,databrowse.
DATA : it_dd02t TYPE TABLE OF dd02t WITH HEADER LINE.
PARAMETERS : table LIKE dd02l-tabname default 'M%'.
SELECT *
INTO TABLE
it_dd02t
FROM dd02t
WHERE tabname LIKE table AND ddlanguage = 'E'.
LOOP AT it_dd02t.
WRITE / it_dd02t-tabname HOTSPOT.
HIDE it_dd02t-tabname.
ENDLOOP.
AT LINE-SELECTION.
CASE sy-lsind.
WHEN '01'.
databrowse-tablename = it_dd02t-tabname.
SET PARAMETER ID 'DTB' FIELD databrowse-tablename.
CALL TRANSACTION 'SE16'.
ENDCASE.
reward if helpful.
prasanth -
Choose for Selection option in ALV report
Hi SAP experts,
There is a requirement of using the functionality of Settings->Field for selection functionality in our ALV report.
Please suggest some way to implement it. I am attaching the screenshot. This functionality i need to use in alv report. Thanks in advance
Thanks & regards
Pratham kapoorHello,
in an ALV-Report you could just use get_selinfos = 'X' in the layout-workarea.
Check the docu on parameter IS_LAYOUT in REUSE_ALV_LIST_DISPLAY.
Or you could use the fuction you wrote about and print these information at the TOP_OF_PAGE event.
Regards Wolfgang -
Hi All,
i have a FICO AP report , in which i have vendor number as the variable , v can view the report based on the vendor number but now the user says since its difficult to remember the vendor number he should be able to key iin the vendor name and it will find the vendor number...
I know hthere is a concept of matchcode in sap abap but i couldnt find anything like that in bi
Can someone help me out with this at the earliest......
Thanks in advance...Hi,
You can create a text variable VAR1 in query, which has processing by 'User entry/ default value'. Make it ready for input. In this text variable, the user can input vendor name.
Create another characteristic variable on Vendor VAR2, which has processing by Customer exit.
Now, in the customer exit, under i_step =2 you can write code
DATA: L_S_RANGE TYPE RSR_S_RANGESID,
LOC_VAR_RANGE LIKE RRRANGEEXIT.
if i_step = 2.
case i_vnam.
when 'VAR2'.
loop at i_t_var_range into loc_var_range where vnam = 'VAR1'.
select vendor from ztable into l_s_range-low where vendorname = loc_var_range-low.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
append l_s_range to e_t_range.
endloop.
This should work for you. Please note that here I have assumed that only 1 vendor can be given as input to query.
Maybe you are looking for
-
Eclipse BPEL Designer with Oracle BPEL Process Manager
Gurus, I am tryting to develop a BPEL 2 process using Eclipse Helios BPEL Designer (v0.5). Request your help with a problem that I am facing, which is as follows: I am trying to create a Partner Link (PL) in my BPEL process, using the Partner Link Ty
-
Problem Accessing Bank Account
When I attempt to access my bank account form the browser, I receive a message indicating I am using an older browser or Java script is disabled. I am instructed to enable Java script and then return to log in. This I have done but continue to rece
-
CS3 Bridge is now crashing right after opening
My CS3 Bridge, which has worked for quite a while, has started crashing immediately after opening. I tried to repair the installation, tried to uninstall and then install again, and tried opening holding down the control key and deleting all the pref
-
"NETWORK CHANGE DETECTED" - Broadband dropping out
About 4 to 5 weeks ago I started finding my broadband connection would just 'drop out'. I'd lose it. No email or internet browsing, nothing. It might come back on it's own, it might not. Generally I'd run diagnoistic's, and some time sit would come b
-
Useless adjustment brush in LR2 on Vista
Does anyone have a solution as to why the adjustment brush just plainly does not work right in Vista? I have repaired the program, reinstalled the program, all to no avail. Very frustrated at this point. All the other features do seem to work correct