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

In PO creation I need to clear ekpo-weora field value.

Hi All,

When I am creating PO, I require to clear ekpo-weora field. Initially for a document type the filed has 'X' value I want to clear it and update the EKPO table.

I tried to clear the filed in exit but it doesnt update the EKPO table entry.

Please help me out.

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 13, 2010 at 08:51 AM

    Hi Sandeep,

    We can update EKPO-WEORA field by implementing PROCESS_ITEM method of the BADI "ME_PROCESS_PO_CUST".

    Here is the logic to follow.

    DATA: lw_pur_order TYPE REF TO if_purchase_order_mm,

    w_header TYPE mepoheader,

    w_item TYPE mepoitem.

    • Get the PO Header data

    lw_pur_order = im_item->get_header( ).

    w_header = lw_pur_order->get_data( ).

    • Get Item data

    w_item = im_item->get_data( ).

    • Check for your required doc type using the value w_header-bsart and proceed with the below logic to update the field

    Clear : w_item-weora.

    • Set the data

    CALL METHOD im_item->set_data

    EXPORTING

    im_data = w_item.

    Hope this helps you !!!

    Regards,

    Ganga

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 13, 2010 at 07:52 AM

    Hi,

    Implement the BADI ME_PROCESS_PO_CUST and try in the methods PROCESS_ITEM or POST.

    Thanks,

    Vinod,

    Add a comment
    10|10000 characters needed characters exceeded

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.