Change Offset value of input node in APO order

Dear experts,
in order to accomodate overlapping scenario in APO I calculate and update offset value of input nodes of apo planned orders. To do so I use BADI /SAPAPO/RRP_SRC_EXIT method RRP_USEX_PLORD_CREATE. I activate the BADI using heuristic SAP_PP_021. it works fine for APO planned orders. However It is not possible to change production order nodes.
I have tried using a heuristic (copy of SAP_PP_012) that uses Function Module /SAPAPO/RRP_LC_ORDER_MODIFY. However I can not change orders as I got a livecash error.
I also tried /SAPAPO/RRP_LC_ORDER_CHANGE. In this case I did not have LC error but I still order offset value was not changed.
do you have any idea on how to proceed? What I really want is a method to change input nodes of production orders in APO.
Thank You,

Hi Anup,
In customer exit variable you will have to populate your 0FISCPER characterstics,
You can populate it based on system date, use the FM DATE_TO_PERIOD_CONVERT and you will get current period based on your system date and Fiscal Year variant.
After that you can just modify these values. and populate your 0FISCPER characteristics.
If you have to do this calculations based on user input date then follow the same procedure but instead of system date you will have to pass the date entered by customer to this FM.
Refer the following sample code snippet,
IF i_step = 2.
      DATA:l_vy7(4) TYPE c,
           l_vm7(3) TYPE c.
      CLEAR: l_s_range,loc_var_range.
      LOOP AT  i_t_var_range    INTO  loc_var_range   WHERE  vnam = 'input var'.
        call the FM convert to period here and give user input date.
        l_vy7 = l_vy7 - 1.
        l_vm7 =  loc_var_range-low+4(3).
        CONCATENATE l_vy7 l_vm7 INTO loc_var_range-low.
        l_s_range-low      = loc_var_range-low.
        l_s_range-sign     = 'I'.
        l_s_range-opt      = 'EQ'.
        APPEND l_s_range   TO   e_t_range.
        EXIT.
      ENDLOOP.
    ENDIF.
Regards,
Durgesh.

