‎2006 Dec 12 4:32 AM
Hi Friends,
I have one problem in FM CO2H_PROD_ORDER_READ. While executing the FM in SE37 I am getting the desired result. But I use the same FM in program & executed I am not getting the desired result.
While debugging I found that in FM CO2H_PROD_ORDER_READ one FM CO_BO_AFFL_OF_ORDER_GET is used & in this FM AFFL_BT is populated while executing in SE37.
But in case of executing the program the AFFL_BT is not populated.
Anybody will suggest me any solution for this.
‎2006 Dec 12 4:38 AM
Hi Sahil ,
Are you getting the exception 'ORDER_NOT_FOUND' when you execute the FM , the reason for it is that you are not passing the production order number in the correct format.
e.g. if you pass the number as '5000000004' it will give you this exception because the length of a Production order is 12 , so you need to convert this to 005000000004 and execute.
You can try the conversion exit for this.
Regard
Arun
‎2006 Dec 12 5:22 AM
Hi Arun,
I tried the conversion exit but still the problem is there.
could u pls tell me any other suggestion.
‎2006 Dec 12 5:25 AM
Hi Amit ,
Pleas use the <b>unpack</b> command .
If your production order is in the variable v_aufnr. use the command
unpack v_aufnr to v_aufnrand the call the FM using this variable.
Please tell me if it solves the problem or not
Regards
Arun