cancel
Showing results for 
Search instead for 
Did you mean: 

Have a strange problem with bapi_po_create1 delivery date.

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member185086
Active Contributor
0 Kudos

Hi

It must be issue of Date format from ABAP side , try to make it MM/DD/YYYY format.

For testing purpose you can execute the BAPI with any test data managed by ABAP it will work but will not work when send it through WD code.

BR

Satish Kumar

Former Member
0 Kudos

Hi,

Test the bapi in backend using SE37 trasaction by passing all the parameters.

Regards

Deepak