Vofm routines

hi iam doing an vofm routine in which i have to create an routine under FORMULAS
-> CONDITION BASE VALUE!!
the objective of my enhancemnet is to reduce installl price by the value of the measure!! can u  plss explain this!!!wat does this mean.
n also wid the code!!!!

Hi
VOFM is the transaction where you can maintain Requirement routines, which are assigned through cusomization.
To create a routine you need access key & routine no. starts with "9".for ex. 901,902 etc.
one important thing to note that even if you have some syntax errors inside your routine, it will get activated without errors. So, you need to do Main Program check before activation.
Refer to SAP Note no : 327220,381348,156230.
So create a routine above 900 and copy the similar existing routine with code and do your changes as per your requirement.
<b>
Reward points for useful Answers</b>
Regards
Anji

Similar Messages

  • Field symbols not working in data transfer VOFM routine

    Hi,
    I have been trying to set a value using field symbols, however for some reasons its not working. I am using a field symbol in a data transfer routine and the value which I am trying to set is a standard field outside the VOFM routine code.
    I am trying to set a  field gla_subrc which is actually a changing parameter.
    The actual paramter is gn_subrc of type sy-subrc and within the form the name is gla_subrc. I need to set this changing parameter gla_subrc using the data transfer routine.
    Is there a specific rule that field symbols dont work for changing paramters within subroutine or is there a specific syntax.
    The syntax I am using is
    ASSIGN ('(SAPLV50S)gla_subrc')  to <fs>. 
    I also used the local program name instead of main program but still that does not work. Tried using the actual parameter as well.
    Can someone please help me in this.
    Thanks & Regards,
    Naresh.

    I need to stop outbound delivery creation against STO using vl10b transaction. The only way to stop creation is using data transfer delivery VOFM routine.
    If i give an error message MESSAGE E001, this will give a hard error which is not acceptable. To avoid this, i use a perform message statment with message id and certain parameters which can displayed in a log.
    However to make sure this message is displayed in log, I am clearing a work area having specific data needed for delivery creation.
    Because of this clear, my error message gets captured in log but along with this another fake message is displayed in log which caused by the clear message.
    The user gets confused as he now sees 2 messages, 1 which is correct and other 1 which is fake and that confuses him.
    Data transfer routine is not the best place to give messages in log but we have very few options. The only way the system can give 1 message is if i set gla_subrc to 1. This is a variable which will help the system understand that the delivery should not be created as there is something wrong because the value is 1. Hence it will stop the creation and instead display whatever message i had passed to the log.
    I need to somehow set this variable to 1 based on lot of analysis that has been done in the past.
    Please let me know if there is any way by which we can fix this.
    Thanks & Regards,
    Naresh.

  • 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

  • VOFM Routine Copy in ECC 6.0

    Hi,
    When I copy a VOFM routine in ECC 6.0 (say billing document routine 001 copied to 901) to a custom routine, I see some messages regarding the existing enahancement points & sections, which do not allow me to activate the copied routine. Can any one of you suggest a good practice to copy the routine in ECC 6.0 environment.
    Thanks
    BK

    Hi,
      When ever you are copying it from the standard routine. The enhancement points and sections available in the standard will also be copied into the custom. So, Place the cursor on Enhancement-pont or Enhancement-section and right click select the option enhancement-> undo. Once you do this the enhancements will be deleted from custom routine and then you can activate it.
    Thanks
    Indira.

  • Activating a VOFM Routine

    Hi Folks,
    I have made a VOFM routine in data tranfer->Sales activities.I have activated the program and also the entry in "Maintain:Data transport sales activities" But still i am getting an error "No frame work was found for the Include RV44A601".I have no idea which configuration is missing now please help.I have also tried using SAP program RV80HGEN first and then Standard SAP program SDINVOFM used to identify and repair missing table entries in the VOFM control tables TFRM and TFRMT but in vain..:(
    Attached are the screenshots.
    Error:
    Activated Program and Entry:
    Thanks in Advance.

    Abhishek,
    There is no need to activate the standard programs like SAPLV43A or RV**NNN program separately when you are creating a custom routine.Once you register the Custom Routine in SAP Service Market Place you will get the SCCR key so that you can proceed with the coding.Once the coding you can activate the routine using RV80HGEN.This will activate the routine.To cross check whether the routine has got activated or not you can check if there is an entry with your custom routine program name in the corresponding RV**NNN program.This is only for confirmation and there is no need to separately activate other standard programs or transport these program along with your custom routine.
    Running RV80HGEN will take care of activating the routine.The same activity needs to be done again once the TR is imported in the target client.
    If you want to run RV80HGEN automatically ( instead of performing it as a cut over activity once the TR is imported to target client ) you can tag RV80HGEN as XPRA along with your custom routine in the TR and get this imported to target client.XPRA will set RV80HGEN for execution once the TR is imported to the target client.
    You can refer to SAP Notes 86161 and 327220 for more info.
    K.Kiran.

  • VK11 condition check against MEK1 conditions: VOFM routins or UserExit/BADI

    We have Z condition types for prices(SD side)..and some Z condition types for Costs (MM side). My requirement is to check costs assosciated with the Material based on MM condition types when creating SD prices (condition records) and do vice versa and throw information/warning/error messages...
    In otherwords...when creating condition records from VK11 check against costs that are created in MEK1 and Vice Versa.
    I am trying to accomplish this in VOFM routines partially if not fully.
    Can this be achieved through VOFM routines.
    If VOFM is not the right place..what is the correct UE/BADI for this.
    Thanks.

    You already received an answer on this yesterday in a different post - why the new post?
    That aside, you don't understand the purpose of a requirement against an access in an access sequence.  The requirement prevents the access from being triggered (or allows it) at the time that the line item condition is analyzed for pricing (during the creation of an order/contract/etc.).  If the access is prevented, then the existing condition records for the access are never analyzed for a match.  It has nothing to do with condition record entry in VK11.  If you need to change the behavior of VK11, then use Runtime Analysis to check for BADI's or enhancement points in the transaction by analyzing the call stack.

  • Why SAP has provided the VOFM routines even though we do have User-Exits?

    Hi Experts,
    Pls. let me clarify about,
    1) What is the difference between VOFM routines and User-Exits?
    2) Why SAP has provided the VOFM routines, even though we are having User-Exits, BADIs?
    3) Is VOFM is meant for only SD module or we also use VOFM in other modules too, like MM, PP?
    thanq

    Do be careful about asking questions that sound like interview questions...
    > 1) What is the difference between VOFM routines and User-Exits?
    VOFM are type of user exit.
    >
    > 2) Why SAP has provided the VOFM routines, even though we are having User-Exits, BADIs?
    >
    Historical.  They were created before BADIs and CMOD user exits were invented.  The other "old" user exits in SD are the user exit forms.
    > 3) Is VOFM is meant for only SD module or we also use VOFM in other modules too, like MM, PP?
    >
    Only SD.
    > thanq
    You're welcome.

  • How to test VOFM routine for output cntrol-issue o/p when certain conds met

    Hai,
    I have created a vofm routine 903 for  the output type 'ZSH1'.This is for sales order output.
    The 903 routine changes the sy-subrc value to non zero if certain conditions met.
    My doubt is how to test this vofm routine? where can we check the status of the output processed?
    This output is to trigger a smartform.
    In my case the output smart form got displayed when I click on print preview even if the condtions met (or) dont met.
    Is this the correct way of testing?
    Regards,
    Bhaskar

    Hai All,
    Thanks for your replies.
    here my question is,
    how to test the VOFM (not manual )& where we can check the status of output issued or not issued?
    see the step 1.
    Step1: goto->va02->from the menu select 'issue output'->select the codition type in the displayed popup->click OK.
    after this where can I check the status of the output issued?
    or is the way I described in Step 1 is correct or not ?
    other way Step 2:
    goto VA02->enter order number->goto overview page->from Extras->output->header->edit
    in this page maintain the output type & click Save.
    after Save , is this the time to check whether the output issued or not? if yes where to check the status?
    or again is this the right way to test the VOFM.
    Regards,
    Bhaskar
    Edited by: Mbhaskar_comps on Dec 15, 2010 7:00 AM

  • VOFM routines activation

    Hi Sap Guru's,
    As per my client requirement, I have maintained new routine in VOFM by using below navigation:
    routine names are 902 & 903 & their includes are RV64A902 & RV64A903.
    Now, when we move the changes to quality server then the routines are showing in VOFM but in standard program RV64ANNN it’s not
    available. (so when we run sales order then the includes 902 & 903 is not triggering)
    So I ran the standard program RV80HGEN.  (to activate VOFM routines)
    Then the routine names are populated into standard program RV64ANNN. (when we run sales order then the includes 902 & 903 is triggering & its working as expected)
    But same changes we moved to production server, so if I will run the same standard program RV80HGEN in production environment then all other
    customized routines also activating including my 902 & 903 routines.
    So please suggest me, how can I will overcome the situation.
    I have to activate my routines 902 & 903 only in production server.
    Thanks in advance.
    BR,
    Shabareesh

    Hello,
      but still I don't understand your perplexity:
    In order to avoid all confusions, we have planned to do below steps:
    Capture our routines in new TR with standard program RV64ANNN (Development server)
    Then we will move the changes to QAS server & check the result
    If result would be fine, then we will move the TR to PRD.
    this should be the standard and "best-practice" approach for any kind of change.
    Request you to confirm on above point or  we will go ahead to run RV80HGEN program directly in PRD.
    When you transport a newly created routine, you always need to run program RV80HGEN to be sure that it's correctly and completely activated. But it won't do any harm. Unless you moved to Production environment a routine that you don't want to activate: but this is not the correct and advisable approach.
    Best regards,
    Andrea

  • VOFM routine - NO frame work

    Hi all,
        By posting an inbound idoc we are creatin a purchase order and post goods issue for the purchase order.
        When a purchase order is getting created an entry is getting updated in NAST table which trigger the idoc ORDERS05.
        This idoc triggering should happen only when the Post goods issue is successful.
        Now for this am creating a routine in vofm. 903. Inside the routine am looping at XNAST table and checking for condition
        and making the sy-subrc as 4. i activated the include and routine. i executed the program RV80HGEN.
        But when i try to create a break point there it says.."No framework program was found for include RV61B903"
    This routine is related with output Control...kindly help..
       What am I doing wrong here. 
       Regards
       Sridevi S
    Edited by: Sridevi Sivanandam on Jan 7, 2011 7:45 AM
    Edited by: Sridevi Sivanandam on Jan 7, 2011 7:47 AM

    You can try testing this by:
    - assign your output type and put there dispatch time = '1'
    - setup breakpoint
    - execute program RSNAST00 for your PO/output type
    This way you should be able to debug output triggering.
    Regards,
    Dominik Modrzejewski

  • Transporting - VOFM Routine to  Quality Server

    Dear Experts,
    I have created a routine in VOFM transaction named 911 (Formula-Condition Base Value)
    For the assignment of Tax Procedure  in 200 Client.
    For the testing and the assignment purpose we used SCC1 Transaction to transfer the assignment from 200 to 220.
    Now we need to transport it to 400 Client (Quality).
    I have transported the request from 200 to 400.
    Also i have check in the client 400, program is there.
    But it is not affecting the functionality whichever we get in 200 & 220 client.
    Also if i go to transaction VOFM-Formula-Condition Base Value that routine is not there in 400 client.
    Kindly help me the steps which Technical / Functional has to do.
    Regards,
    Ragunathan.R

    Hi,
    I have executed the report RV80HGEN in client 400.
    But not getting the routine in VOFM-Formula-Condiion Base Value.
    Also i have checked the note(22808) in that they gave that the tables TFRM & TFRMT contains the entries of the routine
    For Example : TFRM-GRPZE - PFRA
                           TRRM-GPRNO - 911 etc..
    AND TFRMT-SPRAS = E
            TFRMT-GRPZE = PFRA
            TFRMT-GRPNO = 911 etc.
    I have the above entried in 200 client in respective tables but in 400 client i dont have the entries.
    What do i need to do to get those entries theres?
    Also in 400 client RV63A911 include is not there after transporting that routine from 200 to 400.
    That is generated by system automatically.
    What to i need to do to get that include in the client 400 also?
    Kindly help me to resolve the issue.
    Regards,
    Ragunathan.R

  • Copy of VOFM Routines

    Hi All,
                  I Had Requirement to creata a new routine ( Copy of Standard Billing Routine - 003 ) .I need to copy the standard Routine -003 code and add some more code to it. When I see the standard code there are Enhancement Sections.Do i need to copy that also..? OR Can any one Guide how to create a Custom Routine..?
    Edited by: Prakash Naga on Nov 4, 2010 10:31 AM

    Hi Prakash,
    1. To create the custom routine goto VOFM transaction>Requirement>Output control.
    2. Enter the routine number start with 9xx and enter the application as V3 (billing)
    3. when you click on create button system ask you the access key for the new requirement routine.
    4. get the Access key and enter the required logic in the requirement routine.

  • How can I actiave a VOFM routine

    I m in VOFM TCode. I have an existing routine. But the Active checkbox in front of that routine is unchecked. Also this checkbox is not editable from VOFM. How can I make this routine active.
    Thanks for reading. <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Mar 28, 2008 7:29 PM

    are you sure you are in the right forum ?
    This is for Business Objects product  and your question make no sense in that context

  • How redetermine Partners in Copy controls (VOFM Routines) ?

    Hi All,
    I have a requirement.
    In all Sales to Sales copy control (all documents included) we need to redetermine Partner data from Customer Master on the creation date of new sales order. Basically partner data will not be copied from Old referenced document (except for sold to party)
    please reply .
    Thanks
    Revanth

    Hello,
    you could use some own data transfer routines ( in VOFM -> data tansfer -> orders).
    In standard there are the routines 1 (Partners Header) and 2 (Partners Item), which you could copy
    into the customer namespace and adjust to your requirements.
    In the customing of the copy control you only maintain the number of
    your data transfer routine on header  and /or on Item level.
    Regards Wolfgang

  • 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

