Quantcast
Channel: SCN: Message List - SAP Advanced Planning & Optimization (SAP APO)
Viewing all articles
Browse latest Browse all 2032

Assignment error: Overwriting of a protected field.

$
0
0

Hi,

 

While updating the Supplier Shutdown Profile using Function Module in report program, we have to clear the global variable used in the function group of that FM.

The global variable is LAST_VIEW_INFO. We have tried to access the global variable outside the FM using the field symbol.

 

Like:

 

Field-symbol: <fs>  type any.

 

assign '(functiongroupprogramname)LAST_VIEW_INFO' to <fs>.

 

if <fs> is assigned.

<fs> = space.

endif.

 

Here assignment is done successfully, however when the <fs> is cleared, we get dump as "Assignment error: Overwriting of a protected field".

 

Is there any other way to clear or access the global variable outside the FM in custom program ?


Viewing all articles
Browse latest Browse all 2032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>