Condition value need to be applicable only once

Hi,
I am working on solution to define set up cost for machined components. When components needs to be ordered, irrespective of the quantity there will be a fixed cost for the given material which is other than the normal unit price.
Although I can simply define a fixed value condition, it will not solve my problem. When we run MRP, based on MRP area requirements / project requirements, each of the requirement for the same material can come as different line items in a PR and when we covert the same into a PO, there is always a possibility that same material can appear in several line items. If I use fixed value type of condition, this value will appear for all such line items for that given material which is not the desired situation.
I think I can't even use condition grouping functionality (I am not very sure of this), as same condition if used for other materail number in the same PO, it should consider that value.
I am looking for a solution, how to define a condition that will be applicable only once for a particular material number in one given PO.
Any ideas / help? Thanks in advance.
Cheers
Jags

Hi
Thanks for your reply but I am not clear how it will solve my problem.
Please note:
1. Manually intervention is impossible as volume of such scenario and materials are very high.
2. MAP of the material should be impacted with the cost which is to be paid as set up cost which is nothing but fixed cost for that given material at PO level.
3. During IV, the condition value should be available for processesing (not to be provided manually).
Will definitely reward points if it can help me in solution.
Cheers
Jags

Similar Messages

  • Need to display records only once for that particular group

    Hi,
    I have a requirement like displaying repeated records only once for that particular group.
    For eg, in the emp table, I need to display repeated deptno only once for the particular group of job.
    And for the above requirement I have used the below query,
    SELECT empno, DECODE (LAG (job, 1) OVER (ORDER BY job), job, NULL, job),
    DECODE (LAG (deptno, 1) OVER (ORDER BY deptno), deptno, NULL, deptno)
    FROM emp;
    Output:
    EMPNO     JOB     DEPTNO
    7782          10
    7934     CLERK     
    7839     PRESIDENT     
    7876          20
    7788          
    7902     ANALYST     
    7566     MANAGER     
    7844          30
    7900          
    7654     SALESMAN     
    7698          
    But in the above output you can find that, say deptno 10 is getting displayed only once, whereas I want that deptno 10 to be checked whether it is getting repeated within the group of JOB and than hide the deptno 10 only if it is repeated within that job group. If not, deptno 10 should be displayed again.
    Please help me in this.
    Regards,
    Shiva

    Hi,
    Hope the below helps.
    SELECT emp_id, job, deptno,
           CASE WHEN LAG(deptno, 1) OVER (partition by job order by deptno) = deptno THEN null else deptno end
      FROM empRegards
    Ameya

  • Condition value need to change at quotation level not in sales order

    Hi,
    As client requirement, Condition value and new condition type can be added at Quotation if Sale Order is created with reference of same Quotation than system should not be allowed for editing or adding new condition type.
    If Sales Order is created without reference than system should be allowed for edit or add condition.
    Please resolve my query.
    Thank You!
    Chakradhara

    Hi Chakradhara,
    you need to define a requirement in VOFM where you check table VBFA field VBELV.
    If system retrieves data when accessing to this table with VBELV equal to your quotation number and VBTYP_N equal to C (sales order) means that sales orders have been created from your quotation. If so, then field sy-subrc should be equal to 4.
    When you add your new condition to your price schema, don´t forget to place the requirement created in column requirement.
    Ask for the help of an abaper for coding the requirement.
    Regards,
    JM

  • Help needed on how to set up Global Nav in Dreamweaver so that changes need to be made only once and will be reflected throughout the site.

    Hi,
    I've created a site with global navigation across the top (drop down menus) and some global buttons on the left side. Is there a way to code this type of global navigation in Dreamweaver so that people making changes to the site need only make them once (not on every page!) and have them reflected throughout the site? I'm using Dreamweaver MX to create the site.
    Thanks to this forum I know that Server Side Includes is a way to handle this but I'd like to use Dreamweaver if possible.
    Thanks!

    As Murray suggested, templates are the way to go  (though not really recommended for a fairly large site)  - here's a link to some help docs to help you get started.
    http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WScbb6b82af5544594822510a94ae8d65-7acda .html
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    Book: Ultimate CSS Reference
    http://www.sitepoint.com/launch/005dfd4/3/133
    http://twitter.com/nadiap

  • Need to run start routine only once

    I understand that for every data package from ODS to Cube, the start routine is run.  But I need to run it only once.  Is there anyway to achieve this?  As the programming logic doesn't really do anything to the data package, I don't need it to be in the start routine.  But as I populate a database table using that routine, which in turn is used in update routines, I need to kick it off before the load from ODS to cube happens.  I think an ABAP routine variant can be kicked off in process chains.  Did anyone use the variant and know how to kick off the routine?  Do I have to write this logic in a function module and then kick it off using ABAP variant in Process chains? 
    I would prefer a way to limit my start routine to run once for every data load rather than kicking it off through process chain.  Can someone discuss which is a good approach and how I go about it?  Thanks for your inputs.
    Sam

    Hi Sameer,
    Let me recap you req. You want to populate a database table in your start routine and need to do it once for a load.
    There is no possible way to limit the no. of times a Start routine is run, but you can find some worksaround.
    Is there anyway you can identify that your DB table is updated with new records, i.e.
    1> You delete and refill table every time
    2> You have some kind of time stamps.
    If one of the above case is true, then you can use that as a check in the Start routine to limit the no. of times the DB table is being populated.
    Regards,
    Sree

  • (BW) Run the Start Routine Only Once

    I understand that for every data package from ODS to Cube, the start routine is run.  But I need to run it only once.  Is there anyway to achieve this in ABAP?

    I once had that same requirement, but in a datasource in R3. I'm not sure if the same solution would work in BW, though. I used a memory id to keep the variable value between packets:
    DATA: ... n_globalvar TYPE n ...
    then I added...
    IMPORT n_globalvar FROM MEMORY ID 'ZMEMID01'.
    ...at the start of the routine to retrieve to the variable the value from the memory id.
    At the end of the code, I exported the variable back to the same memory id...
    EXPORT n_globalvar to MEMORY ID 'ZMEMID01'.

  • Tax condition value is not calculating based on condition rate maintained

    Hi,
    I have maintained the condition rate as 4% for a condition type against a tax code in FV11. and also the validity period is correct.
    But when I select the tax code in purchase order and click on taxes button, some other condition value is coming in condition value field for that condition type. for example the PO price is 100Rs. the condition value has to  be 4% on 100Rs that is 4Rs. but some constant value is coming 5, even if change the condition rate in FV11 as 0%, the condition value is coming as 5 only.
    Does anybody faced this issue.??

    Hi
    for example the PO price is 100Rs. the condition value has to be 4% on 100Rs that is 4Rs. but some constant value is coming 5, even if change the condition rate in FV11 as 0%, the condition value is coming as 5 only.
    try this
    change your PO value and then observed the changes ,IF then  your are getting value different than 5 ,then i think there is no problem in your tax  procedure because you are saying after 0% in FV11 also your are get 5 only in PO
    as per me you can not put any constant value in tax procedure ,we only map how tax calculation will below for condition
    and check your condition record for that vat condition again in FV13
    Regads
    Kailas ugale

  • Call JCO.ParameterList.setActive() only once?

    In a loop construct where I am calling a JCO.Function over and over again, do I need to call setActive() on the export parameter list and the table parameter list only once to render unnecessary parameters inactive or do I have to do it on each iteration?  Please refer to the code example below:
    void processFunction(JCO.Client connection, String fxName) {
    JCO.Function fx = createFx(fxName);  // some helper method
    JCO.ParameterList epl = fx.getExportParameterList();
    JCO.ParameterList tpl = fx.getTableParameterList();
    deactivateExportParameters(epl);  // Deactive here?
    deactivateTableParameters(tpl);    // Deactive here?
    for (int i = 0; i < count; i++) {
       deactivateExportParameters(epl);  // or here?
       deactivateTableParameters(tpl);    // or here?
       setImportParameters(fx);  // helper method
       connection.execute(fx);
       processResults(fx);  // helper method
    The methods deactivateExportParameters() and deactivateTableParameters() both
    call JCO.ParameterList.setActive() to inactivate export parameters or table parameters
    based on whether they are referred to after the JCO.Function is executed.
    Thanks in advance.
    Message was edited by:
            Jim OHearn
    Message was edited by:
            Jim OHearn
    Message was edited by:
            Jim OHearn

    Hi Jim,
    the setActive method needs to be called only once. It is fired when the Function is created (either called from the Repository or created anew).
    When you want to use the function, call the setActive method before the for loop. If you had been actually creating the functions inside the loop, then you need to call the setActive method also in the loop.
    For e.g -
    JCO.Function fx;
    ParameterList tableParamList;
    for(int looper = 0; looper < 10; looper++)
              fx = createFunction("BAPI_NAME");
              tableParamList = fx.getTableParamList();
              tableParamList.setActive(false, "TABLE_NAME");
    Bye,
    Sameer

  • EEM Script to reload router only once after tracked object is down.

    event manager applet vpn_tunnel_unreachable
    event track 456 state down
    action 1.0 reload
    I need it to reload only once if tracked object 456 is down. It should reload the router and then if the tracked object is still down it should go into dial backup as it normally would if it did not have the reload script.

    I suggest reposting this question at the other Network Management subforum under Network Infrastructure to get the attention of the resident EEM guru.
    http://forum.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Network%20Infrastructure&topic=Network%20Management&CommCmd=MB%3Fcmd%3Ddisplay_messages%26mode%3Dnew%26location%3D.ee71a02

  • Need to populate value for a KF only once for a combination of characterist

    Hello All,
    We had a requirement for a report. wherein we need to consolidate the data of the 0FI_GL_4 datasource and a custom table.
    both these sources have only 4 fields in common i.e Fiscal Year/Period; Company Code and Pool
    in the custom table, for each fiscal yr/period & Pool combination, there is a unique Plan value available.
    To consolidate the data, I wrote a routine in the transformation to extract data from the custom table based n the combination of Fisc yr Period, Comp Code & Pool.
    However, since 0FI_GL_4 has more than 1 entry for the above mentioned combination  that is GL_accounts, document number, etc; during extraction, my plan value is being extracted multiple times to the cube and hence for a fiscal yr/period, cube shows a summation value.
    I want the plan value to be picked only once.. please advice

    Hi Sneha,
    As I understand in your infocube along with the primary key of custom table one more field exists e.g. Document number and due to which the value is getting repeated over multiple lines.
    Though all these records are valid but when you are running report on this cube without document number all the plan values are getting aggregated, again this behaviour is also correct.
    For your reporting purpost I feel that you need to extract data from the custom table in other data target and then do the reporting on that, wherein the plan value will not be repeated.
    Regards,
    Durgesh.

  • To make to consider condition value only once

    Dear Experts,
      could you please tell me how i can make the condtion entry in SO level only once.
    Waht config is required at V/06 in spro.
    Quick response would be of great help
    Regards,
    Siva

    Answered..

  • How do I make something happen only once on a true condition in a loop

    So I have a way of doing this, but it uses a dreaded local variable, and seems to me that it might be unreliable.
    What I want to happen is to have something happen only once on a condition that will remain true. What I need is to set something after a given amount of time, but I only want to set it once after that time has been reached. Problem is, if I use a range, it could be true more than once, if I use a greater than, it'll be true every time after the set time, and if I use an equal, there's no way to know that the particular millisecond value will even appear in the loop.
    Maybe I'm wrong in even using those comparison functions... Any ideas would be greatly appreciated. See the attached vi for a better look at what I'm trying to do... (v7.0)
    Thanks,
    Geoff
    Attachments:
    Question.vi ‏16 KB

    The "Idle" state that the help file refers to is the "non-running"
    state. The Top Level VI must end execution before any "First Time" VIs will
    return TRUE after being called initially.
    Therefore, if your application calls a subVI at the beginning of the
    Test portion, on the next iteration of the loop it will return FALSE
    from that subVI, since your main VI never stopped running, and received
    a TRUE from the "First Time" on the initial test loop.
    If you have code that you want to execute only on the first run of your
    entire program, "First Time" should work fine. If you have code that
    you only want to execute on the first iteration of just the Test loop,
    the "First Time" VI is not ideal.
    I think that shift registers are going to provide the best solution,
    however you mentioned that for your particular application that is not
    ideal. Could you describe a little bit more why shift registers are
    problematic?
    Thanks Geoff, let us know.
    DWeiland
    Applications Engineer
    National Instruments
    www.ni.com/support
    Dan Weiland

  • How to set a payload field value only once for multiple instances selected?

    The user needs to set a payload field value and then he can approve the task so the task can continue through the process, that's fine when the user selects one instance and sets the value in the task details section and then clicks the approve button, but how do we achieve the same behavior in a multiple way?, I mean the user can select multiple tasks in the workspace (in this case the details task page is not available and instead the following label appear "Multiple tasks selected") then if the user clicks the Actions drop down -> APPROVE he only gets the message "your request was processed successfully", so how can the user modify the payload field value only once for all the selected tasks so when he clicks APPROVE the value is populated in all the instances selected.
    Thanks,
    Carlos.

    In the action which displays the edit page just set the form idx value before displaying the jsp.

  • Transformation Routine for checking condition only once

    Hello,
    I would like to perform he calculations based on certain criteria which goes like this...
          LOOP AT ITab WHERE EMPno  = ITAB Empno AND
                            ATYPE = ITAB-stype .
            IF ITAB-LTYP = '1000'.
              CHECK ITab-ABEGIN GE YR_BEGDT AND ITab-ABEGIN LE YR_ENDDT.
              CHECK FLAG_ST <> 1.
              ITAB-PENDING_ST = ITAB-PENDING_ST + ( ( ITab-BAL / 825 ) * 100 ).
            ELSEIF ITAB-STPE = '2000'.
              CHECK FLAG_SL <> 1.
              ITAB-PENDING_SL = ITAB-PENDING_ST + ( ( ITab-BAL  / 825 ) * 100 ).
              ENDLOOP.
          IF ITAB-stype  = '1000'.
            FLAG_ST = 1.
          ENDIF.
          IF ITAB-stype  = '2000'.
            FLAG_SL = 1.
          ENDIF.
          MODIFY ITAB.
    How to implement this logic in Transformation roles ... as this flag checks only once.... to perform the calculation.
    Thanks
        ENDLOOP.

    Hi there,
    You must be aware of start and end routine in a transformation.
    Assumin that you would like to modify the code before sending it to individual( field wise transormation) transformation , you can write your code in start routine tab of the transformations.
    Code written in Start routine in a transformation can manipulate the data data package wise..
    say for eg if u need to fill the values in indivual routine  then u can save all  the values in an internal table ( say for eg ur itab) in the start routine and this data is available for u in the transformation routines.. so anything written in start rotuine shall work as global modification for the transformation routines.
    Similarly code written in end rotuine shall work for chunk of data which is modified individually in transformation routine.
    you ca go thr this link for more clarification
    http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3417700)ID2067718350DB10090875593766856688End?rid=/library/uuid/609eea32-455e-2c10-c08a-c23adf8c934e&overridelayout=true
    http://help.sap.com/saphelp_nw04/helpdata/en/4f/a9ea964a86b04dbe4df20af6e598cf/frameset.htm
    Regards,
    kk

  • Need to pass condition values in header of billing...by using bapi

    Dear Gurus,
    I am creating invoice for delivery by using bapi
    BAPI_BILLINGDOC_CREATEMULTIPLE.. ....in this i need to update some condition values in header level..when i am passing those condition values in CONDITIONDATAIN its updating for each individual line item of any invoice and sum of line items of condition values in header...but i need to update only in header and dont wnat to update in item level..
    please help me in this..am very much thankful to you if you can help me
    Thanks in advance
    Regards,
    Rajesh

    Ok, after continuing to search the internet I finally found the extra piece that I was missing that gave me the results I needed. The new expression looks like this:
    =runningvalue(Sum(Max(IIF(LEFT(Fields!JobNum.Value,1)="S" AND Fields!Week1STol.Value<>0, CDBL(Fields!Week1STol.Value), 0),"JobItem"),"JobItem"),SUM, "JobItem")
    In this I wrapped the original expression of Max in both a Sum and a runningvalue both at the JobItem level to get this rollup value. Now when I open the grouping I get the correct running value at each level.
    What this really gives to me is a running total at each of four groupings, even with a "max" value at the detail level. This also allows me to total a max value inline on the report, without needing a hidden row, or report footer.
    Thank you to everyone who looked at this, I hope it helps someone else. If this answer is not clear enough, please don't hesitate to add to the comments and I will try to clarify.
    Thank you, Chad

Maybe you are looking for