Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Material master update

Former Member
0 Likes
1,478

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,235

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

Read only

Former Member
0 Likes
1,235

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

Read only

Former Member
0 Likes
1,235

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.

Read only

Former Member
0 Likes
1,235

Hi ,

any one please give me an example codings if u had done before. or user exit available for mm01

Read only

Former Member
0 Likes
1,235

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.

Read only

Former Member
0 Likes
1,235

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.

Read only

Former Member
0 Likes
1,235

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

Read only

Former Member
0 Likes
1,235

self solved

Read only

0 Likes
1,235

Hi ,

have the same problem can u guide me how u have accomplished the requirement specially for MM02.