You have a PO report and wants to drill in to each PO in enjoy transaction code ME23N. This is usually not possible, and most of you will just use ME23 to display.
I will explain how to do this with ME23N.
Step 1: SQ02
a) Create a infoset e.g. MM_DISPLAY_PO, and name your infoset.
b) You select Direct Read of table EKPO.
c) You should have PO and Item in your field group.
d) Under “Extras” tab, create a code.
e) Put in below codes:
SET PARAMETER ID ‘BSP’ FIELD EKPO–ebelp.
SET PARAMETER ID ‘BES’ FIELD EKPO–ebeln.
CALL FUNCTION ‘ME_DISPLAY_PURCHASE_DOCUMENT’
i_ebeln = EKPO–ebeln
i_ebelp = EKPO–ebelp
i_enjoy = ‘X’
OTHERS = 1.
f) Save code, infoset and generate.
e) Assign this infoset to a dummy user group. E.g. IT_DUMMY
Step 2: SQ01
a) Go to your dummy group.
b) Create a query e.g. MM_DISPLAY_PO and reference to your new infoset above.
c) Have the 2 available fields Purchase Order and Item in your selection screen and list field under Basic list.
d) Save your query and try it out with some PO number in your selection screen. You should be able to go to the respective PO.
a) For your PO report in your main query group, do a report assignment to the dummy query group and query you have created above. This is found in change mode –> menu –> Goto –> Report assignment. Fill in the dummy group and query you have from above and save in the pop up box.
b) Save your main PO report query.
c) Run your main report and execute it. when you double click on the respective PO line, you should now be able to see ME23N with the respective PO!!!