Application Development 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: 

Change Exch.Rate Fixed PO creation in ME21N

Former Member
0 Kudos

Hello Guys,

I have requirement to override the check box button of Exch.Rate Fixed under Delivery/Invoice Tab upon PO creation. Can you please assist me how to look for user-exit/BADI to achieve my requirement?

1 ACCEPTED SOLUTION

madhu_vadlamani
Active Contributor
0 Kudos

Hi,

Use badi ME_PROCESS_PO_CUST.

Regards,

Madhu.

7 REPLIES 7

madhu_vadlamani
Active Contributor
0 Kudos

Hi,

Use badi ME_PROCESS_PO_CUST.

Regards,

Madhu.

0 Kudos

Hello madhurao123,

Thanks a lot for your valuable response. I'll check the BADI now and provide feedback.

Cheers.

0 Kudos

Hello,

I updated method IF_EX_ME_PROCESS_PO_CUST~PROCESS_HEADER with get_data() and set_data() methods and clearing field lwa_poheader-kufix before calling set_data() but the exchange rate fix box is still checked. Is there something I missed?

Thanks.

0 Kudos

Hi,

It is fine . Please paste your code if still any issue.

Regards

Madhu.

0 Kudos

Hi madhurao123 ,

Here's my code but I removed some parts because I'm working for a client.

basically, I just cleart the field and pass it as prameter in set_data( ).

DATA: lwa_poheader TYPE mepoheader.

CONSTANTS: lc_x TYPE c VALUE 'X'.

lwa_poheader = im_header->get_data( ).

IF lwa_poheader-bukrs IS NOT INITIAL

AND lwa_poheader-waers IS NOT INITIAL.

CLEAR lwa_zxxx.

SELECT SINGLE *

INTO lwa_zxxx

FROM zxxx

WHERE bukrs EQ lwa_poheader-bukrs

AND waers EQ lwa_poheader-waers

AND zxrt_flag EQ lc_x.

IF sy-subrc EQ 0.

CLEAR lwa_poheader-kufix.

CALL METHOD im_header->set_data

EXPORTING

im_data = lwa_poheader.

ENDIF.

ENDIF.

ENDIF.

Edited by: binary ghost on Oct 18, 2011 2:02 PM

0 Kudos

Hi,

I have a small question. What you want to do in that field like select or unselect.

Regards,

Madhu.

0 Kudos

It's just a sort of checking when to clear the checkbox. I already debugged even set_data() method and field kuffix is cleared.