Skip to Content
0
Former Member
Feb 24, 2011 at 06:24 AM

Have a strange problem with bapi_po_create1 delivery date.

167 Views

Hi,

We implemented a online applicaiton for PR to PO creation using bapi_po_create1.

All test results are passed in development and QA server.

In production po creation, change everything is working as expected, only the delivery date is not getting changed, by

default system updates the current system date. same test case is working fine in QA server. Tried all possible options no

luck yet. Let me know if some one had faced similiar issue and any work around. All the line item are fixed one scdedule line.

Code used:

Bapimeposchedule PoSchedule = new Bapimeposchedule();

PoSchedule.setPo_Item(String.valueOf(PoItemLn.getSNo()*10));

PoSchedule.setSched_Line("0001");

PoSchedule.setDelivery_Date(formatter.format(PoItemLn.getDeliveryDate()));

PoSchedule.setStat_Date(PoItemLn.getDeliveryDate());

PoSchedule.setQuantity(new BigDecimal(PoItemLn.getQuantity()));

Input.addPoschedule(PoSchedule)

Bapimeposchedulx PoSchedulex = new Bapimeposchedulx();

PoSchedulex.setPo_Item(String.valueOf(PoItemLn.getSNo()*10));

PoSchedulex.setPo_Itemx(conx);

PoSchedulex.setSched_Line("0001");

PoSchedulex.setSched_Linex(conx);

PoSchedulex.setPo_Itemx(conx);

PoSchedulex.setDelivery_Date(conx);

PoSchedulex.setStat_Date(conx);

PoSchedulex.setQuantity(conx);

Input.addPoschedulex(PoSchedulex);

Thanks and Regards,

Manjunath