Unable to update MARA table custom field in Material master

Hi all,
I have added one custom field in MM01,Basic View 2.
For that i have apended that field in MARA table and created one subscreen for that.
This field is visible in MM02/MM01/MM03 in basic data view 2 .
The issue is that we are not able to save values in MARA table which we entered in this field.
I cheked earliar in SDN but couldn't get the proper solution.
i cheked the below available forum discussion link but couldn't get th proper solution.
In material master How to add a new field on Basic data 1 view
Regards,
Amit

Hi,
please trye this :
Please make sure u implemented: methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN as they are  required for data transport. These methods are called from within the program of the application at PBO or PAI .
See below example code:
PBO:
MODULE initialize OUTPUT.
CLEAR: sflight, ok_code.
IF exit IS INITIAL.
CALL METHOD cl_exithandler=>get_instance
CHANGING
instance = exit.
ENDIF.
CALL METHOD cl_exithandler=>set_instance_for_subscreen
EXPORTING
instance = exit.
ENDMODULE.
The factory method is used to create an instance of the adapter class. You then declare the instance using the public static method SET_INSTANCE_FOR_SUBSCREEN to allow the data for display on the screen to be used in the function group of the user or in the module pool.
MODULE data_for_subscreen OUTPUT.
program = sy-repid.
dynpro = sy-dynnr.
CALL METHOD cl_exithandler=>get_prog_and_dynp_for_subscr
EXPORTING
exit_name = 'BADI_SCREEN'
calling_program = program
calling_dynpro = dynpro
subscreen_area = 'SUB'
IMPORTING
called_program = program
called_dynpro = dynpro.
CALL METHOD exit->put_data_to_screen
EXPORTING
flight = sflight
EXCEPTIONS
reserved = 01.
ENDMODULE.
PAI:
MODULE user_command_0200 INPUT.
CASE save_ok.
WHEN 'BACK'.
SET SCREEN 100.
WHEN 'SAVE'.
PERFORM save_flights.
WHEN '+EXT'.
CALL METHOD exit->get_data_from_screen
IMPORTING
flight = sflight
EXCEPTIONS
reserved = 01.
ENDCASE.
ENDMODULE.
The method GET_PROG_AND_DYNP_FOR_SUBSCR and the input/output parameters specified above are used to determine the name of the customer program and the name of the subscreen. The method PUT_DATA_TO_SCREEN which is called at PBO as well as the method GET_DATA_FROM_SCREEN which is called at PAI are used to transport the data to be displayed.
These methods are implemented by the user:
When you define a screen enhancement, you are strongly recommended to provide sample code for the methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN. This code is automatically copied when you create an implementation and can be added to if required. The user of the BAdI definition should not be responsible for the data transport.
regards,
..Pradeep

