VOFM help !!!!

Hi Guys
I want to block the output of an inbound delivery(E1) based on some conditions.
I have created an output control routine . The routine is created, activated, shows active status in table TRFM, Its is correctly included in its parent include and the parent SAP function module. The routine(955) is assigned to the correct o/p type in spro. The problem is, when i set a breakpoint in my routine to see what its doing, the control just dosent go there. I have tried to put a sessions bp,ext bp, code a breakpoint.....nothing works !! help !!!!
Can any one please tell me why is that so??
Rgds
Sameer

Hi Abhishek
Yes, I have tried that many times but that dosent help too.
Thanks for trying.
Rgds
Sameer

Similar Messages

  • VOFM requirement creation help

    I'm trying to create a new requirement to be used for billing document output. The requirement is, only invoices 1 day older than current date is to be outputted. Using transaction VOFM output control, I've created a new requirement for application type V3.
    I needed some guidance into coding this. My plan is to assign this new requirement to the access sequence I've created, so this requirement must always be met.
    Very simple psuedo code:
    if ( current date - document date != 1 )
        then sy-subrc = 4
    The problem I'm facing is that I don't know how to get the document date, since this program is running separately. If I could somehow get the invoice number that is currently being processed for output, then all is well.
    please advise,
    thanks in advance,
    Mo

    Hi
    You need to add (by append structure) the document date in the structure KOMKBV3
    Max
    Edited by: max bianchi on Jan 11, 2011 4:04 PM

  • Need help to write Routine

    Hi Gurus,
    I need your urgent help on one requirement. I have to write a routine and the requirement is to bring data for K.F. "B" via comparing Materials between 0Material and 0MAT_UNITS.
    0Material is already present in my flow and being loaded from DSO1 to DSO2 but 0MAT_UNITS not present. So I have to use a look-up on it using Materials from 0Material.
    Materials has to be taken from 0Material and using condition as Observer-A(active)  have to match with the materials of 0MAT_UNITS. If the material is present in 0MAT_UNITS with observer 'A' then take the Denominator and Numerator value for that material and produce a conversion factor for that material i.e. (Denominator/Numerator).
    Now this factor need to be multiply with a K.F. "A" (already present in my DSO1) and assign the value to K.F. "B" as output (DSO2).
    So pls guide me how should I code it in routine and which type of routine should I prefer.
    Any effective help will be highly appreciated!!!!

    Dear Ravi,
    Thanks for the promt response.
    Actually no as such user exit is found for this requirement.
    U know in the transaction VOFM we can create formula for example in my case for condition value..this is achieved by routine(some form in the include program) and then the routine number can be assigned in the configuration setting for the particular transaction. This is what info so far I have searched..but how to crete the routine and all.still i'm searching. Hope I gave you some ground abt the prob??
    So if any body have ever come across this requirement..please suggest.
    Thanks.
    Anup.

  • Reg routines creation in sales(VOFM)

    Hi All,
    How to create routnes in VOFM transaction.My requirement is I want to create routine numbers 701(RV45C701) and 705(RV60C705) how these routnies are related to RV45CNNN?.
    I want to check some conditions(to make sure item currency is creating as doc currency in the subsequest sales document) when I am creating sales order from contract.How do I get RV45C701 and RV60C705?Please give me step by step how to create routines in VOFM transaction and then what we have to after that.
    Once I have this include programs(RV45C701,RV60C705) I know how to validations.
    Kindly help somebody.
    Regards
    Mahesh

    Hi Jyothi,
    Thanks for ur information.I have one question I understood how to create routines.
    I know that it will ask access key when we are creating user routines.
    But do we need access key for writing code in this routines also?

  • 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

  • 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.

  • 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

  • Using VOFM Transaction can we generate an IDOC automatically

    Hi
    I have a requriement that when ever we change the sales order Rejection Status Field (ABSTA). An IDOC needs to be generated and the status should be sent to third party.
    Once the IDOC is generated we use XI to transfer the message to third party.
    My query here is can we configure in transaction VOFM by a condition(if field ABSTA = X) such that an IDOC is generated automatically.
    or do we have to use change pointers to trace the change and manually create ZIDOC.
    I have gone through the VOFM transaction and assume that IDOC is created automatically.
    Can any one please help.
    Thanks in advance.
    Regards,
    LRK.

    Hi Ravi,
    As far as I know, The VOFM is  used to configure the setting like when and where certain operation should take place.
    Even thoug you set the field ABSTA = X in VOFM still you need to have the ZIDOC that creates the IDOC and get the return status.
    I feel, you can have  a driver program that will be triggered after the transaction completion, in which you can create  the IDOC and post it.
    With Regards,
    Aditya.

  • Routine (VOFM) problem

    Hi friends,
      In TCode VOFM, I have created two output types zet1 for shipment(V7) and another one is zet2(V3). but the print program is same which is assigned to nace for V7 and V3
    in billing v3: if the routine(TCode VOFM) gives sy-subr = 4 then nace is not triggered it's working fine.
    BUt(MY Problem), in shippment(V7): if  the routine(TCode VOFM) gives sy-subrc =4  then the nace(print program) is triggered. How we can restrict.
    Thanks & Regards,
    Vallamuthu.M

    Hi,
    Two possibilities:
    1. In tcode VOFM, when you do the entry for this subroutine, you have a field for this appl.
    2. In the ABAP coding, set a check for the values of komkbv7 (for V7) and for komkbv3 (for V3). Or check the value of NAST-KAPPL or XNAST-KAPPL. Set a breakpoint and check what it's your best option to filter it.
    I hope this helps you
    Regards
    Eduardo

  • Output type not triggered during Delivery Order - pls help

    Hi,
    Need some help.
    I'm trying to setup output determination for delivery. It's a new output type for delivery.
    There are some checking that I want to build in to determine whether the output type is to be generated. Therefore I have to make sure of requirement (routine). However, after putting in the configuration, coding the requirement and creating the condition record, the output type still cannot be generated. When I go to VL02N to check the Output Determination Analysis it says the requirement " " is not fulfilled. It's not even calling out the requirement number that I assigned in the access sequence.
    Any idea what could be wrong? 
    This is what I've done :
    1. Creating condition tables
    2. Creating access sequence & assigning the condition tables to the access sequence
    3. In the access sequence, assign requirement number 999. The "Exclusive" indicator is not ticked.
    4. Ensure that the requirement 999 is activated in tcode VOFM.
    5. Create output type, assign the access sequence to the condition type.
    6. Assign the condition type to the output determination procedure. Make sure the "Manual" checkbox is not ticked.
    7. Assign the delivery type to the output determination procedure.
    8. Create condition record. 
        Note : when i created the condition record, I am not able to assign a Partner Function (for eg. SH) to the record. However in the config for the output type I've already configured for that Partner Function "SH" to be allowed for that output type.
    Appreciate suggestions & feedback.
    Thanks
    Rgds,
    L

    Hi,
    When I go to VL02N to check the Output Determination Analysis it says the requirement " " is not fulfilled. It's not even calling out the requirement number that I assigned in the access sequence.
    This is because in requirement you put certain conditions should be fulfill then out put should trigered,
    Example - if you maintained condition in requirement that user must maintain loading point
    Now when creating delivery user not maintained loading point then output will not trigered, so user must maintain that then only it will trigered output.
    Same problem just now solved, check which data maintenance conditions in routine and try to maintain that.
    Kapil

  • 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 to analyze routine in  SD (VOFM)

    Hi,
    how to find out why a SD routine is developed and what its doing?
    I'm preparing some specs and need this info.
    all i knew is 5 routines RV60B900, RV60C900, RV45C900, RV45C911, RV45C912 have been developed......
    I don't have knowledge on the SD routines. so pls help me in this.
    thanks and regards,
    Ravi.
    poitns guaranteed!

    Most probably these are copy control routines.
    Copy controls routines are used when we create a document with ref to another. Code in these copy routines decide what values to copy from source document to target document.
    For example if you are creating a delivery from sales order then one of these copy control routine will be invoked and which in turn will copy the values from sales order into your delivery.
    Often customer defne their own copy control routines based on their requirement. After new copy control routine is defined in VOFM, it is then configured in SPRO. Where you can defined to use your custom copy control routine instead of sap standard one.
    These copy routines can be defined for various document e.g. sales order, deliveries , billing doc.
    Respectively they are configured in SPRO..
    Just to give you an example for sales order you can configure in spro at following path
    Sales and Distribution->Sales->Sales Document->Maintain Copy control for Sales Document.

  • VOFM : formula for condition type variant wise

    Hi All,
    In Pricing condition we have two variants and the example is as follows.
    ZLOL C 450.00 INR 1 EA 1,350.00 INR 1 EA 1 EA
    ZLOL D 250.00 INR 1 EA 750.00 INR 1 EA 1 EA
    Formula : XKWERT = xkomv-kbetr * xkomv-kumne
    We have applied the above said formula in VOFM tcode and change “UOM” From EA to CN and “CConDe” field to 2 for variant C. The result is as follows.
    ZLOL C 450.00 INR 1 CN 900.00 INR 1 EA 2 CN
    ZLOL D 250.00 INR 1 CN 900.00 INR 1 EA 1 CN
    Here the condition value result is reflecting for both the variant and not for only variant C. We want amount should differ for given quantity variant wise for the given condition.
    Please guide.
    Thanks !
    Mandarr

    Hi rishi,
    Just read the existing Routines which all relvent for tax in 300 series and copy the suitable one and add the requiremnts accordingly.
    If helpful reward
    Regards
    Naren

  • 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

