Skip to Content
0
Sep 18, 2023 at 12:32 PM

in ML81N date field in display mode is showing current date rather than picking from ESSR table date

64 Views

I recently done screen enhancement in ML81N . I added new field with sy-datum as default value and the date is getting stored in ESSR

data base table.

Now, when I am trying to see details of earlier service entry sheets in display mode, the new field is showing current date (SY-DATUM ) only. rather than picking the value from the ESSR table.

So first I have to find out how the system identifies if it is change mode or display mode.

I have checked SY structure and can see UCOMM , XPROG and CPROG is same for both in display and change mode.

I was expecting sy-ucomm to be different for both change and display mode so that I can get current date in change mode and Fetch date value from

ESSR table in display mode.

But here i can see SY-UCOMM = HC12 for both change and display mode.

image.png

image.png

The code is working perfect in change mode.

The issue is with display mode also , getting today's date in newly added date.

Kindly please help me to fix this issue.

Attachments

image.png (38.3 kB)
image.png (38.6 kB)