Home > Default > Unable to update MARA table custom field in Material master

Unable to update MARA table custom field in Material master

October 11Hits:7
Advertisement
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

Answers

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

Read other 2 answers

Tags:

Related Articles

  • Unable to update MARA table custom field in Material masterOctober 11

    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

  • Custom fields on Material Master - ECC6.0November 30

    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

  • MARA-MFRNR display field in material masterNovember 30

    hi MARA-MFRNR is not displaying in material master purchasing tab view. please guide thaksDear, Plese follow below path. SPRO -> Logistics - General -> Material Master -> Field Selection. ->Maintain Field Selection for Data Screens Than click

  • Maintenance of Z field in material masterOctober 11

    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, Meenakshitake help of abap guy. regardsRead oth

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

    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

  • Update ProjectResource/EnterpriseResource custom fieldsNovember 30

    Does anyone know if it's possible to update an enterprise custom field for a ProjectResource or EnterpriseResource using CSOM or JSOM? Thanks, RolandHi Roland, As far as I know this is not possible. http://parthrawal.wordpress.com/2014/02/11/update-r

  • Adding custom field to product master general tabNovember 30

    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

  • Additional field for Material Master of SRMNovember 30

    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 Enterp

  • New standard field in Material masterOctober 11

    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 lev

  • Specific Field in Material MasterNovember 30

    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 > > > than

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.726 s.