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

Comparing dates

Former Member
0 Likes
436

Hi,

I am working with promotion transaction WAK1.

My requirement is to select the condition record number from the table A017 by comparing the all the primary key fields.

in that i have date fields valid to date and valid end date .

i want to select the condition record number which will fall between the valid to date and from date of header promotion.

I am using DATBI GE lv_vkdbi

AND DATAB LE lv_vkdab.

lv_vkdbi and lv_vkdab are dates that i converted using CONVERSION_EXIT_PDATE_OUTPUT' of the header wakhd.

i am getting the condition record number if i remove the dates comparison.

Please help me in getting with dates comparison

regdards

pavee.

3 REPLIES 3
Read only

former_member378318
Contributor
0 Likes
408

Why are you using CONVERSION_EXIT_PDATE_OUTPUT' ?? surely the dates in lv_vkdbi and lv_vkdab are already in internal format as you require them for use in the select statement.

Read only

Former Member
0 Likes
408

Hi Praveen,

No need of using the conversion exit.The dateis already in internal format.

Thanks,

Kasi Raman R

Read only

Former Member
0 Likes
408

Hi

your code is correct.

> i am getting the condition record number if i remove

> the dates comparison.

Thats because the record does not lie in the date range. So, its not populating when the date comparision is done.

Regards

Navneet