User exit to change Delivery type

Is there a user exit to change the delivery type when creating delivery wrt a sales order.
Thanks.

Use BADI   LE_SHP_DELIVERY_PROC
Edited by: abhishek shukla on Sep 24, 2008 12:00 AM

Similar Messages

  • User Exit to Change Conditions Type into PO

    Hi Experts,
    Does anybody know a user exit to change of a condition's currency into a Purchase Order?
    I need to change currency type of manually entered conditions, so the user exit should be determinated by specifics conditions types and called up during a redetermination of all or individual price components.
    I'll appreciate any information.
    Best Regards.
    José

    Use BADI ME_PROCESS_PO_CUST

  • Need to know the user exit to change unlimited check box in delivery tag

    Need to know the user exit,
    To change the <b>unlimited check box(</b>EKPO-UEBTK) in <b>delivery tag</b> of <b>item details</b> for tcode <b>ME21N/ME22N</b> on <b>SAVE</b>. 
    Thanks in Advance.
    Baburaj

    HI Baburaj,
    Use the BADI ME_PROCESS_PO_CUST to change the unlimited check box(EKPO-UEBTK)
    Implement the BADI and insert the code in the method PROCESS_ITEM
    Example code :
    *Data Declarations
    DATA: ls_mepoitem TYPE mepoitem,
          ls_mepoitemx type mepoitemx,
            ls_customer TYPE mepo_badi_exampl,
            ls_tbsg     TYPE tbsg.
      INCLUDE mm_messages_mac. "useful macros for message handling
    *here we  get item data
      ls_mepoitem = im_item->get_data( ).
    *work area for price value
    data : begin of it_eban,
      banfn type  mepoitem-banfn,
      bnfpo type  mepoitem-BNFPO,
      pries type mepoitem-NETPR,
    end of it_eban.
    *Get the Purchase requisition price from EBAN table
    select single banfn bnfpo preis from eban into it_eban
                                            where
                                              banfn = ls_mepoitem-banfn
                                          and bnfpo = ls_mepoitem-bnfpo.
    *if entry is available.
    if sy-subrc eq 0.
    *check if price is zero
        if it_eban-pries EQ 0.
    *if zero, set FREE field of PO to 'X'.
          ls_mepoitem-uebtk = 'X'.
        endif.
        endif.
    *Set updated fields
    CALL METHOD im_item->set_data
    EXPORTING
    im_data = ls_mepoitem
    Reward if Helpful*****

  • User exit to change an output type

    Hi,
    Is there any user exit to change the output type instead of another one when the user tries to print a sales order?
    Thanks in advance.
    Ricard.

    Hello,
    for example you have 2 message types
    1) ZOUT1  (Zprogram1 or Scirpt or Smartform what ever)
    2) ZOUT2  (Zprogram2 or Scirpt or Smartform what ever).
    For example based on Vendor Type you want to trigger ZOUT1 & ZOUT2.
    what you have to do is.
    Goto VOFM  -> Requirements -> Output Control -> Create 2 routines for each output type. then go to Code part of each routine make subrc = 4 if you dont want to execute output type.
    subrc = 0 implies output will execute else vise versa.
    let me know if you dont understand my solution.
    ***********Poorna***********

  • User Exit for Updating Delivery Plant at Item Level in Sales Order

    Hello Experts
    There is a requirement to determine the delivery plant for each item level and than update the items with newly determined plant.  There is a user exit MV45AFZZ routine FORM USEREXIT_MOVE_FIELD_TO_VBAP. to update the item level entries in Sales Order in VA01 or VA02. Is this the right place to do this?, if yes , do i need to perform any other standard logic (like re determine Shipping points , schedule lines ) for newly determined plant? If not , can you please suggest any other place , BADI or user exit to change the delivery plant of sales order.
    Thanks a lot....
    -Harkamal

    Best place is MV45AFZZ-USEREXIT_SAVE_DOCUMENT_PREPARE. Populates the values just before saving the document. You can have your own deriving logic. Make sure that peice of code is trigger only for Sales Order create or change (VA01/VA02).
    Are you kidding???  You do realize that this is AFTER all validations against configuration, ATP, pricing, etc. have been performed??!!!  Never, ever change a critical value like plant in the SAVE user exits...

  • User exit to change item level data in purchase order

    Hi,
    Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirment is
    For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked).   now i cant use ME_PROCESS_PO_CUST  because process_item wont get triggered if there is no change in itemlevel data.
    Regards,
    Rahul

    Hi Rahul,
    Probably EXIT_SAPLMEKO_002.
    hope it helps,
    Edgar

  • Help - User exit to change item level data in Purchase Order

    Hi,
    Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirement is For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked).   now i cant use ME_PROCESS_PO_CUST  because process_item wont get triggered if there is no change in item level data.
    Thanks,
    Rahul

    Hi Rahul,
    Probably EXIT_SAPLMEKO_002.
    hope it helps,
    Edgar

  • User Exit for Changing G/L account in Accounting Document

    hi all,
    This one is urgent for me. If you guys can help.
    Iam looking for a user-exit to change the G/L account while posting the accounting document.
    If someone has worked on a similar user-exit Kindly help.
    Thanks and Regards
    Varun

    Hi Experts,
    The requirement is to change the GL account when PGI is done for a delivery.
    I have coded in the above user exit for changing the GL account. I am facing the issue here.
    I am changing the GL account through a user exit, but even before the user exit is  called the standard SAP is throwing a error.
    the Error is GL account is blocked for posting in the company code. This check is happening for the GL account what standard SAP proposes from the customization. The GL account that is getting picked is blocked in SPRO for posting in the mentioned company code. Because of the error message, our z code is not getting executed.
    Kindly suggest if some user exits that can be used even before this error message. or let me know if you have any suggestions to over come this.
    I have coded this in the enhancement point. Include  MM07MFK0_KONTIERUNG_PRUEFEN and subroutine kontierung_pruefen.
    Thanks,

  • User exit for updating delivery block of Sales order before Delivery

    Hi  Folks,
    Need to have an user exit for updating Delivery Block indicator for a Sales order Before creating its delivery
    I have got an exit in Program SAPMV45A
    MV50AFZ1
    FORM USEREXIT_REFRESH_DOCUMENT.
    that hits before processing the delivery block fro delivery (Correct me if i m wrong with this )
    Now i want now how to change the Delivery Block indicator of Sales order in that exit
    any FM available ?
    Thanks n regards
    Sonal...

    Hi  ,
    How did you solved this issue?
    I am having similar scenario in which while pressing the save button  delivery block should update if multiple schedule line exist.
    Tried by two different approaches in various user exit without any success.
    AFAIK we have two ways to achieve this functionality.
    1) Count the no of rows in vbep. If greater than 1 then multiple schedule line exist and we can assign the value to VBAK-LIFSK(delivery block) as per our requirement.
    This is not correct. If there are two line items both with single schedule line . This case total no lines in vbep will 2 and above condition will true which is incorrect.
    2) There is a indicator for multiple schedule line (VBAPD-EPMEH , xvbap-epmeh ) if it is check then multiple schedule line exist and we can assign the value to VBAK-LIFSK(delivery block) as per our requirement.
    If I write code in USEREXIT_SAVE_DOCUMENT_PREPARE.
    Multiple schedule line indicator is not populate so can not use 2nd approach.
    If I write code in  USEREXIT_SAVE_DOCUMENT it of no use as vbak is updated before reaching this user exit.
    If I write code in USEREXIT_MOVE_FIELD_TO_VBAK as this user exit is also called while pressing the enter key for this I have use
    the condition of fcode but it also fails in some condition.
    If fcode eq 'SICH'.
    Read table xvbap with key epmeh = 'X'.
    IF SY-SUBRC = 0.
    VBAK-LIFSK = '03'.
    Else.
    VBAK-LIFSK = ' '.
    Endif.
    Endif.
    Please help me to get the desired functionality working for all cases.
    1) One line item with multiple schedule line                                              
    2) Two line item with multiple schedule line                                             
    3) One line item having one schedule line and second one having multiple
    4)Two line item both with single schedule line.

  • User exit to change account assignments

    Hi gurus!
    Can anyone tell me a user exit to change some fields in Logistics Invoice (MIRO), when a an  fixe asset PO is made:
    BSEG-BSCHL - Posting Key
    BSEG-UMSKZ - Special G/L Indicator
    BSEG-UMSKS - Special G/L Transaction Type
    BSEG-HKONT - General Ledger Account
    I apreciate any help, expecially because we already achieved GO LIVE.
    Thanks in advance, Pedro Mariano

    Hello Pedro,
    We have the same requirement, how did you solve it?
    I would really apreciate your help.
    Thank you,
    Elisa

  • User Exits for IW21 - Notification Type

    Hi ,
    I need to access User Exit related to IW21 , IW22 Transactions.
    I require the user exit to customize process for a specific Notification type 'KS'.
    User exit when a notificatrion Type is created & when it is modified.

    User Exits and Badi's For IW21 & IW22
    BADI's
    IQS0_STATUS_MAINTAIN Control of Changeability of User Status
    IWO1_SUBSCREEN_0170  Display Additional Data on Object Screen 0170 PhysicalSample
    IWOC_LIST_TUNING     Performance Tuning for Lists in PM/CS
    IWOC_OBJECTINFO_CHNG Changes to Data of Object Info Screen
    NOTIF_AUTHORITY_01   Additional Authorization Checks for the Notification
    WOC_FL_DETERMINE     Determine Date for Determining Installation Loc. Equi.
    USER EXITS
    IWO10026  User check on setting status 'Do not perform'
    IWO10027  User exit: Generate user-defined settlement rule
    IWOC0001  Create PM/SM notification: Determine reference object
    IWOC0002  PM/SM notification: Check whether status change is allowed
    IWOC0003  PM/SM authorization check of ref. object and planner group
    IWOC0004  Change single-level list editing PM/QM/SM ALV settings

  • User-Exit for changing Sales Document Number - Urgent

    Hi Experts ,
                     Please suggest me the <b>User Exit for changing Sales Document Number.</b>
    thanks,
    Jayesh<b></b>

    hi jayesh,
    chech this exit-----EXIT_SAPFV45S_002.
    this exit's description says " Change Sales Document Using Configuration".
    Other available exits are
    SDAPO001            Activating Sourcing Subitem Quantity Propagation
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0001            Determine alternative materials for product selection
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing plan
    Enter these exits name in SMOD transaction and select components. u can find all the user exits available for this exit name.
    Reward me if useful..........
    Harimanjesh AN

  • User exit to change a class message

    Hi,
    Is there any user exit to change the class message instead of another one when the user tries to print a sales order?
    Thanks in advance.
    Ricard.

    Sorry,
    bad translation... (class message means output type).
    I'll reopen another thread.
    Ricard.

  • User exit  to change material availability date

    Hi Gurus,
       my requirement is like I need to change the material availability date based on some conditions.
    Is there any User Exit to change the availability date so that I can dump my code in the user exit .
    If not is there any alternative process to get the solution.
    Thanks,
    Sudhaa.............

    Hi Sudha,
    Can you tell me your requirement clearly please.
    Regards,
    Dhanunjaya Reddy

  • Inbound IDOC User Exit ZXVEDU04 change IDoc Data

    Hi all,
    We have to develop an user exit for changing the Plant, Shipping Point and Storage location
    We have identified the exit ZXVEDU04 . Is there some other exit for this ??
    But which internal table we are supposed to change this to change the data .
    If possible send me a sample code
    Thanks in Advance .
    Vivek K ..

    Hi all,
    I have done this for a single line item IDoc .
    How do i go for IDocs with more than one line item ???
    I have hardcoded VBAP-WERKS(1) etc for Plant, Strg Loc and shp pt .
    How to identify how many line items are there in the IDocs ??
    Thanks in Advance .
    Vivek K ..

