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

ME51N: Error message navigate message for custom fields.

Fabio777-hub
Explorer
0 Likes
1,327

Hello to all.

I show error message in ME51N/Me52N transaction via enhancemente MEREQ001 exit EXIT_SAPLMEREQ_005 and EXIT_SAPLMEREQ_010 via EX_MESSAGES parameter:

clear: x_bapiret2.

         x_bapiret2-type            = 'E'.

         x_bapiret2-id                = 'ZRAI_COLL'.

         x_bapiret2-number        = '007'.

         x_bapiret2-message_v1 = wa_par1.

         x_bapiret2-message_v2 = wa_par2.

         x_bapiret2-message_v3 = wa_par3.

         x_bapiret2-row              = l_row.

         x_bapiret2-field             = 'EBAN-ZZINIT_PREST'.

         append x_bapiret2 to ex_messages.

and everything works.

Now....I would like to link my error message to my custom fields created in tab. 0111

I have also error message about standard fields and I would like also their.

In PO (ME21N/ME22N) I have implemented BAPI ME_GUI_PO_CUST and via methods SUBSCRIBE and MAP_DYNPRO_FIELDS I have mapped custom fields with METAFIELD MMMFD and in BADI ME_PROCESS_PO_CUST method CHECK i trigger my error message via macro f include mm_messages_mac... and my error connection was ok.


Now, can I map metafield also per PR issue, in order to link and navigare on my custom error message, or have I do other settings/code?

I thought there was a BADI as BAPI ME_GUI_PO_CUST also per PR...but seen it isn't.

Also fields BAPIRET2-ROW and BAPIRET2-FIELD are not sufficient...


many thanks

Luca

1 REPLY 1
Read only

Fabio777-hub
Explorer
0 Likes
632

I saw that in CL_EXM_IM_ME_PROCESS_REQ_CUST in method OPEN it is using macros of include mm_messages_mac.

So can someone tell me how do I map my custom fields, please?


Many thanks.

Luca.


Can anyone help me, please?
Many thanks.
Luca