Application Development 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: 

Delivery Date Time spot contains unformated value in PO in Auto PO creation

Former Member
0 Kudos
310

Hi Experts,

We have created a program that fetches the recent changes done in Purchase Requisition documents given as input and updates the corresponding Purchase Order document created from those PRs accordingly. We are using the FM BAPI_PO_CHANGE for the purpose of updating the changes to the POs. We are facing a peculiar situation while updating the scheduling lines. When we are passing the delvery date (EKET-EINDT) change, the system automatically passes the delivery date time spot (EKET-UZEIT) in an unrecognised format, something like '00::0:1' instead of '00:00:00'. Due to this the system doesn't allow to open the Purchase orders since it is giving format error message. This issue does not happen in debug mode but happens in the foreground without the debug on.

Please let me know how to go about solving this issue

Thanks

Devarajan

2 REPLIES 2

Former Member
0 Kudos
127

I'd bet (a week's pay...no, an hour's pay) that you're putting the value into the field like 'HH:MM:SS' when you need to be supplying like 'HHMMSS'. Therefore, when the program parses the time, it's inserting ':' between HH and your ':MM'.

At least, that's what I found the last time I saw this kind of problem.

0 Kudos
127

Hi ,

Thanks for the reply. But the issue is we are not passing any value to the Delivery Date Time Spot field (EKET-UZEIT). So by default when the BAPI_PO_CHANGE FM is called the value passed to this field is '000000'. It is that the system automatically changes the value to '00::0:1'. And it does so only if we execute the program without debugging the code. May be there might be a OSS note to update.

Thanks

Devarajan