Skip to Content
author's profile photo Former Member
Former Member

Help BADI ME_PROCESS_PO_CUST !?!?

Hi Friends,

I've created an implementation for BADI ME_PROCESS_PO_CUST to enhance TCode ME21n. I use method CHECK to check line item but I don't know how to collect the message error if any wrong data exists in that line item.

My message(s) will be collected as the original program do i.e :

Typ | Message text |

-


|----


|

Item 20 Sched.line 1

w | Can delivery date be met? |

When you chose that line above, program will bring you to the screen field that have wrong value.

Any one can help me collect the message(s)? Please!

Thanks,

Gy

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 09:46 AM

    Check if it's useful

    DATA : lt_items TYPE purchase_order_items ,

    ls_item TYPE purchase_order_item,

    CALL METHOD im_item->get_data

    RECEIVING

    re_data = lt_item.

    • give the condition for the Error message

    mmpur_metafield mmmfd_cust_01 .

    mmpur_message_forced 'E' 'ME' '083' text-003 '' '' ''.

    LOOP AT lt_items INTO ls_item.

    CALL METHOD ls_item-item->invalidate( ).

    ENDLOOP .

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Yes, mmpur_metafield will focus into the field . mmmfd_cust_01 should be used if the field is the customized field and should be defined in ME_GUI_PO_CUST method : MAP_DYNPRO_FIELDS .

      Since for ur case, it is the SAP field, check the corresponding value in the type group MMMFD and use it istead of mmmfd_cust_01. I don’t think you need to define in ME_GUI_POST since it's std. field. Please check.

      Note that I have not experimented with the same requirement. Just shared whatever I know . If you find any other better soln , please share it here .

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.