Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

User exit while saving service entry sheet (ML81N)

Former Member
0 Likes
9,342


Hello experts,

In ML81N (Creation of service entry sheet).

I need to display an error message while saving the service enetry sheet based on the WBS elemet of the serive(Line item).

Please suggest me user exits that will satisfy the above requirement.

Thanks in Advance.

Regards,

Dorababu P


Hello experts,

In ML81N (Creation of service entry sheet).

I need to display an error message while saving the service enetry sheet based on the WBS elemet of the serive(Line item).

Please suggest me user exits that will satisfy the above requirement.

Thanks in Advance.

Regards,

Dorababu P

10 REPLIES 10
Read only

Former Member
0 Likes
5,812

Hi Punugoti,

All Enhancement Details for ML81N. Go to SMOD ->Select Component -> Display ->Double Click om Function module -> Include Program is an User Exit . you can use as per your requirement.

Enhancement

Description
SRVDETUser screen on tab strip of service detail screen
SRVEDITService list control (maintenance/display)
SRVENTRYUnplanned part of entry sheet (obsolete since Rel. 3.1G)
SRVESIData conversion entry sheet interface
SRVESKNSet account assignment in service line
SRVESLLService line checks
SRVESSRSet entry sheet header data
SRVEUSCRUser screen on entry sheet tabstrip
SRVKNTTPSetting the account assgnmt category when reading in, if "U"
SRVLIMITLimit check
SRVMAIL1Processing of mail before generation of sheet
SRVMSTLVConversion of data during importing of standard service cat.
SRVPOWEBPurchase order for service entry in Web
SRVQUOTService export/import for inquiry/quotations
SRVRELChanges to comm. structure for release of entry sheet
SRVSELService selection from non-SAP systems
SRV_FRMSRV: Formula calculation (obsolete since 4.0A!)
INTERFACInterface for data transfer

Thanks

Read only

Former Member
0 Likes
5,812

Hello Ranjeet,

Thanks for the suggestions.

I treid the exit Seivice line check(SRVESLL), But it is triggering every time if we press enter also.

The variable sy-ucomm is not having the function code related to SAVE.

it is getting changes to ENTE. So i am unable restrict by using the function code also.

Please suggest me how can i trigger the exit only while saving the service entry sheet.

Regards,

Dorababu P

Read only

0 Likes
5,812

Hi Punugoti,


Please try SRVESSR for header level activity.


Thanks,

Read only

Former Member
0 Likes
5,812

Hi Punugoti,

Could you please share how you resolved this issue as I have the same requirement?

regards

Julian

Read only

0 Likes
5,812

Hi,

I have resolved the issue by implementing an enhancement in include LMLSRF0F.

Loop through XESSR. Select data from EKKO and EKPO where XESSR-ebeln  = ebeln AND ebelp = XESSR-ebelp. Read table XESKN for WBS element.

cheers

Julian

Read only

0 Likes
5,812

Hello Julian,

I have used the FM: EXIT_SAPLMLSP_030 to display the error mesage.

it will get trigger for each and every line item in the service entry.

It may help you, Please check.

Regards,

Dorababu P

Read only

arivazhagan_sivasamy
Active Contributor
0 Likes
5,812

Hi,

Try to use user exit MBCF0002.

Arivazhagan S

Read only

jagadeesheluru
Explorer
0 Likes
5,812

Hello Dora Babu,

Could you please post how u have solved this issue

Thanks in advance!

Jagadeesh Eluru

Read only

0 Likes
5,812

Hi Jagadeesh,

Activate customer exit - MBCF0002 and set a break point.

When post the service entry sheet, it will trigger.

Now you can write a code.

Arivazhagan S

Read only

0 Likes
5,812

Hi,

Please have a look one below  post.