Application Development and Automation 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: 
Read only

MM06E005 screen exit help

Former Member
0 Likes
874

i want to add a custom field in me21n transaction how to incorporate it in standard screen

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
681

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

1 REPLY 1
Read only

Former Member
0 Likes
682

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