Skip to Content
0

Update target field with total net price in ME31K and ME32K

Oct 24, 2016 at 10:46 AM

191

avatar image

Hello all,

In ME31K and ME32K transaction

i want to display the total of the above net price(10100.00) in target field in header section

the above value 10100.00 should be displayed in target field,

at the same time the target field should be disabled for the user,

is there any suitable exit to achieve this.

i tried with BADI = ME_PROCESS_PO_CUST,

but i was unable to capture the data.

thanks in advance.

me31k-1.jpg (86.8 kB)
me32k-2.jpg (98.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

5 Answers

avatar image
Former Member Oct 25, 2016 at 11:50 AM
1

Please paste the code used to get the value of net and on which method .

use the below

IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM

im_item->get_data( )

ENDMETHOD.

Share
10 |10000 characters needed characters left characters exceeded
VINAY REDDY Oct 25, 2016 at 12:20 PM
0

Hi trevor,

thanks for your reply,

i will once again re write my code using the above said BADI..

meanwhile i have used exit = EXIT_SAPLEBND_002.

if sy-tcode eq 'ME31K' or sy-tcode eq 'ME32K'.
data : wa_ekpotab type BEKPO.
 data : lv_ktwrt type ekko-ktwrt.

 loop at it_bekpo into wa_ekpotab.

 lv_ktwrt = lv_ktwrt + wa_ekpotab-netpr.

 endloop.

 e_cekko-ktwrt = lv_ktwrt.
 e_cekko-gnetw = lv_ktwrt.

endif.

but the target field is not getting updated,

also how do i remove mandatory for target field.

regards,

vinay.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 25, 2016 at 01:09 PM
0

Hi Vinnay,

please update me on the progress based on my experience will advise

to use BADI other than User Exit function module and to remove mandatory talk to your MM functional to change it in configure not to be mandatory.

Regards,

Trevor

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi trevor,

already some logic written for some other purpose in this

IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM

i have put a break point here , however this is not getting triggered when i created or changed a contract agreement through ME31K or ME32K.

po1.jpg (158.5 kB)
po2.jpg (159.6 kB)
0
VINAY REDDY Oct 25, 2016 at 01:57 PM
0

trevor,

we can not use this BADI as it is of type with in SAP,


sap1.jpg (68.4 kB)
Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 25, 2016 at 01:41 PM
0

Hi

Please use the below class and break point that method as i did then

go to transaction me32k then keep on the checking the proper BADI when after changing or saving


capture1.png (19.8 kB)
capture2.png (82.5 kB)
Share
10 |10000 characters needed characters left characters exceeded