Similar Messages

  • Custom fields on Material Master - ECC6.0

    Hello
    We have added custom fields on material master basic data screen following these steps :
    1) Copied Func. grp MGD1 to Z Fgrp via Spro -> Logistics General ..
    2) Created a subscreen in Z fungrp by copying screen from original program.
    3) Deleted the unwanted fields and added new fields to the layout and Fields in PAI.
    4) Attached the subscreen in screen sequuence via SPRO
    We are now able to see the new fields on the baisc data screen and also able to input data in these fields , but on SAVE the data is not getting saved to database table MARA.
    We have also referred to OSS note 44410 but with no help.
    Are we missing something , is there anything additional that needs to be done in ECC6.0 ?
    Thanks

    Hi Kalidas,
    In your customized subscreen, did you update the PAI to include your custom field?
    process before output.
    *                      Verarbeitung vor der Ausgabe
      module init_sub.
      module get_daten_sub.
      module feldauswahl.
      module sonderfaus.
      module sonfausw_in_fgruppen.
      module feldhistorie.                         "Aenderungsdienst
      module bildstatus.
      module zusref_vorschlagen_b.
      module refdaten_vorschlagen.
      module zusref_vorschlagen_a.
      module set_daten_sub.
    process after input.
      module get_daten_sub.
    * Put your custom fields here to copy to structure for saving
      field: mara-zzcustom.
      module set_daten_sub.

  • MARA-MFRNR display field in material master

    hi
    MARA-MFRNR is not displaying in material master purchasing tab view. please guide
    thaks

    Dear,
    Plese follow below path.
    SPRO -> Logistics - General -> Material Master -> Field Selection. ->Maintain Field Selection for Data Screens
    Than click on execute button.
    Press F4 on Field selection group and find MARA-MFRNR and press enter.
    Select your material type or transaction code in which you want to required it. than click on optional entry button.
    Than click on save button.
    Regards,
    Mahesh Wagh.

  • Maintenance of Z field in material master

    Hi All,
    Could any body pls let me know where can I maintain the selection option for Customized field in material Master.( Means F4 options for any z filed)
    Any help will be highly appreciated.
    Regards,
    Meenakshi

    take help of abap guy.
    regards

  • How to update a table (CUSTOMER) on a Report Server with the data from the same table (CUSTOMER) from another server Transaction server?

    I had an interview question that is:
    How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) From another server ex: Transaction server?
    Set up steps so inset, update or delete operation takes place across the servers.
    It would be great if someone please enlighten me in details about this process in MS SQL Server 2008 R2.
    Also please describe would it be different for SQL Server 2012?
    If so, then what are the steps?

    I had an interview question that is:
    How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) from another server ex: Transaction server?
    Set up steps so that inset, update or delete operation gets done correctly across servers.
    I was not sure about the answer, it would be great if someone please put some light on this and explain in details about this process in MS SQL Server 2008 R2.
    Also it would be very helpful if you please describe would it be different for SQL Server 2012? If so, then what are the steps?

  • Update ProjectResource/EnterpriseResource custom fields

    Does anyone know if it's possible to update an enterprise custom field for a ProjectResource or EnterpriseResource using CSOM or JSOM?
    Thanks,
    Roland

    Hi Roland,
    As far as I know this is not possible.
    http://parthrawal.wordpress.com/2014/02/11/update-resources-using-csom-in-project-online/
    https://social.msdn.microsoft.com/Forums/en-US/8cc94344-9462-4cee-8490-6083c35f3de1/user-resource-custom-field-update-using-csom?forum=project2010custprog
    Hope this helps

  • Adding custom field to product master general tab

    Hi All,
             i want to add a custom field in Product master creation (commpr01) ,could any one help me out on this !
    Many thanks and Regards.

    Hi
    You can create field using EEWB or follow the following simple process
    1. Create the required field as " attribute" using the tcode COMM_ATTRSET
    2. Assign it to a set type using the same tcode COMM_ATTRSET
    3. Assign this set type to the product category usign the tcode COMM_HIERARCHY in the set type tab and use the view ID as "BASIC"
    The field will then be available to you in the product master to the products with are created with the named product category
    Hope this helps
    Regards
    Rekha Dadwal
    Edited by: Rekha Dadwal on Mar 19, 2008 1:19 PM

  • Additional field for Material Master of SRM

    Hi,
    We want to add 3 <b>additional fields to the product master table</b> of SRM. We do not want to use these additional fields on any documents (neither SC nor PO nor contracts etc). We do not want to display these additional fields on Enterprise Buyer screens.
    What we want is, after adding these fields to the products table <b>we want to edit the values on COMMPR01</b>. Is it possible to see and edit these additional fields with txn COMMPR01? If not how can we edit these fields?
    Thanks
    PS: the fields that we want add are: <b>New category name</b> (other than the EBP category), <b>New material code</b> (other than the regular material number), <b>Country Name</b> (we have 2 backend systems, we want to keep the name of the country of the backend).

    Hi,
    How can I do that?
    I have 2 fields to reply to COMMPR01:
    MARA-ZZCOD_CORP (Customer Field)
    MARC-EKGRP
    Any ideia to reply this with standard process?
    Thanks,
    Pedro

  • New standard field in Material master

    Hi
    I have to introduce "RETDELC" field in Material Master.
    The said field is already available in MARA table.
    The field is available only in ECC 6.0 version.
    I have introduced the field in Field selection group and make it optional at client level, material type level and Transaction code level (MM01,MM02, MM03).
    But stil, i could not get the same field in Material Master- Basic Material data-2 view.
    Any help please!
    Regards
    Prasad

    this fields domain is DFPS_RETDELC .
    DFPS stands for Defense Forces & Public Security.
    In order to use this industry solution, you need to activate additional business functions
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/d8/686660a46d486e95f0a3588111376d/frameset.htm

  • Specific Field in Material Master

    Hi All,
    just some user can't see specific Field in Material Master with using MM03, but others people can. Where should  I change settings? Is it something to do with authorization?
    thank&regards

    >
    Jiami wrote:
    > Hi Biju, Pete
    >
    >
    > thanks for Support.
    >
    >
    > Material is created as ( Industry Sector: mechanical engineering
    >                                     Material Type: Trading goods)
    > Field name: Basic material (in Tab Basis Data 2).

    >
    > user can see Field now,
    > but just When we using MM03 in normal level, the Field will be displayed.
    > But after we given a plant, in Plan lever then we can not see this Field anymore in Tab basis Data 2.
    >
    >
    > thanks
    >
    > Jia
    execute OMSR,
    position on field MARA-WRKST
    click the button field selection  right of selection group
    you will now see which fields are assigned to the group
    and below you see in in which field reference the group is set to hidden.
    field reference is a multi usage, it can be for material type, for transaction, for industry .
    so you have to check at least the settings for your material, for the transaction where you get this effect and for the industry you material is created with.
    further there is a customizing transaction OMSA, which is plant specific field selection, and I guess that causes your effect.
    open it and see which selection group is assigned to it.
    then go back to OMSR and see what status is assigned to this field reference.

  • Add z field in material master at plant level

    I wanna to assign a new field in material master at plant level..
    What settings should be done to do this?
    Positive response will be highly appreciated.
    Regards

    hi,
    You can define the field directly via assigning the field to field selection group...This could also be done at industry sector, plant level as well....
    Check the path :
    SPRO >> Logistics general >> MM >> Field selection >> Assign fields to field selection group...
    SPRO >> Logistics general >> MM >> Field selection >> Assign field at plant
    SPRO >> Logistics general >> MM >> Field selection >> Assign fields at industry sector level...
    For this assign the field to the respective table and then provide it at OMSR...
    Assign field selection group to it...
    Then in OMS9 give the priority for hide/display/req/optional to field...
    If you want this to be added in the new screen, then you have to make the settings under "configure the material master"...
    Hope it helps..
    Regards
    Priyanka.P

  • Transportation group field in Material master..Sales/Plant data tab.

    Hello Gurus,
    The transportation group field in material master is Material specific or a plant specific?? caz whenever i am changing this transportation group field in one plant it is also updating with the same value in all the plant for the common material even though the Company code and Country are different forall the plants.
    Hope to hear from you soon as its a very high priority production issue..
    regards
    Rikinl

    The transportation group field in material master is Material specific or a plant specific??
    Its material specific.  Even if you have multiple sales areas or plants and if you change the transportation group, the change will be applicable for those areas also.
    thanks
    G. Lakshmipathi

  • Maximum number of fields in material master

    Hi,
    Could you please help to understand how many fields can be added in material master Tab.
    Example - If we create new material master tab as additional data and would like to add some fileds in that tab, is there a limit we can't add more than certain number of fields.
    Please advise how many cloumns can be added as well in one tab.
    Example
    Material master additional data Tab (New)
    feild 1 description field 4 description field 7 ......
    field 2 description field 5 description field 8 ......
    field3 description field6 description field 9 ........
    I think the fields should be assigned to feild selection group which is reserved as for Z fields
    Please confirm if my understanding correct for Z fileds
    211-240 Reserved for customers
    As I think only 20 field can be assigned to field selection group but My question is can we assign more than one filed selection group to one material master tab. I mean to increase the number of field to be added in new additional data tab can we add 111-120 Reserved for customers and 211-240 Reserved for customers to one material master additional data tab.
    Thanks

    Hi,
    For add fields to material master, check Note 44410 - Integrating cust.-specific fields in matl master (and related notes).
    Other note useful to understand the range of customer names in SAP: SAP Note 16466 - Customer name range for SAP objects.
    I hope this helps you. If you need something else, let me know.
    Regards,
    Eduardo

  • Purpose of Cash Discount field in Material Master

    what is the purpose of Cash Discount field in Material Master. what does it control. do it link to SKTO anywhere?
    please explain

    Hi,
    Cash discount is applicable for this material or not..
    This is for Sales only..
    Pricing Procedure (RVAA01) and if you activate SKTV and SKTO Condition types
    Cash Discount can calculate before tax or after tax
    Condition Type- SKTV(Statistical Condition Type)---If you check requirement is "14" which says Discount before Tax( This will calculate from the Filed Material master "Cash Discount Indicator" ie "SKTOF"
    Condition Type-SKTO-(Statistical Condition Type)--
    >Requirement "9" Discount After tax - here also it will consider filed "SKTOF" ie "Cash discount indicator in material master.
    SAM

  • Control Code field in Material master- Foreign Trade imports tab

    Hello Experts,
    I am trying to understand the purpose of Control Code(MARC-STEUC) field in Material master- Foreign Trade imports tab. I am also interested in knowing where does this field appear in our PO.
    Please help..
    Manish

    Normally control code specifies the norm to follow by the supply plant for a sale of exposrts. each contry will have a set of rules to get follow as a stuatory . this code specifies the rules or certificates.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/93/7443a5546011d1a7020000e829fd11/frameset.htm
    may be comes in a sale order.
    Regards

Maybe you are looking for

  • Dimension Lock Problem

    Hello experts, I've a dimension lock issue. One of my Dimensions in the Appset is locked by a user. Hence i'm unable to maintain Dimension members as it is in locked state. However the user have logged into the Appset and tried to maintain the dimens

  • ServerSession in FBS  (otn sample code)

    I download FBS OTN sample code which version use Toplink for manage persistence.. I have notice about some class that hold ServerSession as it member variable such as ////////////// FBS package oracle.otnsamples.ibfbs.trademanagement.helper; public c

  • Why must Bonjour start?

    According to the notice which appears when one tries to start itunes and Bonjour isn't running "bonjour required for sharing music, playing music through air tunes speakers, & connecting to apple tv". Ok, I can read English. What this message doesn't

  • IPhone / iPod (keyboard and mouse bluetooth support)

    I would like apple adopt bluetooth and keyboard support for the update on iOS 8+. I love using it like a little computer where I can use my keyboard and mouse to go through the content. Reasons: 1. Easier to click on small icons on games and software

  • Troubleshoot payment info

    I keep getting a message there's a problem with my credit card info, I no longer have a credit card how do I override that message so I can download free games