Application Development 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: 

date

Former Member
0 Kudos

Hi

Input for FI_PERIOD_DETERMINE(Func. Module) will take input date as

BKPF-BUDAT . But my itab field is of char 10(it_zavldata-edatu). I cant change in table as this table is used in many places .

Now please tell me a way I can convert char to budat type when I declare

lv_edatu like BKPF-BUDAT & say

lv_edatu = it_zavldata-edatu.

its chopping last 2 char and showing 23.04.20 & not 23.04.2004 as budat is od type dats ( 8 ).

please guide me thru

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

declare one more field of char 8 , say v_date

and say l_date is ur 10 char field

concatenate l_date6(4) l_date3(2) l_date+0(2) into v_date.

and pass V_DATE to FM

4 REPLIES 4

Former Member
0 Kudos

Hi Swati,

U need to use Write to....

Reward with points if satisfied

Regards,

Krishna K.

Former Member
0 Kudos

hi,

 data: lv_edatu like BKPF-BUDAT.
write it_zavldata-edatu to lv_edatu.

By doing so, we need not take care of the date separators also.

Regards

Sailaja.

Former Member
0 Kudos

declare one more field of char 8 , say v_date

and say l_date is ur 10 char field

concatenate l_date6(4) l_date3(2) l_date+0(2) into v_date.

and pass V_DATE to FM

0 Kudos

Hi Chandra

Thank You