Maybe you are looking for

  • EPM 11.1.2.3 ,Error 404 - Not Found

    Hi All, I am getting the following error after my installation and configuration of EPM 11.1.2.3 and when I try to access the Workspace URL. Error 404--Not Found From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 10.4.5 404 Not Found The server h

  • ITunes no longer showing my iPhone apps on sync

    No idea why, but suddenly when I sync my mac OS10 and iPhone it syncs the calendar ok, and it shows the phone screens ok, but no apps show in the apps tab, so I can't transfer anything from to or from the phone. I did update to iOS 8.1.2 recently, an

  • Need help, unable to find my Serial Number

    I recently moved to a new house, with all the ensuing hassles. Shortly after moving I decided to upgrade my computer to Windows 8. And in order to try and get rid of some old problems I only kept the private files and did a clean update. After (succe

  • How to add a Link to a custom Search Componnent (HTMLB)

    Hi all, i developed a custom Search Component for the Search iView based on the <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/41cbcb56-0701-0010-43b4-fbc138ea2b6a">Tutorial</a> (CodeSamples Section) from Thilo Bran

  • Zoom image slider not working correctly

    I am using the {tag_largeimage,zoom,600,360} on http://meluka.worldsecuresystems.com/bedroom/bedside-cabinets/low-storage-on-castors. I want to either 1. make the slider work for the full width (600px) as at the moment the slider effect works for wha