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

Not accepting date in selection screen

Former Member
0 Likes
971

Hi,

I'm trying to submit rkaep000 with values to order, expected debit date and display variant in the selection screen. I'm able to fill values to order and display variant but not to the date. Why am I not able to pass the dates????? Tried directly passing then passing as range but still it takes the default date.

submit rkaep000 via selection-screen

WITH p_tcode = 'KOB2'

WITH aufnr in r_aufnr

  • WITH r_obdat in r_date

WITH r_obdat-low EQ '01032003'

WITH r_obdat-high EQ '01032007'

WITH p_disvar = 'SCORP 1404'

to sap-spool spool parameters params

without spool dynpro

and return .

Hi,

I'm trying to submit rkaep000 with values to order, expected debit date and display variant in the selection screen. I'm able to fill values to order and display variant but not to the date. Why am I not able to pass the dates????? Tried directly passing then passing as range but still it takes the default date.

submit rkaep000 via selection-screen

WITH p_tcode = 'KOB2'

WITH aufnr in r_aufnr

  • WITH r_obdat in r_date

WITH r_obdat-low EQ '01032003'

WITH r_obdat-high EQ '01032007'

WITH p_disvar = 'SCORP 1404'

to sap-spool spool parameters params

without spool dynpro

and return .

6 REPLIES 6
Read only

Former Member
0 Likes
896

Try passing the dates using the internal date format (YYYYMMDD).

'20070301'

Read only

0 Likes
896

tried not working

Read only

0 Likes
896

if r_obdat is a select option have you also tried:

r_date-low = '20030301'.

r_date-high = '20070301'.

r_date-sign = 'I'.

r_date-option = 'BT'.

append r_date.

submit rkaep000 via selection-screen

WITH p_tcode = 'KOB2'

WITH aufnr in r_aufnr

WITH r_obdat in r_date

WITH p_disvar = 'SCORP 1404'

to sap-spool spool parameters params

without spool dynpro

and return .

Read only

0 Likes
896

Hi,

I have tried that also. If u can see my code tht's been commeneted out. I have not pasted the range here but I have tried tht, it's not working

Read only

0 Likes
896

I looked in the report and noticed the lines:

refresh r_obdat.

append r_budat to r_obdat.

Instead you might want to try passing it to r_budat.

Read only

0 Likes
896

Gr8 Daniel thanks a lot it worked.