on 12-17-2008 1:03 PM
Hi!
Anybody knows how to change "fields to be changed" in planning function dynamically programatically? Any FM?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'd like to know this as well, but you can always use a different query.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.