‎2008 Aug 07 9:55 PM
Hello,
I need to add a custom field to the PR transaction. I have added the field to screen 111 of Function group XM02, added the custom field in the able EBAN under the include structure "CI_EBANDB", coded function exit EXIT_SAPLMEREQ_003. For the custom field added there is no information coming in "im_req_item" in the function exit. What structure do I need to pass my custom field value in PROCESS AFTER INPUT for "im_req_item" to be populated with the value of the custom field.
Any help would be appreciated.
Thanks,
ALAM.
‎2008 Aug 08 6:16 AM
hi,
do in this process .......
go to the screen in se80 ......create a module in PAI event....
do catch the values there in to some variables (of your custom fields ...)
--> export them to memory id using export statement......
--> inside the exit EXIT_SAPLMEREQ_003 get those values
into some variables from the memory id ..........
--> now get the line item data into some strucutre reading from the meothd GET_DATA ....
--> in this way
data : re_data type REQ_ITEM.
CALL METHOD im_item->get_data
RECEIVING
RE_DATA = RE_DATA.
now the data comes into re_data....do check in debug mode .....now pass the custom fields which you have imported from memory id (which been added to eban strucutre.....)which will be seen in re_data (structure).....
--> next call metod
CALL METHOD im_item->set_data
EXPORTING
IM_DATA = RE_DATA.