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

Purchase Order Quantity

Former Member
0 Likes
636

Hi ABAP Gurus,

Requirment:

I need to adjust only the delivery quantity of the PO or STO.

Options to update:

BAPI Func.Mod, BDC, or any Func. mod particularly for this req.

Plz suggest which I need to use for update the Orders to improve the performance

(presently BAPI_PO_CHANGE is used for this requirement).

Thanks

Ravi

4 REPLIES 4
Read only

Former Member
0 Likes
605

BAPI is the best option .

regards

prabhu

Read only

Former Member
0 Likes
605

Hi Ravi,

The BAPI used by you is the best option.

Regards,

Chetan.

PS:Reward points if this helps.

Read only

Former Member
0 Likes
605

hi

good

go through this link which ll give you detail idea about BAPI_PO_CHANGE .

http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm

thanks

mrutyun^

Read only

Former Member
0 Likes
605

Hi,

Check this code..

parameters: p_ebeln like ekko-ebeln.

data: t_return like bapiret2 occurs 0 with header line,

t_schedule like BAPIMEPOSCHEDULE occurs 0 with header line,

t_schedulex like BAPIMEPOSCHEDULx occurs 0 with header line.

  • Schedule

t_schedule-PO_ITEM = '00010'.

t_schedule-SCHED_LINE = '0001'.

t_schedule-QUANTITY = '10.00'.

append t_schedule.

  • Schedulex

t_schedulex-PO_ITEM = '00010'.

t_schedulex-SCHED_LINE = '0001'.

t_schedulex-PO_ITEMX = 'X'.

t_schedulex-SCHED_LINEX = 'X'.

t_schedulex-QUANTITY = 'X'.

append t_schedulex.

CALL FUNCTION 'BAPI_PO_CHANGE'

EXPORTING

purchaseorder = p_ebeln

TABLES

RETURN = t_return

POSCHEDULE = t_schedule

POSCHEDULEX = t_schedulex

.

COMMIT WORK.

Thanks,

Naren