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

screen fields editability

Former Member
0 Likes
1,857

Dear Friends,

Im working with User Exit MM06E005 in order to have Custome fields in MM transaction ME21, ME22, ME23.

To control the custom screen fields editability based on the transactions ME21, ME22, ME23 there are some

doings needed because the customer field remain always as a "Input" field all over the time.

How can I achieve that. Any help will be higly appreciated.

Friendly Regards

Marco M.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,819

hi,

thanks a lot. This is clear to me with LOOP AT SCREEN but I dont know in which exit.

Especially in the Screen 0120 Programm SAPMM06E.

Regards

Marco M

12 REPLIES 12
Read only

Former Member
0 Likes
1,819

Hi Marco ,

In your user Exit check for sy-tcode.

Loop at screen.

If sy-tcode = 'ME21'.

elseif sy-tcode = 'ME21'.

elseIf sy-tcode = 'ME21'.

endif.

endlloop.

Regards,

vijay

Read only

0 Likes
1,819

Hi again,

LOOP AT SCREEN.

IF screen-name = field(customer field specified).

If sy-tcode = 'ME21'.

screen-input = 1 --->Edit

elseif sy-tcode = 'ME22'.

screen-input = 1 --->Edit

elseIf sy-tcode = 'ME23'.

screen-input = 0 --->Display

endif.

endif.

MODIFY SCREEN.

ENDLOOP.

Regards,

Vijay

Read only

Former Member
0 Likes
1,819

Hi,

LOOP AT SCREEN.

Check for the screen group.

IF screen-name EQ field(customer field specified)

screen-input = 1 --->for input only

ENDIF

MODIFY SCREEN.

ENDLOOP.

Thank u.

Regards,

Padmasri.

Edited by: Padmasri on Jul 7, 2009 11:00 AM

Read only

Former Member
0 Likes
1,820

hi,

thanks a lot. This is clear to me with LOOP AT SCREEN but I dont know in which exit.

Especially in the Screen 0120 Programm SAPMM06E.

Regards

Marco M

Read only

0 Likes
1,819

hi

write the code which vijay has said in your User Exit MM06E005

Regards

Sajid

Read only

0 Likes
1,819

user exit MM06E005 has the following components. Can you say to me now how can I

achieve the above requirement

Functionexit EXIT_SAPMM06E_006

EXIT_SAPMM06E_007

EXIT_SAPMM06E_008

EXIT_SAPMM06E_009

EXIT_SAPMM06E_012

EXIT_SAPMM06E_013

EXIT_SAPMM06E_014

EXIT_SAPMM06E_016

EXIT_SAPMM06E_017

EXIT_SAPMM06E_018

Screenexit SAPMM06E

SAPMM06E

SAPMM06E

SAPMM06E

SAPMM06E

SAPMM06E

Includetables CI_EKKODB

CI_EKPODB

Read only

0 Likes
1,819

Hi Marco again,

EXIT_SAPMM06E_007

EXIT_SAPMM06E_008

EXIT_SAPMM06E_009

EXIT_SAPMM06E_012

EXIT_SAPMM06E_013

EXIT_SAPMM06E_014

EXIT_SAPMM06E_016

EXIT_SAPMM06E_017

EXIT_SAPMM06E_018

Just try with every exit one by one and put Break point in it. This will take you your required include.

Regards,

Vijay

Read only

Former Member
0 Likes
1,819

in order to make the req more clearly.

There is a customer field placed on the screen 0120 in the (Programm SAPMM06E).

This field is always editable.

I have inserted this coding into each exit. But it didn' help. I have inserted a screen element "Input field"

on the screen 0120 through modification. What is the current problem in my req.

IF I_AKTYP = 'A'.

LOOP AT SCREEN.

IF SCREEN-NAME = 'EKKO-KMNFR'.

SCREEN-ACTIVE = 1.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

Read only

Former Member
0 Likes
1,819

Hi,

To get screen field editable.

LOOP AT SCREEN.

IF ( screen-group = 'XYZ').

if screen-name = your screen field

screen-input = 1. active for input

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Hope it may help you.

Thanks.

Read only

Former Member
0 Likes
1,819

In order for the logic to work, it has to be placed inside the PBO (Process Before Output).

In the screen where you inserted your custom field, check the PBO part and see if you can add your codes there. If not, check if you can modify the existing PBO module via enhancement spots.

BR

Read only

Former Member
0 Likes
1,819

i have solved the problem. I have modified the original code.

That was the only way.

Regards

Marco M.

Read only

Former Member
0 Likes
1,819

... but the problem is I have found a new Transaction ME21N and it has been assigned to another

package and function group. I can not use MM06E005. How do you achieve Custom Fields in

me21n ?

Regards

Marco M.