03-20-2006 4:41 AM
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
05-10-2006 1:04 PM
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.
05-10-2006 1:46 PM
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.