‎2009 Jul 07 9:52 AM
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.
‎2009 Jul 07 10:27 AM
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
‎2009 Jul 07 9:55 AM
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
‎2009 Jul 07 10:31 AM
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
‎2009 Jul 07 9:58 AM
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
‎2009 Jul 07 10:27 AM
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
‎2009 Jul 07 10:51 AM
hi
write the code which vijay has said in your User Exit MM06E005
Regards
Sajid
‎2009 Jul 07 11:11 AM
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
‎2009 Jul 07 11:16 AM
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
‎2009 Jul 07 12:00 PM
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.
‎2009 Jul 07 12:14 PM
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.
‎2009 Jul 07 12:20 PM
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
‎2009 Jul 07 2:51 PM
i have solved the problem. I have modified the original code.
That was the only way.
Regards
Marco M.
‎2009 Jul 07 2:55 PM
... 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.