2LIS_02_ITM - Adding fields to communication structure - User exit

Hello,
I have read the weblog of Roberto Negro concerning the possibility of adding fields to the communication structure of an extractor.
In his article he talks about MCVBAK and so on and refers to enhancements MC10001, MC50001, MC60001.
I am trying to do the same with 2LIS_02_ITM.
The communication structures are MCEKKO and MCKPO.
Can someone explain how to proceed in order to locate the approporiate user exit ?
Claudio Ciardelli

Amit
How to Add payroll period fields(FAPER & IPERIN) to the structure HRMS_BIW_PY1.
These fields are coming from RT_person cluster table.
That will be great help..

Similar Messages

  • Sample code for a custom field added to LIS Communication structure for Del

    We appended a new custome field into extraction structure of the LO Cookpit datasource 2LIS_02_ITM through RSA6.  And then run CMOD to write the exit code to populate the value and it works fine.  But after we read Roberto's Weblog:
    /people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
    Find the enhancement we did can't make the Delta mechanism works if only this new field gets changed in a record, and the change cannot be reflected on BW.  I know we can run SMOD on the enhancement LEINS001 to write the code for LIS Communication structure customer exit.  But we have never writen such a code for LIS Communication Structure enhancement and also don't know on how to make the Delta mechanism works in the code.  We would be very appreciated if some expert here can provide the sample code!
    Thanks

    hi AHP,
    Have you tried Sanyam's code listed in this article you recommended?
    Now our R3 team has added a custom field called ZZZ to EKKO table and I modify the code to suit our need and the code would be as following:
    *& Include ZXM06U16 *
    DATA: i_t_ekko LIKE ekko OCCURS 1 WITH HEADER LINE.
    DATA: ebeln LIKE ekpo-ebeln,
    it_ekko TYPE TABLE OF ekko WITH HEADER LINE,
    old_val(50) TYPE c. "For storing the value from the Field Symbol
    FIELD-SYMBOLS <fs> TYPE ANY TABLE.
    CASE zeitp.
    WHEN 'MA'. "When creating a purchase order
    MOVE '(SAPLEINS)T_EKKO[]' TO old_val.
    ASSIGN (old_val) TO <fs>.
    i_t_ekko[] = <fs>.
    LOOP AT xmcekko.
    ebeln = xmcekko-ebeln.
    IF xmcekko-supkz = '1'. "Old Value ?
    SELECT SINGLE * FROM ekko INTO it_ekko WHERE ebeln = ebeln.
    xmcekko-ZZZ = it_ekko-ZZZ.
    ELSE. "New Value ?
    READ TABLE i_t_ekko WITH KEY ebeln = ebeln.
    xmcekko-ZZZ = i_t_ekko-ZZZ.
    ENDIF.
    MODIFY xmcekko.
    ENDLOOP.
    EndCase.
    The compile of the above code works fine and we activated everywhere including project level. Then we set debug points in this code, and run RSA3 on 2LIS_02_ITM, but find the extraction program never reaches this code or call this user exit function EXIT_SAPLEINS_001 of this enhancement LEINS001. Any reason?
    Thanks
    Kevin
    Message was edited by: Kevin Smith

  • Is it possible to get the fields in to our user exit .....?

    Hi All,
        In the user exit some structures are passed as import parameters in the function module. but we want other than those structure fields in to our user exit. that means those fields are dynamically populated in to the transaction.based on those fields we have to trigger one dialog window. so how to get those fields in to our user exit.
    -Prasanth.M
    Ex: Transaction: IW31/IW32
        Enhancement Name: IWO10009
        Structure Name: CAUFVD.
    But i want these fields ACPOS,WRTTP,BELTP,WRT00 to WRT16. these fields are in PMCO table.but i want these fields before updating the PMCO table,not from the PMCO table. based on these fields we have to trigger user exit.
    Message was edited by:
            prasanth Kumar

    Hi,
    here i am giving my requirement.
    Please look in to this and let me know how to solve the problem.
    1.     Check ordertype
          a.     If ordertype = REP1 set planned cost limit field to 450
          b.     If ordertype = MUT1 set planned cost limit field to 5000
    2.     Check the planned costs for value category KostenTalis
           Check table PMCO for the order
              i.     PMCO-ACPOS = KostenTalis
             ii.     PMCO-WRTTP = 1
             iii.     PMCO-BELTP = 1
             iv.     PMCO-VORGA = KPPP
              v.     PMCO-WERT00 -> PMCO-WERT16, check if one of the fields  WRT00 till WRT16 is filled with a value
         a.     No, exit
         b.     Yes, go to 3
    3.     Are the total costs for Talis > planned cost limit field euro?
         a.     No, do nothing and end this user-exit
         b.     Yes, show the pop-up and place the total planned costs in the variable <costs>
    and already i had given tr and user exit.i think its sufficient to solve the issue.
    still u have any more doubts kindly let me know.
    -Prasanth.M

  • How to fill a new field in communication structure KOMPAZD

    Hi,
    I have added a new field ZKNRZE to structure KOMPAZD. It should be filled with the partner payer (KOMK-KNRZE) How can I fill this field? Which user-exit do I have to use?
    Thanks and regards.

    Hi Carmen Alvarez,
          You should use the USEREXIT_PRICING_PREPARE_TKOMP (module pool SAPLV60A, program RV60AFZZ) to move the value.
    Thanks,
    Mariano.

  • 2LIS_02_ITM - Adding field problem

    While adding field KTWRT from LBWE to 2LIS_02_ITM ,I get the error as below.
    Entries for application 02 still exist in the extraction queue ->
    Message no. MCEX151
    Diagnosis
    Changing extraction structure MC02M_0ITM for application 02 is forbidden, because there are entries that have not yet been processed into an extraction queue for application 02 for at least one client.
    If an extraction structure is changed to the entries that are still open in an extraction queue, then these are no longer able to be read and can cause terminations with the collective update.
    Procedure
    Start the collective update using the function "Job Control" in the Logistics Extraction Structures Customizing Cockpit.
    To get an overview of the logistics extraction queues, see the Logistics Queue Overview.
    Sounds stupid ,however activities i carried out as listed below to ensure all the steps i covered.
    PS -
    <b>All the contents from LBWQ,SM13,RSA7,Setup table in all the clients available in  R/3 system has been deleted.
    Deactivated the update.
    </b>
    Any help appreciated
    Thanks
    Chetan
    @CP..

    Hi,
    I am getting the same error.
    There are no entries in LBWQ for the MCEX11 and
    also no entries in SMQ1 for application 11.
    I also ran the collective update using job control with immediate option. There were zero LUW's  that were processed.
    But, still the error is returned,
    Entries for application 11 still exist in the extraction queue ->
    Message no. MCEX151
    Diagnosis
    Changing extraction structure MC11VA0SCL for application 11 is forbidden, because there are entries that have not yet been processed into an extraction queue for application 11 for at least one client.
    If an extraction structure is changed to the entries that are still open in an extraction queue, then these are no longer able to be read and can cause terminations with the collective update.
    Procedure
    Start the collective update using the function "Job Control" in the Logistics Extraction Structures Customizing Cockpit.
    To get an overview of the logistics extraction queues, see the Logistics Queue Overview.
    Chetan, Can you please let me know,
    how you were able to resolve?
    Thanks,
    Raj

  • Using Field-Symbols in a user exit to change the importing parameter

    Please don't ask why but I need to use a user exit, changing the importing parameter.  I decided that I could do this using field-symbols.
    Please excuse my ignorance but I have never used field symbols for something such as this.
    Here is my goal:  Loop through an internal table (im_document-item).  When I find what I need I want to make a change to this line (not so hard if I am looping into a field symbol) and also append a line to the end of the table im_document-item.
    I have the following so far:
      DATA: wa_item TYPE accit,
            wa_item_out type ACCIT_SUB.
    FIELD-SYMBOLS: <document> type acc_document,
                   <accit> TYPE ACCIT.
    LOOP AT im_document-item ASSIGNING <accit> where saknr = '0000211000'.
    * Modify the curent line
    wa_item = <accit>
    * Append a new line into table im_document-item.
    ENDLOOP.
    How can I use field-symbols to append a line to this table?  Please note that the table in question (im_document-item) is an importing only parameter.
    Regards,
    Davis

    that will allow me to append an initial line with <accit> pointing to the line. Therefore I just have to modify <accit> and the new line will then have my changes?
    Yep, that is exactly it.    So after the APPEND statement, simply fill the fields of the <accit>.
    append initial line to im_document-item ASSIGNING <accit>.
    <accit>-field1 = 'Blah'.
    <accit>-field2 = 'Blah'.
    Regards,
    Rich Heilman

  • Adding field to repository structure leads to syntax error in webservice

    Hello there,
    I have added a field to a structure that is used as a parameter type in a customer function module which is part of a function group which is the endpoint of an enterprise service.
    I would have expected the webservice where this structure is used to have been updated automatically. But no: When I check the service definition, I get an error message that the type is missing the new field. And sure enough, in the types tab of the service definition (in se80) the new field has not been added to the type (listed under "original types"! - which is kind of misleading, as obviously it is not identical to the repository type any longer).
    I'm at a loss here - how can I update the service definition and publish a corrected wsdl file, which includes the added field in the type description? I have looked many places in se80 and soamanager and sproxy, but to no avail. Must I delete and re-create the entire enterprise service?
    This is in SAP Netweaver 7.01 and no XI.
    -- Sebastian
    Edited by: Sebastian Millies on Jul 8, 2010 11:36 AM
    unmarked as a question, because answered in  [this thread|The specified item was not found.;. Sorry I saw this too late. Anyway, when using the "check" button, a dialog pops up asking whether the service should be updated. (This seemed not to happen when I was using the "check" context menu entry, by the way, but I cannot now exactly reproduce the condition).

    Hi,
    MAke sure there are no entries for application 03 in LBWQ, if you are using Queue delta update mode.
    Make sure there are no entries for application 03 in Sm13, if you are using V3 unserialzied update mode.
    You can do this by running collective run for applicaiton 03 in LBWE.
    And also make sure there are no entries in RSA7 for DS 2LIS_03_BF.
    Regards,
    Anil Kumar Sharma .P

  • Adding fields from KOMK structure to screen painter.

    Hello Everyone,
    i have created an Extra tab(like ADDITIONAL DATA B) using BADI, i have added fields from VBAP table, its working fine. But when i add fields from KOMK structure(KOMK-STCEG) only empty field is showing. Do i need to code something in PBO or PAI?
    Thanks & Regards,
    NarsiReddy Cheruku.

    Hello NarsiReddy,
    I assume that you have linked the field KOMK-STCEG using "Get from Dictionary" option from your above screenshot.
    In PBO section, make sure to write the logic to update the value in the field. The logic which you would build, would be based on your requirement. For instance, you can use BELNR to check and its corresponding STCEG could be found in the structure KOMK.
    But if the KOMK structure itself is not filled with any value, then there is some problem with your code. Try to check your BADI and its corresponding structures which would get updated at runtime and use them appropriately.
    Thank you.
    Regards,
    Naresh

  • Adding Custom Fields to Communication Structure of 2LIS_02_ITM (MCEKPO)

    Hi
    I have a question about addiing additional fields (KO_PPRCTR) into MCEKPO and enabling it as part of 'true' DELTA.
    The question is then:
    Does the fact that we have this Custom field from EKPO added to MCEKPO would cause DELTA to be triggered automatically each time this field would change? (irrespective of whether a Standard field in MCEKPO has also changed or not).
    Thanks
    BC

    Hi Blues,
    According to the sap online document about data source 2LIS_02_ITM http://help.sap.com/saphelp_sm32/helpdata/en/58/f6383fdb800804e10000000a114084/frameset.htm
    "if you change a purchasing document, the system only takes into consideration the data that is relevant for extraction. The system therefore only executes a delta update for this DataSource if changes are made to purchasing document header data or item data that has a corresponding field in the DataSource."
    which means only changes to standard fields of the datasource will trigger a delta update.
    But who knows, Stefan's answer may be right. Practice is the sole criterion for testing truth, so why not have a test?
    Additionally, you could also check the famous blog article about this topic by Roberto Negro:
    /people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
    Hope it helps.
    Regards,
    Qing

  • How to define a global field for use in User exit

    Hi All,
    I want to define a global flag field (say my_flag) in Function group VEDA. I need to set/reset it in exit EXIT_SAPLVEDA_003 and check its value in EXIT_SAPLVEDA_002.
    Can anyone help me out in this. Where can I define this field?
    Thanks.
    Regards,
    Riyaz

    I have created a customer table zflag1 which has one field z_flag and the correspopndiong data el;ement is 'zflag' and i also ccreated parameter ID in table TPARA and assigned tht parameter ID 'ZFLAG' to my data element.
    reward points if helps..
    in the Z include of Exit function 3 write -
    data :g_global like zflag1-z_flag.
    G_GLOBAL = 'X'.
    set parameter id 'ZFLAG' field g_global.
    and in the Z include of exit function 2 write  -
    DATA G_GLOBAL LIKE ZFLAG1-Z_FLAG.
    GET PARAMETER ID 'ZFLAG' FIELD G_GLOBAL.

  • Can CMOD change date related field description? Need user exit?

    Hi friends,
    customer use quotation and quotation date fields for other purposes thus need to change field description to make it more sense. I followed below link and changed qutotation..but same solution didn't apply to quotation date (data element IHRAN)
    Please kindly advise.
    [http://www.renet-web.net/2005/09/01/changing-standard-sap-field-descriptions]
    Thanks,
    Linda
    Edited by: Linda Gao on Aug 25, 2011 4:27 PM

    Use Quotation date in PO header as an example.
    Prerequisite: You might need a access key to access below steps.
    ME21Nu2014cursor at field quotation date (PO header) top task bar systemSatatus, Note down program name(SAPLMEGUI) ,screen number (1229) and field name (IHRAN) go to SE51, input program name and screen number choose radio button u201Celement listu201D press change go to subtab u201CText/ I/O templatesu201Dchange text part in column u201CText or I/O field u201C for component name MEPO1229-IHRAN(note IHRAN is field name you took down earlier on)save and activate the changes.

  • CAT2 user exit

    Hi,
    I need to add fields (lastname, firstname) in the CAT2 time sheet. I have already added fields in CATSDB using user exit '0005'. The fields are comming to the fields. Now I need to get the values of the corresponding records in the time sheet. I tried to use user exit '0002', but it did not work.
    Could you please give me suggestion in this regard.
    Lokman

    HI
    GOOD
    HEREWITH SOME USEREXITS OF CAT2, TRY THEM WITH YOUR REQUIREMENT.
    CATS0001     CATS: Set up worklist
    CATS0002     CATS: Supplement recorded data
    CATS0003     CATS: Validate recorded data
    CATS0004     CATS: Deactivate functions in the user interface
    CATS0005     CATS: Customer field enhancements
    CATS0006     CATS: Validate entire time sheet
    CATS0007     CATS: Subscreen on initial screen
    CATS0008     CATS: Determine workflow recipients for approval
    CATS0009     CATS: Customer-Specific Text Fields in Data Entry Section
    CATS0010     CATS: Customer-Specific Text Fields in Worklist
    CATS0011     CATS: Customer functions
    CATS0012     CATS: Subscreen on data entry screen
    THANKS
    MRUTYUN

  • User exit or FM or BAPI to update bseg-augbl field

    hello,
    i'm looking for a solution to update bseg-augbl field.
    is there a user exit or fm to do it ?
    please help.

    hi,
    i think, there's no fm or bapi -
    so try batchinput for transaction FB09.
    P.S.
    why do you want to change this field ? I think it's -<b>without exception</b>- a field that should be changed only by SAP-standard programs ?????
    A.

  • BAPI_ACC_DOCUMENT_POST - User Exit is not working

    Hi all,
    I need to perform a posting and pass in some field into the extension table. I have follow the sap note recomendation and created a project in CMOD using ACBAPI01 as the component. I then added the coded into the user exit. When I tried to debug it doesn't not execute the code inside the user exit. Also BAPI_ACC_DOCUMENT_POST was executed w/o any error. However when I check the system, there's no document posted.
    Also please correct me if I'm wrong. I'm not so sure what to populate for the following field in the header. Is the following correct?
      gt_docheader-obj_type   = 'IDOC'.
      gt_docheader-obj_key    = '$'.
      gt_docheader-obj_sys    = 'BGS1'.
      gt_docheader-bus_act    = 'RFBU'.
    Thanks in advance
    Ricky

    Hi Ricky and Igor,
    Rick is right: You can use userexit wherever they are provided. Many BAPIs as i.e.
    [code]BAPI_ACC_DOCUMENT_POST        
    BAPI_ACC_DOCUMENT_CHECK
    BAPI_ACC_GL_POSTING_POST      
    BAPI_ACC_GL_POSTING_CHECK
    BAPI_ACC_BILLING_POST         
    BAPI_ACC_BILLING_CHECK
    BAPI_ACC_INVOICE_RECEIPT_POST
    BAPI_ACC_INVOICE_RECEIPT_CHECK
    BAPI_ACC_GOODS_MOVEMENT_POST  
    BAPI_ACC_GOODS_MOVEMENT_CHECK
    [/code]
    are implemented including userexit (to be seen as CALL CUSTOMER-FUNCTION in coding). Only the most impotant and regularily used fields are part of the BAPI interface. If the customer makes an append to any table or structure, the handling of the additional fields does not always happen automatically in the BAPI.
    We created a User exit for BAPI BAPI_ACC_GL_POSTING_POST because the customer made extensions to the posting block.
    The additional parameter values are passed in the BAPI extension table which is a genereric character table. In include ZXACCU15 we do the transfer of values passed via extension table to table t_accit which is part of the interface of the ueserexit.
    If then BAPI is executed but it does not trigger the userexit, then you can put a breakpoint at the statement before CALL CUSTOMER-FUNCTION and see if you get there. If CALL CUSTOMER-FUNCTION is not executed, then try do de-activate the CMOD project and activate it again. This usually helps.
    For the document header I can provide you just anaother example which works for us:
    [code]  ls_documentheader-obj_type              = 'BKPFF'.
      ls_documentheader-obj_sys               = lv_logsys.
      ls_documentheader-obj_key               = '$'.
      ls_documentheader-username              = sy-uname.
      ls_documentheader-header_txt            = 'Investment Notes reconciliation'(026).
      ls_documentheader-comp_code             = ps_alv_display-bukrs.
      ls_documentheader-doc_date              = p_bldat.
      ls_documentheader-fisc_year             = p_gjahr.
      ls_documentheader-pstng_date            = p_budat.
      ls_documentheader-fis_period            = p_bper .
      ls_documentheader-doc_type              = p_blart.
    [/code]
    Hope this helps.
    Regards,
    Clemens

  • User exit: save PM order

    Dear all,
    I'm looking for an user exit that will be actived during order save. However, it seems most exits just for check, I can not change any data.
    The requirement is: if user save certain order, then field function area 'CAUFVD-FUNC_AREA' is filled automatically. This fiels in the order header.
    Thanks,
    Ben

    Hi,
    Orders     
    User Exits     BBPK0001
    Description     Exit for determining the external procurement profile
    User Exits     CNEX0013
    Description     Default item category for component assignment
    User Exits     CNEX0026
    Description     Customer enhancement for general inspection of material
    User Exits     CNEX0027
    Description     Customer enhancement: Plant, storage loc. finding for comp.
    User Exits     CNEX0037
    Description     Check new component
    User Exits     COCCA002
    Description     Customer Functions for Organizational Authorization Checks (SETTLEMENT)
    User Exits     COI20001
    Description     Changing of person found
    User Exits     COI20002
    Description     Alternative procurement of HR availability data
    User Exits     COOM0001
    Description     Customer Functions for Overhead Percentages
    User Exits     COOPA_01
    Description     Customer check modules for internal orders
    User Exits     COOPA002
    Description     Customer function for master data maintenance - internal orders
    User Exits     COOPA003
    Description     User-Defined Fields in the Order Master
    User Exits     COOPA004
    Description     Customer function: Print order master data
    User Exits     COPCP005 (see: 1, )
    Description     Material Costing: User exit for material valuation (strategy U)
    User Exits     CY190001
    Description     Capacity Planning: Change order operation
    User Exits     COZF0001
    Description     Change purchase req. for externally processed operation
    User Exits     COZF0002
    Description     Change purchase req. for externally procured component
    User Exits     CYPP0001
    Description     Change sequence criteria and sequencing
    User Exits     ICSV0001
    Description     Display of geographic location data
    User Exits     ICSV0002
    Description     Automatic task determination for service notifications
    User Exits     ICSV0003
    Description     Partner selection
    User Exits     ICSV0004
    Description     Check PM object and display object information
    User Exits     ICSV0005
    Description     Determining reason for rejection - resource-related billing
    User Exits     ICSV0008
    Description     Validation of additional partner types
    User Exits     IWMI0001
    Description     User exits for SM/PM IDOCs
    User Exits     IWO10001
    Description     Create a PM sub-order
    User Exits     IWO10002
    Description     Customer check for order release
    User Exits     IWO10004
    Description     Customer check for order completion
    User Exits     IWO10005
    Description     Customer specific determination of profit centre
    User Exits     IWO10006
    Description     FCode exclusion through customer enhancement
    User Exits     IWO10007
    Description     Customer enhancement - permits in the order
    User Exits     IWO10008
    Description     Customer enhancement: Determination of tax jurisdiction code
    User Exits     IWO10009
    Description     Customer Check for 'Save' Event
    User Exits     IWO10010
    Description     Customer enhancement for determining WBS element
    User Exits     IWO10011
    Description     Customer enhancement for component selection
    User Exits     IWO10012
    Description     Priority handling on central header
    User Exits     IWO10015
    Description     F4 Help for user fields on operation
    User Exits     IWO10016
    Description     Customer enhancement to check operation user fields
    User Exits     IWO10017
    Description     Determine external order number by customer logic
    User Exits     IWO10018
    Description     User fields on order header
    User Exits     IWO10020
    Description     Automatically include task list
    User Exits     IWO10021
    Description     Automatic task list transfer when creating order from notification
    User Exits     IWO10022
    Description     Determine calendar from user exit
    User Exits     IWO10023
    Description     Service order: Change header data for advance shipment document
    User Exits     IWO10024
    Description     Service order: Changes to items for advance shipment
    User Exits     IWO10025
    Description     Finding responsible cost centre
    User Exits     IWO10026
    Description     User check on setting status 'Do not perform'
    User Exits     IWO10027
    Description     User exit: Generate user-defined settlement rule
    User Exits     IWO10029
    Description     Inclusion of bill of material in PM/SM order
    User Exits     IWO10030
    Description     Predefining the fields for the profitability segment
    User Exits     IWO10031
    Description     Hide personnel number in PM/SM order
    User Exits     IWO10033
    Description     Customer-Specific Authorization Check PM/CS Order
    User Exits     IWO10034
    Description     Operation status based on the status of capacity requirements
    User Exits     IWO20001
    Description     User exit to pass routing/task list to order
    User Exits     IWOC0003
    Description     PM/SM authorization check of ref. object and planner group
    User Exits     M06B0002
    Description     Change communication structure for purchase requisition release
    User Exits     MGA00003
    Description     Material Master (Industry and Retail): Number Display
    User Exits     PPCO0001
    Description     Application development: PP orders
    User Exits     PPCO0005
    Description     Storage location/backflushing when order is created
    User Exits     PPCO0023
    Description     Checks changes to components
    regards,
    Venkatesan Anandan

Maybe you are looking for

  • SharePoint 2013 Workflow Calendar Entry Create Time AM PM Conflict

    Windows 2012, SharePoint 2013 Enterprise. I have a change control form that basically creates a calendar entry once it's been approved. Works well, but discovered a bug with the calendar create portion when there are events that have the same time in

  • Help! File disappeared!

    Hello, I'm fairly new to Illustrator and I'm hoping someone can help me. I was working on a project yesterday and saved it both in its original ai format and in gif format. You know when you first open Illustrator and it lists recently opened files?

  • 20" Intel iMac 2.66GHz & Blu-Ray Clarification

    Can someone give me the short answer on this? To what level, if any, does my 2.66 GHz 20" intel iMac support Blu-Ray DVDs? Thanks. P.S. - Yes, I searched, but the few topics I discovered were sparse in their answers and none that I found gave a simpl

  • RMMMPERI: period opening

    Does RMMMPERI keep a log? I need to know when (date, time and user) was a period opened. I always give reward points for correct answers F

  • BRM integration with AIA

    Hi, I have not found documentation for BRM 7.4 integration with AIA 3.1 . Could you please share if you have any? Or steps to be performed in this purpose Thanks a lot, Adrian