Skip to Content
0
Former Member
Dec 27, 2011 at 07:17 AM

Fox formula - Copy variable value to a characteristic in IP

373 Views

Hi All,

I have to copy the value of a variable to a characteristic in Fox formula in IP. In this scenario I am forecasting data using copy function. Whenever new data is copied I need to save it as a new version. So in the fox formula I have mentioned only 'version' as the field to be changed. I get the value of version automatically from a function module. In BPS I think it is possible but I am using IP.

Example.

Copied data

Customer Material Version Year Qty

c1 m1 0 2012 10

c2 m2 0 2012 20

c3 m3 0 2012 15

This is the reference data got as a result of copy function. In the code I get the version computed from a function module in variable fm_version.

I wrote the logic like this.

data lv_version type version.

foreach lv_version.

{0quant_b, lv_version} = {0quant_b, fm_version}

endfor.

When it is execute it is showing error as records changed and deleted.

Is it the correct method or is there any other workaround.

I would realyt appreciate your time and effort.

Thanking you,

Jerry Jerome