Application Development 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: 

In material master How to add a new field on Basic data 1 view

Former Member
0 Kudos

Please Help It's very Urgent...

I have the Requirement that in Material Master a new field reqired to be added on basic data 1 view. This new field should be added just below field Old Material Number( MARA-BISMT).

Can anyone Please suggest the correct way to add the field as per above requirement.

I hope to get quick reply.

Thanks and Regards...

Tanweer Zaki

17 REPLIES 17

Former Member
0 Kudos

Now I am able to add one field in basic data 1 using IMG Cutomization but now I am not able to see other tabs of Material Master like Basic data 2, MRP1, MRP2 ...etc

I added field there using follwing steps...

These are the steps…

1. Create a structure append in MARA where I added my new fields;

2. Create the program SAPLZMGD1 as copy the Standard program SAPLMGD1;

3. Create a new subscreen in my custom program SAPLZMGD1, where the fields of APPEND Structure of MARA are managed;

4. For each new field, include a field instruction between the modules PAI

GET_DATEN_SUB and SET_DATE_SUB;

Ex: FIELD ZZNEW

CUSTOMIZING

1. Copy the STD sequence 01 or 21(depends of the company) into your custom sequence Z1 by trx OMT3B;

2. In the new sequence Z1 I add a new DATA SCREEN (as copy of custom DATA SCREEN BASIC DATA 1 or 21),

