Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue in submit statement

Former Member
0 Likes
751

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
695

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.

4 REPLIES 4
Read only

Former Member
0 Likes
695

Use Syntax as follows:

SUBMIT ZSD_INVOICE_DETAIL VIA SELECTION-SCREEN AND RETURN.

Regds,

Anil

Read only

Former Member
0 Likes
695

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

Read only

Former Member
0 Likes
696

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.

Read only

Former Member
0 Likes
695

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