Userexit -- TVAK-LISOF

Hi
In sales document there is field TVAK-LISOF - immediate delivery.  With the document type (example ZOR having TVAK-LISOF blank), whenever the sales order is created for specific plants, the TVAK-LISOF field should be set to A.
Creation of new document type is out of scope.
How this can be achieved (through userexit??).
Would appreciate your inputs.
Thanks
Suddu
Before saving the sales order document, the TVAK-LISOF has to be set to A, so the delivery document will be created automatically when the sales order is saved.
Edited by: sud val on Jun 5, 2009 3:31 PM

Hi,
U can do this either by USER EXIT or BADI.
U need to check out for the available BADI or User Exit where actually u can update the table by capturing the reqd fields.
Regards,
KC

Similar Messages

  • How to produce different outbound delivery based on different schedule line

    Hi,
    I want to create different outbound delivery based on different schedule line time,but system automatically create a combining delivery document with a sum number.
    For example,
    schedule line
    date               goods issue time   qty
    2011.08.24     08:00:00                1
    2011.08.24     10:00:00                1
    when I create the outbound delivery, system create only one document with quantity 2.
    But I need two documents with quantity 1 in every document.
    How to solve this requirement?
    Thanks.

    Hi,
    I viewed the item requirement in VOFM, found that they are status check for the copy control, not the split control.
    Could you please give me a example?
    In the copy control--header--conditions----order requirement ( or combination requirement )
    They are like this :
    (001)
      bp_subrc = 0.
    Check that reference document is an order (if not, issue error)
      if cvbak-vbtyp cn vbtyp_auft.        "Auftrag?
        perform message_handling in program (programmname)
                                           using cvbap-posnr
                                             '003'
                                             'E'
                                             'VL'
                                             cvbak-vbeln
                                             space
                                             space
                                             space.
        bp_subrc = 1.
        check 1 = 2.
      endif.
    Check the status of the Fonds-Management
      IF CVBUK-FMSTK EQ 'A'.
        PERFORM MESSAGE_HANDLING IN PROGRAM (PROGRAMMNAME)
                                           USING CVBAP-POSNR
                                             '889'
                                             'E'
                                             'VL'
                                             CVBAK-VBELN
                                             SPACE
                                             SPACE
                                             SPACE.
        BP_SUBRC = 1.
        CHECK 1 = 2.
      ENDIF.
    Check that order is not blocked by the automatic credit check
      if cvbuk-cmgst ca 'B' and
         cvbuk-abstk ne 'C'.
    Credit check is irrelevant for correction deliveries
        if v50agl-sofauftrag eq charx       and
           tvak-lisof       eq space       and
           likp-lfart       eq tvak-korli.
        else.
          perform message_handling in program (programmname)
                                             using cvbap-posnr
                                               '060'
                                               'E'
                                               'VL'
                                               cvbak-vbeln
                                               space
                                               space
                                               space.
          bp_subrc = 1.
          check 1 = 2.
        endif.
      endif.
    Check the user status from the order header
      if not cvbak-objnr eq space.
        call function 'SD_STATUS_VBAK_CHECK_INTERN'
          exporting
            i_objnr              = cvbak-objnr
            i_vrgng              = vrgng_sddn
          exceptions
            allowed_with_warning = 01
            not_allowed          = 02
            object_not_found     = 03
            others               = 99.
        if sy-subrc ne 0.
    Fehler nicht bei MODKZ = '2' (Erlaubt mit Warnung)
          if sy-subrc gt 1.
            bp_subrc = 7.
    Else ist nötig, da Routine mit "changing sy-subrc" gerufen wird
          elseif sy-subrc eq 1.
            bp_subrc = 0.
          endif.
    Check Global delivery flags
    line deleted: "n_911988
            perform message_handling in program (programmname)
                                               using cvbap-posnr
                                                     sy-msgno
                                                     sy-msgty
                                                     sy-msgid
                                                     sy-msgv1
                                                     sy-msgv2
                                                     space
                                                     space.
    Bei Fehler: Bedingung verlassen
          check bp_subrc ne 7.
        endif.
      endif.

  • Userexit For TCODE J1IJ depot excise invoice

    hi
    I want to know is there any userexit for depot excise invoice. That we can use to check weather excise entry date that is (J_1IRG23D-CPUDT) is equal to likp-WADAT_IST . Any info will be really helpful.
    Thank you

    Hi,
    Use this program SAPMJ1IJ in this program there are 4 includes.
    First try with  MJ1IJF01
    So check with your abaper which exit is working in this include.you can do it by setting break-point.
    Also check other includes MJ1IJTOP  MJ1IJO01  MJ1IJI01
    Thank you,

  • BADI/UserExit for MIGO in Stock Transfer

    Hi Gurus,
    I have a requirement.
    When posting a GR in MIGO, if the material has been flagged to go through inspection, MIGO post the batch to quality inspection.
    Now, when a batch has already gone through inspection (for example in another plant) and its released (passed) and its been transferred to another plant, if we are receiving this batch doing a post GR in MIGO, it automatically post it to quality inspection again.
    Is there a BADI, UserExit or way to skip this inspection and post the batch to unrestricted stock since its already gone through inspection in the previous plant and has a Decision Code A0 (accepted etc).
    We don't want to change the material master for this because we still want the material/batch to go through quality inspection if its hasn't already been.
    Thanks..
    Baz
    Edited by: Basil Balogun on Sep 23, 2010 1:49 AM

    Hi,
    Try the possibilities of MB_MIGO_BADI. I think in method LINE_MODIFY, POST_DOCUMENT and perhaps PAI_DETAIL.
    I hope this helps you
    Regards,
    Eduardo

  • Sales Order Costing. Error values, need BAPI or Userexit or Enhancements

    Hi Experts,
    I have a situation to solve the Errors in Sales Order Costing.
    My Error is,  its not splitting values equally,,, (BOM Item Price Values)
    for example...
    let i have a parent Item A.
    and Child Items as A1, A2, A3.
    Now the Qty of A is 100. for each item the price value is 50. so the total value is 5000/-
    Now If i need one A, then I need 8 A1's, 4 A2's, 3 A3's.and let think A1 value and A2 value and A3 value (single Unit ) are equal. and let the value be 100.
    but in BOM i can see all the values of A1, A2, A3 as same. (500, 500, 500) but it should be (800, 400, 300)
    The single Unit Price is not multiplying with Quantity, but its equally splitting.
    Please tell me Can I find and BAPI or Userexit or any enhancements or any Configurations to do.
    Thanks & Regards
    Dileep .C

    no replies and my thread was dead.

  • USEREXIT FOR transaction J1IJ

    Hi
    My user wants that date in J1IJ that is excise from depot sale should same as PGI date. If it is not same it should throw some error. Is there any userexit available for the same.
    Any information will be of great help.
    Regards
    Jalaj

    Hi Jalaj,
    Use any one of  these user exits
    MJ1IJI01.
    MJ1IJF01.
    Regards
    Ram

  • Display error message in userexit

    I have a checking which implement in userexit. When the criteria meet, it will block po saving and display error message. I would like to know how to display the error message. Thanks!

    Use like this for first approach else if second one were serve you purpose than you may go with second one also.
    DATA: mid  TYPE sy-msgid VALUE 'SABAPDOCU',
          mtype TYPE sy-msgty VALUE 'I',
          num  TYPE sy-msgno VALUE '014'.
    MESSAGE ID mid TYPE mtype NUMBER num.

  • Need userexit while saving the billing document (VF01)

    HI Folks,
    I need a userexit while saving the VF01 transaction code. My requirement is i need to check if there is any intercompany invoice was created before the delivery related invoice
    By default SAP creates delivery related invoice . I have checked lot of userexits with package VF but none is working and also gone through the standard userexits RV60AFZ*, still didn't find any good one for my requirement..
    All your help is highly appreciated..
    waiting for your replies.
    Regards,
    raj

    Hi,
    I have done some analysis before posting the question and one mistake i done is i have checked theUSEREXIT RV60AFZC and i checked XVBRK AND XVBRP instead of VBRK and VBRP...also whie saving this  is not called, it is called when we press enter and also when we press SAVE button in the initial screen.
    I missed the small thing...
    Thanks for the link..
    Regards,
    Nagaraj

  • Userexit while saving the billing document

    Hi all,
    Is there any userexit while saving the billing document..I want to define minimum invoice value in system.
    Regards,
    Puneet Makkar

    Hi,
    In preceding project, i had the same requirement.
    Price condition : copy from std price for minimum value.
    Use condition category (for specific determination price for invoice).
    In price procedure : apply requirement to active only for invoice (std = 22).
    Re determination of price during creation of invoice :
    use RV61AFZA with the value of condition category to adapt pricing type (ex : X).
    modify copy rule (Tcode VTFL) for item : use new value for pricing type (ex : X).
    Regards,
    Lionel

  • Pls help me to identify in the SD userexit what triggers "del of items"

    Here's the background of the problem. (it is difficult to explain the problem and I will try my best).
    When processing certain IDOCs, something in the SD userexit is causing the change logs of vbap records to be set with a message for every item "Item has been deleted".  I could not reproduce the problem in either the development or QA environment. It is happening in production and it happens when the IDOC is processed every night by a batch job running a standard SAP program RBDAPP01.
    It then becomes too late for me to debug the issue in production...and I can't real mess around with idoc procesing in production either..
    Since it has become impossible to reproduce the problem in QA or Dev , I am trying to figure out how to prevent it from happening...
    (I know fixing the existing records is another problem) I'm trying to figure out what code in the user exit thinks that it should log a message "Item has been deleted" for every item of vbap. The item itself is not deleted or marked for deletion..it;s just that this is appearing in the change history...  
    Can anyone suggest what may be causing this issue.,..
    Thanks....
    Sam
    Edited by: SammyBoy on Apr 8, 2011 10:39 PM
    Edited by: Sam on Apr 8, 2011 10:40 PM

    If u want to add Items data, u have to handle the Table control by writing the complete code.
    U have to write code for 2 items, when u press enter u will get new row to enter new record one by one.
    Narendra

  • USEREXIT to adjust the rebate credit memo request to your own require

    We are using function module SD_BONUS_CREDIT_NOTE_CREATE in one of our rebate program.
    This Functional provides the option to use USEREXIT to adjust the rebate credit memo request to your      own requirements.
    With Present form of  functionl module it take standard doc type to  create the  rebate credit memo request.
    So Question here which  are userexit we have in this FM  which can be used to create  the  rebate credit memo request to our requirement.
    Has any body used this FM before to this length..
    appreacite your help
    Thanks
    rao

    Hi Serma,
    I haven't use this FM. I only can advise you how to find user exits in this (any) FM.
    Open your FM via SE37 and then try to find in this Function Group any CALL CUSTOMER-FUNCTION 'xxx' ..., where xxx is a 3-digit number which refers to the relevant FM EXIT_<FG>_xxx.
    <FG> is the name of the Function group to which the FM belongs to.
    When you find such an EXIT-Function, take a look at the parameters. When you find parameters which satisfy your needs, go ahead and build your EXIT enhancement in the predefined ZX-Include (you can find this inside the FM EXIT_<FG>_xxx).
    I hope this helps,
    Heinz

  • How to get xveda values in sales Order userexit MV45AFZZ

    Hi guys,
    Tables XVEDA and YVEDA has no entries in sales order userexit. Do you know how to get contract end dates of line items in sales order user exit

    Used function module SD_VEDA_SELECT to solve the issue

  • How to Carry out New Pricing in Sales Order userexit

    Hello,
    In userexit save_document_prepare of program MV45AFZZ, I'm adding an entry in XKOMV for a header pricing condition ZD01.  After saving, if I go back into the order and go directly into the line item conditions, the ZD01 does not exists at the item level.  If I navigate the the header conditions and then go back to the items, ZD01 appears as it should.  I believe what is happening is that the header condition is not being distributed to the line items unless New Pricing is carried out.  If I manually enter the ZD01 condiiton instead of relying on the userexit code, everything works fine.  The header condition is properly distributed to the line items.  Therefore, I believe the configuration is correct.  My question is, "How can I programatically trigger New Pricing from a sales order userexit".  Is this possible in SAVE_DOCUMENT_PREPARE or do I need to do it somewhere else.".
    Thank you,

    this problem has been resolved.  The problem was that I was appending the header condition to XKOMV instead of inserting the header condition as the first line in the table.  SAP will carry out the new pricing if the header condition is on the first line.

  • Userexit/BAdi in BP replication process in R/3?

    Hi All,
    Is there any userexit/Badi is available in R/3 for BP replication process for CRM to R/3? It would be much appreciated if you provide the same.
    Thanks,
    Narsaiah

    Hi All,
    Thanks for your response, after my investigation I found that there is no issue in CRM o/b BDocs, issue is only when populating the BP in R/3. To populate this it's using BDC call transaction there it's not populating the Name1 and Name2 fields of BP(Customer) in XD01. And its using BAPI PI_BP_PROXY_BAPI_CUSTOMER in R/3 side to process i/b data. I'm not sure why its not populating in call transaction. It's using DEBITOR_BDCDATA to get BDC data with this FM I'm bit confused, as its not picking any screen fields for Name1, Name2 and Address. However its updating address not Name1 and Name2. Could you please someone advise on this? It would be greatly appreciated.
    Thanks in advance.
    Narsaiah

  • Need Badi or UserExit during Delivery creation

    Hi,
    I have a requirement to create PGI automatically after delivery is created.
    So i am looking for Userexit or BADI which is called immediately after delivery is created so that I can used delivery number and call logic to create PGI.
    I have searched the sdn for same requirement but the badi LE_SHP_DELIVERY_PROC or BADI DELIVERY_PUBLISH and user exit MV50AFZ1 wont suffice .
    Please suggest.
    Thanks & Regards,
    Swapnil.

    Hi,
    to check which BADI are presents during the execution of your trx, just put a break point in the method "get_instance" of the class "cl_exithandler".
    Watch the "sxs_inter" variable (that contains the name of the BADI interface).
    Run the trx and just watch what u can implement.
    Hope it helps
    Bye
    Andrea
    Pls reward if it helps