3. In my new DATA SCREEN I added my new subscreens (you could add max 10 subscreen;

4. In the Control of sequence of screens to modify the reference of screens for his/her screen Copies and created previously

Please Suggest where I am wrong...

Good Reward Points will be awarded....

0 Kudos

Hi Experts,

i ahve a requirement to add maximum order quantity field MVKE-LFMAX to sub screen (2159) of quantity stipulation in sales org screen in mm02.

please tell me how to do that.the requirement is urgent.

good reward points will be awarded.

Regards,

Vishal.

0 Kudos

Hi,

Here is the solution of your requirement , Step by Step follow it.

1. In SE51 Copy standard program SAPLMGD1 screen 2159 into your Z program say ZSAPLMGD1 screen no 2159

2. Now go to the layout of your Z perogram add one field in the layout what you want

3. Add Field Statment for the new filed the PAI Folw logic of your Program below the follwoing statment

FIELD MVKE-RDPRF.

MODULE MVKE-RDPRF.

    • Add here field Statment for your New field i.e

  • FIELD MVKE-LFMAX .

ENDCHAIN.

4. Now run transaction OMT3B and then copy screen sequence no 21 into your Z screen sequence say Z1

5. Once screen sequence is copied into your screen sequence 21. select your sequence 21 and double click on data screen folder in the left hand side.

6.Now in the right hand side select your screen sequuence with description Sales:Sales Org. Data 1. and after selecting it double click on Folder 'Subscreen ' on left hand side.

7. Here change the program given for screen no 2159 with your Z program i.e ZSAPLMGD1. and Save.

8. Now run transaction code OMT3E and Replace SSq 21 by your screen sequence Z1 and save now you job is over Enjoy....

and Dont forget to reward points if it helps...

0 Kudos

Hi Tanweer,

thanx for yr response.

i have followed that and copied standard program SAPLMGD1 to SAPLZMGD1

and there i modified the screen and added field MVKE-LFMAX in subscreen 2159.

in SPRO i did copy the seq 21 to seq.

by doing this,i included SAPLZMGD1 to material master subscreen no 2159.

i m seeing this program there.but the field which i added is not visible in material master.

please help me on this.

useful points are rewarded.

Regards,

Vishal.

0 Kudos

Hi Tanweer,

thanx for yr response.

i have followed that and copied standard program SAPLMGD1 to SAPLZMGD1

and there i modified the screen and added field MVKE-LFMAX in subscreen 2159.

in SPRO i did copy the seq 21 to seq.

by doing this,i included SAPLZMGD1 to material master subscreen no 2159.

i m seeing this program there.but the field which i added is not visible in material master.

please help me on this.

useful points are rewarded.

Regards,

Vishal.

0 Kudos

Hi Tanweer,

thanx for yr response.

i have followed that and copied standard program SAPLMGD1 to SAPLZMGD1

and there i modified the screen and added field MVKE-LFMAX in subscreen 2159.

in SPRO i did copy the seq 21 to seq.

by doing this,i included SAPLZMGD1 to material master subscreen no 2159.

i m seeing this program there.but the field which i added is not visible in material master.

please help me on this.

useful points are rewarded.

Regards,

Vishal.

0 Kudos

Hi Tanweer,

thanx for yr response.

i have followed that and copied standard program SAPLMGD1 to SAPLZMGD1

and there i modified the screen and added field MVKE-LFMAX in subscreen 2159.

in SPRO i did copy the seq 21 to seq.

by doing this,i included SAPLZMGD1 to material master subscreen no 2159.

i m seeing this program there.but the field which i added is not visible in material master.

please help me on this.

useful points are rewarded.

Regards,

Vishal.

0 Kudos

Hi

Did you replace the SSq 21 by your own custom(Copied from 21) SSr in transaction code OMT3E.

Write the steps what you have done so that i can tell you the mistake you are doing.

if it solves the prob kindly close the thread otherwise write me back.

Thanks and reagrds.

0 Kudos

the field has been added.yr points helped me a lot.

but when i am creating material by giving values in the fields of that subscreen which i added ( 2159) including the added field MVKE-LFMAX it is not updating in database.

what to do for that.kindly help me.

i m rewarding points for yr useful points.

0 Kudos

Hi,

Create an entry for your field which you added on screen in table T130F. Then this field will be updated whenever material will be craeted or changed.

If any doubt again post the query.

Thanks

Tanweer

0 Kudos

Hi,

i tried to create an entry in table T130F,but at the time of saving,its saying the record is already existing.

i am not able to update the fields of the subscreen i added( SAPLZMGD1,2159).

does it need to write code somewhere?

please help on this.

Thanx n Regards,

Vishal.

0 Kudos

Hi, in the Flow logic of the Screen include the following PBO and PAI modules,

PROCESS BEFORE OUTPUT.

  • Verarbeitung vor der Ausgabe

MODULE INIT_SUB.

MODULE GET_DATEN_SUB.

MODULE FELDAUSWAHL.

MODULE SONDERFAUS.

MODULE SONFAUSW_IN_FGRUPPEN.

MODULE FAUSW_BEZEICHNUNGEN.

MODULE FELDHISTORIE. " Aenderungsdienst

MODULE BILDSTATUS. " Nach Feldauswahl vor Vorlagehand.

MODULE ZUSREF_VORSCHLAGEN_B.

MODULE REFDATEN_VORSCHLAGEN.

MODULE ZUSREF_VORSCHLAGEN_A.

  • MODULE BEZEICHNUNGEN_LESEN.

MODULE ORG_BEZEICHNUNGEN_LESEN. "für Kopf-Bausteine mit Org.-Ebenen

MODULE SET_DATEN_SUB.

MODULE DISABLE_FIELD.

PROCESS AFTER INPUT.

  • Verarbeitung nach der Eingabe

MODULE GET_DATEN_SUB.

FIELD: MARA-ZZFIELD, the field you added to the screen

FIELD MARC-ZZZFIELD MODULE CHECK_ZZBRGEW." To do some validation as per you requrement if needed

MODULE SET_DATEN_SUB.

after this the data will be saved to the table mara

Thanks and Regards,

Pavankumar

0 Kudos

Hi Pawan,

the subscreen program(SAPLZDMG) which i created from SAPLDMG,screen no 2159.

there i added MVKE-LFMAX field.

so,in program SAPLZDMG,subscreen number 2159,i have to validate all the fields which are in that subscreen included that added field.

please help me on this,if possible provide code also.

its very urgent.

thanx in advance.

Regards,

Vishal.

0 Kudos

Hi Vishal,

This object doesnot invlove any code except the field statment for the new added field in PAI logic of the program.

I think you are doing very small mistake some where in configuration just follow same steps what i have writtin earlier. I am 100% that sure it will work and also be sure that added field is maintained in standard Table T130F.

These are the only Things for this object. If you are in trouble You can reach me on my Yahoo messenger ID <tanweer_zaki@yahoo.com>. I have allready done the same object without any issues.

Thanks and reagards

Tanweer

0 Kudos

No need to validate all the other fields is no wear concerened with you, if you have any requirement to validate your field MVKE-LFMAX .

PROCESS BEFORE OUTPUT.

  • Verarbeitung vor der Ausgabe

MODULE INIT_SUB.

MODULE GET_DATEN_SUB.

MODULE FELDAUSWAHL.

MODULE SONDERFAUS.

MODULE SONFAUSW_IN_FGRUPPEN.

MODULE FAUSW_BEZEICHNUNGEN.

MODULE FELDHISTORIE.

MODULE BILDSTATUS.

MODULE ZUSREF_VORSCHLAGEN_B.

MODULE REFDATEN_VORSCHLAGEN.

MODULE ZUSREF_VORSCHLAGEN_A.

MODULE SET_DATEN_SUB.

PROCESS AFTER INPUT.

  • Verarbeitung nach der Eingabe

MODULE GET_DATEN_SUB.

CHAIN.

FIELD MVKE-LFMNG.

FIELD MVKE-AUMNG.

MODULE MVKE-LFMNG ON CHAIN-REQUEST.

ENDCHAIN.

FIELD MVKE-EFMNG.

FIELD MVKE-SCMNG.

FIELD MVKE-RDPRF.

CHAIN.

FIELD MVKE-SCHME.

MODULE MVKE-SCHME.

ENDCHAIN.

CHAIN.

FIELD MVKE-RDPRF.

MODULE MVKE-RDPRF.

ENDCHAIN.

<b>CHAIN." to validate your field

FIELD MVKE-LFMAX.

MODULE MVKE-LFMAX.

ENDCHAIN.</b>

*

MODULE SET_DATEN_SUB.

*

PROCESS ON VALUE-REQUEST.

  • Selbstprogrammierte Eingabehilfen

FIELD MVKE-SCHME MODULE MEALL_HELP.

FIELD MVKE-RDPRF MODULE MVKE-RDPRF_HELP.

<b>&----


*& Module MVKE-LFMAX INPUT

&----


  • text

----


MODULE MVKE-RDPRF INPUT.

Validate check code

ENDMODULE. " MVKE-LFMAX INPUT</b>

Thanks and Regards,

Pavankumar

0 Kudos

my requirement is that when i create a material by giving values in the fields of the subscreen '2159' the values to be stored in database table MVKE.

0 Kudos

I am having same problem, kindly guide me