Skip to Content
author's profile photo Former Member
Former Member

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


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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 17, 2008 at 04:27 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 02:00 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.