Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

BADI ME_GUI_PO_CUST + User exit MM06E005.

$
0
0

Goog morning,

 

we have inplemented position tab "customer data" via User exit MM06E005:

 

SAPMM06E                   0111 CUSTSCR1 SAPLXM06                   0111

 

All works well.

 

Via BADI ZME_PROCESS_PO_CUST method CHECK I use mm_messages_mac macros in order show error message.

 

I also implemented BADI ME_GUI_PO_CUST method SUBSCRIBE and method MAP_DYNPRO_FIELDS.

 

I would like to link error message to my field showed on custom tab. 0111

 

Something is wrong: the link doesn't work.

 

I have not clear the code that I have write to method SUBSCRIBE: (in post example I saw that in  ls_subscriber-program there is a custom program but I don't have a custom program...)

 

my code:

 

method if_ex_me_gui_po_cust~subscribe.

 

  data: ls_subscriber like line of re_subscribers.

 

  check im_application = 'PO'.

  check im_element     = 'ITEM'.

 

  clear re_subscribers[].

  ls_subscriber-name        = 'CUSTSCR1'.

  ls_subscriber-dynpro      = '0111'.

  ls_subscriber-program     = 'SAPLXM06'.

  ls_subscriber-struct_name = 'CI_EKPODB'.

*  ls_subscriber-label = 'Dati clienti'.

* ls_subscriber-position = 16.

  ls_subscriber-height = 7.

 

  append ls_subscriber to re_subscribers.

 

endmethod.

 

method if_ex_me_gui_po_cust~map_dynpro_fields.

 

* Mapping to metafields for customer fields.

  field-symbols: <mapping> like line of ch_mapping.

 

  loop at ch_mapping assigning <mapping>.

    case <mapping>-fieldname.

      when 'ZZORG_RICH'.   <mapping>-metafield = mmmfd_cust_01.

      when 'ZZINIT_PREST'. <mapping>-metafield = mmmfd_cust_02.

    endcase.

  endloop.

 

endmethod.

 

In debug, when I run ME21N/ME22N method subscribe is performet indtead method map_dynpro_fields is not performed...

 

Please help me.

Many thanks

Luca.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>