VOFM - deleivery

Hello Experts,
i made a new Routine(991) for Delivery . And Activated it. It Goes Fine .
then from vl01n used for making delivery passing this 991 routine.(Here This routine is using for change lips-lfimg).
when i debug the program my routein(991) call first  and i get lips-lfimg . but when the debugging moves ahead its change the lfimg. (calling some standard includes) ,
What Should I have to do?
Is there any possiblity to call my routine in the end.
Regards'; Hemant
<removed by moderator>
Thanks.
Edited by: Thomas Zloch on May 18, 2010 9:21 AM

Hi,
Use form-routine 'USEREXIT_SAVE_DOCUMENT_PREPARE" of user exit MV50AFZ1. Update the fields LFIMG,LGMNG,OFMNG,G_LFIMG, LFIMG_FLO, LGMNG_FLO in the structure XLIPS to udpate delivery quantity.
Regards
Vinod

Similar Messages

  • VOFM - Vales not getting changed in the Screen

    Hi,
    I am working on the VOFM routines and want to change the condition value for gross price using the same.
    I have created the routine number 600 in the application V1.
    I have put a breakpoint in the routine which is getting triggered. But when I try to change the value of the variable XKWERT, the
    same does not reflect in the screen and it still shows the original condition value.
    I read many posts on SDN and tried those suggestions, but in vain. What could be the possible reasons for the same.
    Regards,
    Sagar

    Hi Madhumahesh,
    Thanks for the reply. Please find below the code:
    DATA :  lv_kwert TYPE kwert.
    FIELD-SYMBOLS : <lfs_xkomv> TYPE KOMV_INDEX,
                    <lfs_tkomv> TYPE KOMV.
    *calculate the value of Excise Duty
      CALL FUNCTION '/BGT/ED_PRICING_PURCHASE'
        EXPORTING
          i_komk        = komk
          i_komp        = komp
       IMPORTING
          e_wert        = lv_kwert.
      IF lv_kwert IS NOT INITIAL.
        xkwert = lv_kwert.
    *modify XKOMV
        LOOP AT xkomv ASSIGNING <lfs_xkomv> WHERE kschl = 'ZI11'.
          <lfs_xkomv>-kwert = lv_kwert.
       ENDLOOP.
    *modify TKOMV
        LOOP AT tkomv ASSIGNING <lfs_tkomv> WHERE kschl = 'ZI11'.
          <lfs_tkomv>-kwert = lv_kwert.
        ENDLOOP.
        UNASSIGN : <lfs_xkomv>, <lfs_tkomv>.
    ENDIF.
    But after coming out of "Condition Value formula", these values are overwritten by the standard SAP code (as described above in earlier posts- by RETTKOMV in Include LV61AA55).
    Kindly let me know what I'm missing in my code.
    Awaiting for your valuable response.
    Best regards,
    Anurag Khanna

  • Billing doc Split due to different partner data in VOFM

    I have a Billing doc split due to different partner data in a routine in VOFM. How do you clear these. I have tried VBPA without success. We want a billing document by Payer and PO number.

    Hi,
    I am facing a similar issue. Please let me know a s how you proceeded in clearing the "SPLIT DUE TO PARTNER DATA".
    Thanks in Advance.
    Regards,
    Rajesh

  • 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

  • VOFM formula on output control based on  item category(PSTYV)

    Hi Gurus,
    I created an Output Control requirement in VOFM.
    In the requirement ABAP codes, may I know how can I access the list of item lines category (looking for vbap-pstyv in particular) while I am creating the sales order in VA01, because the sales order is not saved yet, so I cannot get from table VBAP ?
    Any way to find the variables available ?
    Thanks in advance.
    Best Regards,
    Vasumathi
    Edited by: komma vasumathi on Jun 22, 2009 3:26 PM

    Hi there,
    When the sales order is created, all data is stored in the internal tables 1st in USEREXIT_SAVE_DOCUMENT_PREPARE, MV45AV0V_VBAP-PSTYV_VALUES
    in MV45AFZZ.
    So you can refer the fields from there. Item catg is stored in XVBAP table.
    But 1 doubt. Why do you want to trigger the O/p before the order is saved? Usually any O/p is triggered after saving the doc.
    Once the document is saved, data is stored in data base tables & you can refer from them.
    Regards,
    Sivanand

  • 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

  • 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

  • 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

  • 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

Maybe you are looking for