User exit for update rule of info structure

Hi gurus,
Can anybody tell me how to implement a user exit of update rule for LIS info structure, for ex,S140.
Thanks
Eric xu

There is no user exit and we are not allowed to modify the update rules of the standard SAP info structures. However, you can create your own info structure with the same or similar configuration and then apply a formula or a requirement in the update definitions (MC25 transaction), as you please.
After that you can just turn off the update of S140 (in OMO1 transaction) and use your own info structure instead in MCSI transaction.

Similar Messages

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

  • BADI or User Exit for updating MSEG

    Hi,
       We are using ECC 6.0 and here is the scenario that we have to update custom fields into VBAP, LIPS and MSEG tables when these fields are entered on the sales order screen VA01,VA02.These field are added on this screen using Additional Data B screen.Also, These fields are there in VBAP and LIPS through Append Structure and MSEG through CI_COBL.Is there any BADI or USER EXIT for this.Thanks in Advance.
    Priya.

    Hi
    You can use exit ZXMBCU02 ( Function EXIT_SAPMM07M_001
    in SAP enhancement MBCF0002 ). Here also whtever changes you make to I_MSEG will be lost as MSEG is an importing parameter. You can do something like this.
    FIELD-SYMBOLS <F1> TYPE MSEG.
    DATA NAME(50) VALUE '(SAPMM07M)MSEG'.
    ASSIGN (NAME) TO <F1>.
    <F1>-KOSTL = 'XXXX'.
    ( In above example MSEG-KOSTL will be set as XXXX, you can change any of MSEG fields in above way. ).
    Cheers

  • Any user exit for updating VBRK-XBLNR when the billing is created?

    Hi all,
    I understand that in VTFL, there are 4 options for Reference number.
    But if i want it has a special value, how i can achieve it?
    Thanks,
    James

    Hi,
    See Note 301077 - User exits for the interface to accounting. I think that EXIT_SAPLV60B_001 is the right option.
    Regards
    Eduardo
    PD: althought perhaps USEREXIT_FILL_VBRK_VBRP in RV60AFZC fits better for your requirement.
    Edited by: E_Hinojosa on Jan 25, 2011 9:08 AM

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

  • RA Settlement User Exit for Posting rules

    Hi,
    For settlement of RA data the postings rules are defined in OK8G and the same are used while running settlement CJ88 or CJ8G.
    My question is do we have a user exit which kicks in at the time of settlement and could let us change the rules for a certain set of Projects?
    OR if we could have a substitution rule in place that could kick in at the time of settlement and would pick up the rule based on a critria?
    The reason for the above question is because we are trying to settle the Projects based on two selection critira:
    a) Based on RA key i.e. for RA key A use posting rule "123" and for projects with RA key B use posting rules "456".
    b) Based on the Work in Progress ( POCI and POCS) values we need to further decide if we need to change the posting rule or use exiting one.
    If RA key = A
      use rule "123"
          else if WIP position < 0
            use rule "123"
         else use rule "456"
    End

    Ankush,
    These are the routines for validation / substitutions where in you can write your own code. Check it in SE38.
    Regards
    Sreekanth

  • User Exit for Updating Plant

    Hi,
    I've got a requirement in user exit MV45AFZZ where i need to update field VBKD-KDGRP when a plant is changed in VA01 or in VA02.I wrote a logic for creating the VBKD-KDGRP getting this from Z table based on the plant entered......and automating the field VBKD-KDGRP in the item level of Sales order.....in USEREXIT_MOVE_FIELD_TO_VBKD
    Now my other requirement is like i need to update this VBKD-KDGRP when a plant is changed in VA02 without effecting the logic of automating the field VBKD-KDGRP while creation of sales order using VA01...Shall i need to change the logic in USEREXIT_MOVE_FIELD_TO_VBAP or in USEREXIT_FIELD_MODIFICATION.........and how....need you guys suggestions

    Thx for the quick response.......
    I did tried using sy-tcode = 'VA02' but my question is how should i track the value of the plant which i change............suppose while creation a sales order if the plant is already configured for that material it will display automatically right........and my code does gives me the correct customer group based on the automated plant and displays correctly in its concern field VBKD-KDGRP( which i did it absouletly right in userexit_move_field_to_vbkd)
    My worries are when i change the plant and press enter the value in VBKD-KDGRP should also be changed......this is not happing and for this to happen how should i trap the value which i've changed.....This is in case of 'VA01' while creating sales order and while chaning tooo in "VA02"....

  • User exit for updating date field in msc2n while doing a goods rcpt in cor6

    is ther anyexit to update the Date1 field(MCHA-FVDT1) in MSC2n( Batch) while doing a Good receipt for an order
    Thanks in advance

    Hi,
    to find the user exits & Badi's for the T-code..
    go to table TSTC>enter T-code and execute> get the Program for the t-code..
    and go to-se38-->get the package attached to the t-code..
    next go to t-code Se15>expand the enhacement tab>enter package under userexit and
                                                         execute you will get the list of exits
                                                         available...
                                                      -->enter package under Badi's tab and
                                                         execute you will get the list of Badi's
                                                         available... 
    All the User exits are stored in Table MODSAP..
    Prabhudas

  • USER EXIT FOR CHANGING POSTING DATE IN THE MATERIAL DOCUMENT

    Hi,
    Pls advise any USER EXIT FOR CHANGING POSTING DATE IN THE MATERIAL DOCUMENT.
    Regards,

    Hi,
    There is another user exit for updating material document data Upon posting  is MB_CF001
    I hope this will fullfill you.
    Prem

  • User exits to update a Zfield in AUFK table for T-code KO01(Order Creation)

    Hi all,
    I have a custom field(zZTEST) in aufk and coas struture(zztest) in order to display in the output generated by kok5 for order.
    The reason for adding in coas struture is the ALV output in kok5 uses coas structure
    I know aufk table gets an entry while creating an order in ko01.
    When i save the order (i.e when i succesfully create an order) i have to pass a value to aufk-zztest so that the custom field in aufk for that internal order created has an value.
    I was looking at the user exits available for ko01
    i found 5 user exits for ko01
    Exit Name---Description
    COOPA002---Customer function for master data maint. - internal
    COOPA003---User-Defined Fields in the Order Master
    COOPA004---Customer function: Print order master data
    COOPA_01---Customer check modules for internal orders
    KKAZ0001---Customer check modules for internal orders
    I have written the code break-point in all the includes associated with this USER EXITS.
    Out of this only only 2 includes gets triggered when i click General data and investments tab .
    I have the code in both of them and the aufk tables gets updated when i save an internal order and i can see the value in kok5 output as well.
    To be frank this is what i want.
    But my only worry is that when we create a new internal orders we don't have any data to be filled i.e mandatory fields in General data and INvestments tab.
    i.e. user can create an internal order without even going to these tabs(General data and INvestments tab) in that case the custom field doesn't get updated and as a result of that i don't see that value in KOK5 ALV output.
    Let me know what can be done or is there any other way that this can be achieved or the way i approached is right or wrong or am i am missing any user exits and the system is at 4.6c.
    Thanks
    Venkat

    Hi,
    Any suggestions on this post
    Thanks

  • User exit to update extended segment in idoc for va01

    Hi Experts,
    I am working on Outbound IDOC interface for VA02 and VA01
    I am using ORDERS05 IDOC type
    i want to create one custom segment
    and i want to fill that custom segment
    but i am not able to find user exit to update this custom segment
    please help.

    Akshay,
    I think you want to send order response for the orders created via Va01 or edited by Va02
    To do this steps are:-
    1) Use FM IDOC_OUTPUT_ORDRSP to send order response (ORDERS05)
    2) Find the function exits in this Fm using search string as " Call Customer-function".
    3) Use include in the exits to write code to append new segments to the IDOC. Look for the Tables parameter in the Exits which are of structure type EDIDD. Insert new Segment details in this table and your IDOC will be generated with required values.
    Hope this helps!!
    Harry

  • VA02 user exit - cannot update append structure field in XVBAP/VBAP

    Hi Guys,
    I am currently using one of the many user exits in updating XVBAP to update the VBAP sap table in VA02.
    However I am encountering a problem when updating a customized append structure field. When I change the value of the append structure field only it doesnt update in VBAP upon save event. Only when I also change a sap standard field (ARKTX) the append structure gets updated.
    Is there a way to resolve this wherein even if I just XVBAP-<append structure field> only ... the corresponding field in VBAP gets updated?
    THanks guys and hope to hear from you soon.

    Hi,
    Which userexit subroutine are you using to move the append structure field values to the XVBAP table?  Are you having the user enter values on a screen during VA02 for the append structure fields, or are you setting those values within the code when the user saves?  For the purposes of this response, I will assume you are not having the user enter the values, and that (from what you have described) you are using subroutine userexit_move_field_to_vbap. 
    While userexit_move_field_to_vbap sounds logical at first, you should be aware that this subroutine (which is called at the end of module vbap_fuellen) may only be called when one of the chain fields (in the flow logic of the VA02 screen) is changed.  If you search for all the calls of module vbap_fuellen in screens of SAPMV45A, you will see that most of them have a list of chain fields with "on chain-request" logic.  Since your append structure fields will not be listed in the flow logic of the standard VA02 screen, changing one of the append structure fields alone would not trigger the PAI module vbap_fuellen.  Of course, changing a standard VBAP field (ARKTX was your example) could trigger the vbap_fuellen module (as long as it was one of the chain fields) which would consequently trigger the userexit_move_field_to_vbap subroutine.
    You may want to consider trying USEREXIT_SAVE_DOCUMENT_PREPARE.  Please explain further if I have misunderstood your question. 
    Anyone else out there have any ideas?  Does my analysis make any sense?
    Best Regards,
    Jamie

  • USER-EXIT for Appended Structure

    i understand that the appneded fields in the extract structure will not be updated with data unless there is some programming involved with the user exits for the datasource. i appended the sales order schedule line datasource and i am wondering what USER-EXIT needs to be programmed for the appended field to be filled with data ......can some one help please  ???

    Hi Rahul
    You can do that in CMOD, by creating a project and using the enhancement: RSAP0001.
    SAP provides enhancement RSAP0001 that can be used to populate the extract structure.
    This enhancement has four components that are specific to each of the four types of R/3 DataSources:
    Transaction data - EXIT_SAPLRSAP_001
    Master data attributes - EXIT_SAPLRSAP_002
    Master data texts - EXIT_SAPLRSAP_003
    Master data hierarchies - EXIT_SAPLRSAP_004
    Go to enhancement of transaction datasources in CMOD.
    Add a case statement with datasource check and go for the below code.
    This user exit is called for every datasource so be sure to put a CASE statement on the datasource.
    CASE i_datasource:
    WHEN '2lis_11_vascl'.
    loop at c_t_data into <datasource structure>
    modify c_t_data from <datasource structure>
    endloop.
    endcase.

  • BADI/User Exit for custom table update from Delivery

    Hi
    Our requirement is to update a custom table with the delivery number and other related details when the picking status is changed to "C". Kindly suggest BADI/User exit for this requirement .
    Thanks in Advance for your immediate help .

    Hi Joseph,
    See SAP Note 415716 - User exits in delivery processing. It says when you have the document number available, what is permitted, what not, ....
    I hope this helps you
    Regards
    Eduardo

  • User Exits for Document Info Record : CV01N in DMS

    Hi Experts
    My scenario is: We have Configured DMS in which new document type created Z01 is for MS word documents. I have assigned default Work Station Application : DOC to Z01 document type.
    But my problem is : while creating Info record : CV01n with Z01 document type during file creation system is showing default Application : DOC, But in help user can select either XL, or PPT instead of DOC.
    My requirement is : I need to restrict : other work station applications to the particular document type, i.e. for Z01 document type - allowed work Station Application is : DOC. System doesnot allow user to select other application instead of DOC.
    Where Can I Restrict ??  Is there any User Exits available to controle this function
    Please help
    Satish Babu

    Hi,
    Try these exits.
    CV000001            Check-in enhancement for document management
    CV110001            DMS: Enhancements for DMS Dialog (FB: CV110)
    CVDS0001            User exits for ALE DMS (DOCMAS)
    Hope this helps u.
    Thanks.

Maybe you are looking for