‎2009 May 01 3:51 PM
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.
‎2009 May 02 6:08 AM
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
‎2009 May 06 9:15 AM
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.
‎2009 Oct 29 2:23 PM
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
‎2009 Nov 20 12:19 PM
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.