Maybe you are looking for

  • How can I pass URL parameter value to text field?

    Dear Masters, I have a text field. I want it to have a value based on the URL parameter, for example: http://myapplication.net:7777/pls/apex/f?p=102:1:::::P1_RTNUM:9448,P1_EMAILADD:email.add.here I want the value of the text field = P1_EMAILADD after

  • Ajax problem in IE7 - get.get() is empty

    I am testing Ajax under Mozilla Firefox and IE7. Under Firefox is everything fine but IE7 gives me errors. My process is the following: declare l_counter number; l_o_name varchar2(2000); begin owa_util.mime_header('text/xml', FALSE ); htp.p('Cache-Co

  • SOAP Adapter with application/x-www-form-urlencoded

    You can use the content type "application/x-www-form-urlencoded" in a SOAP adapter? Thank you.

  • Paper Layout in Report JSP - problem with anchors

    Hi, I am using an anchor to connect two frames. The frames are vertically expandable and horizontally fixed. When I run the report (PDF) as an rdf, I receive no errors, however when running the same report as a JSP, I get the following error : 'Objec

  • Accessing parent variables in externally loaded swf - Help please

    I thought I knew how to do this, but maybe someone might be able to see why this is not working... here's what I have (simplified to only show necessary code): Main Timeline: var currentItem:String = 'applesauce'; (then some code to load an external