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: 

MARA subscreen created but does not get populated with data

Former Member
0 Kudos

I am not able to update the field which does show up in the Material Master MM01, MM02, MM03.

I have followed the sequence as given in the Configuring the Material Master but I can't save the data to the field. Am I missing something. Can someone please let me know the proper sequence and if they have faced similar problem.

And Yes I will be generous with points for quick reponses. and for the response which will fix our problem. Thank You.

Regards,

Clark

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I hope you would have used screen exits to put custom fields in the MM01/MM02/MM03. For every screen exit there will two function exits for doing PBO and PAI, so you need code that also.

Cheers,

Satya

13 REPLIES 13

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I have done this in the past as a Proof of Concept, I know that I struggled with it. The problem that I mostly had was getting the fields to show up on the screen. The updating part happened by itself.

Have you...

1) Added your fields to the include structure of MARA

2) Named your screen fields as MARA-<FieldName>

Regards,

Rich Heilman

0 Kudos

I have used append structure to MARA

.APPEND ZAMARA STRU 0 0 Extract fields in Mara

ZZGRAPE ZGRAPE CHAR 3 0 grape

ZZCOLOR ZCOLOR CHAR 2 0 color

ZZCOMMDTYP ZCOMMDTYP CHAR 4 0 Commodity type

ZZVARITAL ZVARITAL CHAR 3 0 Varietal ( Grape Type)

ZZAGE ZAGE CHAR 3 0 Spirit Age

ZZPROOF ZPROOF CHAR 3 0 Spirit Proof

ZZVINTAGE ZVINTAGE CHAR 4 0 Wine Vintage

ZZCTRYOFORIG ZCTRYOFORIG CHAR 3 0 Country of Origin

ZZWINREGION ZWINREGION CHAR 3 0 Wine Region

ZZAPPELTION ZAPPELTION CHAR 4 0 Appellation (Wine comes from)

Former Member
0 Kudos

I hope you would have used screen exits to put custom fields in the MM01/MM02/MM03. For every screen exit there will two function exits for doing PBO and PAI, so you need code that also.

Cheers,

Satya

0 Kudos

Hello Satya

Can you please elaborate on that. Can you tell me exactly where I need to go to do it.

Regards

Clark

0 Kudos

And you screen fields are name exactly like....

MARA-ZZGRAPE etc.

Right?

Regards,

Rich Heilman

0 Kudos

Hello Rich

Not sure how to check that. I amnew to this problem the person who did this was not able to resolve this and I am trying to fix this problem. I am in SPRO and in the Configuring the Material Master and trying to find where I can go to check the screen fields.

Maybe I can also check this in the MM01 / MM02 / MM03 System > Status....

0 Kudos

Ok, in your instructions/documentation, it must talk about a subscreen number and the program associated with the screen, right? Once you find that, Go to SE51, enter the program name and the screen number. Click display. Click the element list tab. Here is a list of the fields that are on that subscreen. Make sure that they are like MARA-ZZGRAPE. Make sure that the fields start with MARA- and that the field names are the same that are in the include structure.

Regards,

Rich Heilman

0 Kudos

Just checked the fields I misunderstood it to be a problem with MARA and assumed wrongly. The fields in MARA subscreen do work properly.

The fields in the new subscreen which was added were in the table MVKE I am right now checking the subscreen and looking for what you have told me to find out. All these screens/subscreens are for MM01, MM02 & MM03.

Program name SAPLZMMFIELDS

Screen number 2156

Program name SAPLMGMM

Status DATE00

Transparent tabl MVKE

Field name VINTAGE

Data element ZVINTAGE

DE supplement 0

Screen field MVKE-VINTAGE

Program name SAPLMGMM

Screen no. 4000

*----


*

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. "Änderungsdienst

MODULE BILDSTATUS.

MODULE ZUSREF_VORSCHLAGEN_B.

MODULE REFDATEN_VORSCHLAGEN.

MODULE ZUSREF_VORSCHLAGEN_A.

MODULE BEZEICHNUNGEN_LESEN.

MODULE SET_DATEN_SUB.

PROCESS AFTER INPUT.

  • Verarbeitung nach der Eingabe

MODULE GET_DATEN_SUB.

*

FIELD: MVKE-VINTAGE,

MVKE-ACCUMBOTL.

  • MVKE-MVGR3,

  • MVKE-MVGR4,

  • MVKE-MVGR5.

*

MODULE SET_DATEN_SUB.

*----


*

0 Kudos

Is this the field in question?

MVKE-VINTAGE

The flow logic looks ok to me.

Regards,

Rich Heilman

0 Kudos

Hello Rich

Yes that is the field in question and the field on the same subscreen, both the fields on the subscreen don't seem to be getting updated.

Any suggestions on where I could look to see if there might be a potential error on my part either from a technical or customizing side.

Regards,

Clark

0 Kudos

HI all,

I am trying to do something similar to this, How did u Add Custom Fields to MM01.

And i do not find this SAPLZMMFIELDS program, Which Verison was it on.

Any help in this regards in highly appreciated.

Thanks

Ravi.

0 Kudos

Hi,

I had problems updating custom field FACTORY in MARA but got through it using the following screen definition:

PROCESS BEFORE OUTPUT.

MODULE INIT_SUB.

MODULE GET_DATEN_SUB.

MODULE SET_DATEN_SUB.

PROCESS AFTER INPUT.

MODULE GET_DATEN_SUB.

FIELD: MARA-factory.

MODULE SET_DATEN_SUB.

Regards Bjarne Conrad.

0 Kudos

Thanks, It helped me to update the custom field in MVKE table.

Regards,

Narayan