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

BAPI_INSPLOT_SETUSAGEDECISION dumping, why?

Former Member
0 Likes
1,079

Hi All,

I'm using BAPI_INSPLOT_SETUSAGEDECISION to update usage decisions on a number of inspection lots. Here is my code..

loop at gt_batches.

clear gv_ud_data.

gv_number = gv_ud_data = gt_batches-prueflos.

gv_ud_data-ud_plant = gt_batches-werk.

gv_ud_data-ud_code = p_vcode.

gv_ud_data-ud_code_group = p_vcodeg.

gv_ud_data-ud_selected_set = p_vaus.

call function 'BAPI_INSPLOT_SETUSAGEDECISION'

exporting

number = gv_number

ud_data = gv_ud_data

importing

return = gv_return.

The first call in the bapi is to FM 'QEVC_PROCESS_AUTO_UD' and this is where it's dumping. It's not even caught by the exceptions are anything.

Has anyone had a similar experience before and if so what did you do to reslove it? Am I missing a something.

If anyone could help, I'd be most grateful,

Thanks,

Liz.

4 REPLIES 4
Read only

mvoros
Active Contributor
0 Likes
939

Hi,

BAPI should never dump. It should only return error messages in the table return. So are you sure that your input parameters have correct type? What dump do you get? Usually you can deduct what's the problem from dump. You can also try to look for related OSS notes. As I wrote BAPI should never dump.

Regards

Read only

Former Member
0 Likes
939

Hi Martin,

Firstly thanks for the response. I don't get any error mesages, it simply stops executing and reverts back to the input screen. I've been degugging in se37 and it simply stops and throws back to se37 screen.

I will double check my input parameters but I'm fairly sure they're correct.

Regards,

Liz.

Read only

Former Member
0 Likes
939

Hi,

I am facing exactly the same problem but it is only when I want to set the usage decision to R0. For A0 it is working absolutely fine. Can you help me with this if you have been able to sort this out.

Thanx

Read only

Former Member
0 Likes
939

Hi Liz,

I am also facing the same problem while doing automatic usage decision.

Did you got any solution for your problem?

If you have any solution to the problem please let me know.

Thanks & Regards,

Arun.