In this document you would be knowing about how to add a custom tab at item level in purchase order transactions.
For adding a custom tab to the purchase order transactions we have to implement the enhancement MM06E005.
First we have to create a project for this enhancement using transaction CMOD.
In this project after enhancement assignment to MM06E005.
In SMOD transaction we can see the documentation of this enhancement.
In the documentation you can find
Program name Screen Subscreen used for
SAPLXM06 0101 Subscreen header purchase order
SAPLXM06 0111 Subscreen item purchase order
Based on the requirement of whether adding a subscreen tab at the header or item level we can select the screen number from above.
We can navigate to the required screen layout in the SAPLXM06 program and create our own screen layout.
From the SMOD enhancement documentation screenshot below we can choose the EXIT in which we need to implement our logic based on the requirement.
Since I had to display some fields on an item screen tab I used EXIT_SAPMM06E_016.
Under the exit all we have to do is just add the ABAP code.
For having the custom name to the tab, please create text symbol with the screen number you are using and the text as required.
Below is what I have used.
Once this is done and activated, we can see the additional tab on purchase order.
That is it! The customer tab is added at your item level.