cancel
Showing results for 
Search instead for 
Did you mean: 

Submit statement

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Still its not working.lv_start and lv_end has correct values only.

The rspar table has values liks

SELNAME KIND SIGN OPTION LOW

SO_BUDAT|S |I |EQ |20080901

SO_BUDAT|S |I |EQ |20080928 .

How to differentiate as high and low values.

Former Member
0 Kudos

change code as follows :

rspar_line-selname = 'SO_BUDAT'.

rspar_line-kind = 'S'.

rspar_line-sign = 'I'.

rspar_line-option = 'BT'.

rspar_line-low = lv_start.

rspar_line-high = SO_BUDAT.

APPEND rspar_line TO rspar_tab.

Edited by: Navneeth Bothra on Oct 10, 2008 11:46 AM

Former Member
0 Kudos

use select-options no display.

assign the value to high and low.

append to that ranges table.

Regards,

Midhun Abraham

Edited by: Midhun Abraham on Oct 10, 2008 11:47 AM

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

Can you tell wat is the select-option name and wat values you want to pass to the select-option.

Former Member
0 Kudos

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.

former_member598013
Active Contributor
0 Kudos

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