Hello,
Someone has already changed service package item data (ESLL) during processing of purchase requisition transaction (ME51N/ME52N) using exits or badis?
I'm using the badi ME_PROCESS_REQ_CUST and exit MEREQ001 (for screen-exit) to change the PR (EBAN), but I'm facing a huge problem to change service package item at the same moment.
The service data are not "loaded" in memory if I don't open the strip "Services" first, so even selecting the data in table ESLL or calling the IF_SERVICES_MM-GET_SRV_DATA method or MS_READ_SERVICES function, I have no option to save my changes after this.
The interface IF_SERVICES_MM has no method "SET_SRV_DATA", and I tried to use some functions from group MLSP listed below but they caused side effects.
MS_CHANGE_SERVICE_PACKAGE_PR
MS_FILL_TABS_FROM_EXT_DATA
I can try to assign the memory value "(SAPLMLSP)IX_ESLL" and input the service data if this variable is empty, forcing the standard to update the ESLL on save. But I think this is a "dirty" solution. Other way is forcing the user to open the Service strip but this is not also a good solution.
Could anyone give me better suggestions?
Thanks in advance,
Janfer