12-11-2007 11:11 AM
Hi all,
I have a requirement in which, i need to store some addon information related to procurement at PO Item level. for this i have to design and code the Subscreen at item details level.
I had used the enhancement MM06E005 for this.
I had already design the custom screen from this enhancement at PO Item level, but i'm not able to save and display the custom data in PO Screen.
Secondly, i would like to have the control of display mode in custom subscreen (i.e in ME21N / ME22N : custom screen should be in edit mode and in ME23N : it should be in display mode).
regards,
shiva
Provide me the sample code required to GET and SET the data in Custom Screen.
12-12-2007 12:39 AM
To enable /disable the screen fields use the below code at the Module Output.
Module status_0200 output.
if sy-tcode = 'ME21N'.
Loop at screen.
If screen-group1 eq GR1.
Screen-active = 0.
Modify screen.
Endif.
Endloop.
Else.
Loop at screen.
If screen-group2 eq GR2.
Screen-active = 1.
Modify screen.
Endif.
Endloop.
Endif.
For SAVE and DISPLAY the data you need to move the data to the respective structures in the user exit.
Thanks,
Srinivas
12-12-2007 6:58 AM
Hi Srinivas,
Thanx to response back, you had mentioned about the enabling and disabling the screen fields, which is my secondary concern.
However, i would like to have some sample code which shows me the way to set and get the Custom data on my custom screen.(At PO ITem Level)
If possible provide me the steps in which they needs to be followed.
regards,
shiva
12-13-2007 11:40 AM
I got the Solution by refering the OSS Note 407975. However i'm still working on setting the screen attribute.