‎2009 Jul 03 11:25 AM
Hi ,
I want to submit a pgm i have to give range of date lets say low value should be sy-datum-2 and high value as sy-datum.I have written the code as
DATA: seltab TYPE TABLE OF rsparams,
seltab_wa LIKE LINE OF seltab.
seltab_wa-selname = 'CREDAT-LOW'.
seltab_wa-kind = 'S'.
seltab_wa-option = 'EQ'.
seltab_wa-low = 'sy-datum'.
seltab_wa-low = 'sy-datum - 2'.
seltab_wa-high = sy-datum - 2.
APPEND seltab_wa TO seltab.
SUBMIT RSEIDOC2 with selection-table seltab.THis is not working please help
‎2009 Jul 03 12:19 PM
Try something like following
DATA: SELTAB TYPE TABLE OF RSPARAMS,
LOW TYPE D,
SELTAB_WA LIKE LINE OF SELTAB.
SELTAB_WA-SELNAME = 'CREDAT'.
SELTAB_WA-KIND = 'S'.
SELTAB_WA-SIGN = 'I'.
SELTAB_WA-OPTION = 'BT'.
LOW = SY-DATUM - 2.
SELTAB_WA-LOW = LOW.
SELTAB_WA-HIGH = SY-DATUM.
APPEND SELTAB_WA TO SELTAB.
SUBMIT RSEIDOC2 WITH SELECTION-TABLE SELTAB.
‎2009 Jul 03 11:29 AM
Use Syntax as follows:
SUBMIT ZSD_INVOICE_DETAIL VIA SELECTION-SCREEN AND RETURN.
Regds,
Anil
‎2009 Jul 03 12:17 PM
Hi,
Just try it like this, i have made some changes to the code you have pasted.
DATA: seltab TYPE TABLE OF rsparams,
seltab_wa LIKE LINE OF seltab,
w_date type sy-datum.
seltab_wa-selname = 'CREDATE'. "-> This selname can be of only 8 chars
seltab_wa-kind = 'S'.
seltab_wa-sign = 'I'
seltab_wa-option = 'EQ'/'BT'.
seltab_wa-low = sy-datum. "sy-datum is changed
w_date = sy-datum - 2.
seltab_wa-high = w_date.
APPEND seltab_wa TO seltab.
SUBMIT RSEIDOC2 with selection-table seltab.Regards
Sarves
‎2009 Jul 03 12:19 PM
Try something like following
DATA: SELTAB TYPE TABLE OF RSPARAMS,
LOW TYPE D,
SELTAB_WA LIKE LINE OF SELTAB.
SELTAB_WA-SELNAME = 'CREDAT'.
SELTAB_WA-KIND = 'S'.
SELTAB_WA-SIGN = 'I'.
SELTAB_WA-OPTION = 'BT'.
LOW = SY-DATUM - 2.
SELTAB_WA-LOW = LOW.
SELTAB_WA-HIGH = SY-DATUM.
APPEND SELTAB_WA TO SELTAB.
SUBMIT RSEIDOC2 WITH SELECTION-TABLE SELTAB.
‎2009 Jul 03 1:13 PM
Hi ,
Please refer this code.I think it may be helpful to you.
wa_sel-selname = 'SO_BUDAT'.
wa_sel-kind = 'S'.
wa_sel-sign = 'I'.
wa_sel-option = s_alldat-option.
wa_sel-low = s_alldat-low.
wa_sel-high = s_alldat-high.
APPEND wa_sel TO it_sel.
START-OF-SELECTION.
SUBMIT rfitemar USING SELECTION-SCREEN '1000'
WITH SELECTION-TABLE it_sel.
Regards
Sathish Kumar K.C