10-19-2007 1:15 PM
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.
10-19-2007 1:24 PM
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
10-19-2007 1:25 PM
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.
10-19-2007 1:28 PM
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.