on 10-10-2008 10:37 AM
Hi i have used the submit stmt as
"submit rabewg_alv01 using selection-set 'SAP&AUDIT_ZUSH'
with selection-table rspar_tab"
In the rspar_tab table for one of the field its taking both the values as low though have declared as high and low values.
The declaration is
rspar_line-selname = 'SO_BUDAT-LOW'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = lv_start.
rspar_line-high = SO_BUDAT.
APPEND rspar_line TO rspar_tab.
rspar_line-selname = 'SO_BUDAT-HIGH'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = lv_end.
rspar_line-high = SO_BUDAT.
APPEND rspar_line TO rspar_tab.
Both the date is stored as low value only.How to correct it.
Use clear rspar_line. after append statement.
Also does lv_start and lv_end have proper values.
Edited by: Navneeth Bothra on Oct 10, 2008 11:39 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check this example ok,
DATA : range_date TYPE RANGE OF sy-datum,
range_ccode TYPE RANGE OF bukrs,
range_pernr TYPE RANGE OF pa0001-pernr.
than assign the values from the screen:
IF date1 IS NOT INITAIL OR
date2 IS NOT INITIAL.
range_date-sign = 'I'.
range_date-option = 'BT'.
IF date1 IS INITiAL.
range_date-low = '19000101'.
ELSE.
range_date-low = date1.
ENDIF.
IF date2 IS INITiAL.
range_date-high = '99991231'.
ELSE.
range_date-high = date2.
ENDIF.
APPEND range_date.
ENDIF.
IF company code IS NOT INITIAL.
range_bukrs-sign = 'I'.
range_bukrs-option = 'EQ'.
range_bukrs-low = company code.
APPEND range_bukrs.
ENDIF.
IF Employee code IS NOT INITIAL.
range_pernr-sign = 'I'.
range_pernr-option = 'EQ'.
range_pernr-low = Employee code.
APPEND range_pernr.
ENDIF.
Regards,
Midhun Abraham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you tell wat is the select-option name and wat values you want to pass to the select-option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hai,
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
CURR_REPORT = 'report name'
TABLES
SELECTION_TABLE = SEL_TAB.
use this f.m and get all details of the selection screen into sel_tab and pass the value to submit and see.
try to have same selection screen for both program.
if they are different some time field may differ, u only should assign.
shan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hema,
Use the statement like this.
rspar_line-selname = 'SO_BUDAT-LOW'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'IN'.
rspar_line-low = lv_start.
rspar_line-low = lv_end.
Thanks,
Chidanand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.