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
470

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
435

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

2 REPLIES 2
Read only

Former Member
0 Likes
435

you can use MASS_CHANGE_PURCHASE_ORD.

Read only

Former Member
0 Likes
436

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