PO Item User Exit to set Blocked Stock

Hallo,
is there a User Exit on PO by which I can default Blocked Stock on field INSMK on the PO item level, during PO creation?
Or is there any other why to achieve the same result?
thank you in advance,
Regards,
marco

Hi Friend,
Check the BADI, ME_PROCESS_PO_CUST, it will solve your problem.  I had same kind of requirement, and i had imeplemented thsi BADI, and used PROCESS_ITEM method.
Here you can pass default value 'S' (blocked stock) to EKPO structure.
Regards
Krishnendu

Similar Messages

  • User exit for Dlvy Block at header for sales order for Companycode & materl

    Hi all,
    I have a requirement. I need to apply a Delivery Block for all sales orders which fall
    In a particualr company code "999" and if they have any configurable material in the item level.
    When a Sales Order is generated, during the process of generation, I should
    Write a loigc such that, if the sales orders fall in a particlar company code
    Say for '999' and if they have a configurable material at item level,
    I have to trigger an ABAP Proxy that goes and fetches a Yes/No value from an
    External system. Based on this Flag value I h ave to then apply a delivery block for
    The order at header level.
    So I assume, I should put a logic in some user exit that gets triggered before order is saved.
    And in that user exit I have to check if the Company Code of that order is '999' and if it  has
    Configurable product or not. If it satisfies the 2 conditions, I should, trigger this ABAP Proxy and
    Based on the true/False value I have to set Delivery Block or do not set delivery block for the order
    At header level.
    So I think first I should figure  out following things.
    1) user exit ..where I should put the code to check conditions and to apply delivery block.
    2) write a proxy and trigger that proxy in this user exit.
    Coming to first part, which user exit should I use to set delivery block for the order
    At header level. And how will I check for company code and config product?
    Which variables of the SAP stnd pgm store Company Code and Config product values so that
    I can check those variables for that values?
    Please suggest and help me with this.
    Any help will be highly appreciated.
    Regards,
    Sam

    1)go to the main program sapmv45a
    include MV45AFZZ ->userexit_move_field_to_vbak
    depending on ur conditions ...
    keep a break-point in the form userexit_move_field_to_vbak ,and if it stops there Check for vbak-lifsk .
    Write a condition to set the deliveryblock that is vbak-lifsk = 'xx'.
    2)then regarding your second point ...what is the middle ware used to interact with legacy system
    let me know

  • Sales order line item user exit?

    Hi Folks,
    Can any one of you suggest me an user exit in sales order line item level?
    I want something which stops before/ or just after entering the quantity in the item level.
    We wanted to set up a issue which deals with rounding profile comming from CMIR record to take from Ship-to rather than standard Sold-to party functionality.
    Thanks a TON in advance.
    Praveen.

    Praveen,
    Check this post
    https://forums.sdn.sap.com/click.jspa?searchID=7098802&messageID=1674246
    Regards,
    Satish

  • User exit to set user status

    Hi,
    We have a requirement to implement our own status management for SD orders. I have configured a new SD item object status profile in transaction BS02. Now I need to program the logic to update the item object status when the user is saving the sales order. I have looked at the relevant user exits in MV45AFZZ, but not found a way to update the item status upon saving. 
    Has anyone faced a similar problem and know a good way to update the item object status upon sales order save?
    Thanks in advance!
    Kind regards,
    Geir Kronkvist

    I had accomplished this requirement as follows.
    Step 1:-
    There is an SAP function module STATUS_UPDATE. This FM should be invoked in update task.
    Reason: SAP internally invokes this FM as an update task during the Sales order save process. Hence your updates should follow SAP's status update process.
    Step 2:
    Created a report program with 2 form routines to export and import JEST entries as follows.
    form set_usrstat tables it_jest_upd structure jest_upd.
    Export internal table into memory
    export it_jest_upd to memory id 'it_jest_upd'.
    Execute only after the next commit statement
    perform zset_status on commit.
    endform.
    *&      Form  set_status
          Form for updating status after commit
    form zset_status.
    data: it_jest_ins like jest_upd occurs 0,
          it_jest_upd  like jest_upd occurs 0 with header line,
          it_jsto_ins  like jsto  occurs 0,
          it_jsto_upd  like jsto_upd occurs 0,
          it_obj_del like   onr00 occurs 0.
    Import data from Memory
    import it_jest_upd from memory id 'it_jest_upd'.
    Run function module to update the status
    CALL FUNCTION 'STATUS_UPDATE' in update task
      TABLES
        jest_ins       = it_jest_ins
        jest_upd       = it_jest_upd
        jsto_ins       = it_jsto_ins
        jsto_upd       = it_jsto_upd
        obj_del        = it_obj_del
    endform.                    " zset_status
    Step 3:
    If you want to set a user status fill the i_jest_upd internal table accordingly and invoke the perform statement as follows.
    Execute only after the commit
                PERFORM set_usrstat(zsd_status_update) TABLES  i_jest_upd.

  • User Exits/BADIs in blocking posting of treasury flow in TBB4

    Hi,
    I need to block the posting of some transaction line items based on some conditions in TBB4.
    I required to find out a BADi or User exit in which I can mention the filter criteraia so that some of the transaction line items will be blocked.
    Is there any Userexit/BADI thru which I can access the internal table of line items for a particluar transaction.
    If yes then I can just mention the filter criteria and delete the line items from the table.
    Any pointers will be highly helpful...
    Thanks in advance,
    Sreekanth

    Hi,
    Here mentioned some of badi's and user exits,hope it will help you....
    Badi : FTR_TR_FIMA_CALLBACK
    User Exits
    FTRINCON  User exits  for confirmation status
    RFTBB001  Treasury: Posting interface
    RFTBB010  Treasury: Posting Interface Due to Cust.-Spec. Acct Determtn
    RFTBB011  Treasury: Post.Interface due to SCB Indic. and Deliver.Cntry
    RFTXX301  Customer Exit mt300 header
    RFTXX302  Customer Exit mt300 trailer
    RFTXX321  Customer Exit mt320 header
    RFTXX322  Customer Exit mt320 trailer
    SAPMFTD1  User Exit Treasury data carrier management

  • User exit for setting tax indicator in Sale order

    Hi All,
    I want to know if there is a way (user exit) that could look at the Sales Order Type , particular Item Pricing Condition  and Ship-to party State and set the materialu2019s tax classification (VBAP/TAXM1) to u201C0u201D (Exempt) ?
    Thanks in Advance!
    Sonali.

    Hi Ramesh,
    I have put the code in the user exit, and I am able to set the tax classification indicator but I have a problem... Before setting the indicator I need to check for the Usage code of the line item (This code I am using instead of checking the Pricing condition) . I am able to read all the values of line item in VBAP structure in the user exit except for the first time this user exit is hit as soon as a line item is entered it is not picking up the Usage code. That field is blank.
    But if add another line item and go into the user exit I can see the previous line item Usage code in XVBPA table.
    Do you have any idea why usage code is missing in VBAP structure in the user exit or is there any other table or structure where I can get the usage code?
    Thanks in Advance!
    Sonali.

  • USER EXIT/BADI for blocking pop up in VA01/VA02 for unloading point

    Hi,
    Please see details below with an example
    Following the below steps will execute the popup.
    1. VA01 (Sales Doc Create)
    Document type can be anything.This pop-up should be blocked for 'CRQ' and 'CR' types.
    2. Input “CRQ” or “CR” in the Order Type field and execute.
    3. Within the document:
    Input customer “194” as the Sold-to and Ship-to parties
    Input the PO Date field with today’s date
    Input material “475410m” and a Target Quantity of “1”
    Press Enter
    If the ship-to party has more than one unloading point  a pop up would show both values to choose one(these values come from KNVA-ABLAD).
    The code details are as follows:
    Program SAPMV45A--> Include  MV45AF0K_KUAGV_SELECT---->CALL FUNCTION 'VIEW_KUAGV'
    2)CALL FUNCTION 'VIEW_KUAGV' uses CALL FUNCTION 'SD_PARTNER_SINGLE_MODIFY' for ship-to(WE)
    3) IN FM 'SD_PARTNER_SINGLE_MODIFY'  the following sub-routine is called:
    *-- proceed inserting a partner -
    create a new xvbpa-segment
    PERFORM XVBPA_ENTRY_FILL USING LVF_VKORG LVF_VTWEG LVF_SPART
    LVF_VBELN
    fif_posnr
    LVF_KUNNR_NEW
    FIF_MANUAL_ADDRESS
    FIF_MANUAL_ADDRESS_ORIGIN
    FIF_PARVW FIF_PARGR
    LVF_PARTNER_USER
    FIF_KNREF_PARNR
    FIF_PRFRE
    FIF_BOKRE
    FIF_HISTUNR
    FIF_HZUOR
    FIF_NO_DIALOG
    LVT_XVBADR
    LVF_ACTION_TODO
    LVS_OLD_XVBPA-CNTPA
    CHANGING LVS_NEW_XVBPA
    LVT_XVBPA.
    4)This subroutine uses FM 'SD_PARTNER_ABLAD_SELECTION'  to determine unloading points for ship-to and also  brings up the pop-up using 'REUSE_ALV_POPUP_TO_SELECT'.
    partner is ship-to, so determinate unloading point
    CALL FUNCTION 'SD_PARTNER_ABLAD_SELECTION'
    EXPORTING
    FIF_KUNNR = LVS_XVBPA-KUNNR
    FIF_NO_DIALOG = LVF_NO_DIALOG
    IMPORTING
    FES_KNVA = LVS_KNVA
    EXCEPTIONS
    NO_UNLOADING_POINT = 1
    NO_SELECTION_DONE = 2
    OTHERS = 3.
    LVS_XVBPA-ABLAD = LVS_KNVA-ABLAD.
    Any help in this regard is highly appreciated.
    Sincere Regards,
    Sai.

    Have a look at below link which gives the details abt the user exits related to VA01/VA02.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Sales Order Line Items User Exit - Credit Management/ Exposure Calculation

    Hello Folks
    I am looking for a solution to a peculiar problem we have in credit management.
    In case of Drop Ship sales order life cycle, the system automatically creates two line items per sales order - one each for Freight and Handling Fees. these are NOT relevant to schedule line delivery, nor are they billed to the customer along with the material billing. The default update rule for credit control area concerned is 12. The system, on finding line items not relevant to schedule line delivery automatically switches from rule 12 to 18. This leads to Open Deliveries field (S067-OLIWW) being updated instead of Open Orders (S066-OEIKW) on saving the sales order.
    Once the sales order is billed for the material, the system should logically display net value as zero for the open order (as the 2 lines of fees and freight are not yet billed, the order is still open). But the system considers this figure at SALES DOCUMENT HEADER level and considers the net value as the total value of the sales document (including the material that is already billed).
    What I am looking for is if there is an exit available whereby the system considers only those line items whose billing status indicator is "not complete". As such, the net value should be updated to the S067-OLIKW field net of the billed items.
    Please advise if there is any such user exit available. Also, is there a way to customize this? We are exploring this at our end, but would appreciate an expert advise. Right advise will be awarded with brownie points
    Regards
    Mandar Barve

    VKM1 uses FM SD_ORDER_CREDIT_RELEASE to release orders on credit.

  • Payment program F110: User Exit/BAPI to block/unblock payments

    Hi!
    I need to block some documents when the payment occurs (F110)
    and in the end I need to unblock then. Seams to me than I have to modify the value of field BSEG-ZLSPR.
    The problem is that I try to find some User Exit ou BAPI by various ways
    but I find none.
    Can anyone help me?
    Thanks a lot.
    Rui

    Thanks Savitha.
    I will analyse your suggestion.
    What I need is:
    1-Enter t-code F110
    2-Fill the necessary fields and click in Proposal to execute the proposal.
    3-If everything id ok, the user clicks in Payments to execute the payment.
    This is the “normal” execution.
    What I need in the step 3 <b>in the beginning</b>, block some payments
    (based in some parameters) – this to prevent of executing the marked payments.
    And <b>in the end</b> unblock the blocked payments (return to original situation)
    Can you give me any more suggestion?
    Thanks!
    Rui

  • ME21N Update Text in Line Item User Exit

    Hi,  I have created a new PO text item for use in ME21N that I want to populate from document details held in the material master.  After entering a material number what user exit do I need to use to update internal tables for display of the document details before they are saved along with the other PO details.  I know the tables where the material document details are held.  Thanks.

    BADI ME_PROCESS_PO_CUST.
    Note that this BADI has a number of methods with parameters defined as "Importing" which makes it look like you cannot change data, but some of these parameters are "TYPE REF TO" objects which themselves have methods such as GET_DATA and SET_DATA that actually allow you to access and change the fields.
    Search for previous posts including "ME_PROCESS_PO_CUST" - there is sample code in some of them.
    In transaction SE19, if you display the BADI then select menu option goto>sample code>display, you will be able to drill down on the PROCESS_ITEM method to some SAP supplied sample code.
    This includes the definitions and method calls to get the item data:
    DATA: ls_mepoitem TYPE mepoitem.
    ls_mepoitem = im_item->get_data( ).
    You then just change relevant fields in structure ls_mepoitem and call the set_data method to pass the data back
    call method im_item->set_data exporting im_data = ls_mepoitem.
    Take care with what you change - SAP does not validate that you have passed back correct / consistant data.
    Not sure if the text field you want will be available - you may need to look at further methods of the BADI or of the parameter objects.  If you drill down on the objects that the method parameters are defined as TYPE REF TO you will see the methods that are available - the GET_DATA and SET_DATA ones I have mentioned above are only a small part of the options.  If there are none dealing with texts at the Header / Line, then you may need to put your code in at the latest method available (once the PO number is allocated) and call the SAVE_TEXT function module to do your update - not 100% way of doing it because standard code may save in update event and have rollback handling.
    To use the BADI you will need to create an implementation of it - there is a menu option in SE18 to do this, or you can use SE19.
    Andrew

  • FB60  Line item User exit/BADI/BTE

    Hi Guys,
       I need a user exit/ BADI/BTE to change the  Line item in FB60 transaction.  Please let me know ifyou know  any enhancment on this. Thanks
    Regards,
    Ganesh

    Hi Dude,
    Following are the list of BADIS  for FB60 tcode
    BADI_FDCB_SUBBAS01
    BADI_LAYER
    BADI_FDCB_SUBBAS02
    PPA_CUST_BADI
    BADI_FDCB_SUBBAS03
    WRF_PREPAY_INVOICE
    BADI_FDCB_SUBBAS04
    BADI_FDCB_SUBBAS05
    ADDR_LANGU_TO_VERS
    ADDR_PRINTFORM_SHORT
    BADI_MATN1
    For your requirement the releavant badi is PPA_CUST_BADI
    Thanks & Regards
    Ramakrishna Pathi

  • User exit to set  GR field in PO while creation

    Hi All,
    I have requirement where we have to tick check box for GR under delivery tab in line item details of Purchase order depending on some conditions.
    Say, if company code is 'X' and material group is 'Y' then only this check box should get ticked automatically before saving the PO.
    Can any buddy tell me which User Exit we can use to fulfill this requirement or how we can search for this user exit.
    Note: Problem is we want user exit which we tick this field before saving the PO.
    regards,
    Rahul

    Hi Rahul,
    I have the same requirement of yours in my project.
    could you please share me the solution, how you solved the same.
    You can update the forum
    Need to know the user exit to change unlimited check box in delivery tag
    Reward points assured.
    Thanks and Regards,
    Baburaj

  • Help on user exit (credit limit blocking)

    Hi,
    Currently, my user exit checks the order value in va01, va02 against the remaining credit and puts a credit block on the customer/order if the order value is higher than the credit limit.
    However, it should only take confirmed order values. For example, if the user entered 10 qty, but only 1 qty exists, then only 1 of the values should be considered when it against the credit limit.
    Please help.
    Thanks,
    John

    Hello John,
    Use MV45AFZF Include
    here look at documentation top of the form routine
    FORM USEREXIT_AVAIL_CHECK_CREDIT USING    US_VBAK STRUCTURE VBAK
                                              US_VBUK STRUCTURE VBUKVB
                                              US_VBAP STRUCTURE VBAPVB
                                              US_RELEASE
                                              US_RECHECK
                                     CHANGING CH_CHECK.
      DATA: CON_CHECK_STANDARD LIKE SY-SUBRC VALUE 4,
            CON_CHECK_NO       LIKE SY-SUBRC VALUE 8,
            CON_CHECK_YES      LIKE SY-SUBRC VALUE 0.
      CH_CHECK = CON_CHECK_STANDARD.
    CH_CHECK = CON_CHECK_NO.
    CH_CHECK = CON_CHECK_YES.
    ENDFORM.
    Thanks
    Seshu

  • User-exit to control minimum stock in PSA with LP12

    Hi,
    Anyone have an ideia about an User-exit in LP12 used to control minimum stock in production supply areas. Regardind the minimum stock defined in the WM2 view in the material master when we run transaction LP12 the program should take in account that minimum stock and provide the PSA with the right quantity.
    Any clue about this?
    Many thanks.

    Check the user exit USEREXIT_PRICING_CHECK  or USEREXIT_CHANGE_PRICING_RULE  in include MV61AFZA for your requirement.
    Regards,

  • User exit on Save of Stock Trasport Order

    hello
    I need a user exit in the creation of STO
    I want to change field ekpv-kzazu.
    I already tried with ZXM06U44 but the available
    structure xekpv does not update table ekpv.
    Thanks in advance.

    Hi,
    we just did this today and used the following user exit:
    LV50NFZZ
    But what we additionally are looking for is a possibility to open up this field in the PO-transaction ME22N, so that a user could change this field when necessary.
    We checked the customizing of the screen layout, but could not find any setting here to open up this field.
    Mabye you can help out here.
    Would be great to hear from someone soon!

Maybe you are looking for

  • Maping of an XML file to RFC

    Hi I have a scenario where the PI receives an XML response (the interface is of a predefined xsd type) from an HTTP destination; I need to pass the same  to the ABAP system using an RFC. Can I use any standard mapping function to map the XML file of

  • Does iCloud save my data more than once when i back it up?

    I only have about 75 contacts and 165 pictures, which is the only thing I have on iCloud and the only thing I want to have saved. My iCloud keeps telling me that my storage is full but theres barley anything in it? It's a 5GB but still it shouldn't b

  • Tax determination for sales order

    Hi, As far as my understanding Tax classification for customer or material is responsible for determining the tax in sales order. ______________ Alt.tax classific ___ Tax classific _______ Taxcode ____________ Condition value determined from Customer

  • Help implementing mouse multi record select deselect with shift/ctrl click

    Forms 10.1.2.3 on Solaris Sparc 64 bit We are trying to implement mouse multi record select/deselect using shift and ctrl click. I have read that you need the appcore library to do this but because we aren't using Oracle Applications (EBS) we can't h

  • Applets Connecting to DataBases

    I want to connect an applet to a database residing in my hard disk but I come up with the message "AccessDeniedException" what is the best way to overcome this? does it concern my browser IE or the jave I am writing.