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

Closing Purchase order using BAPI : BAPI_PO_CHANGE

Former Member
0 Likes
3,685

Hi ABAPers,

I have a requirement to develope a new report program which should accept a file which contains a list of PO and related Line Items to be closed. Basically the u201CDelivery completedu201D (EKPO-ELIKZ) check-box should be ticked and the PO should be saved.

I know I have to use BAPI: BAPI_PO_CHANGE.

But I am not aware how the parameters of this BAPI is populated.

Please let me know how to populate the parameters of this BAPI in order to Close the list of POs from file.

Input for this BAPI - I have only PO number, item number.

Thanks,

~Sachin

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,099

u define like it_item like standard table of BAPIMEPOITEM,

wa_item like BAPIMEPOITEM,

and then you update like

WA_ITEM-NO_MORE_GR= 'x'.

Edited by: Krupaji on Feb 19, 2010 11:22 AM

6 REPLIES 6
Read only

Former Member
0 Likes
2,099

Hello

Working code here:

Use this snippet in LOOP/ENDLOOP for each PO/position.

Read only

Former Member
0 Likes
2,099

Hi all,

Now I am able to close the PO using BAPI BAPI_PO_CHANGE.

Here I have one requirement to stop triggering messages while closing PO.

Please tell me how to stop triggering of output type if I close PO using this program.

Thanks,

~Sachin

Read only

0 Likes
2,099

>

> Hi all,

>

> Now I am able to close the PO using BAPI BAPI_PO_CHANGE.

>

> Here I have one requirement to stop triggering messages while closing PO.

> Please tell me how to stop triggering of output type if I close PO using this program.

>

> Thanks,

> ~Sachin

check parameter to BAPI

NO_MESSAGING = 'X'

Read only

0 Likes
2,099

Hi,

Pass 'X' to NO_MESSAGEING parameter of this BAPI while closing POs to stop triggering messages.

Ganga

Read only

Former Member
0 Likes
2,100

u define like it_item like standard table of BAPIMEPOITEM,

wa_item like BAPIMEPOITEM,

and then you update like

WA_ITEM-NO_MORE_GR= 'x'.

Edited by: Krupaji on Feb 19, 2010 11:22 AM

Read only

Former Member
0 Likes
2,099

Thanks.