2007 Aug 08 7:43 AM
i want to add a custom field in me21n transaction how to incorporate it in standard screen
2007 Aug 08 10:24 AM
if you use the SMOD and activate the MM06E005
using SE80 you can add your fields with subscreens
SAPLXM06 0101 for Headerfields
SAPLXM06 0111 for Items.
This will add a tab in ME2..N.
if you want your own Text on the tabstrip just edit the Textsymbols
101 and 111 from SAPLXM06.
At output you have to open a module asking the gl_aktyp to switch edit/display mode.
then you must code the Exits to import/export values
***********************************
<b>EXIT_SAPMM06E_006</b>
***********************************
*
store transaction type for later modification of screen attributes
*
gl_aktyp = i_trtyp.
gl_no_screen = i_no_screen.
*
store current state of customer data in ekko_ci (structure for screen)
*
ekko_ci = i_ci_ekko.
*
store reference document
*
if i_rekko-ebeln ne gl_rekko-ebeln and
not i_rekko-ebeln is initial and
gl_rekko-ebeln is initial.
ekko_ci-zzemail = i_rekko-zzemail.
gl_rekko = i_rekko.
endif.
***********************************
<b>EXIT_SAPMM06E_007</b>
***********************************
move-corresponding i_ekko to gl_ekko_ci.
***********************************
<b>EXIT_SAPMM06E_008</b>
***********************************
e_ci_ekko = gl_ekko_ci.
*
ekko_ci contains the actual values of the Dynpro fields
e_ci_update is only set if you really want the fields
on the Dynpro to be saved. You must set it then to 'X'
the field ekko_ci-zzflag will here only be saved if there
was a change and the transaction is not in display mode
*
if gl_ekko_ci-zzemail ne ekko_ci-zzemail.
e_ci_ekko-zzemail = ekko_ci-zzemail.
if gl_aktyp ne 'A'.
e_ci_update = 'X'.
endif.
endif.
You should have all the infos you need.
Laurent
i want to add a custom field in me21n transaction how to incorporate it in standard screen
2007 Aug 08 10:24 AM
if you use the SMOD and activate the MM06E005
using SE80 you can add your fields with subscreens
SAPLXM06 0101 for Headerfields
SAPLXM06 0111 for Items.
This will add a tab in ME2..N.
if you want your own Text on the tabstrip just edit the Textsymbols
101 and 111 from SAPLXM06.
At output you have to open a module asking the gl_aktyp to switch edit/display mode.
then you must code the Exits to import/export values
***********************************
<b>EXIT_SAPMM06E_006</b>
***********************************
*
store transaction type for later modification of screen attributes
*
gl_aktyp = i_trtyp.
gl_no_screen = i_no_screen.
*
store current state of customer data in ekko_ci (structure for screen)
*
ekko_ci = i_ci_ekko.
*
store reference document
*
if i_rekko-ebeln ne gl_rekko-ebeln and
not i_rekko-ebeln is initial and
gl_rekko-ebeln is initial.
ekko_ci-zzemail = i_rekko-zzemail.
gl_rekko = i_rekko.
endif.
***********************************
<b>EXIT_SAPMM06E_007</b>
***********************************
move-corresponding i_ekko to gl_ekko_ci.
***********************************
<b>EXIT_SAPMM06E_008</b>
***********************************
e_ci_ekko = gl_ekko_ci.
*
ekko_ci contains the actual values of the Dynpro fields
e_ci_update is only set if you really want the fields
on the Dynpro to be saved. You must set it then to 'X'
the field ekko_ci-zzflag will here only be saved if there
was a change and the transaction is not in display mode
*
if gl_ekko_ci-zzemail ne ekko_ci-zzemail.
e_ci_ekko-zzemail = ekko_ci-zzemail.
if gl_aktyp ne 'A'.
e_ci_update = 'X'.
endif.
endif.
You should have all the infos you need.
Laurent