Application Development and Automation 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: 
Read only

BADI while PO Creation

Former Member
0 Likes
9,672

Hello Freinds,

Hello Freinds,

I am using BADI ME_PURCHDOC_POSTED method Posted for updating a ztable for the PO.

This BADI is getting called through ME21N and ME22N.

My problem is that when it gets called from ME21N, all the internal tables of EKKO, EKPO does not have PO numbers as it has not yet got created. I need to update the Ztable and hence I need the PO number.

Can anyone help me with a BADI which can give me the value of PO number in the creation mode itself.

Kindly help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
6,648

Hi,

In the structure within the BADI, IM_EKKO will contain the details which you can use for getting the PO Number. Check in debugging if you could get PO number from IM_EKKO-EBELN.

Regards,

Mansi.

Hello Freinds,

Hello Freinds,

I am using BADI ME_PURCHDOC_POSTED method Posted for updating a ztable for the PO.

This BADI is getting called through ME21N and ME22N.

My problem is that when it gets called from ME21N, all the internal tables of EKKO, EKPO does not have PO numbers as it has not yet got created. I need to update the Ztable and hence I need the PO number.

Can anyone help me with a BADI which can give me the value of PO number in the creation mode itself.

Kindly help.

9 REPLIES 9
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
6,648

parameter im_ekko will have the PO number.

did you check with a breakpoint ?

Edited by: Keshav.T on Jun 14, 2010 3:46 PM

Read only

Former Member
0 Likes
6,648

Hi,

Please check the parameter im_ekko .

For BADI , ME_PURCHDOC_POSTED , As the name of the BAdI method implies we have already passed the posting of the document.

If you requirement is to modify the purchase order BEFORE posting then you should have a look at BAdI ME_PROCESS_PO_CUST.

Thanks and Regards,

P.Bharadwaj

Edited by: Bharadwaj p on Jun 14, 2010 1:16 PM

Read only

Former Member
0 Likes
6,649

Hi,

In the structure within the BADI, IM_EKKO will contain the details which you can use for getting the PO Number. Check in debugging if you could get PO number from IM_EKKO-EBELN.

Regards,

Mansi.

Read only

0 Likes
6,648

Thanks.

I got the value of EKKO-EBELN in one field but I want data in table EKET and EKES too. right now only, ekko-ebeln is available and these two tables remain empty. Once the process is over then the data gets available in tables EKET and EKES.

I am not sure which BADI would give me data in all the tables viz EKKO,EKPO,EKES and EKET.

Please let me know.

Read only

0 Likes
6,648

Thanks.

I got the value of EKKO-EBELN in one field but I want data in table EKET and EKES too. right now only, ekko-ebeln is available and these two tables remain empty. Once the process is over then the data gets available in tables EKET and EKES.

I am not sure which BADI would give me data in all the tables viz EKKO,EKPO,EKES and EKET.

Please let me know

Read only

0 Likes
6,648

Thanks.

I got the value of EKKO-EBELN in one field but I want data in table EKET and EKES too. right now only, ekko-ebeln is available and these two tables remain empty. Once the process is over then the data gets available in tables EKET and EKES.

I am not sure which BADI would give me data in all the tables viz EKKO,EKPO,EKET and EKES.

Please let me know.

Read only

0 Likes
6,648

Thanks.

I got the value of EKKO-EBELN in one field but I want data in table EKET and EKES too. right now only, ekko-ebeln is available and these two tables remain empty. Once the process is over then the data gets available in tables EKET and EKES.

I am not sure which BADI would give me data in all the tables viz EKKO,EKPO,EKET and EKES.

Please let me know.

Read only

0 Likes
6,648

Hi,

Use the structures IM_EKPO - Line items, IM_EKET - Schedule LInes, IM_EKES - Confirmation Data in the BADI Method.

Regards

Vinod

Read only

Former Member
0 Likes
6,648

Try this BADi ME_PROCESS_PO_CUST