Modifying Existing Condition Routine

Hi All,
In Customer Return when we create Credit Memo Request wrt invoice the tax amount (CST/ VAT) is copied.The requirement is that if we create a Credit Memo Request  wrt Invoice which is 6 months old from the current date then Tax condition types should not be copied. For this we can create Routine and assign this in the PP in  Requirement field.
But as we maintained requirement 10(plant is set) for tax condition types, so where to assign this new routine.
Can we add the logic in the existing routine 10 ?
Regards
Debasish

Hi,
There is no way we can assign two routines in a requirement. Rather you can have the logic in the existing rouitne.
Thanks,
Raja

Similar Messages

  • Modify existing rebate condition and exclusion

    Hi
    We are rebate agreements for customers. Currently I want to modify rebate condition in one of rebate agreement.
    Scenario: let us June 10th 2010 onwards, the rebate % is 3% for Profit center 'xxxx' & customer 'yyyy' instead of 1%. And 3% needs to accrued on billing docs going forward. How to set up this.
    I tried to modify existing rebate condition using VBo2 as follows: went into rebate agreement using VBo2, changed rebate % for condition record with effective from 06/11/2010 and Saved.  problem when I ran VBOF program, system posted reversal accrual for old rebate condition 1%. Old condition record validity from 01/01/2009 Valid to 12/31/2011.
    I have one more question. We want to set up rebate condition for all materials exclude some of them. we have thousands of materials for which we need to calculate rebates. but we want to exclude some materials in the rebate agreement. How to set up such exclus
    any ideas really appreciated
    thnx

    The key of your condition table (the one supporting your condition record in the agreement) is evidently Profit Center / Customer.  So for any combination of profit center and customer, you can maintain a rate and validity period. 
    You are attempting to maintain two separate records having the same key.  As you have experienced, the system does not allow it.
    The simple solution is to expire that rebate agreement and start a new one with the updated validity period and conditions.
    As for excluding certain materials, you need a more detailed key in your condition table.  Something else from the material master seems appropriateu2014Commission Group for example.  Maintain commissionable materials in group 01 and non-commissionable ones in group 02.  Then a key combination of Commission Group / Profit Center / Customer  would work well for you.
    Regards,
    Ken

  • Pricing conditions ---- routine

    Hi folks,
                 i got requirement like  there is a material Base price tht is maintained at Pricing conditions according to the sales order ,
    Then at the time of material Dispatch the price may vary. So i have to develop a
    ZTABLE and maintain base price factors and if user enters a varied price ..
    the difference between the variedand base price should be calculated ... like wiseit has to be displayed in the output.
    Can u help me in this task. I have no idea of routines.  How to attach a routine.. to standard one..
    regards,
    reddy

    Hi,
           The procedure to create the new VOFM.
    1. Go to VOFM transaction
    2. Page down until you find a new spot on the page to put in the VOFM number and description.
    3. Put in the VOFM number and the description of the VOFM.
    4. Now the VERY IMPORTANT part of the process. Double click on the VOFM description not the VOFM number to create this as a Development/Correction and not as a repair. If you double click on the number then this copies some existing code and prompts you for a repair.
    5. Activate and generate the VOFM routine. Note: Configuration must be setup by the OM team for this step.
    for example Go to the routine number that needs to be copied.
    Put your cursor on the routine number field that needs to be copied.
    Overwrite that number with your new routine number and hit enter.
    The new routine will be created as a copy of the old routine and you can modify the new routine as you need it.
    Ex.
    You have to copy routine 104 to 904
    Routine number Description Active
    104 Bill.bus.item data X
    Put your cursor on 104 and then change it to 904 and hit enter.
    904 will be created as a copy of 104 and you can make your changes in 904.
    Don't forget to activate it after you are done.
    refer the below link
    https://forums.sdn.sap.com/click.jspa?searchID=3604222&messageID=994791
    <b>Reward points</b>
    Regards

  • BAPI_PO_CHANGE not updating existing condition type value.

    Hi,
    I am using 'BAPI_PO_CHANGE' to update the existing condition records.
              MOVE-CORRESPONDING wa_pocond_40 TO gt_pocond_40.
              gt_pocond_40-change_id = 'U'.
              gt_pocond_40-cond_value = '20'.
              gt_pocondx_40-itm_number = <fs_pocond_41_new>-itm_number.
              gt_pocondx_40-cond_st_no  = <fs_pocond_41_new>-cond_st_no.
              gt_pocondx_40-itm_numberx = 'X'.
              gt_pocondx_40-cond_st_nox = 'X'.
              gt_pocondx_40-cond_type = 'X'.
              gt_pocondx_40-cond_value = 'X'.
              gt_pocondx_40-currency = 'X'.
              gt_pocondx_40-change_id = 'X'.
              MODIFY gt_pocond_40 INDEX sy-tabix.
              APPEND gt_pocondx_40.
    I am using 'BAPI_TRANSACTION_COMMIT' also.
    Still, the condition value is not changing.
    what and where do u think is the problem?
    Kindly assist.
    Thanks.

    check the following link
    http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm

  • Problem in modifying existing records in dbtab

    Hi Experts,
    I am doing a report where I have created two dbtab's , one for data getting saved and
    other for fetching data and modifying exsiting records..
    For eg - let ZABC be the table where I need to insert or update records and ZXYZ is the table where
    I need to fetch and modify existing records.
    Now my probelm is :
    In case of inserting new records (multiple records ) into my dbtab ( ZABC ) its working ,
    but modifying existing records in another dbtab (ZXYZ ) its not wroking !! plz advice !!
    If my select querry for modifying exsiting records is:
    SELECT *  FROM ZXYZ  INTO TABLE ITAB WHERE MATNR EQ S_MATNR.
    *****then its inserting a newline along with the existing records.
    but when my querry is,
    SELECT single *  FROM ZXYZ  WHERE MATNR EQ S_MATNR.
    then its modifying the existing records, but only the first record.
    Loop at itab.
    if sy-tabix  = 1.
    zabc-matnr = matnr.
    zabc-idnrk  = idnrk.
    zabc-budat = s_budat.
    zabc-menge = menge1.
    ZXYZ-menge = ZABC-Menge + MENGE1.
    ZXYZ-BALC  = ZXYZ-Menge   -   MENGE1.
    ELSEIF sy-tabix  = 2.
    zabc-matnr = matnr.
    zabc-idnrk  = idnrk.
    zabc-budat = s_budat.
    zabc-menge = menge2.
    ZXYZ-menge = ZABC-Menge + MENGE2.
    ZXYZ-BALC  = ZXYZ-Menge  -  MENGE2.
    ELSEIF sy-tabix  = 3.
    zabc-matnr = matnr.
    zabc-idnrk  = idnrk.
    zabc-budat = s_budat.
    zabc-menge = menge3.
    ZXYZ-menge = ZABC-Menge + MENGE3.
    ZXYZ-BALC  = ZXYZ-Menge   -  MENGE3.
    ENDIF.
    INSERT ZABC.
    IF SY-SUBRC EQ 0.
    MODIFY ZXYZ.
            IF SY-SUBRC = 0.
              MESSAGE : I002 WITH 'RECORD CREATED'.
                ENDIF.
    ENDIF.
    Please advice
    Karthik
    Edited by: Karthik R on Aug 24, 2009 9:42 PM

    Hi,
    This is because in the second case you are not selecting records into an internal table.
    As a result only the first record which satisfies the where condition is fetched.
    Check if the program goes into the loop when you write second select query.
    KR Jaideep,

  • Add a new field to an existing Condition table

    How can I add a new field to an existing condition table?
    I have table 971 and I want to add INCOTERMS (INCO1) to this existing table but do not see how to add it.
    Thanks

    Hi Vicky,
        I dont think you can add new fields to the condition table once you have activated the condition table.
    SAP says you can only make limited changes to the condition table, like changing the description, fast entry screen, header and footer fields, but not able to add new fields to the table, and I think that is the correct approch or else for the same table you will have two sets of condition records.
    Please refer to the below link:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/de/7a8534c960a134e10000009b38f83b/frameset.htm
    What you can do is create a new condition table with additional field and assign this table before the currently used table in the access sequence.
    Hope this helps.
    Regards
    Raj

  • Get sales order in condition routine of VF01

    Hi
    I need to get the sales order number (or at least the delivery number) in a condition routine which is called in VF01.
    I can't find any structure/internal table/variable where it is passed.
    Does anybody have an idea where to find the information?
    Thanks & best regards,
    Basti

    Ok
    lets play with CALL STACK.
    go in debug mode in the routine
    (I suppose you use the old debugger, with the new one is the tab number 4)
    the call stack is the memory of the caller in your program.
    if you double click on a line down, you will see the code corresponding of the program that call your method/routine/form ... 
    and you could get the memory also
    In my example, I take a local variable corresponding to the first line (no 1). If I try to see the content in my last program (SAPLSD41) I can't, but if I put the call programme between ()  I can.
    do you understand the logic ?
    regards
    Fred

  • I cannot modify the condition value or delete the condition in po.

    Dear All,
    My client created a PO and completed the GR, IR steps. Then she realized that something wrong in the pricing. Then she reversed the IR and GR documents. She still cannot be able to modify a condition type in PO. The field to delete for condition type is inactive (greyed out)  in po

    Dear Dev,
                    i have alredy reversed GR, still cannot be able to modify a condition type in PO.

  • 'Order By' in Exists / Not Exists condition causing ORA-00907 in Apex4.1.1

    Hi Guys,
    We have just upgraded from apex 3.2.1 to 4.1.1. on Oracle DB V11.2.0.1, while testing the apps in apex, I come across this problem.
    When I have a page process that has a condition defined.
    When Condition Type is Exists (SQL query returns at least one row) or Not Exists (SQL query returns no rows) and the Expression 1 is a query with an 'Order By' clause, e.g.
    SELECT 123 FROM DUAL
    ORDER BY 1
    When the process is triggered, Apex 3.2.1 would evaluate the condition and run the process just fine, however Apex 4.1.1 would throw an error : ORA-00907: missing right parenthesis
    I totally understand that an Order by clause in an Exists or Not Exists condition is unnecessary and agree that they shouldn't be there in the first place.
    But unfortunately I am dealing with other developers codes and these conditions have been coded like these, probably from copy & paste codes.
    Saying that, I also believe that an Apex upgrade should not stop anything that is working in previous releases without warning or provide a workaround, right?
    I don't know if this affects other types of artifacts that can have a condition in apex when upgrading from 3.2.1, e.g Regions/Items/Computations/Validations etc.
    Does anyone else get this behaviour? and is there an easy solution to fix these?
    Ideally I don't want to go through all processes (and whatever other artifacts might be affected too) in all apps in all workspaces to check the condition type and remove the 'Order By' clause manually.
    Thanks for any advises
    Just did some more testing
    'Computation' , 'Validations', 'Processes' and 'Branches' have the same problem, 3.2.1 takes 'Order By' fine in Exists/Not Exists condition, but 4.1.1 throws error.
    'Regions', 'Buttons', 'Items' have consistent behaviour - both 3.2.1 and 4.1.1 throw error ORA-00907: missing right parenthesis, when page is rendered.
    Edited by: Danny on 25/04/2012 20:07

    Hi Danny,
    that's interesting. I just had a look what happens when you use an EXISTS or NOT EXISTS condition type. The following final SQL statement will be generated with your above example. You can also see that if you run your application in debug mode.
    select count(*) from sys.dual where exists (select 123 from dual order by 1)Executing that statement in SQL*Plus will also show the ORA-00907 error. It appears that the SQL parser doesn't allow an order by clause in an EXIST clause.
    I wonder why this should have worked in previous versions, but I can only suspect that in the past we may just have executed
    select 123 from dual order by 1which can be slightly slower because with the new EXISTS statement the SQL engine can stop processing earlier if it finds a record.
    We try to be backward compatible as much as possible, but I doubt that we will change that back to the way it was before because of the performance penalty 99.9% of our customers would face.
    Possible Workaround: You might be able to use the new "Application Search" to scan your application for "order by" and fix it for all hits where the attribute name is "Expression 1".
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Create condition record with reference to existing condition record

    how to create condition record with reference to existing condition record?

    Hi,
    See this link :
    http://help.sap.com/saphelp_47x200/helpdata/en/de/7a8534c960a134e10000009b38f83b/frameset.htm
    You can create with reference with Tcode : VK14 (or VK34)
    Or in VK12, you can copy condition records with copy rules.
    Regards,
    Lionel

  • Decode for EXISTS and  NOT EXISTS conditions

    Hello all,
    I need to use either EXISTS or NOT EXISTS before the subquery based on the situation. I have written a test query but its erroring out. Please check it.
    select 1 from dual
    where DECODE('A','A',EXISTS ,NOT EXISTS)
    (select ename from EMP
    where ename = 'SCOTT')
    Thank You
    KK

    DECODE will not replace part of the query. Functions don't work that way.
    (It won't work if you put EXISTS and NOT EXISTS in quotes, either.)
    What you want is something like
    WHERE (<condition> AND EXISTS...) OR (<not-condition> AND NOT EXISTS...)You can also do:
    SELECT 1
    FROM dual
    CROSS JOIN (SELECT COUNT(1) AS exists_fg FROM emp WHERE ename = 'SCOTT') ex
    WHERE (<condition> AND exists_flag > 0) OR (<not-condition> AND exists_flag = 0)This way, you don't have to include the entire WHERE EXISTS condition twice.
    -- Don

  • How to add a feild as key combination for existing condition table

    Hi all,
    please any body can inform me about how to add a feild as key combination for existing condition table ex 901 having the key combination of sales organisation and material
    for this cond. table,how  to add a new feild ex:price list
    iam unable to add it in change mode of v/03.(even after removing this 901 table from Acc.seq.)
    Edited by: rajendraprasad vasam on Apr 25, 2008 10:08 AM

    mr.Rajendra
         I you have the access key - you can copy the 901 table and create a new table along with your required field. v/03
    Or
    in the access sequence for the condition type - add 1 more step and add your field.
    ie 10 - 901
    and in 20 - your required field
    regards,
    Reshmi
    Edited by: reshmi bhaskar on Apr 25, 2008 10:21 AM

  • How to modify existing concurrent program

    I want to edit and modify existing pl/sql concurrent program.
    what are the steps required to do this?

    Hi,
    Pls keep in mind that modifying standard programs is not advisable. You will get SPAU (http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/61ec66e33611d1954b0000e82de14a/frameset.htm) when you upgrade your SAP system. Try to make an own version and include as much as possible from the standard program.
    Eddy

  • How to modify existing code of SQVI report?

    Hi Expert,
       There is a SQVI report which has already been created but we need to change the one for new requirement.
    is there any way to modify existing code for new requirement?
    Can we edit in abap workbench?
    Thanks & Regards
    Savita

    Savita,
    You can not modify SQVI system generated code. You need to go to SAVI change mode and make modifications. If your requirement is a sort of additional fields or inserting come code into the program , then SQVI is not the choice. You need to use Infoset Queries (SQ03, SQ02, Sq01).
    KJogeswaraRao

  • How to modify existing enhancement?

    I have requirement which require to modify existing enhancement.
    What are the steps involved to modify enhancement?
    thanks

    Hi,
    Check
    https://www.sdn.sap.com/irj/sdn/nw-development?rid=/webcontent/uuid/2342e1f3-0b01-0010-a186-fdd404884050#section19
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/3f6d016d0711d396a50004ac96334b/frameset.htm
    Edited by: Neenu Jose on Nov 18, 2008 7:48 AM

Maybe you are looking for

  • Unable to find the Overview View in the DC pcui_gp~xssutils of ESS

    Hi All, In ESS application one work set is there with name Overview.When we click on the Overview workset then the page contain 5 links.When i am clicking on Who's who link i am getting error message Page cannot be found.Where as if we will direct cl

  • Thread pool example

    Hi, I want to write a process that creates a pool of threads that all process records in the same oracle table. So, records are inserted by user action. The process will start threads that fetch a record from that table and transform the record to a

  • Just One More Thing (or maybe two) ;-)

    OK, so iTunes 10. I've restored the colour: http://obamapacman.com/2010/09/how-to-add-color-icons-apple-itunes-10-gray-sideb ar-mod/ I've removed the Ping dropdown: http://www.cultofmac.com/how-to-get-rid-of-the-ping-drop-down-menu-in-itunes/606 02 I

  • View Radiology Reports on iMac w/Leopard 10.5.2

    Help! I just converted from Windows XP, and I have to view radiology reports / images on my computer. They use Amicas Viewer for one set of reports and I'm not sure which other viewer for the other reports. The reports are from Radiologist Consultant

  • Firefox chrashes when trying to play youtube videos

    HII!!!! I saw on another post on how to solve this problem, "right click before the video, select display and uncheck the box" the problem i have is that i cant even get to play the video before it crashes again, does anyone know another way to fix t