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: 

bdc urgent

Former Member
0 Kudos

Hi

This is my first BDC program t.code vl01n where in i need to pass data from selection screen insted of flat file,and i need it to pass it in ranges

suppose at slection screen

i.e exidv 1700000001 to 17000000066

and similar field

can anyone help me with this or provide me with sample coding for bdc which is passing data from selection screen in ranges.

thanks in advance.

3 REPLIES 3

Former Member
0 Kudos

Hi,

you have the select options here

take the difference between these two values

( you can have it if it is either numeric or character )

so in this case it will come for 66 records,

take an internal table.

which will have this exidv as one of the field

do 66 times..

if sy-tabix ne 1 and sy-tabix ne 66.

itab-exidv = selop-low + sy-tabix.

endif.

append itab.

enddo.

so now in your itab all it wil have

from

1700000001 to 17000000066

now loop this table and pass these values

but declare your internal of character type...

regards,

Venkatesh

Former Member
0 Kudos

hi,

i hope im gettin ur problem right.

u have selection screen,user is goin to enter value in it and those values have to be displayed in ur bdc,right?

now suppose u have select option s_exidv for vekp-exidv.

so now u can use s_exidv-low and s_exidv-high and use these values in ur bdc.

pls i have got ur problem wrong or if u can explain ur problem more then it wilb more helpful.

Former Member
0 Kudos

Hi Lalith,

WHEN U GIVE AS BELOW IN THE SELECTION SCREEN U WILL GET ALL UR VALUES INTO "R_VALUE" .

SELECT-OPTIONS :R_VALUE FOR TABLE-FIELDTYPE.

MOVE THOSE VALUES TO A INTERNAL TABLE .

LOOP AT THAT INT TABLE.

BDC RECORDING.

ENDLOOP.