cancel
Showing results for 
Search instead for 
Did you mean: 

DOC_CHANGE_BADI

Former Member
0 Kudos

Hello,

Please somehow tell me what's going on:

1) I am calling a function within DOC_CHANGE_BADI

2) that function raises an exception if the two import values

are blank

3) have a case with sy-subrc to display the error mesage

4) this function is in a loop.

Now here is what i don't undertand.

1) if my loops is less than 10 ( line items per sc), the data are transferred from my catalog to the shopping cart without any problem.

2) however, if it is 10 or more most of my z fields do not get transferred to the sc.

may be 8 out of 75. It seems like the execution gets aborted somewhere.

Do you think that it is a configuration issue? why 10 or more?

thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You need to debug this issue.

Maybe your zfield is initial and this FM want non-initial value?

or some of this import field has longer size than other (eg. you want to use char10 insted of char8).

Regards,

Marcin Gajewski

Former Member
0 Kudos

thanks, but this is no the case.

the line items are identatical in the sc. If there are less than 10, it works.

So there is no issue about zfied etc..

Former Member
0 Kudos

if this is the case, why would it work for 9 or less, and not for 10 or plus.

the line items are exactly the same for the shopping cart. It is in a loop !