2023 Aug 31 1:03 PM
microsoftteams-image.pngHi gurus,
I am working on scree exit for ML81N, I am working on implementing SRVEUSCR :User screen on entry sheet tabstrip.
I could able to manage to get the custom field on the addional tab next to history tab, using subscreen SAPLXMLU 0399.
When I execute ML81N, I can able to see the additional date filed on the new tab which I have added.
Now I am implementing the function exit associated with SRVEUSCR
EXIT_SAPLMLSR_020 :Transfer of Data to Entry Sheet User Screen
When I am using this import exit , it is giving me the error "The field I_ESSR-ZINVRECDAT can not be changed". ZINVRECDAT is the field I have added using CI_ESSRDB to ESSR table. I just want to get sy-datum as default value upon execution of ML81N on additional screen and the same date to be captured in database table ESSR.
Kindly please help me with it at the earliest as I am struggling with it from 2 days.
I also want to know is it mandatory to implement both the function exits, EXIT_SAPLMLSR_020 and EXIT_SAPLMLSR_021 ?
2023 Aug 31 4:51 PM
You cannot change the imported parameters. (Read-Only, This exit receive this data and you have to save it in the exit function group to map it to dynpro)
2023 Aug 31 7:09 PM
I really appreciate your quick response and support. I am very new to this field, working on enhancements for first time. Can you please elaborate me and help me in getting the screen field date value stored in db table ESSR. I can not able to find where the ZXMLUTOP exist. I have no idea how to work on " you have to save it in the exit function group to map it to dynpro)"
Kindly please help me and get me out of this issue.
2023 Sep 01 9:15 AM
2023 Sep 01 12:57 PM
Issue finally resolved. Now I can able to capture data with this piece of code in pbo.
declaring tables in top include actually helped me to get out of errors. Thanks for your support .
in pbo the code is
CI_ESSRDB-ZINVDAT = SY-DATUM.ESSR-ZINVDAT = CI_ESSRDB-ZINVDAT.
in Pai the code is
E_ESSRDB-ZINVDAT = ESSR-ZINVDAT.
Thanks Raymond . Will come back to you with new issue.:)
2023 Sep 01 10:57 AM
I have added tables to top , but it looks like the exit/include is not getting refreshed. because even after deleting few lines, it is throwing the same error which was there due to the lines which were there before deletion.
I have removed ESSR but it is sill pointing out to the same error which was before .. I have saved, check and trying to activate.
2023 Sep 01 11:24 AM
Only define those area/variable once
2023 Sep 01 11:30 AM
2023 Sep 01 11:55 AM
I am now confused to use CL_ESSSRDB , I_ESSR or both to make ZINVDAT in ML81N get sy-datum value.
Please help me what code should be used in PBO to get default sy-datum value on screen
HOW to import sy-datum value on screen date field ?
2023 Sep 01 6:26 PM
Answer without any explanation. The one by Raymond is quite good and will help more future visitors.
2023 Sep 04 7:09 AM
pashasapcha
I'm glad you received an answer to your question. Please be sure to mark the one suitable as correct. Please don't add additional information as new answers but as comments.