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: 

Problem while adding subscreen in MM02

Former Member
0 Kudos

Hi all,

Thx for ur reply bur while adding the subscreen in my custom program(mm02) saplzmgd1 , what shall i write in the PBO and PAI event?

or shall i copy the existing screen n make modifications ther?

what if i have to add another field of my own in the existinh subscreen added to mara by append structure, in that case, what shall be ther at PBO and PAI ??

Regds

Gunjan

2 REPLIES 2

Former Member
0 Kudos

The whole procedure what to do is described in detail in the IMG:

e.g.

PBO:

MODULE INIT_SUB.

MODULE GET_DATEN_SUB.

MODULE FELDAUSWAHL.

MODULE SONDERFAUS.

MODULE SONFAUSW_IN_FGRUPPEN.

MODULE FELDHISTORIE. "Aenderungsdienst

MODULE BILDSTATUS.

MODULE ZUSREF_VORSCHLAGEN_B.

MODULE REFDATEN_VORSCHLAGEN.

MODULE ZUSREF_VORSCHLAGEN_A.

MODULE INIT_SUB_1000. "YOUR CODING

MODULE SET_DATEN_SUB.

PAI:

MODULE GET_DATEN_SUB.

  • Start YOUR CODING

FIELD: MARC-....

MODULE MARC_...

MODULE OK_CODE....

  • End YOUR CODING

MODULE SET_DATEN_SUB.

Former Member
0 Kudos

Hello Gunjan,

If u have defeined the screen field with defination of Mara then u need not do anything in PBO and PAI. otherwise u will need to do the movement.

Secondly for addition of new field u can proceed in the same way. add the field in mara and create the field in the screen (say 9001) of saplzmgd1. use the ref of mara table so u will not have to do anything in PBO and PAI. If however u need to do any validations then u can do the same in PAI.