06-12-2013 11:19 AM
Hi experts,
I am facing one issue where one of the PAI module is not being called.
Scenario :
As per the current system, standard screen 0014 in MEGUI functional group, was modified few years back and custom PAI module was inserted inside it.
*{ INSERT DSK9055258
module check_config_materials.
*} INSERT
Earlier this module was getting executed successfully and control used to go inside it as well but after EHP6 upgrade control is not going inside the mentioned module.
Please let me know the approach how to find root cause of it.
06-12-2013 11:42 AM
Hi Vishal,
Mostly during SPAU / SPAD this program might have been over written and it would better to put a break-point and check if it is still applicable in the sequence it is executed.
BR
06-12-2013 11:43 AM
Hi,
please check in SE51 if the module really exists. Doubleclick in the flow logic to check, whether the module can be found. Maybe this module is in an include which is lo longer included after upgrade.
Maybe a standard report was set to SAP STANDARD in SPAU. Please check this.
Regards,
Klaus
06-12-2013 12:04 PM
Hi,
Custom code was again put back during SPAU activities for this screen and when I double click on the module, it shows the relevant code. Nothing has been overwritten.
But at runtime when I debug the flow logic control does not go inside this module.
06-12-2013 12:43 PM
06-12-2013 12:58 PM
Hi Vishal,
The screen you mentioned is as an include to multiple main programs.
Also check if the code is activated properly if possible try to check out some enhancement for your checks rather than putting it in the screen directly.
BR
06-13-2013 5:02 AM
hi BR,
These checks were implemented long back when the system was on 4.6c.
No doubt these checks should be placed in some SAP provided enhancements but the present functionality has been working from last 4-5 years and we have to find the solution of the same within that scope instead of placing the checks in any enhancements of newer version.
I am not able to understand how the custom PAI module is getting skipped even though it's implemented and activated too. Would definitely like to understand the back end functionality that how SAP calls these modules instead of just simple theoretical answer like "When user do some action PAI event gets triggered'.
Please guide me.....
Thanks
VJ
06-13-2013 6:41 AM
Hi Vishal,
In 4.6c the PO transaction was ME21 and now it is ME21N. The way PAI works has not changed but the codes have. If you have some messages or something like that it will not work as if you see the code they have bundled the entire coding via OOPs in ME21N where as it was procedural more over in ME21 also the messaging and checking are all over-ridden with the processing of BADI ME_PROCESS_PO_CUST with methods PROCESS_HEADER and PROCESS_ITEM.
Implement this BADI and it will work.
BR
06-13-2013 7:16 AM
Don't expect that modification of the standard will always be easy to carry from 4.6c to ECC Ehp ?, logic of many programs has changed in such a long time. So better solution is uage of BAdI ME_PROCESS_PO_CUST. Here sequence of screen may have changed so if user doesn't display the screen/Subscreen with the modification no check is performed. DEpending on the screen modified select the good IF_EX_ME_PROCESS_PO_CUST~PROCESS_XXXX or CHECK method.
Regards,
Raymond
06-13-2013 11:29 AM
Hi all,
I think I missed out mentioning important point that the same functionality was working fine in ECC as well but after EHP6 upgrade we are encountering this issue.
Please let me know if you still require any further info.
Thanks
VJ