Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Purchase Req Screen Exit

Former Member
0 Likes
308

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.

1 REPLY 1
Read only

Former Member
0 Likes
255

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.