cancel
Showing results for 
Search instead for 
Did you mean: 

How to Change "fields to be changed" in planning function

Former Member
0 Kudos

Hi!

Anybody knows how to change "fields to be changed" in planning function dynamically programatically? Any FM?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Andrey,

why do you need this feature? The fields to be changed are used for building blocks of data chunks for the planning function. The building of blocks happens before the method execute of your planning function is called.

If you want to know which characteristics are used for buildings block e.g. in your customer planning functions you can take a look at the parameter I_R_SRV in methode INIT_EXECUTION. Method GET_BLOCK_CHARS of class CL_RSPLFR_CONTROLLER shows how the block building characteristics are computed.

The only way to change the block buildings characteristics is in method INITIALIZE of your customer planning function, but I am not shure if you can change them there. When you take for example a look at the coding of

CL_RSPLFC_COPY method init_execution you can see the following line of code:

l_t_char_usage = i_r_srv->get_tab_char_usage( ).

If you further investigate this line you can see that CL_RSPLFS_SRV method get_tab_char_usage returns paramter P_TH_CHAR_USAGE. This parameter could be set using CL_RSPLFS_SRV->SET_T_CHAR_USAGE( ). So the only possibility I see right now is to use the above information to change the list of characteristics and the flag is_chng_char. You may give it a try, but right I do not know if any side effects may occur. Please be careful when trying this.

Hope this helps ...

Regards Matthias Nutt

SAP Consulting Switzerland

cote_adams
Participant
0 Kudos

I'd like to know this as well, but you can always use a different query.