09-23-2008 8:32 AM
Hi,
I have a customer screen for me23N ( SAPLXM06 - 0111 )
The field in this customer is always modifiable.
How can i do, for disable the modification in this field when we are not in modification please?
Thanks for your help and your reply.
Spawnrad
09-23-2008 9:02 AM
Hi,
Here
'EKPO_CI-PAUTH'
is custom field. U can replace u r field here.
and i_aktyp variable is PO change indicator
i_aktyp = 'A'
means indicator for display PO .
Regards,
Nandha
09-23-2008 8:38 AM
Hi,
You can handle screen elements' properties through SCREEN table.
Thank you.
09-23-2008 8:52 AM
Hi,
Use such logic like below
Export the change variable from user exit FM EXIT_SAPMM06E_016
EXPORT i_aktyp TO MEMORY ID sy-uname.
and import the variable and validate in screen 111 PBO like below
*&---------------------------------------------------------------------*
*& Module STATUS_0111 OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
module STATUS_0111 output.
IF ( ( sy-tcode = 'ME21N' ) OR
( sy-tcode = 'ME21' ) OR
( sy-tcode = 'ME22N' ) OR
( sy-tcode = 'ME22' ) OR
( sy-tcode = 'ME23' ) OR
( sy-tcode = 'ME23N' ) ).
CLEAR i_aktyp.
IMPORT i_aktyp FROM MEMORY ID sy-uname.
LOOP AT SCREEN.
IF screen-name = 'EKPO_CI-PAUTH'.
IF i_aktyp = 'A'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
endmodule. " STATUS_0111 OUTPUT
Try this .it is working fine.
Regards,
Nandha
09-23-2008 8:54 AM
09-23-2008 9:02 AM
Hi,
Here
'EKPO_CI-PAUTH'
is custom field. U can replace u r field here.
and i_aktyp variable is PO change indicator
i_aktyp = 'A'
means indicator for display PO .
Regards,
Nandha
09-23-2008 9:04 AM
09-23-2008 10:06 AM
Hi,
In order to disable the fields in the additional data tab .
write login in the include ZXM06O01 as shown below
if sy-tcode = 'ME23N'.
LOOP AT SCREEN.
IF screen-name = 'EKPO-custom field'.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Put break point and check the status.U will be able to see the field in disable mode. for tcode me23n.
Thanks,
Venu