Similar Messages

  • Multiple Input nodes to Sales Order creation using VC

    hi experts,
    i'm using BAPI_SALESORDER_CREATEFROMDAT1 for sales order creation in VC. i would like to get header details in a form and also like to get the multiple items details in a table and partner details in atable.i've to take both contents to create a sales order. when i click the submit button in the form " sold-to party is not defined" error message displayed and when i click the submit in table "DOC TYPE is not mentioned" message is shown. but i've given both details.
    can you help me to solve my problem and i've confused which field is used to mention the sold-to party in the header_in.
    thanks and regards
    basheer

    Hi,
    I was facing the same problem while creating the sales order. Try giving following values:
    If you are creating standard order, then enter 'TA' instead of 'OR' to the Doc_Type and enter 'AG' as a partner role instead of 'SP'.
    It works for me. I don't know how??? Lets try.
    Also try following links.
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/problems-working-with-bapi_salesorder_createfromdat2-527937#
    http://www.saptechies.com/bapi_salesorder_createfromdat2/
    Thanks,
    Prashant
    (PS. Do Rewards Points for useful answers)

  • How to change a value of input text box into uppercase?

    Hi all,
    In my use case I should have a text box in the jsf page and I should store the value that is entered in the text box in a database.
    The requirement is the value which user enters in the text box should get changed to Uppercase
    before getting saved in the database. Kindly help me in achieving this.
    Thanks,
    Phanindra.

    hi user,
    before asking any question.
    right place to search anything is google (the ocean).
    so the way. chris showed.
    if i understood correctly means,
    if you want change any input text into uppercase means :
    use some skinning : -
    <af:inputtext>
    contentStyle = "text-transform:uppercase;"
    </af:inputtext>
    Or
    else
    are you looking for
    while given inputtext saved into db.
    Use something like this in as vo for each and ever attribute,
    public void Desc(String value) {
    setAttributeInternal(DESC, value.toUpperCase());
    }

  • Lock characteristic value for configurable material in Sales Order

    Is there a setting in SAP which can prevent user changing characteristic value for configurable material in Sales Order after production order created for this Sales Order? Currently, it can only works when first delivery create for this Sales Order.
    Thanks a lot.

    Hi,,
    in the characteristic goto additional data tab,
    you have a field called not ready for input.
    you select this when the value in this characteristic come by calculation based on the previous selection.
    that field will be greyed out.
    OR
    u can even select the no display check box,
    by selecting this u cant see the characteristic in the list,, it will give u a popup before leaving the screen.
    for this the char has to be a required field.
    OR
    if any of this is not working then may be u can try out with authorization management.
    thanks

  • How can i change the expand level of nodes in treeView1 according to numericupdown value change ?

    I have this method:
    void ExpandToLevel(TreeNodeCollection nodes, int level)
    if (level > 0)
    foreach (TreeNode node in nodes)
    node.Expand();
    ExpandToLevel(node.Nodes, level - 1);
    I added now a new method:
    void CollapseToLevel(TreeNodeCollection nodes, int level)
    if (level > 0)
    foreach (TreeNode node in nodes)
    node.Collapse();
    CollapseToLevel(node.Nodes, level - 1);
    Then in the numericupdown changed value event i did:
    decimal oldValue;
    private void numericUpDown1_ValueChanged(object sender, EventArgs e)
    if (numericUpDown1.Value > oldValue)
    ExpandToLevel(treeView1.Nodes, (int)numericUpDown1.Value);
    else
    CollapseToLevel(treeView1.Nodes, (int)numericUpDown1.Value);
    oldValue = numericUpDown1.Value;
    When i expand change the numericupdown value up it's expand it fine level by level. But when i collapse it back when changing the numericupdown value back down if i was at value 4 and now changed to value 3 all the nodes collapsed back to root.
    I want it to collapse only by one level from 4 to 3 to 2 to 1 when the vlaue is 0 then collapse back to root.
    The collapse is not working good.

    Hi,
    You don't need to loop from the start to collapse it.
    Just issue the collapse on the current node; if its not collapsible then nothing will happen.
    treeView1.SelectedNode.Collapse();
    Happy coding.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Manually input ( or type ) the value of the node in hierarchy

    Dear all,
    I have the following requirement :
    In the query, I am using a hierarchy node variable. Now, by default, on the selection screen the valued can be passed to this hierarchy node var. by a drill down on the hierarchy on which the variable is created and selecting one of the nodes.
    Now, I would like to manually input ( or type ) the value of the node instead of performing the drilldown on the hierarchy and selecting the node..
    It is this possible for a hierarchy node variable ?
    Thanks,
    Kenps

    Hi Carlos,
    You create a Variable with following selections
    Type of variable : Hierarchy node
    processing : Manual Input/Default value
    Reference Char : Mention the CHAR that contain this hierarchy
    Define it as SIngle value & Mandatory entry.user can see all the nodes in F4 help and selects the node as he wants
    Hope it helps
    Sriman
    Edited by: Sreeman on Apr 21, 2008 8:34 PM

  • How to change the value from one input control to another input control?

    Hi Experts,
    I want to change the value from  one input control to another input control. For Example if i change month in first tab. it should reflect in second tab also. How should we acheive through input control or some other option.
    Here I attached screen shot.Please help me for this

    Hi,
    It is not possible to have Input controll in all tabs that will be set from another .
    But There is one workaround .
    Follow the link below .
    http://davidlai101.com/blog/2013/08/13/web-intelligence-input-control-that-affects-all-tabs/

  • How to change characterics values in a ready input query ?

    How to change characterics values in a ready input query  base on a real time infocube?
    when  I use  IP to planning I want to change  characterices values that have exit in query?

    Hi,
    On the properties tab of the characteristics (within input query) you can decide what values need to be populated when the query opens.
    Is your exit written on char relationship?
    regards,
    Lokesh Nandula

  • Changing button label;JSP; input type="submit" name="jboEvent" value="Search"

    Hello everybody,
    I try to develop a multilanguage application in which the button labels will change accordingly with the browser's regional settings.
    The line in the generated DataQueryComponent.jsp file is the following:
    <input type="submit" name="jboEvent" value="Search">
    If I want to change the value like value="Rechercher" the application will not execute the query.
    In fact the section
    <jbo:ViewCriteriaIterate datasource="dsQuery" >
    </jbo:ViewCriteriaIterate>
    is not executed.
    I tried to generate the button with:
    <input type="submit" name="jboEvent" value="Rechercher" onClick="this.value='Search'"> ,
    but for a long query the name Search will remain as button label on the screen.
    Any new solutions, please?
    Thanks in advance.

    Visit that Jakarta web site. There is an i18n tag library that you will find useful.
    http://jakarta.apache.org/taglibs/doc/i18n-doc/intro.html

  • Why knob need to use property node to change its value

    Refer boiler vi in CLD exam sample question. 
    In the vi the knob vlaue is changed with a property node, it is not wired directly to a constant. The comment in the vi is something like "writing using property node because of the latch action of the booleans in the cluster"...
    Huh? How do the booleans influence the knob even though they are in a same cluster? What principle is this called? I need to google this up,  I didn't read it in.
    my Labview books. 
    Attachments:
    Boiler Main LV86.zip ‏61 KB

    That comment doesn't make any sense.
    There are two main reasons I can think of why you want to use a Value property node.
    1.  You want to control the order of execution by using the error wire.
    2.  You want to use a property node on multiple controls by feeding it references to different controls.
    Neither of these appear to apply in the screenshot you show.
    However, looking deeper, it looks like you can set the value of a specific item in the cluster by way of the property node.  Check out the Link to section of its shortcut menu.  I don't think you can use a local variable to set a given element of the cluster.  Now you could change the value of the entire cluster.  Read the cluster, bundle the new value for that one element, write to a local variable of the cluster.  But you won't be allowed to do that because of the latched booleans that are a part of the cluster.  Hover over the context help of that property node and read the description there as well.

  • Value of input text field not changed!

    hi,
    i have a select menu. when i change the value of the select menu, i have the event method and in the event method i change an value of a other input text field, but in the html page, the input text doesn't change his value.
    i bind the input text field to the value field in class with the folowing command.
    <h:inputText binding="#{backing_main_test:testInputField}" value="#{backing_main_test.testValue}"/>
    please help me.
    thanks, christoph

    <h:inputText binding="#{backing_main_test: <--- was that colon intentional?

  • How to change a Characteristic Offset value with a User Entry?

    I have the characteristic "Calendar Day" with the following restriction
    Between
    FROM:  "Current Calendar Day (SAP Exit ) - 60"
    TO:       Current Calendar Day (SAP Exit)
    60 is the Offset value, this will allows to displays current day and 60 days on the past.
    I want to make the offset value dynamic by using a variable that can be modified by the user, so if the user want to display a year then type 365.
    Here is an screenshot of the Query
    http://farm3.static.flickr.com/2173/2274553449_3c8d0d28a0_o.jpg

    Seems like I misunderstood you, I didn't think about making dynamic the offset value.
    The only way to acheive your requirment is to create a variable with user enter for 0CALDAY and when the user enter a specific date, you display only dates greater than those user entry date, but this case the user will enter a date instead of offset.
    Secondly, if you want the user to enter offset, then create a condition and condition variable in your query and depending on user entery, you display the results.
    hope, either one will work for you.
    thanks.
    Wond

  • Changing the value of a control in a subvi

    I think the answer is out there somewhere but I've read through many threads found with searches similar to this topic so sorry to repost...
    I would like to change the value of a top-level VI control from a sub-vi.  The data is being used as a parameter, I was thinking about using a local/global but I've seen this discouraged.  Is there a way I can do it with references, property, or invoke nodes (or some other suggested method) ?
    I am guessing that if I am not using globals I will need to wire into the sub-vi?
    Dave

    I'd like to clarify what I am trying to do a bit more...
    The sub-vi has a control of the same type as the top-level vi.  The inital control value is being passed into the sub-vi from the top-level vi.  The sub-vi uses the control value in several places through local variables (reading and writing to it)
    I would like to modify the vi so the top-level vi control value changes whenever the sub-vi changes the control value that is passed to it.
    My last attempt was to make a refnum control in the sub-vi (by dragging from top-level block diagram to sub front panel) and then creating a property node from that refnum control.  Using the property node "value" did not give me the value of the control from the top-level vi as I had hoped.  Wiring it to a terminal that was expecting the same type of control (a cluster of two numerics) caused a wiring conflict.
    I noticed elsewhere in the code that the programmer used a text file to save options (unfortunately the control I am working on was not originially included in the options).  There is a vi that, when called, either reads or writes to the text file.  From a C/C++ programming perspective it seems quite odd to me not to just keep all this data in memory and pass it around.  Is using a file to store variables a typical practice in LV programming (even when they are retrieved multiple times during program execution) ?

  • I created boolean references in my main vi block diagram and copied them to my sub vi front panel. when wire my reference in my main vi to one the input node of the sub vi the wire is broken. the error says its a class conflict why?

    i created boolean references in my main vi block diagram and copied them to my sub vi front panel. when wire my reference in my main vi to one the input node of the sub vi the wire is broken. the error says its a class conflict why?

    Expanding and clarifying what BJD said;
    After you create the temporary sub-VI that BJD mentioned, open its front panel and copy the reference control that LV created when it created the sub-VI.
    This reference control will be correct class etc that you need. Use the control to replace the original control that you were attempting to wire up.
    The technique of "create sub-VI...copy" always works for me.
    There is one more thing that you should watch out for.
    The mechanical action of the boolean can not be set for latch action when attempting to read the value using a value property node.
    Trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Problem with offset values

    Hi Experts,
    I have a problem with offset values. I have create a variable on OFISCPER, it's characteristic value, indivdual value, mandatory and ready for the input. I need to show the varibel period and the l previous period and so on till 12 periods. I used the offset values (-1, -2, etc.) but when I execute the query I can show just the variable period and the period previous I don`t see. The query is based on multiprovider and don´t has filters. Can anyone help me?

    Leonel,
    You may nt need to have 12 columns in the query designer.
    You could include the keyfigure and restrict it to the variable and create the offset for the 12 periods
    Check this http://help.sap.com/saphelp_nw04/helpdata/en/00/e8d13f7fb44c21e10000000a1550b0/frameset.htm
    -Doodle

Maybe you are looking for

  • IPhone mail app stopped loading new emails

    Hello, since two days I recognized increased Battry consumption. Found out that the IOS mail app is the reason for. Once mail launched, app says loading - the internet access circle appears and nothing happens. Same happens with my wife's iPhone. We'

  • Bluetooth is not working properly on my notebook

    i am unable to send file to laptop via mobile . i can send only fm notebook to mobile only  but  now i am facing problem in sending file to mobile.earlier it was working ...and one more thing is that the sound of my notebook also has been reduced to

  • Best way to edit an asset style??

    i wanted to change the color of an asset style. what's the best way to approach this? for example, there are all kinds of grayscaled glassy styles in the assets panel. if i take a plain rectangle and want to apply the glassy asset style, but in a dif

  • Frustration has sunk in. . .CSS in Dreamweaver help needed!

    I just took over a website that was previously built. When trying to update I really messed it up> I am not that familiar w/ CSS and am attempting to learn . . . My problem is the background on the page should go down to the footer (leaving the foote

  • Use single message with multiple spry "states"

    forgotten past decided to use spry widgets to do the validation. One of the things that can get old pretty quick is to have to create a different message for each thing that can go wrong, even if you need to display the same message. For example, if