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

Similar Messages

  • How to change the Tab name for a custom field added in IC Winclient

    I have successfully added a field using eewb and it is appearing on my transaction in CIC0 but it is on a tab that says Customer Fields.  In EEWB a BADI called ZEEW_CUSTOMER_H01 was generated and it has a methods called  CRM_CUSTOMER_H_SET_TITLE.  It indicates you should be able to use this to rename the tab but the method is empty.  Anyone have an example of the code you pass in to rename the tab screen.  Thanks, Lisa

    >>and how will it effect in the report?
    You wouldn't see any direct effect on the Report.. But if you transport the report to QA & leave the Message class in Dev, it might result in syntax issues & you will not be able to execute the report. Just ensure that both of them get transported to QA & you will be fine.
    ~Suresh

  • New Custom Field in Delivery output Communication Structure

    Hello friends,
    I need your help to Solve my below problem
    We want the delivery output to be triggered based on the shipping point and storage location.
    Storage location is at item level and is not in LIKP and hence not in KOMKBV2 (Output Comm Structure for Deliveries)
    I have created a new Field ZZLGORT in the Header Strucutre and has performed thefolloiwng steps
    1. Include field ZZLGORT  in communication structure KOMKBV2. This is an Include that is provided for additional fields.
    Add the field with the name ZZLGORT in Include KOMKBZ4.
    2. In structure KOMB in Include KOMBZ, have added the same field
    (same procedure as for item 1).
    3. In view V_T681F, I created the same field with transaction SM31  under key B V2.
    4. Program LVCOMU04 contains Perform USEREXIT_KOMKBV2_FILL. This Perform
    is in program RVCOMFZZ.
    Modiied the source code as follows:
    FORM_USEREXIT_KOMKBV2_FILL.
    COM_KBV2-ZZLGORT = item Storage location.
    When i am in Debugging mode till the last minute the structure COM_KBV2-ZZLGORT is having the storage location value.
    so there is no problem in the userexit logic.
    5) I have created a new cond table , and assigned the table access sequence and assigned he access seq to the Delivery output type
    When i created the Delivery , the output analysis screen shows that the field ZZLGORT is blank ( With exclamation Mark) and it says Access Not made (initialized Field )
    can any one of you tell me what is the step i am missing out to make sure that the analysis screen has the storage location.
    and also the system reading the condition record and issuing the output.
    i have checked whether the output is issued by some other condition or not. no there is only condition record and its triggering that condition record but the analysis shows "Output Not found"
    Can any one of you help me here please. Your immediate inputs will be of great help to me
    Thanks & Regards
    Srini

    Hi Srini,
    As per note 32662 it seems you have followed all the steps, but might be that you didn't do in proper sequence.
    The note states that:
    "If a new access sequence and condition table was created before the communication structure was modified, it must be deleted again. Items 1 to 5 must be carried out in the specified sequence."
    So I guess the key for you would be to delete the Condition table and access and create them again.
    Regards,
    Ganesh

  • "Field ID of Standard Location Structure for Development empty" error?

    Hi there
    I am implementing the land use management enhancement. It allows me to define an object called a "Public Register" which represents a "set" of land objecs (land parcels, rental units, etc) under special circumstances such as hazardous areas.
    Unfortunately it returns two errors on validation/save:
    Field ID of Standard Location Structure for Development empty
    Field ID of Standard Location Structure for Easement Reg empty
    It has no description or reference to any documentation.
    What could this error mean?
    Regards
    Joe

    Hi Joe,
    could you please tell me the ID and number of the error messages.
    Thanks.
    Regards, Franz

  • How to handle Custom field added in BP : Role Bill Account

    Hi Friends,
    I am working on an interface which creates Bill Account role for a BP but the problem is there are about 15 Custom fields added to standard BP transaction in BA role.
    As I am using BAPI_BUPA_FS_CREATE_FROM_DATA2 for creating the BP and
    BAPI_BUPA_CENTRAL_CHANGE for changing the BP role Bill Account?
    Can anyone tell me how to handle those custom fields in the existing BAPIs or there is some other way of doing it?
    Thanks in advance,
    Pradeep
    Note : Helpful answers will be rewarded.

    Hi,
    I have seen these BAPIs but are they used with normal BAPIs for BP creation and change.
    For example : I create the BP using BAPI_BUPA_FS_CREATE_FROM_DATA2 and for the Custom fields I should use these BAPIs as suggested by you alongwith the create BAPI.
    And will it work for Changing the BP also.
    Kindly clarify.
    Regards,
    Pradeep

  • Mass maintenance and BDC Recodring of custom fields added in PO header.

    Hello Experts,
    I have created a custom fields in PO header and used  Structure for BADI implementation to update the header with values enterd in custom table.
    My requirement is for some selected PO i want to fix the value of one of my custom field at header level.
    I have tried both the options Mass maintenance and BDC recording but the issue i'm facing is when i go for mass maintenance it is giving me the ERROR and it seems that we can only do the mass maintenance for sap-standard fields only.
    When i go for BDC recording i'm facing the issue that when i do SHDB and start recording  for ME22N my custom field is coming  grayed out and i'm not able to input the desired value in custom field and complete my recording.
    Let me know your valuable inputs .
    Thanks,
    Naveen

    Hello,
    Instead of BDC i'm doing it through the BAPI   "BAPI_PO_CHANGE" by populating the structure extensionin but here i'm facing the error as below:-
    W     ME     887     Error transferring ExtensionIn data for enhancement CI_EKKODB
    E     BAPI     003     Instance 4500001544 of object type PurchaseOrder could not be changed
    below is my code:-
    ls_extensionin-structure = 'BAPI_TE_MEPOHEADER'.
        ls_extensionin-valuepart1+0(10) = wa_po-ebeln.
        ls_extensionin-valuepart1+14(3) = no.
        append ls_extensionin to lt_extensionin.
        clear:ls_bapi_te_bg,ls_extensionin.
        ls_extensionin-structure = 'BAPI_TE_MEPOHEADERX'.
        ls_extensionin-valuepart1+0(10) = wa_po-ebeln.
        ls_extensionin-valuepart1+10(1) = 'X'.
        append ls_extensionin to lt_extensionin.
        clear:ls_bapi_te_bg,ls_extensionin.
        call function 'BAPI_PO_CHANGE'
            exporting
              purchaseorder                = wa_po-ebeln
            tables
              return                       = it_bapireturn
              extensionin                  = lt_extensionin
        if it_bapireturn[] is initial.
          call function 'BAPI_TRANSACTION_COMMIT'
            exporting
              wait   = ' '
            importing
              return = it_bapireturn.
        endif.
        refresh lt_extensionin[].
      endloop.
    Please let me know if there is any way to achieve this.
    Thanks,
    naveen

  • How to maintain change history for a custom field

    Hi All,
    I have added a new custom field in standard table FKKVKP by appending a new structure to FKKVKP. Now this custom field will appear in transaction CAA2. My requirement is I have to maintain change history for my custom field. In transaction SCDO I have seen that there is an object MKK_VKONT that maintains change history for FKKVKP entries. But I am not aware how to adjust this field so that SAP generates change history for my custom field as well.
    Thanks in advance,
    Venkat

    Venkatesh,
    DFKKTAXEX
    FKKVK
    FKKVKP
    FKKVK_CORR
    I have never used these tables but I have working experience with change docs.
    The Z field which you have added should be in the above structures, then you should be able to see that field in the changes.
    Of course change document should be set to that field-data element.

  • SRM Portal - Search help for a custom field

    Hi,
    I have added a custom field to the SRM Portal (5.0) shopping cart, by adding the field to structures INCL_EEW_PD_ITEM_CSF INCL_EEW_PD_ITEM_CSF_SC.
    However, I need to filter the search help for that custom field, based on values & relationships stored in a Z table.
    Is this possible? How? Please help.
    Thank You.

    Currently, my idea would be to create a search help for the custom field & filter the values in a search help exit. However, would I be able to get other field values (standard) from SRM into my search help exit?

  • How to set a default date for a custom field of Date type in project server 2010.

    hi,
    can somebody help  me.
    How Can i set the default date for a custom field of date type in project server 2010 ?

    Dear Rohan,
    You can set default value to custom field thru Lookup table. Assign lookup table to custom field and set default value to some lookup value (Note: check the “Choose a value to use as a default when adding new item” checkbox).
    Regards,
    Avinash kumar | Blog:http://avigr8.wordpress.com | If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.

  • Defaulting a customer field (added through EEW) while bus. obj creation.

    Hi All,
    There a customer field added through EEW.
    Now suppose when we are creating an object (BUS2000170, in my case) this customer filed value should be set the a default value. Under GENIL_MODEL_BROWSER i can see this filed in 'BTitemcustext'.
    I am trying to do it through EVENTS (by calling a FM after AFTER_CREATE event) but i could not find 'BTitemcustext' in the table type CRMT_EXTENSION_COMT.
    Now i dont know where to set this value.
    Can anyobe please help on how we can set default value for fields developed through EEW.
    Thanx,
    Abhi.
    Edited by: abhishek ranjan on Jan 7, 2011 10:11 AM

    Hi Rajni,
    This BADI will only be called when i will save the order.
    I want to set the default value the moment the object is created. Thats why i wanted to do it through events(CRMV_EVENT).
    The reason being suppose the order is not saved , till then this default value will not be visible in the UI side(Even after the object creation).
    Also where i can set this default value??
    I mean this field is available under the model 'BTITEMCUSTEXT'. Also the filed is not visible in the table type for extensions (CRMT_EXTENSION_COMT).
    Please let me know i am wrong.

  • Search Help for Infotype Custom Field

    Hi,
    I have created a search help for a custom field in an infotype. What would be the best way of filtering the help selection based on infotype values such as molga, begda, endda?
    Thanks in advance.
    /Elvez

    Hi Nishanth,
    thanks for your reply, perhaps I should clarify my question:
    1) I have a custom field in an infotype
    2) I have a table containing the search help information
    3) I assigned a search help to the custom field
    4) I have activated a search help exit
    The problem is that the information that I get from the custom field is not sufficient for making the selection. Therefore, I would like to somehow get hold of the addition information, such as BEGDA, ENNDA, MOLGA, to do a proper selection in the search help exit. How can I achieve that?
    I read something about function module DYNP_VALUES_READ -would it be possible to call this function module from my search help exit and thereby reach my goal?
    /Elvez
    Message was edited by: Elvez

  • How to prepopulate value in webapps input fields or for any custom fields in for any other forms?

    How to prepopulate value in webapps input fields or for any custom fields in for any other forms?

    What do you want to populate the form with?

  • How to chage the display name in SC browser for the custome fields?

    Hi,
    I created 2 custom fields for Shopping cart in SRM. How to chage the display name in SC browser for this custome fields?
    Thanks
    Kevin

    Hi Kevin,
    when you have defined your customer fields, you have created new fields in the CUF structures. The labels displayed on the SC screen come from the data element you have assigned to those cust fields in the include structure.
    If you have used a std data element, then you can change its translation (attention, this will impact all structures, tables... abap objects using this data element).
    If you have created a Z data element, then adapt its description accordingly.
    Rgds
    Christophe
    PS: please reward points for helpfull answers

  • BSP: F4 Help For a custom field...

    Hi All,
    I need to display search help for a custom field in one of my custom view.
    Search Help for the custom field is already implemented.. but how can i use it in BSP View!.
    In the standard CRM_IC application i couldn't find any similar search help scenario, coz it is calling some standard methods like ShowF4KeyAndValueHelp3,
    ICWCShowF4HelpExtern by passing the structure and field name!.
    I think these standard methods will work only with the fields which have value help table at the data element level. As the custom field that i m using does not have any value help i cant go for this method i guess!.
    Any Help/Hint?..
    Thank You,
    sudeep v d.

    Hello Sudeep,
    Here are some more helpful links .Please refer them .
    Re: Inputfield value for a tableView from a help window
    /people/thomas.jung3/blog/2005/08/22/bsp-value-input-help-popups-version-30
    F4 help using javascript
    Please let me know the feedback.
    Warm Regards,
    Rakesh Kumar Verma

  • Error using Bapi_PO_Change for update custom fields

    Dear Expert,
    I have requirement for update custom field in table ekko. I used BAPI_PO_CHANGE with PO_number as a key. Then i put the value of custom field in segment TABLES - EXTENSIONIN.
    But I get error : "ERROR TRANSFERING EXTENSIONIN DATA FOR ENHANCEMENT CI_EKKODB".
    When I checked, I found the difference between data type the value for BAPI_PO_CHANGE (Usinf structure BAPIPAREX) and data type for custom field in table EKKO.
    Data Type in BAPI_PO_CHANGE is CHAR (you can see in structure BAPIPAREX). And data type for the custom field is DECIMAL.
    I found the note '1124803', but the correction note was not applicable for us because our released system is 500.
    Is there any suggestion or solution for resolve our problem?
    Really appreciate your help.
    Thanks.

    Hi Laxmikanth Bethi ,
    I tried with BAPI_PO_CHANGE in level header, and SAP was support the BAPI. And also i tried to appending the same fields in MEPOHEADR & MEPOHEADERX structures, but the problem is the type of my custom fields are DECIMAL, then the type MEPOHEADR & MEPOHEADERX structures are CHARACTER. So i got the error :  "ERROR TRANSFERING EXTENSIONIN DATA FOR ENHANCEMENT CI_EKKODB".
    Because the types are difference.
    Have you any suggestion to solve this problem?
    Really appreciate for your input.

Maybe you are looking for

  • How can i get my emails in the hotmail POP folder, to reload into Mac Mail?

    On the hotmail page, it has the 'inbox/ but it also has a folder named POP.  In this folder it saves months worth of emails, older than the ones in the regular inbox.  I keep whats important and often refer back to the old ones in this POP folder.  T

  • How can attach a file in BPM Workspace

    Dear BPM Experts, I am using BPM 11.1.1.5.0, I have designed the BPM application with LDAP user and mapped with application role and also deployed successfully, now, I am able access the application in BPM workspace as initiator role. The issue is, I

  • Track ball scrolls in opposite direction after installing Lion

    After upgrading to Lion OS, my track ball on my mouse moves the screen in the opposite direction.  What up?

  • Fonts not available

    Why are my Windows fonts not showing up in Illustrator? I am using CS3 and Windows XP Professional.

  • About Lyrics

    I have a lot of lyrics metadata in my iTunes library.  I have tested iTunes Match for this and found that on my Mac if I delete a track and redownload it from iCloud (matched) it WILL in fact keep all the data I had previously had for that track: inc