2010 Feb 26 1:39 PM
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
2010 Feb 26 6:41 PM
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.
2010 Mar 02 6:20 AM
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