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

BDC

Former Member
0 Likes
721

Hi

in BDC how to handle the date field?

thanks,

kiram.M

1 ACCEPTED SOLUTION
Read only

Manohar2u
Active Contributor
0 Likes
695

Refer to this link for different possibilities in handling date format

Regds

Manohar

5 REPLIES 5
Read only

Manohar2u
Active Contributor
0 Likes
696

Refer to this link for different possibilities in handling date format

Regds

Manohar

Read only

Manohar2u
Active Contributor
0 Likes
695

Also refer to the following threads

Regds

Manohar

Read only

Former Member
0 Likes
695

Try re-recording the bdc.. If it is not a mandatory field you need not fill it.

Try this.

if w_ausbs ne '00000000'.

PERFORM bdc_field USING 'VIQMEL-AUSBS' w_ausbs.

else.

CLEAR w_ausbs.

PERFORM bdc_field USING 'VIQMEL-AUSBS' w_ausbs.

endif.

This code converts all the zeros to spaces.

data : n type d value 00000000.

data : c(10) type c.

data : x type i value 1 ,

y type i value 0.

c = n.

while c+y(x) ne space.

c+y(x) = space.

y = y + 1.

if y = 8 .

exit.endif.

endwhile.

Read only

Former Member
0 Likes
695

HI,

in BDC you need to give the User date format .. to do this

lets say if your date is in field <b>DATE1</b>

Data: date2 like sy-datum,

date3(10).

move: date1 to date2.

write: date2 to date3.

so that write3 field will have the end user date format...

Hope this solves your Problem

Thanks

Sudheer

Read only

Former Member