Application Development 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: 

EXIT_SAPLMEREQ_005 navigate to the incorrect field

Former Member
0 Kudos

Dear all,

I have a requirement to check PR item's quantity (do not allow user to increase).

Now, with user exit MEREQ001 (EXIT_SAPLMEREQ_005) I can check the change in quantity field and issue error messages.

However the cursor is not set at quantity field, it is set at company code field (account assignment tab) instead.

I found SAP Note 310154 but it has detail for PO and not for PR.

Is anybody has implement this before, please advise.

Thanks.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

You could try to use BAdI ME_PROCESS_REQ_CUST which allows use of the same macro than for purchase orders.


method IF_EX_ME_PROCESS_REQ_CUST~PROCESS_ACCOUNT.

  type-pools mmmfd.

  include mm_messages_mac.

* ...

  mmpur_metafield mmmfd_order_nr.

  mmpur_message_forced sy-msgty sy-msgid sy-msgno sy-msgv1 sy-msgv2

Regards,

Raymond

3 REPLIES 3

raymond_giuseppi
Active Contributor
0 Kudos

You could try to use BAdI ME_PROCESS_REQ_CUST which allows use of the same macro than for purchase orders.


method IF_EX_ME_PROCESS_REQ_CUST~PROCESS_ACCOUNT.

  type-pools mmmfd.

  include mm_messages_mac.

* ...

  mmpur_metafield mmmfd_order_nr.

  mmpur_message_forced sy-msgty sy-msgid sy-msgno sy-msgv1 sy-msgv2

Regards,

Raymond

0 Kudos

Thanks Raymond,

Can you please help me more specifically, what is metafield for item quantity (MENGE) and short text (TXZ01)?

Thank you once again.

Edited: I have found already, have a nice day

0 Kudos

If you double click on type pools MMMFD you will able to find all for example for txz01 is

   *mepo1321-txz01
mmmfd_manu_mat_text TYPE mmpur_metafield VALUE 270,  "HTN-Profil

Nabheet