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

FM Problem

Former Member
0 Likes
568

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.

3 REPLIES 3
Read only

Former Member
0 Likes
446

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

Read only

0 Likes
446

Hi Arun,

I tried the conversion exit but still the problem is there.

could u pls tell me any other suggestion.

Read only

0 Likes
446

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_aufnr

and the call the FM using this variable.

Please tell me if it solves the problem or not

Regards

Arun