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 Issue

Former Member
0 Likes
556

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.

3 REPLIES 3
Read only

Former Member
0 Likes
517

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).

Read only

0 Likes
517

Hi Shavan

I know that ple let me know how to select different materials n no of times.

Thanks in advance

Read only

Former Member
0 Likes
517

Hi,

Could you please explain me in more detail?

Regards,

Shravan