Maybe you are looking for

  • Can't sync album artwork to ipod touch and music is on many different computers that I can't always get to easily.

    Okay, so, I upgraded my iPod touch to iOS5. When I did that, I got everything back, but I'm missing a ton of album artwork and some of my music has the wrong artwork from completely different artists that I already had on my iPod. For example, I have

  • One Time Vendor Set-up

    I have set up a one time vendor in our system, however when an invoice is being entered against the vendor there is no screen coming up requesting the vendors Bank Account Details, the screen coming up is titled Address and bank data but only shows A

  • "PDE bundle could not be loaded," HP 7510 All-in-One​, Mac OS X 10.9.5

    The selection "PDE" in the print dialogue box is listed with a strikethrough. Choosing PDE displays the message "This bundle could not be loaded because the required components could not be found.  Contact the bundle's creator ... for the newest vers

  • Advice on MiniDV player

    I have the Sony HDR-HC3, which isn't recognized by FCE (or FCP for that matter). To get around this, I bring my video in via iMovie HD, then export a full-quality .mov file. This is then imported to FCE. One suggestion I was given is to buy a MiniDV

  • RRMX for web report?

    Hi, Just busy defining authorizations for web reports based on BEx queries. In the role is the S_TCODE=RRMX REALLY needed? And if so does that entail that the users can use BEx query designer as well? Thnx for thinking.