‎2008 Feb 28 8:30 AM
Hi,
I ve a internal table contains n no of materials
I want to submit each 1-10 materials individually of the total through transaction BD10.
Eg.
Lets assume Itab contains 34 materials.
I want to call transaction BD10 4 times and submit these values individually through BDC
I time Mat-low = 1 mat-high = 10
2 time Mat-low = 11 mat-high = 20
3 time Mat-low = 21 mat-high = 30
4 time Mat-low =3 1 mat-high = 34
Can anyone help me in providing coding part
Your help highly appreciated
Thanks In Advance.
‎2008 Feb 28 8:47 AM
Hi,
Count your materials into a variable using describe statement.
DESCRIBE TABLE itab lines variable.
variable1 = variable/10.
do variable times.
your BDC code.
endo.
declare variable1 as p.
data: variable1 type p decimals 1.
If your varible1 does not round the values. It means if your variable contains value like 10.4 then round the value to 11 using ceil statement.
variable1 = CEIL(varibale1).
‎2008 Feb 28 9:38 AM
Hi Shavan
I know that ple let me know how to select different materials n no of times.
Thanks in advance
‎2008 Feb 28 9:41 AM