05-09-2013 7:15 AM
Hi,
I need to popup a window when a user clicks on save. On this window I will need agreement no.
I tried all the exits listed in the common list posted on various threads but it didn't help me.
Please provide me the solution.
05-09-2013 8:38 AM
Hi Ekansh,
Whenever the user clicks on SAVE the include LMLSRF0F is called and the subroutine PERFORM SAVE is executed.
By writing the code for the popup in the include LMLSRF0F will popup a window when user clicks on save. You can use function module POPUP* for the popup window. The include LMLSRF0F contains enhancement spot so you can easily accomodate your code. Let me know if any additional information is required.
Hope this helps.
Thanks,
Tooshar Bendale
05-09-2013 8:33 AM
05-09-2013 8:38 AM
Hi Ekansh,
Whenever the user clicks on SAVE the include LMLSRF0F is called and the subroutine PERFORM SAVE is executed.
By writing the code for the popup in the include LMLSRF0F will popup a window when user clicks on save. You can use function module POPUP* for the popup window. The include LMLSRF0F contains enhancement spot so you can easily accomodate your code. Let me know if any additional information is required.
Hope this helps.
Thanks,
Tooshar Bendale
10-16-2013 11:48 AM
Hi Tooshar,
I have checked include LMLSRF0F, there is no enhancement spot but enhancement spot is there in main program SAPLMLSR, same is not usable "Statement inaccessible" message. Pls. help how to add code in include.
regards,
Rajesh
10-17-2013 10:51 AM
Hi Rajesh,
I double checked the include LMLSRF0F, and yes there are enhancement spots available for this include.
1) Go to SE38 -> LMLSRF0F -> Display
2) Program -> Enhance
3) Edit -> Enhancement operations -> Show Implicit Enhancement options
4) Create an enhancement spot inside the subroutine SAVE.
If you write / create a enhacement spot outside the subroutine, during activation of the program its going to give an error Statement inaccessible because its outside the subroutine and will never be executed. Hope this answers your question.
Let me know if any additional information is required.
Thanks,
Tooshar Bendale
10-18-2013 10:40 AM
Hi Tooshar,
Thanks, I am able to create enhancement spot as you suggest. Thank you very much.
I am getting ESSR data but I also want to have ESLL (line item data) at the time of SAVE to validate quantity entered. Which structure is used for ESLL data at the time of save? I checked T_ESLL, IS_ESLL_KEY, IX_ESLL but these are not accessible at the time of save.
regards,
Rajesh
10-18-2013 11:10 AM
Hi Rajesh
Can you please put a break poiint in MS_CREATE_SERVICE_ENTRY_MULTI.
If it comes their you can do an implicit enhancement and raise an exception for invalid inputs.
Thanks
Nabheet
10-18-2013 12:00 PM
Hi Nabheet,
Thanx for the reply.
I have checked FM MS_CREATE_SERVICE_ENTRY_MULTI by putting break point, it is not coming.
Please suggest how can I validate quantity entered at the time of SAVE.
regards,
Rajesh
10-18-2013 12:07 PM
Actually i am not able create service entry in my system so cant exactly tell you but still you can do one thing. Before press save start debugger and put a breakpoint at statement call function. The you can choose accordinlgy which FM satsifies your criteria and proceed.
Thanks
Nabheet
10-18-2013 12:11 PM
11-06-2013 1:11 PM
Thanks Tooshar Bendale!
I created an enhancement point to validate and change account information at XESKN[]. It helped a lot.
11-28-2013 7:52 AM
Hi Rajesh,
For ESLL entries, use the function module MS_READ_ENTRY_SHEET at the Enhacement Spot provided by Tooshar.
Regards,
Harshil
05-09-2013 10:16 AM
Hi,
There are 2 options.
Use screen exit
Screen exits available for your application are,
SRVDET : User screen on tab strip of service detail screen
SRVEUSCR : User screen on entry sheet tabstrip
OR
Use FM
POPUP_GET_VALUES to get the value.
There are also FM where the value will be checked against DB
Check the FG of this FM.
Regards,
01-16-2015 7:53 AM
Guy's,
Just in case if the process is automated (CATM) and there is a requirement to update any field then we can do it in FM MS_CREATE_SERVICE_ENTRY_MULTI. My requirement was to default the GL account once the service entry sheet is created. Create a source code enhancement at start of the FM and change the value.
Hope it helps and saves time for others as i was trying to achieve it using one of the user exits found (SMOD-Package ML) and it did not worked.
Thanks/AJ