Condition Base Routine not transported properly

Hi Gurus,
I have created a Condition base Routine (For e.g 602) in T.code: <b>VOFM</b>
and written logic for Round off which is as follows.
<b>
FORM FRM_KONDI_WERT_602.
*{   INSERT         DEVK905117                                        1
CALL FUNCTION 'J_1I6_ROUND_TO_NEAREST_AMT'
  EXPORTING
    I_AMOUNT                 = xkomv-kwert
IMPORTING
   E_AMOUNT                  = xkomv-kwert.
  modify table xkomv transporting kwert.
  xkwert   = xkomv-kwert.
*}   INSERT
ENDFORM.</b>
While creating it, it prompted for an accesskey. I given it and requested created.
The problem is the INCLUDE program is not appearing inside another program
<b>SAPLV61A</b>
How to include that INCLUDE program.
Please help.
Regards,
Anbu

Hi,
Have you activated the routine through  program RV80HGEN.
In SE38 run this program to activate the routine.
Reward points if useful
Regards,
Amrish Purohit

Similar Messages

  • VOFM Condition base value not updating(Urgent)

    Hi All,
    I have created a Condition Base Value 901 for Sales Order in Transaction VOFM.
    Following is the code when I enter the Sorce text.
    FORM FRM_KOND_BASIS_901.
    *{   INSERT         DEVK901384                                        1
    DATA: XXKOMV TYPE KOMV,
          XAKOMV TYPE KOMV,
          VKAWRT LIKE KOMV-KAWRT.
    IF KOMP-VKAUS = 'YAB'.
    XXKOMV = XKOMV.
    CLEAR VKAWRT.
    LOOP AT XKOMV INTO XAKOMV WHERE KSCHL = 'YIPR'.
    IF XAKOMV-KAWRT > 0.
    VKAWRT = XAKOMV-KWERT.
    ENDIF.
    ENDLOOP.
    XKAWRT = VKAWRT.
    CLEAR XKOMV.
    XKOMV = XXKOMV.
    ENDIF.
    *}   INSERT
    ENDFORM.
    But this code is not updating the Condition screen for items condition value.
    Regards
    Vijai

    no, the code contains the logic to determine the base value, then the value has to be passed to xkwert.
    take some other base formula as template.
    pls. rewad if helpful
    Roberto

  • Condition Base Value not maching between R/3 screen and Database

    Hi All,
    We have been using the Condition Base Value KAWRT field in the datasource 2LIS_13_VDKOM (Billing Document Condition).
    While reconciling the data in the underlying R/3 table KONV and the R/3 screen (VF03 transaction) and DS extracted data, we are seeing that sometimes the data in KONV is different by factors 10, 100 or 1000 etc from the value in the R/3 screen. We could not find any definite logic as to what should be the factor based on which situation.
    We understand SAP does this shifting of decimals to increase the precision. But we need to determine the logic of using "which factor at what situation".
    Has anyone faced this situation before, if yes...was a solution found?

    We are infact looking at the decimals against currencies (TCURX), but sometimes the KMEIN field is blank against the transaction, usually the case when KRECH (Calculation type for condition) is B - Fixed Amount. Then we are failing to understand the logic used to determine the factor.
    Any idea on that?

  • Update Rule Routine not deleted properly

    Hi all
    I have deleted a routine from an update rule, removed the key figure from the infoprovider and reactivated both the ODS and the update rule.
    The update rule therefore no longer contains the datafield.
    Unfortunately the the code for the routine still exists in the system (RSAABAP and other tables) and references in this routine to other fields are preventing me carrying out other actions, so I need to properly remove the routine from the system.
    I cannot go back to the old generated code for the update rules as there is no version management.  I have tried putting the field back on the ODS and recreating the routine, but the system generates a new key for the routine so it looks as though I have lost the link completely.
    Any suggestions?  Is there a way of deleting an object type R3TR ROUT consistently without doing it through the Update rules change screen?
    Regards
    Hayley

    Hi,
    Let me give the solution, we are also having the same issues..
    thanks in advance
    sree

  • ABAP Query not transporting properly

    Hi,
      I m trying to transport an ABAP Query and infoset together in a single change request. The infoset of query has generated fine except for some warnings about currency. And the query is also running fine on development. But when I transport the infoset and query together to the quality client the transport log shows the transport as successful, but doesnt show the.
    Activate inactive runtime objects at all.
    Also the query and infoset have not been transported, I checked in SQ02.
    Please see the transport log below. I dont know what I m doing wrong. I cant move the infoset and query separately to production, I have to move them together. Any suggestions, will give points for the right answer. Thanks for reading
    QTD        Master Data QA                                                                               
    600 Selection for Import                     11/30/2006 17:08:14    (0) Successfully Completed
               Check Versions                           11/30/2006 17:13:03    (0) Successfully Completed
           600 Selection for Import                     11/30/2006 17:13:50    (4) Ended with Warning   
           600 Import                                   11/30/2006 17:14:30    (0) Successfully Completed
    5  Import steps not specific to transport request                                                                               
    Feedback after export or import          11/30/2006 17:13:15    (0) Successfully Completed

    Hi
    After transport the request from original system to destination system, you have to do the import.
    So run trx SQ02, Enviroment->Transports
    Here you should be in the same screen where you have created the request.
    Now choose <b>IMPORT</b> options,<b> Overwriting allowed</b> chekbox ans insert the request number in <b>Dataset with imports</b>.
    Max

  • VOFM: Condition Base Value(Urgent)

    Hi All,
    I created  Condition Base Value and transported it with a breakpoint. In the revision I removed the breakpoint but there was syntax error so object was not imported and the error shown for transport was 8. In another try an error occured again. In last import, everything went fine but the condition base value include program is not updated. it is remianing in the last state.
    Do I need to do something extra or there is problem in the steps I am following.
    Regards
    Vijai

    Hi,
    Now make sure that break points are removed and activate the routine by running RV80HGEN program in SE38.After this transport the fresh request.
    Reward points if useful
    Regards,
    Amrish Purohit

  • Creation of a new Formula Routine for condition base value calculation

    hello people,
    i am stuck up in a situation where SAP has itself said that nothing can be done.
    but i know you all can guide me to some way or the other
    see, the scenario is like this
    1. i have to calculate the base value for a pricing condition.
    which will follow the formula
    net value + excise duty + freight
    2. in standard routines two things are normally bieng used
    xkwert for the value that has to be finally calculated(taking reference of routine 004)
    komp-netwr for the net value
    3. i have to calculate the excise duty by adding up all the base values of existing pricing conditions like JMOP, JEC1 etc that i have which i saw in internal table
    XKOMV on debugging
    4. now freight is to be calculated from all the values of condition types that are in KOMP which is a structure and no internal table is defined in standard main program
    now ppl
    can you guide me by looking at the standard program
    what is this xkwert field and where it is assigning the value.
    how to get field from other structure and table.
    please guide as to how to approach the problem.
    thanks and regards
    Nitin

    HI,
    the scenario u r talking abt is condition based value formuls of VOFM transaction.
    here the data is retrieved as 'X' structures and will hold normal tables with respective names. and in this case all the pricing data is in KOMV ie XKOMV
    Final amount including tax
    form frm_kond_basis_004.
      xkwert = komp-netwr + komp-mwsbp.
    endform.
    always calulation is done in xkwert field and final value is stoerd in xkomv.
    *.................. text ............................................. *
    Condition base value formula to get the assessable value of the     *
    saleable material from j_1iassval. If the value is not maintained   *
    then the selling price will be taken as the base                    *
    TABLES: J_1IASSVAL.
    DATA XXKOMV LIKE KOMV .
    XXKOMV = XKOMV.
    SELECT SINGLE * FROM J_1IASSVAL WHERE J_1IWERKS = KOMP-WERKS AND
                                         J_1IMATNR = KOMP-MATNR.
    IF SY-SUBRC EQ 0.
        IF J_1IASSVAL-J_1IVALNDP NE 0.
        XKWERT = J_1IASSVAL-J_1IVALNDP * KOMP-MGLME / 1000.
        ENDIF.
        IF J_1IASSVAL-J_1IVALASS NE 0.
        XKWERT = J_1IASSVAL-J_1IVALASS * KOMP-MGLME / 1000.
        ENDIF.
    ELSE.
       XKWERT = XXKOMV-KAWRT .
    ENDIF .
    XKOMV = XXKOMV .
    ENDFORM.
    and as far as ur  req select allthe condition type data and sum and take the average value and pass it.

  • Condition Base Value Routine

    Hello all,
    I am currently facing an issue where we have created a Custom Condition Base value routine for a Tax Condition type.
    In our scenario, we have Sales Tax condition type ZZTX which has the following parameters:
    Cond. class       D Taxes
    Calculat.type     A Percentage
    Cond.category  D Tax
    Rounding rule       Commercial
    Also since its a tax condition type, it is set to D - cannot be modified manually.
    Also in the pricing procedure, the condition type is pointing row 301 to pickup the condition value basis. This is for the normal scenarios. However when a particular condition is satisfied (which is coded in routine 902 for ZZTX) the code in 902 is supposed to change the condition base value for ZZTX.
    800     0     ZZTX     Tax for Sales     301                       10          902     MWS
    This functionality is not working at this point. When I debug, I can see the code appending the calculated value to the condition base value for ZZTX.
    However on the screen, I still see the condition base value being picked up from row 301.
    I need some input from you guys so as to find it the condition type zztx should have some parameters set to allow the change or is there a problem in the 902 routine ?
    Kindly advise
    Thanks
    Vin

    Hi Vin,
      Please check with your ABAP expert if he has done below to fetch calculated value to hold it correctly,
       l_val_190    TYPE kwert,   l_val_210    TYPE kbetr,
    I guess it is to do with Data type only in your 902 routine
    Hope this will solve your probelm,
    Regards,
    Siva

  • PR/ Sales order value not coming in condition value routine

    As per the requirement while creating a PO I need to add a new condition type and need to calculate condition price for this newly added condition based on some matrix.
    For this requirement PO will always be created with reference to PR and with account assignment category as 'E' .
    (Hence sales order number /item will be copied from PR to PO in account assignment tab  )
    Now I have created a new pricing requirement routine ( To add the condition type ) and new condition routine to calculate and update the price.
    These routines are working fine if i check them with hard coded price values.
    But the problem is that I need the PR number(which we put in item overview ) / Sales order item number (from account assignment ). these values are not coming in pricing tables in the routine...structure EKPO come blank, KOMP-AUBEL is also blank).
    Please give your suggestions how i can i get PR/ SO in the condition values routine .
    Please reply

    resolved my self

  • Routine is not working properly?

    Expert's please tell me is there any problem with this routine?
    Because this routine is not working properly.It is not populating to all the fields the RESULT value.
    if
      COMM_STRUCTURE-/BIC/ZVEN_NAME = 'VENDOR1' or
    COMM_STRUCTURE-/BIC/ZVEN_NAME = 'VENDOR2'.
    result value of the routine
    RESULT = 'YEPSILON'.
    ELSE.
    RESULT = COMM_STRUCTURE-/BIC/ZVEN_NAME.
      ENDIF.
    Thanks in advance.
    vasu.

    Vasu,
    Here is the sample code which i have tried out in my system: its working properly, please find the same.
    $$ begin of routine - insert your code only below this line        -
    fill the internal table "MONITOR", to make monitor entries
    IF
    COMM_STRUCTURE-/BIC/YSLSTDP3 = '08.2007' or
    COMM_STRUCTURE-/BIC/YSLSTDP3 = '09.2007'.
    result value of the routine
      RESULT = 200000.
      ELSE.
      RESULT = COMM_STRUCTURE-/BIC/YSLSTDP3.
      ENDIF.
    if the returncode is not equal zero, the result will not be updated
      RETURNCODE = 0.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    *****Assign Points*****
    Thanks,
    Gattu

  • Condition value in billing not coming properly.

    Hi All,
    We have an issue wherein the condition value in billing document is not coming properly.
    When qty is multiplied by the price the value should come as 208.04 ( 54.51 * 4 qty ), but the condition value is coming as 16.77.
    We checked but could not find any proper reason for this.
    When checked in details of condition type, we can see the Condition Origin as manually entered, but we are ot ale to trace the changes and also who entered the condition manually.
    Kindly advise on the issue as it

    Hi Mr. Satish,
    I agree with Mr. Rajesh and for your 2nd question.
    We can easily track down who entered the condition type in order
    there are two possiblities
    Either user who created the order, enter that condition type, that will not recorded in the changes so you can see the user id at header level--> on sales data page "Created by"
    If some other user come in VA02 and enter the condition type then you can see it in
    Go to Menu "Enviroment" --> Click at changes --> your document number is there --> Execute and see who entered it
    Regards
    MT

  • Condition Type JSRT not picking Condition Base Value in Pricing Procedure

    Hi Friends,
    In a procedure System is not picking condition base value for condition type JSRT. I have checked the tax procedure and found alternative Cal Type is 17 and is working fine for Domestic vendors.
    Friends i need your help in sorting out this issue. Pls suggest what I can check in order to sort out this issue.
    Rgds, Krishan Raheja

    Hello!
    In TAXINN the base value for the condition JSRT is picked up from step 100.
    I suggest that you change the "From" value to 100 instead of whatever you may be using
    Then test the transaction once again.This will not affect your normal service tax calculation either. So please make this change & try using S1 for planned delivery cost.
    Hope this helps !
    Cheers!
    Plauto
    Edited by: Plauto Abreu on Feb 11, 2011 9:03 PM

  • Alternative formula for condition base value -correct  routine

    Hi ,
    We need  correct standard routine number in "Alt. formula  for condition base value " in transaction V/08 pricing control .
    Requirement As follow :
    We have one header freight condition which is header condition and group condition in V/06 condition type setting . Lets Say " ZFRIG " the value in this condition should equally approtionate to all the items in SO .
    Ex: ZFRIG = $100 in SO header
    item 10 = ZFRIG should be  $20
    item 20 = ZFRIG should be  $20
    item 30 = ZFRIG should be  $20
    item 40 = ZFRIG should be  $20
    item 50 = ZFRIG should be  $20
    Suitable standard  routine solution  will be appreciated.
    Thanks in Advance
    Sunil

    Hi ,
    Without any Routine it adds $100 to all the line iteam , so total fright discount becomes $500.
    Thanks and regards.
    Sunil

  • Exclusion Condition not working properly

    Hi Friends,
    I have created 2 condition for price and have done the relevant configuration for exclusion. However when i delete one of the condition system does not consider the other. The scenario is as below:
    Condition1 - A Base Price maintained in VK11
    Condition2 - B Special Price maintained in VK11
    Exclusion parameter is D between A and B.
    Now i have deleted the condition record for B special price, but system is still excluding condition A of base price in sales order.
    What settings should i maintain so that in case in future i delete the special price condition the base price condition should get accepted.
    Please help.
    Regards,
    Wasim.

    Hi
    I think while configuring " Condition Exclusion Group " you might have selected the below option :
    " If a condition type in the first group exists in the document, all condition types in the second group are set to inactive. "
    So if you delete the Condition record (B) from the first group of Cond types, remaining condition types becomes inactive.
    Hence you can make single Condition exclusion group and try selecting the below option:
    " Selection of the most favorable condition record of a condition type, from more than one condition type within a condition exclusion group "
    Hope it may help to you.
    Regards,
    Sasi

  • Condition in Approval Procedure Rule in ChaRM not working properly

    Hi experts,
    We are on 7.1 SP8.
    We have Z-partners defined and included those in the Approval Procedure too. In order to fill the approval procedure steps with the default partner, we defined a rule policy.
    For example step ZMCR000001 needs to be filled with BPE by default.
    This works fine.
    But when we want to overwrite the default value with another value, the default is always put back over the manual entered value.
    Also manually added process steps get that same value.
    It looks as if the last step of the condition is not working properly (i.e. the check to see if the approver is already filled).
    Can somebody tell me how we can get manually entered values in there?

    Hi ,
    You can play with User status, add to condition in which user status you dont wont this to be triggered.
    Example add "And User status equal ZMCR Created":
    On staus created you get automatic approval determination with default partner ID's
    Now on Validation the rule will not be triggered and your manually added values saved as is.
    Rg Dan.

Maybe you are looking for

  • Largedataset in spry causes IE to throw alert

    HI,      I am using spry to load a large datset which consists around 1000 records. I am using the code snippet mentioned below to load the records from xmlstring which i get from server side. var  xmlDOMDocument = ""; var  agencyAccounts = new Spry.

  • Dodging the wipe order.

    How can I download pics from my iTouch to a PC, Sd-card, anything w/o connecting to the internet? (If I connect to the internet, then my erroneously issued 'wipe' command will take effect; the pics were not backed up onto my iTunes acct apparently).

  • I no longer can click on a link in an email and open a location

    I must now copy the link and paste it in the address bar

  • Iphone 4 reset question

    Every now and then I like to start over and factory reset a device and start over. I a noticing lots of people saying that IOS7 is really bad. Now I am having no issues but on the odd occasion there is some lag, overall though I am very happy. My que

  • Planning Application Failed to Start Error (1052001)

    Dear All, While refreshing database from planning received the following error. I tried starting the database from EAS but the same error is in reply, though i am able to log in planning application the error is pasted message is below Error: 1054001