MM06E005 - Custom fields to table ekko using CI_EKKODB

Hi, I've added some new fields to this structure.
I've added then this to the header screen of me32k.
I need to write some abap code to make this field work, I mean now appers but is not written/read from the database table.
In which userexits should I write this code ? Using Which structures ?
Thanks,
Miguel P.

Hello Miguel,
take enhancement MM06E005!
How did you add the fields to the header screen of me32k? You should have used SAPLXM06, dynpro 0201! You can read/write via EXIT_SAPMM06E_006 ff.
Don't forget to activate your relevant project (CMOD).
Regards,
Martin

Similar Messages

  • Updating custom field in table EKKO within user exit when PO is saved

    I am trying to update a custom field in table EKKO when a PO is saved.  I am using FM EXIT_SAPMM06E_013, within enhancement MM06E005.  Since EKKO is not a table that can be updated with this user exit, I am using a technic that I read about on SDN where I assign a field symbol to the calling program variable and then am able to access data within EKKO table.  But when I pass this data back into the field symbol, for some reason this field is not getting saved when the PO is saved.  In debug mode, it looks like this field is getting updated, but when I look in the table after the PO is saved, it is not there.  My code sample is below.  What I am doing wrong?
    data:
      CHAR(50) VALUE '(SAPLMEPO)EKKO-ZHDRCSTCENTER',
      g_zhdrcstcenter like ekko-zhdrcstcenter,
      FIELD-SYMBOLS <F1> type any.
    if i_ekko-ekorg = '5401'.
      ASSIGN (char) to <F1>.
      g_zhdrcstcenter = <F1>.
      move '0000113322' to g_zhdrcstcenter.
      <F1> = g_zhdrcstcenter.
    endif.
    Thanks!
    Sarah Smyth.

    Firstly, have you investigated using EXIT_SAPMM06E_008 to set any custom fields you have added in the EKKO_CI / CI_EKKODB structure?.. that might work more easily.
    In terms of doing an assign back into a calling program's memory, it can work but it's probably worth setting a break point in your code then stepping through watching the values in EKKO - sometimes you can find subsequent code that re-writes an earlier copy of values back into the structure, thereby preventing you doing your change...  SAP does warn this method is for "internal use".  Also check in your debugger that it's SAPLMEPO and not SAPMM06E you need.

  • Updating Custom field in Table BUT000 using BAPI 'BAPI_ISUPARTNER_CHANGE'.

    Hi,
    I have added a new custom field in table BUT000. Now i want to update that field with 'X' and i have used EXTENSIONIN parameter in the BAPI 'BAPI_ISUPARTNER_CHANGE'. i have populated the field name(Custom field name) and value 'X' to that structure and passed to BAPI. But that field value was not getting updated. So can any one help me how to resolve this issue.
    Thanks,
    Sushma

    Hi Ravi,
    Thanks for your response.
    I have passed the Structure name  in parameter EXTENSIONIN, but still i am facing the same problem.
    Thanks,
    Sushma

  • Need to fill a new field in table EKKO

    Hi all,
    i created a new field (ZZCODE) in the table EKKO. Well, now i would like to fill this field when the user save his purchase order. Which user-exit or BADI can i use ?
    I tried a lot but either i can't change the parameters values either the FM is not raise.
    Thanks for help.

    HI CECG,
    Yesterday itself i tried this example,
    i will forward u the document to ur mail id,
    plz provide me the mail id so that i will forward u the doc..
    STEP-BY-STEP PROCEDURE FOR SCREEN EXIT IN ME21n TRANSACTION
    Introduction:
                        SAP provides standard transactions to enter data into database. But a client may want to maintain some additional information in SAP other than what is provided.
                        To make provisions for this, additional screens have to be provided and additional fields must be added into appropriate database table.
    Requirement:
                         You have to add the custom field in SAP standard table EKKO. Then we have to place the field in ME21N screen. When user enters any input into the field it should get updated in the database.
    Note:
                         EKKO table is meant for Purchasing document header, you should add the field in the header level for ME21n screen. There you are provided with customer sub screens where you can add the field in the screen.
    In EKKO table
    include : cl_ekkodb
    in that u can add the field u want
    Procedure:
    1.     You have to create a field in the Custom Include of standard table, after creating activate it.
    2.     Double click on the include then you can add your custom field here.
    Find out the Required Enhancements:
    1.     Go to SMOD. Press F4 in the Enhancement field. In the next popup window, click pushbutton ‘Information system’.
    MM06E005 : CUSTOMER FIELDS IN PURCHASING DOCUMENT
    2.     Then mention the particular package name of the transaction you need to      enhance. Then you will be shown the list of Enhancement components for that particular package.
    3.     Note down the enhancements. Then, come to the initial screen of SMOD and view the documentation of each enhancement to find out which one is required for your development.
    MM06E005 is the Enhancement component we are using here.
    Development
    Creating a Project to include the enhancement:
    1.     Go to transaction CMOD and create a project.
    2.     Enter a description for the project.
    3.     Then, click on the pushbutton ‘Enhancement Assignments’ in the Application Toolbar.
    4.     Click on the components in Application Toolbar.
    5.     Here you will be shown the function module exits, screen exits and Include tables.
    6.     Click on the custom screen SAPLXMO6 – 0101 in which it suits the requirement of adding the custom field to the layout.
    7.     Click on layout and go to get from dictionary and select the field you need to add and click ok.
    8.     Place the field in the layout and activate it.
    9.     After that you come back and check the respective function module in which you need to implement the code. So, we need to import the data from sub screen for purchasing document header. Therefore we have chosen  the  EXIT_SAPMM06E_008.
    10. Write code in the Function Exits to synchronize the programs:
                           Now, code has to be written in the function modules EXIT_SAPMM06E_008 so that data flows to and fro between the main SAP program and custom sub screen program. Double clicking on the exit we get the following screen.
    11. Double click on the include and write the required code inside it. Then activate it.
    12. Now come back and activate the entire project.
    13. Now go to ME21n transaction and create a purchase order by giving all the mandatory fields including custom field we have created. Go to SE16n, check whether the field got updated in the database or not.
    Finally it gets updated in the database.
    IF U PROVIDE ME UR MAILID I CAN SEND U THE DOCUMENT WHICH IS VERY CLEAR FOR PURCHASE ORDER
    PLZ REWARDS POINTS IF HELPFUL,
    Ganesh.

  • User exit MM06E005 - Customer fields in purchasing document

    Hi,
    I am using user exit MM06E005 - Customer fields in purchasing document to validate the line items in PO and display the value at header level.
    My requirement is when the user enters the line items and press enter the validated value should get populated at header level.I had included a tab (customer tab) in that the value should get displayed.
    likewise for each and every line items the value should keep on changing.
    And
    I the field that i had added at header shows the value during the save but once we come out and enter again,it is not displaying the same.
    Regards
    Manoj

    Hi,
    Indeed the exit which you have specified MM06E005 comprises the enhancement for customizing fields and screens associated with it. may be you might not have activated the screen associated with the exit. the screen might have been created but missed while activating.
    Regards,
    Jagath

  • MM06E005 - Customer fields in purchasing document

    Hi,
    I am using user exit MM06E005 - Customer fields in purchasing document to validate the line items in PO and display the value at header level.
    My requirement is when the user enters the line items and press enter the validated value should get populated at header level.I had included a  tab (customer tab) in that the value should get displayed.
    likewise for each and every line items the value should keep on changing.
    And
    I the field that i had added at header shows the value during the save but once we come out and enter again,it is not displaying the same.
    Regards
    Manoj

    got my solution...

  • Adding custom fields to table view assignment block

    Hi All,
      I want to add two news fields to 'Service Contract Item Level' in 'Object List' assignment block. How can i add these two custom fields to table view assignment block using AET. I have tried to add new fields using AET but there is no business object supports to my requirement.
    Thanks & Regards
    Nitish

    Hi Nitish,
    As naveen sadid use Cutomer_i object . I guess it will be more appropriate.
    And following link will be helpful for AET creation.
    CRM 7.0 How to --4 Adding Custom Fields With The New Application Enhancement Tool (AET)
    Regards
    Loks

  • Custom Field is not updating using MM17 ( Mass Material Maintenance )

    Dear All,
          I have created 1 custom field in MRP1 view of MM01 tranction & that field saved into MARC table. It is working fine & I am able to change also that field using tranction code MM02. But Problem is that I want to change that custom field of material master using tranction code MM17 , which is for mass Material Maintenance. So to edit custom field of material master from MM17 what I need to do?  Please suggest...
    Regards
    Pradip Pawar

    Hi,
    Follow the below procedure,
    1. In table MARC  custom fields need to be add using append structure. For that need to create data elements & domain for      corrosponding fields.
    2.In SE51 need to copy standard program SAPLMGD1 & screen 2481( In your case screen would be different ) in to Z program.     
    3.Now in to the layout of  Z program need to add custom fieldu2019s which we defined using append structure in MARC table.
    4.Need to add Field statment for the new custom fieldu2019s into the PAI Flow logic of Z program inside CHAIN...ENDCHAIN statement.
    5.Need to run transaction OMT3B and then copy screen sequence no. 21 into our Z screen sequence say Z1.
    6.Once screen sequence is copied into screen sequence Z1. select sequence Z1 and double click on data screen folder.Select  screen sequence with description MRP1 and after selecting it double click on Folder 'Subscreen ' and change the program given for screen no 2481 with our Z program name and Save.
    Imp Note - Refer SAP Note no. 44410.
    Regards,
    Pradip Pawar

  • BADI or User exit  for FB50 to update custom field in table COEP

    Hi all,
    i have added one custom field in table COEP through include CI_COBL .
    when i do posting through sales order(VA02) or purchase order(ME22n) that custom fields in COEP get updated with controlling document
    and through BADI AC_DOCUMENT i m updating that custom field in COEP.
    but when i do manual posting through FB50 controlling document is generated in COEP but i m not able to update that custom field
    because in this case BADI AC_DOCUMENT  is not get triggered.
    is there any BADI or User exit or enhancement spot for FB50 through which i can update that custom field in table COEP

    Hi Sandy,
    Thanks for u r reply,
    RFAVIS01 is not getting triggered through FB50
    and F180A001 ( EXIT_SAPLF048_001) is getting triggered but it doesnt contain COEP field in its parameter
    import - F180A_DOC_HEAD_TAB
                 F180A_DOC_ITEM_TAB
    changing - RELATION_TAB

  • Creating Change Document for Custom Field in Table PROJ

    Hi,
    We have a few Custom Fields in Table PROJ.
    What needs to be done so that every time a particular custom field  is changed, change document in table CDHDR and CDPOS are created.
    Regards,
    Tarun Bahal

    Hi Tarun,
    Please refer [Link1|https://help.sap.com/saphelp_nwmobile71/helpdata/en/2a/fa018f493111d182b70000e829fbfe/content.htm] & [Link2|http://help.sap.com/saphelp_erp2005/helpdata/en/db/7a2a40ce93185de10000000a1550b0/content.htm]
    Hope this helps!
    Regards
    Shital

  • Adding custom fields in table control of infotype 0591

    Dear Experts,
    My requirement is to add custom fields x y z  in the Table contol of the standard infotype 0591 (Nominations) screen in PA30 tcode.
    Is it possible to add the fields in table control after the fields share,guardian's address, without using access key.
    if  so, help me to know the procedure.
    Please suggest.
    Warm Regards
    Sinde.

    hi..
    a thread already exists with the same Subject.. pls check if it helps u....

  • Problem in posting Custom fields in Purchase Order using BAPI_PO_CREATE1

    Hi friends,
    Did any body tried populating custom fields using BAPI_PO_CREATE1?
    I am trying to populate custom fields in Header.
    I am populating EXTENSIONIN-STRUCTURE with 'BAPI_TE_MEPOHEADER' and EXTENSIONIN-VALUEPART1 with respective values of fields using the code below.
    T_CUSTDATA_IN-PROJECT_ID_NUM = '543211'.
    T_CUSTDATA_INX-PROJECT_ID_NUM = 'X'.
    MOVE 'BAPI_TE_MEPOHEADER' TO T_EXTENSIONIN-STRUCTURE.
    *CLEAR T_BAPI_TE_PO_HEADER-PO_NUMBER.
    MOVE-CORRESPONDING T_CUSTDATA_IN TO T_BAPI_TE_MEPOHEADER.
    MOVE 'T_BAPI_TE_MEPOHEADER' TO T_EXTENSIONIN-VALUEPART1.
    APPEND T_EXTENSIONIN.
    MOVE 'BAPI_TE_MEPOHEADERX' TO T_EXTENSIONIN-STRUCTURE.
    *CLEAR T_BAPI_TE_PO_HEADER-PO_NUMBER.
    MOVE-CORRESPONDING T_CUSTDATA_INX TO T_BAPI_TE_MEPOHEADERX.
    MOVE 'T_BAPI_TE_MEPOHEADERX' TO T_EXTENSIONIN-VALUEPART1.
    APPEND T_EXTENSIONIN.
    But still it is not populating the custom fields.
    Can some body help me on this?
    Thanks & Regards,
    Ramesh Kodavati

    Hi,
    You require to implement the Badi ME_BAPI_PO_CUST
                                               Method MAP2I_EXTENSIONIN or INBOUND
    for changing the parameter CH_EXTENSIONIN in method INBOUND
                                       or  CH_STRUC in method MAP2I_EXTENSIONIN.
    in addition to passing the extensionin parameters in bapi.
    implement the above said bapi and put a break point in both of the methods (exactly i don't remember)
    and check values are populating in the CH_STRUC structure.
    Regards,
    Dwaraka.S

  • Update values of custom fields in table HRPAD506-Additional Data for PAD506

    Hi Experts,
    my requirement is write a report program to upload a file with records.
    I have to capture this records into an internal table and have to update values of 5 custom fields based on ADATANR.
    Can anyone suggest me about any FM or any way of doing this.
    Urgent requirement.
    Will HRIQ_RFC_BOOKING_CHANGE help.
    thankx.
    Duttad.

    hi,
    Above mentioned that when the values are entered in the customised fields they are not updating in the to the table mara.
    so, the program name and screen number which you are configuring in the spro, in that program name and in that screen number code it as below:
    (you could find the field statements in that screen for the standard fields like FIELD MARA-MEINS.)
    for example:
    PROCESS BEFORE OUTPUT.
           PROCESS AFTER INPUT.
          FIELD MARA-zzfieldname.
    Refer the oss note : 38229
    Thanks and regards.

  • VBA - Setting Custom Fields For Sub-Projects Using a Master File

    Hello,
    I was wondering if anyone had any experience or could provide some help with a Macro to set the Custom Fields in Sub-Project Files directly from the Macro. I had this macro working in the past with Project 2007, but it has been a couple years and I am struggling
    to resolve an error. I am currently running Project 2010 with SP2. I intend to use this Macro in our Server 2010 environment, however at this time, I'm testing locally on my desktop.
    Scenario.
    I have a Master File with 2 sub-project (Project A, and Project B) inserted. While working in the Master File, I create a custom field title "TEAM Lookup". While in the Master File and without having to individually go and open, edit, save, and
    close each sub-project, push the custom field down to the project files.
    ERROR: Currently, the Macro will run and I can step through the lines of code until line 12 where I'm asking Project to use the organizer to shift the newly created custom field from the Master File to a sub-project. The line appears to
    populate correctly, but instead of continuing through the loop, an error is caught (ID - 1101 - "The File (Master File) was not found")
    Any ideas or suggestions would be greatly appreciated. Thanks
    Sample Code
    1. Sub CopyCustomFieldToSubprojects()
    2. Dim MASTER, custfield, contin, AllDone
    3. Dim SubProj As Subproject
    4. Alerts False
    5. MASTER = ActiveProject.Name
    6. Application.EnableCancelKey = pjInterrupt
    7. custfield = CustomFieldGetName(ActiveCell.FieldID) & ActiveCell.FieldName
    8. On Error GoTo errhand
    9. contin = MsgBox("This macro will copy the field " & "(" & custfield & ")" & " (the currently selected field) to all subprojects in this consolidated schedule." & vbCrLf & vbCrLf & "Be
    patient, it may take more than 70 seconds to run. You will be notified when it's done. Continue?", vbOKCancel)
    10.    If contin = vbCancel Then GoTo done
    11.    For Each SubProj In ActiveProject.Subprojects
    12.    OrganizerMoveItem Type:=pjFields, FileName:=MASTER, ToFileName:=SubProj.SourceProject.Name, Name:=custfield
    13.    Next SubProj
    14.     AllDone = MsgBox("The " & custfield & " field has been copied to all subprojects.", vbOKOnly)
    15. GoTo done
    16. errhand:
    17. ret = err.Description
    18. ret1 = err.Number
    19. done:
    20. End Sub

    SGBlaine,
    Project VBA can get rather fussy about some things so you just have to find out what it wants and then adjust your code accordingly. The following will work:
    Note the tweaks to the custfield variable and to the MASTER and source project names. Also when working with strings in VBA it is a good idea to eliminate at least one little gotcha, the need for exact capitalization. Therefore I always add the Option Compare
    Text statement. In your macro it won't make any difference since you do not directly create a string value, but it's good practice to have the option.
    Option Compare Text
    Sub CopyCustomFieldToSubprojects()
    Dim MASTER, custfield, contin, AllDone
    Dim SubProj As Subproject
    Alerts False
    MASTER = ActiveProject.FullName 'FullName includes the path, now it can find it
    Application.EnableCancelKey = pjInterrupt
    custfield = CustomFieldGetName(ActiveCell.FieldID) & " (" & ActiveCell.FieldName & ")"
    'strings are very fussy, it has to be exact
    On Error GoTo errhand
    contin = MsgBox("This macro will copy the field " & "(" & custfield & ")" & " (the currently selected field) to all subprojects in this consolidated schedule." & vbCrLf & vbCrLf & "Be
    patient, it may take more than 70 seconds to run. You will be notified when it's done. Continue?", vbOKCancel)
    If contin = vbCancel Then GoTo done
    For Each SubProj In ActiveProject.Subprojects
        OrganizerMoveItem Type:=pjFields, FileName:=MASTER, ToFileName:=SubProj.SourceProject.FullName, Name:=custfield
    Next SubProj
    AllDone = MsgBox("The " & custfield & " field has been copied to all subprojects.", vbOKOnly)
    GoTo done
    errhand:
    ret = Err.Description
    ret1 = Err.Number
    done:
    End Sub
    John

  • Adding field to Table Control using screen exit

    Hi Folks,
    I have a requirement of adding a field in Table control of Standard SAP transaction also updating the same in standard SAP database table.
    The field is also not existing in the table, it is also added to the table using Append Structure.
    Will this be possible using some Screen Exit?
    Thanks in Advance.
    Punit

    Hi Punit,
    There are various screen user exits(QQMA0001,QQMA0008,QQMA0010,
    QQMA0011,QQMA0012) available for this transaction but all are related to adding a subscreen.So, I am not very sure whether we can modify a table control for this transaction. So, If possible if u r requirement still can be acheived with creation of a subscreen then it would do only if the exits which were mentioned above belongs to u r main screen..
    Regards,
    Swaroop

Maybe you are looking for

  • BI-IP implementation in BI 7.0(NUC)+ Java Add-In(UC) system

    Hi Experts, We want to implement BI-IP in our existing SAP BI 7.0 system which we upgraded from BW 3.5 to BI 7.0 followed by adding the Java Add-In. During the installation of the Java Add-In central instance the BI-Java, EP Core & EP software units

  • How does one apply adjustments such as Rubber Stamp and Sharpening to Video in Photoshop CS6?

    I'm trying to apply a rubber stamp to my entire clip but it will only last one frame. Same if I sharpen. I though I was supposed to convert the layer to a Smart Object but once I do that I can no longer use the Rubber Stamp. And if I Rasterize the la

  • Forgot how to format HTML  in Text Area

    Hello all, I totally forgot something. How do you format HTML when rendering in Text area Suppose I pass in a string that a text area grabs for display. xxx.getAdditionalComments(existingComments + "\n"  +  "<B>" + date + "<\B> " + name);The text are

  • Checkout view in a rule

    Hi In addition to my [previous post|http://forums.sun.com/thread.jspa?threadID=5336770&messageID=10453744#10453744], I have the following need: In a rule how can we use something like a "checkout view" ? I would like to have something like what is di

  • Problem with Deactivating iCloud-Features

    Trying out some solutions fixing the battery-drain.problem i´ve found another problem. by trying to deactivate the icloud-features my iphone 4 hangs up. does anyone else got this problem o anyone with a solution here?