Maybe you are looking for

  • Itunes freezes, it wont open

    out of nowhere, whenever i started my itunes, it kept on loading and loading. importing .xml files i have patiently waited for 45 mins, yet nothing happened. need help badly.

  • Qosmio X70-A-12 and new BIOS - FILE NOT FOUND

    ifi would to download the brandnew BIOS driver (20/12/2013 - 1.40 WIN) i get an 404 !!! http://www.toshiba.at/innovation/download_bios.jsp?service=AT Thx for fixing that SOON Qosmio X70-A-12

  • Firewire mystery - help!

    Both my firewire ports won't recognize a dang thing. They've just stopped. I go to the profiler and it says: FireWire Bus: Maximum Speed: Up to 400 Mb/sec Does that mean they're alive?! I've tried the powering down (totally disconnecting everything f

  • "Sichern unter" als "Photoshop PDF" übernimmt nicht die Auflösung des Photoshop Dokuments

    "Sichern unter" als "Photoshop PDF" übernimmt nicht die Auflösung des Photoshop Dokuments "Save as" as a "Photoshop PDF" doesn`t lead to a file with the same dimensions. The file gets much much smaller in pixelresolution and is not for any use. I use

  • Debugging a TRIGGER

    I can't figure out how to debug a TRIGGER. If I load it according to the same instructions for loading a PROCEDURE, FUNCTION or PACKAGE (which all work), and then I try to run it in DEBUG, I get the error Source does not have a runnable target.In TOA