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

PR# in Function exit EXIT_SAPLMEREQ_003

Former Member
0 Likes
1,193

Hi Experts,

I am using function exit EXIT_SAPLMEREQ_003 in ME54N.Here I want to access PR details such as PR#,PR Date,Created by fields.

Can any one explain me in detail how to access these fields?

Regards,

Sam.

Hi Experts,

I am using function exit EXIT_SAPLMEREQ_003 in ME54N.Here I want to access PR details such as PR#,PR Date,Created by fields.

Can any one explain me in detail how to access these fields?

Regards,

Sam.

4 REPLIES 4
Read only

Former Member
0 Likes
884

Use the method GET_REQUISITION of importing parameter IM_REQ_ITEM (of type ref to IF_PURCHASE_REQUISITION_ITEM). The method GET_REQUISITION is having a return parameter RE_REQUISITION (of type ref to IF_PURCHASE_REQUISITION).

You have to call the method GET_DATA of returning parameter RE_REQUISITION to get the header data of purchase requisition.

Read only

0 Likes
884

Hi Vinod Kumar,

Thanx for your valuable suggestion.

Can u pls explain it in detail?

Regards,

Sam

Read only

0 Likes
884

Hi Experts,

Any updates pls...

Pls help me in resolving this issue.

Can any one paste the code to fetch PR# in EXIT_SAPLMEREQ_003.

Regards,

Sam

Edited by: sam24 on Mar 9, 2011 5:23 AM

Read only

0 Likes
884

Hi Sam

Before this use exit gets triggered there is another user exit EXIT_SAPLMEREQ_009 where all header data is available.

Define header structure work area in top include ZXM02TOP of these user exit. Populate this work area in EXIT_SAPLMEREQ_009. The same work area will be available in EXIT_SAPLMEREQ_003 user exit since we have defined it as global data.

Regards

Sachin