‎2009 May 19 11:40 AM
Hi friends,
I have created custom fields in MARC. and done customization in SPRO for custom subscreen.
i am able to see the custom screen for view purchasing.
now the problem is i couldn't update database . values entered on screen are not populated .if it is coming out of screen then assigned values are empty.how to do this .
user exit MGA00001 EXIT_SAPLMGMU_001 not triggered..
please help me on this.
regards,
kani
‎2009 May 19 12:15 PM
Hi,
Since you have made the customised screen you can insert the fields in the pbo in CHAIN-ENDCHAIN.
Also these fields need to be in the relevant structures of the material master tables along with CI includes which are used in the data transfer stuctures (BMMH1, BMMH2 etc) used for material master in BAPI or IDOCs.
Regards,
Ankur Parab
‎2009 May 19 12:25 PM
Export the data in the PAI event of the screen and import the same in the user exit EXIT_SAPLMGMU_001.
Then fill the fields in the corresponding structure so that it will update the table.
Hope you have done the config in spro for the screen.
Thanks,
Srinivas
‎2009 May 19 12:44 PM
Hi Kani
I guess you have used the COPYMGD1 program to generate custom Function Group. If you put you fields within CHAIN ENDCHAIN of PAI of custom screen. It should work fine.
Like this:
MODULE get_daten_sub .
CHAIN.
FIELD:
mara-zzeccn,
mara-zzrlocation MODULE rlocation_check ON INPUT, " Module if required
ENDCHAIN.
MODULE set_daten_sub.When designing new subscreens of your own, note the following:
The screen must contain all the PBO (process before output) modules of the sample screen.
If you want to create new PBO modules, you must position them between module BEZEICHNUNGEN_LESEN and module SET_DATEN_SUB.
If you want to create new PAI (process after input) modules, you must position them between module GET_DATEN_SUB and module SET_DATEN_SUB.
For each new field, you must include a FIELD statement between PAI module GET_DATEN_SUB and PAI module SET_DATEN_SUB.
If you copy fields from another standard subscreen to a new screen, you must also copy the relevant modules and any directly relevant fields together with their modules.
Hope this helps you.
Thanks
Amit.
‎2009 May 19 12:50 PM
Hi ,
any one please give me an example codings if u had done before. or user exit available for mm01
‎2009 May 19 4:12 PM
Hi ,
exit mentiond is triggered . But here i could n't pass values . because there is no export fields or changing for MARC custom fields update ..
please let me know if you know the answer. I
Regards,
kani.
‎2009 May 20 8:29 AM
Hi friends,
I have used BADI_MATERIAL_REF . when i am pressing save in mm01 , it triggering this nadi. where i am assigning only custom fields . but i want to get data from import parameter I_MARC.
but it is not having any values .
my custom fields are assigned to export parameter e_marcu . but only these fields are populated into Database. values entered on screen is not there in import parametr and i couldn't pass it again to program..
if you have used it please guide me .
regards.
‎2009 May 20 10:17 AM
Hi friends,
Some how i have done coding for MM01 to populate data for custom fields into MARC .
now problem is i want USER EXIT OR BADI for MM02 to populate the changes made by user on screen .
Please help me on this
thanks and Regards,
kani
‎2009 Jun 24 5:09 AM
‎2011 Dec 28 10:37 AM
Hi ,
have the same problem can u guide me how u have accomplished the requirement specially for MM02.