cancel
Showing results for 
Search instead for 
Did you mean: 

Method FIELDSELECTION_ITEM in ME_PROCESS_PO_CUST

Former Member
0 Kudos

How to get trtyp's value in method FIELDSELECTION_ITEM as i need to know the current status of PO whether it's on create/change mode

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Dont bother about display because the badi will never get triggered when PO transaction is in display mode.

So check on create/change is sufficient.

Former Member
0 Kudos

Hi Sharath,

Badi is triggered during display mode and l_data-ebeln is not initial , this means i cant set the field to be grayed out, pls advice

Former Member
0 Kudos

Hi there,

I have found the solution :

if <fs>-fieldstatus ne ''. "by default the contain is '*' so i didnt change anything

else.

<fs>-fieldstatus = '+'. " CHANGE/CREATE

endif.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

that would be very easy,

Get the header data from method FIELDSELECTION_ITEM.

data : l_header type ref to if_purchase_order_mm.

data : l_conditions type mmpur_tkomv.

data : l_data type mepoheader.

call method im_item->get_header

receiving

re_header = l_header.

call method l_header->get_data

receiving

re_data = l_data.

Here if l_data-ebeln is initial then it is create mode, otherwise it would be change mode.

Former Member
0 Kudos

Hi Sharath,

How about display? how can i know the status