New routine

hi,
I need to write a new routine, Basic price + VAT *10% / 365 * no. of days in payment terms.
Here value of no. of days is not picking up, field name is ZTERM.
Any suggestions.
vandana

Hi,
The no of days will not be picked up during the pricing, you will only get the payment term. You can get the no of days from the table T052 for the payment terms.
Regards,
Murali

Similar Messages

  • New Routines

    Guys
    i would need help and guidance as to where and how should i proceed to create new routines for a addl requirement in Import pricing procedure as the standard alternate calculation type availability does not fulfill the requirements.
    Thanks
    Samuel

    Hi
    Click on Table-> mainatin
    In the routine screen, go down to the list to the last routine in the table & here enter the new routine number & the application to be used in it will ask the access key used for creating anew routine.
    please take help of ABAPers to create new routines
    Thanks & regards
    Kishore

  • Addition of new routine in O5F5?

    Hi all,
    I am trying to add a new routine for Formula and average price exit in SD area.
    The standard number range is from 1 to 599. I tried to create a include ROICM901 with routine number 901.
    But to which function group/package i need to assign this, bcoz it says main program not found.
    Thanks,
    Subba

    1.Create a Routine in 05F5 within the customer name space.
    2.Register that object with SAP to get the registration key.(you need to have OSS ID to get the object registered with SAP.Refer google to know how a object should be registered with SAP)
    3.Even though the Routine is a customised one,it will reside within the SAP Development Class.
    4.Once you get the Registration key,code the logic in the respective routine.
    5.Activate it and test.
    6.While transporting tag the RV80HGEN in the TR as XPRA so that the routine gets activated automatically once the TR is imported in the target client.
    7.For more info you can refer the SAP Notes 327220 and 114978
    Thanks,
    K.Kiran.

  • Creating VOFM New routine

    Hi Experts,
    I need to create new copy conrol routine in Data tranfer for copying over the Contract Start date and End Date since currently there is no copy routine assigned for Table VEDA.
    How to get this table in routine, becasue there is no existing routine on this table.
    thanks,
    chandra.

    Try using ASSIGN, e.g.:
    lv_name = '(SAPMV45A)VEDA'.
    field-symbols: <veda>.
    assign (lv_name) to <veda>.

  • New Data Transport Routine

    Hi,
    I am in the process of writing a new Data Transport Routine (RV60C702) for creating Billing documents (Maintain Copying Control for Billing Documents). I was informed that the new Routine's name (RV60C702) should be added in the Include 'RV60CNNN' and I was also informed that while transporting the new Routine (RV60C702) to the Production systems, I should add the Program 'RV80HGEN' also in a new transport which should be run in the Production system to include the new routine in the include 'RV60CNNN'.
    Could anyone please let me know how should I add the program 'RV80HGEN' in a new transport to make it run in the Production system.
    Could you please provide me some details on it.
    Thanks
    Priya

    Hi Naren,
    Thanks for the quick help!
    One more basic question. Can I add this Program in the same transport & in the same task which has the new routine or should this program be added to a new transport?
    Thanks..
    Priya

  • New SD copy routines

    Hello,
    I have created 2 new routines, 900 and 901, in VOFM but when I go to transaction VTAA to assign them they do not show up as available in the drop down.  They are active in VOFM.  Is there a step I am missing?
    Thank you,
    JR

    did you activate main program ?
    Check this PDF..for creating a new VOFM copying requirement.
    http://saptechsolutions.com/pdf/VOFMCopyRequirementRoutines.pdf
    Regards,
    Maha

  • Add a new field in report S_ALR_87012178 and use it for sorting

    Hi all,
    We're requested to add a new field KNVV-VKGRP in this report S_ALR_87012178 (program RFDOPR10). As this is a standard program, I'm thinking of copying it into a Z one due to the problems when editing the report.
    Does anyone know the best way to do it? I'll appreciate it so much!!
    Thanks a lot in advance!
    Regards,

    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
    Regards

  • Enable and Disable Pricing Condition Type thru Routine in Tcode: VOFM

    Hi
    I have a scenario while creating a new sales order using Tcode: VA01. The conditions at line item are as follows:
    Condition Type----Amount----Condition Value
    ZBR5--4.000%----0.66
    ZBS1--8.000%----1.31
    Now the above case, my requirement is Condition Type ZBS1 should be displayed or calculated only when first condition type i.e. ZBR5 has amount more than 8.000%.
    In case it is less than 8.000%, the Condition Type ZBS1 should be ZERO or (would be better if not displayed).
    What i have tried till now is, created a new Routine in VOFM but after creating a new routine, i am unable to check the Amount fo Condition Type ZBR5 at runtime, as the Internal Table : XKOMV holds the details of Header data only, whereas my requirement is of Conditions at Line Item.
    Inputs on this will be helpful.
    Regards
    Masoom
    Edited by: Masoom_Infosys on Oct 3, 2011 2:24 PM

    Hi Naimesh
    Apology, i missed this point. I have alredy tried what you have suggested. I made a Condition Value and change value of XKWERT. The output of this change was:
    Condition Type----Amount----Condition Value
    ZBR5--4.000%----0.66
    ZBS1--8.000%----0.00
    If you observe above, the Condition Value is ZERO but the Amount remains as it is , that is 8.000%. In the code, i have tried to change the value of XKOMV-KBETR to 0.00, but still the output remains as:
    Condition Type----Amount----Condition Value
    ZBR5--4.000%----0.66
    ZBS1--8.000%----0.00
    Could you suggest some other way so that the output becomes:
    Condition Type----Amount----Condition Value
    ZBR5--4.000%----0.66
    ZBS1--0.000%----0.00
    Regards
    Masoom

  • Creation of MM Routine for Calculation of VAT

    Hello People,
    I am new to ABAP and currently stuckup in a situation involving the following scenario
    TAXINN Procedure.
    I have got two scenarios for VAT.
    1)some vendors charge VAT on Base price+ Excise duty & then add freight.
    which I have mapped.
    2)In second scenario some vendors charge VAT on (Base price+ Excise duty + Freight). which I am unable to map.
    how can i do it in TAXINN (condition based procedure)...
    do i need to maintain a new calculation routine.
    where to define/assign that routine.
    the standard routines are assigned as an include program FV64A+0*
    in a standard program.
    please help
    Thanks and Regards
    Nitin

    Hi,
    Take the Access Key to create a New routine and copy the similar routine which already exists, and modify it to suit your requirements.
    Take the help of the function consultant in this regard to calculate this price related stuff.
    regards,
    Anji

  • Creation of Routine for SD for Pricing procedure.

    Hi all,
    I am having a requirement from SD for creating a routine and to fix that in Pricing procedure as a requirement. So that when ever the sales order will be created by an user, and whenever the user selects that particular condition it should execute in the manner in which the routine is written.
    Can you all please help me to write routines and how to asign this routine to the condition?
    regards
    Vinod

    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
    Regards

  • How to call routine and pass data to routine in vofm

    Hi Experts,
    I need to update KBETR and KWERT values present in 'Conditions Tab' in Purchase Order (ME21N/ME22N).
    I have created a new customer tab in which we enter amount field and  percentage filed. When user enters some value in this and clicks on 'Conditions Tab', calculation has to be done and the calculated value has to be appeared across a specific condition type.as i am new to abap  i dont know how to create routine and pass data to routine in vofm from customised tab in me21n .
                                                                                                                                                                          Thank's in advance

    Hello Rajendra,
    You can get plenty of forums in SCN related to it. Follow below steps to create VOFM routine.
    Go to VOFM Transaction Code
    1. On the Menu Select required Application i.e Pricing
    2. Enter any Number in between 600 to 999 for Custom Developments.
    3. On entering Pop Screen appears ask for Access Key(We have to remember that Every New Routine needs an Access Key)
    4. Once the Access Key is received we can do modification.
    5. Enter the Routine Number ,description and insert the Access Key
    6. Now the ABAP Editor will open and required code can be copied from Standard SAP Routine and Custom Code Can be developed.
    7. Once the coding is completed we have to Activate the Routine
    8. Select the Routine and Go to Edit – Activate
    9. Ensure that Active check box is ticked upon Activation of the Routine.
    10. Double click on the routine will enter into ABAP Editor, we have to generate the Routine
    11. Go to Program and select Generate
    12.A screen pops up with the related Main Programs  and select all required main programs wherever the Routine is being called.
    13. Once the Routine is Generated and Activated, We need to configure the Routine in the config.
    ** Important SAP note: 156230.
    Check the below document too.
    http://www.scribd.com/doc/35056841/How-to-create-Requirement-Routines
    Regards,
    Thanga

  • Output Control Routine for Order Confirmation

    Hi,
    I have a problem in sending out order confirmation when the customer have a credit block, no order confirmation is being sent.
    Checked on transaction NACE, the routine for Order Confirmation (Routine 2), returns a sy-subrc =4
    when  the credit block is set. What is the best way to correct this?
    Thanks,
    Catherine

    Create the new routine in VOFM->Requirement->Output Control. Make the required changes in routine source text and assign it to output procedure (NACE).
    Thank You,
    Ganesh

  • Add a new field in va02,va03 and vf02 & data tran. in these fields VOFM

    Hi All,
    I have a requirement, I need to add a new field in the sales order header part and even a field in the billing document, once I add this field up in both the documents in the header part i need to create a copy routine using the VOFM transaction,
    Can any body help me on what's the procedure to add a field in billing document as i dont find any screen exit for doing it and does the copy routine transfer the data ( Custom Field ) from Sales Order to the Billing Document, if yes can somebody help me with the procedure on how to and code of it.
    Regards.

    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
    Regards

  • How to restrict issue the form through VOFM routine

    Hi Experts,
    I have  developed form using adobe form, I need to issue the output only one time, once the output issued again the output should not issue.
    I need to control this logic through VOFM routine...how to restrict ?
    Thanks in advance.

    Srinath,
    Use the below option.
    VOFM->REQUIREMENTS->O?P Control.
    Create a new routine.
    In the routine, check the table NAST using application, object key and message type. If you find an entry, set the sy-subrc value to 4 else set the subrc value to 0.
    Let me know if this helps.
    Thanks,
    Vikram.M

  • How do we add new fields in copy control

    hi
    in standard sap we dont have the fields when we are doing copy cntrol from sales to billing some fields are not there so i want to add some fields in that copy control how do i do that

    Hi Nag,
    Go to [VOFM] use Data Transfer option and create a new routine. Make sure the new routine has the existing logic and fields included along with the new fields that are to be copied. Activate the routine and assign it to the Sales to Billing Document Copy Control.
    Regards
    Nadarajah Pratheb

Maybe you are looking for