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 kapoor
Hello,
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
Similar Messages
-
How to assign search help using ovs for select options for ALV in web dynpr
how to assign search help using ovs for select options for ALV in web dynpro
Hi,
refer http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
http://www.****************/Tutorials/WebDynproABAP/OVS/page1.htm
and http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproAbap-OVSsearch+help
Thanks,
Chandra -
Is there any transaction code for uploding logo in ALV reports.
is there any transaction code for uploding logo in ALV reports.
hi,
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = t_header.
i_logo = 'Z_LOGO'.
endform.
Upload Logo for REUSE_ALV_COMMENTARY_WRITE
For those who wish to upload and use a picture in your ALV abap reports.
Steps for uploading Logo :-:
1. Goto the transaction OAER
2. Enter the class name as 'PICTURES'
3. Enter the class type as 'OT'
4. Enter the object key as the name of the logo you wish to give
5. Execute
6. Then in the new screen select Standard doc. types in bottom window
Click on the Screen icon
Now, it will ask for the file path where you have to upload the logo
7. Now you can use this logo in REUSE_ALV_COMMENTARY_WRITE
or
Import Logo and Background Picture for Reporting
In this step, you can import a customer-specific logo and a background picture into the R/3 System. These will be displayed in the header area of reports in HR Funds and Position Management.
From the SPRO:
HR Funds and Position Management --> Dialog Control --> Customize Reporting Interface --> Import Logo and Background Picture for Reporting.
Activities
1. Enter the Name of your logo/background picture as an object key in the initial screen.
2. Make sure that the class name is PICTURES, and the class type is OT.
3. Choose Execute.
4. Double-click the document type Picture on the Create tab page. A dialog box will appear in which you can enter the path in which the logo/background picture can be found.
5. Enter the path and choose Open. The logo will be uploaded into the current R/3 System. If the logo/background picture is to be transported into other systems as well, choose Transport.
6. Return to the initial screen and repeat the procedure after having entered the Name of your background picture as an object key.
Please note that the logo/background picture can only be displayed in ALV-based reports with an HTML header. Manually programmed reports such as business distribution plans are not based on the ALV.
If you have selected several initial objects, ALV-based reports in HR Funds and Position Management will automatically use a hiearchical-sequential display. A logo is not displayed here either. Note also that the logo cannot be printed (see print preview in program).
Make sure that the logo does not exceed a height of 100 pixels because it would mean that the header of the report will be scrollable. -
Hi all,
I have create a select-options with 5 fields and alv and a button(get list) in webdynpro, i have to retrieve the values into alv from table through select-options by clicking on button.
and i have written a function module for select options. so based on input, the values are fetched from table in function module.
i am getting confused with the coding part, so can anybody tel me the coding part for alv by calling function module nd how to pass the values to function module(i,e select-option fields.)
( written code for select-options in wddoinit)
Thanks all in advanceHi VANI,
I hope you have declared the component usage for select option properly.
Now do as follows:-
1. Add 2 attributes in the tab 'Attribute' to implement select option for a particular field.
Like i want to implement select option in PO_NO ( EKPO-EBELN) & ITEM_NO( EKPO-EBELP).
Declare usage in properties in particular view:-
Declare attributes :- M_HANDLER_Report - Type ref to - IF_WD_SELECT_OPTIONS
M_WD_SELECT_OPTIONS_Report - Type ref to - IWCI_WDR_SELECT_OPTIONS
In WDDOINIT :-
create instantiate component usage from code wizard.
then set normal properties for display:-
WD_THIS->M_WD_SELECT_OPTIONS_REPORT = WD_THIS->WD_CPIFC_SELECT_OPTION_REPORT( ).
init the select screen
WD_THIS->M_HANDLER_REPORT = WD_THIS->M_WD_SELECT_OPTIONS_REPORT->INIT_SELECTION_SCREEN( ).
WD_THIS->M_HANDLER_REPORT->SET_GLOBAL_OPTIONS(
I_DISPLAY_BTN_CANCEL = ABAP_FALSE
I_DISPLAY_BTN_CHECK = ABAP_FALSE
I_DISPLAY_BTN_RESET = ABAP_FALSE
I_DISPLAY_BTN_EXECUTE = ABAP_FALSE ).
To assign a field in select option code like below:-
create a range table that consists of this new data element
LT_RANGE_TABLE = WD_THIS->M_HANDLER_REPORT->CREATE_RANGE_TABLE( I_TYPENAME = 'EBELN' ). " enter the data element of the field
add a . field to the selection
WD_THIS->M_HANDLER_REPORT->ADD_SELECTION_FIELD( I_ID = 'EBELN' "field name
IT_RESULT = LT_RANGE_TABLE I_READ_ONLY = READ_ONLY ).
to add more field proceed as above again with different field.
create a range table that consists of this new data element
LT_RANGE_TABLE = WD_THIS->M_HANDLER_REPORT->CREATE_RANGE_TABLE( I_TYPENAME = 'EBELP' ). " enter the data element of the field
add a . field to the selection
WD_THIS->M_HANDLER_REPORT->ADD_SELECTION_FIELD( I_ID = 'EBELP' "field name
IT_RESULT = LT_RANGE_TABLE I_READ_ONLY = READ_ONLY ).
Now in particular action by which you want to get values bind to your alv table:-
Declare variable and field symbol to hold values from selection
DATA: RT_PO_NO TYPE REF TO DATA.
DATA: RT_ITEM_NO TYPE REF TO DATA.
FIELD-SYMBOLS: <FS_PO_NO> TYPE TABLE,
<FS_ITEM_NO> TYPE TABLE,
Retrieve the data from the select option
RT_PO_NO = WD_THIS->M_HANDLER_REPORT->GET_RANGE_TABLE_OF_SEL_FIELD(
I_ID = 'EBELN' ).
Assign it to a field symbol
ASSIGN RT_PO_NO->* TO <FS_PO_NO>.
Retrieve the data from the select option
RT_ITEM_NO = WD_THIS->M_HANDLER_REPORT->GET_RANGE_TABLE_OF_SEL_FIELD(
I_ID = 'EBELP' ).
Now use select statement to get data from table
Select < field name > FROM < table name > INTO CORRESPONDING FIELDS OF TABLE < internal table to hold data > WHERE
PO_NO IN <FS_PO_NO> AND
ITEM_NO IN <FS_ITEM_NO> .
Regards,
Monishankar C -
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> -
Set parameter id for select-options to fill more than one value
FROM MY CUSTOM PROGRAM I AM CALLING A TRANSACTION CODE. IN MY REPORT I WANT TO SELECT MORE THAN ONE RECORD AND TO CALL THE TRANSACTION BY PASSING THE SELECTED VALUES TO THE SELECT-OPTIONS OF THE TRANSACTION.
IF IT IS A PARAMETER I CAN WRITE SET PARAMETER STATEMENT FOR ONE VALUE AND EASILY CALL THE TRANSACTION. BUT I WANT TO FILL THE SELECT-OPTIONS OF THE TCODE.
CAN ANYBODY PLEASE PROVIDE ME THE LOGIC HOW TO FILL THE SELECT-OPTIONS FROM MY REPORT FOR CALLING THE TRANSACTION.
REGARDS,
VASU.Hi..
Instead of calling the Transaction
Call the Report directly using:
(First declare the Ranges)
ranges : R_matnr for mara-matnr.
(Fill the values into Ranges Table and call the report )
SUBMIT <REPORT>
With s_matnr in R_matnr.
<b>Reward if helpful.</b> -
Set Parameter for Select Option & Customized field
Hi All,
I had 2 questions here:
1. This field in the report is a customized field and did not have any parameter.
Is there any way to set the parameter for such fields?
2. This field is a select option in the report.
How can i set the parameter for the select option with lower and higher range?>
Sally Teo wrote:
> Hi All,
>
> I had 2 questions here:
>
> 1. This field in the report is a customized field and did not have any parameter.
> Is there any way to set the parameter for such fields?
----> plz ref ur prev.Post.
>
> 2. This field is a select option in the report.
> How can i set the parameter for the select option with lower and higher range?--->
i dont think its possible to give High/low values to them, better to write small BDC to pass the data.
regards
Prabhu -
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. -
Web Dynpro ABAP - Select Option and ALV Component Usage
Hi,
I'm new in ABAP Web Dynpro and i was trying to follow the SDN tutorial
Web Dynpro ABAP - Select Option and ALV Component Usage
In this video, we create a new Web Dynpro ABAP component that uses both Select Options and ALV. Developers can learn the basic mechanisms for working with both of these reusable components.
Following the link: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/39c54fe7-0b01-0010-0eb6-d63ac2bdd637
I implemented and generated the web dynpro with success but when i execute a test i get a dump on select-option definition.
Note
The following error text was processed in the system ECD : Exception condition "TYPE_NOT_FOUND" raised.
The error occurred on the application server ITAWSECCS01D_ECD_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: DESCRIBE_BY_NAME of program CL_ABAP_TYPEDESCR=============CP
I went in debug and the piece of code dumping is:
lt_range_table =
wd_this->m_handler->create_range_table( i_typename = 'S_PROJ' ).
Is there someone who can help me?
Thanks in advance,
Stefano.Hi,
I'm new in ABAP Web Dynpro and i was trying to follow the SDN tutorial
Web Dynpro ABAP - Select Option and ALV Component Usage
In this video, we create a new Web Dynpro ABAP component that uses both Select Options and ALV. Developers can learn the basic mechanisms for working with both of these reusable components.
Following the link: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/39c54fe7-0b01-0010-0eb6-d63ac2bdd637
I implemented and generated the web dynpro with success but when i execute a test i get
an error as
Note
The following error text was processed in the system EI6 : Exception condition "TYPE_NOT_FOUND" raised.
The error occurred on the application server EC6IDES_EI6_01 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: DESCRIBE_BY_NAME of program CL_ABAP_TYPEDESCR=============CP
I have created a table zmy_table and trying to make USERID field as a select-options.I've written the code as shown below .
data: itab type standard table of zmy_table,
wa type zmy_table.
data:
node_employee type ref to if_wd_context_node,
elem_employee type ref to if_wd_context_element,
stru_employee type wd_this->element_employee ,
item_userid like stru_employee-userid.
navigate from <CONTEXT> to <EMPLOYEE> via lead selection
node_employee = wd_context->get_child_node( name = wd_this->wdctx_employee ).
@TODO handle not set lead selection
if ( node_employee is initial ).
endif.
get element via lead selection
elem_employee = node_employee->get_element( ).
@TODO handle not set lead selection
if ( elem_employee is initial ).
endif.
alternative access via index
Elem_Employee = Node_Employee->get_Element( Index = 1 ).
@TODO handle non existant child
if ( Elem_Employee is initial ).
endif.
get single attribute
elem_employee->get_attribute(
exporting
name = `USERID`
importing
value = item_userid ).
select *
from zmy_table
into table itab
where userid = item_userid.
node_employee = wd_context->get_child_node( 'EMPLOYEE' ).
node_employee->bind_elements( itab ).
Is there someone who can help me and can tell am i doing wrong?
Thanks in advance,
Dheeraj -
Set of default values for Select-Options
Hi Gurus,
I have a requirement where I need to set default values for select options
ex: SELECT-OPTIONS: S_MTART FOR MARA-MTART
default values must be ERSA - HIBE- FHMI - DIEN - GEST
Please tell me how to do it.
Effective replies will be rewarded with full points
KarthikHi,
For each SELECT-OPTION, you can only specify one DEFAULT.
You must specify the default value g in its internal format, e.g. "SELECT-OPTIONS DATE FOR SY-DATUM DEFAULT '19931224'", not "... DEFAULT '24.12.1993'".
The default value g should normally be a literal because, at runtime when you use SUBMIT, it is transferred to the selection options table sel so early that no value can be assigned to the field g. System fields like SY-DATUM are an exception here because the system usually assigns values to them as soon as the report processing starts.
When you use user-defined selection screens in your programs that you do not call using SUBMIT, the DEFAULT value is transfered when the selection screen is first called. In this case, therefore, you can use other fields g.
regards,
sowjanya
Message was edited by: sowjanya suggula -
Problem on Search Help for select-option
Hi,
Iam working on a search help for select-option,
is there a way to incorporate select-all or multiple
selection on this?
Thanks!Hi catherine,
1. Just copy paste this program.
(It will POPULATE the SELECT-OPTION,
based upon
MULTIPLE Selection,
selected by the user,
in the help provided thru F4IF_INT_TABLE_VALUE_REQUEST.)
2. Eg. is for BUKRS (company code)
3.
REPORT ABC.
TABLES : T001.
DATA : ITAB LIKE TABLE OF T001 WITH HEADER LINE.
DATA : RETURN LIKE TABLE OF DDSHRETVAL WITH HEADER LINE.
SELECT-OPTIONS : BUKRS FOR T001-BUKRS.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR BUKRS-LOW.
PERFORM MYPOPULATE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR BUKRS-HIGH.
PERFORM MYPOPULATE.
FORM MYPOPULATE.
REFRESH ITAB.
SELECT * FROM T001 INTO TABLE ITAB.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BUKRS'
dynprofield = 'BUKRS'
dynpprog = sy-REPID
dynpnr = sy-dynnr
multiple_choice = 'X'
value_org = 'S'
TABLES
value_tab = ITAB
return_tab = return.
IF RETURN[] IS NOT INITIAL.
REFRESH BUKRS.
CLEAR BUKRS.
LOOP AT RETURN.
BUKRS-SIGN = 'I'.
BUKRS-OPTION = 'EQ'.
BUKRS-LOW = RETURN-FIELDVAL.
BUKRS-HIGH = RETURN-FIELDVAL.
APPEND BUKRS.
ENDLOOP.
ENDIF.
ENDFORM.
regards,
amit m. -
Hi,
Im not getting Menu options in ALV report output. Not even default menu options SYSTEM, HELP Its dispalying as <b>????????????????????????????????</b>. Can someone help me regarding this?
Regards,
amalHi Amal,
Check the screen number if you are using a seperate screen and Menu painter.
Thanks and Regards,
Sampath -
Can i assign a collective srch help for select option in list display
can i assign a collective srch help for select option in list display
Hi,
Yes ,u can assign a collective search help for select-option in list display.
Eg:
Define your select option like this
SELECT-OPTIONS: s_vbeln FOR likp-vbeln MATCHCODE OBJECT vmva.
Regards,
Shiva. -
How to set default values in initialization event for select option
Abapers,
I have 3 GL account like 0024831231,0024831238,0024831245.
Please help me how to set default values in select-options ( s_hkont ) in INTIALIZATION event
ThanksSelect option is table <Structure> with fields, low, high, sign & option
you need to append the value into the select option, with appropriate value in low or
example:
S_HKONT-low = <value>
S_HKONT-SIGN = 'I'
S_hkont-OPTION = 'EQ'
append s_hkont.
Default value for select-option also can be added directly in select-option statement.
Regards,
Mahesh -
Input Negative values in selection screen for select-options field
I am not able enter negative values for
SELECT-OPTIONS V_ERFMG FOR MSEG-ERFMG.
It says negative values are not allowed but I need to check for negative values. Kindly provide me solution.You can't put the negative values here...because the Domain which is attached to MSEG-ERFMG has not the "Sign" checkbox on.
Try with this code:
tables:wbrp.
SELECT-OPTIONS V_ERFMG FOR WBRP-menge.
Regards,
Naimesh Patel
Maybe you are looking for
-
Error Message: User has no profile in this organization
Error Message: "User has no profile in this organization." Chrome browser. Am downloading Mozilla in the meantime and will report after. Attempting to log into various TV subscription cable channels with a valid ID and password which ordinarily al
-
I backed up my viber messages, so my question is when I restore them on my new ipho
-
Skype logged me out and I cannot log back in PLEAS...
I'm trying to log onto Skype but I cannot remember the Email I used! and I forgot the password, Usually I would log in with Facebook. But about 20 minutes ago it logged me out and will not let me log back on with Facebook! Anybody with a fix! please
-
Hey all, I'm a student at university in the UK and a lot of my lectures put the PowerPoint presentations they give on to the university website. But I can't view them in safari, is there any plug-in or even another Mac compatible web browser that wou
-
Access to Query based on characterstic as infoprovider
Hi All, is there any special access to be given for roles having worbooks, whose queries are based on characterstic (as infoprovider) i have a characterstic (as data target ) assigned to an infoarea, and i have reporting role that gives access to thi