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

Getting 6 hr delay timestamp value when Creating YR by using Standard BAPI

Former Member
0 Likes
1,478

Hi Everyone,

I have a requirement to create Yard Request(YR) based on the file/record receive from PI/PO system. I used the Standard BAPI provided by SAP to Create & Update YR in the program but when I check the Created YR in tiles, I can find that there is delay of 6 hr , Eg: When record has passed the time as 8 am then it will show 2 am under Created YR. I don't know why but when I checked by created YR via SE37 BAPI just for testing and to verify , so pass the Date/Time field along with other required fields as 8 am then getting 7 am in the output i.e 1 hr delay when creating YR via BAPI directly. But same BAPI when I use in program to create YR getting 6 hr delay.

I even check the Display User using T-code SU01 , everything is good. Even when check in debug mode I can find that , system is taking Timestamp value correct only i.e 20190710080000 but in the output it shows 2019071002000.

Can someone help me how to resolve this issue or what could be the reason for this issue , is this because of any confriguration setting issue or something else.


Thank you in advance for your help.


Regards,

Vish

1 ACCEPTED SOLUTION
Read only

FredericGirod
Active Contributor
1,350

Check the timezone setting of the System, database, user ....

https://wiki.scn.sap.com/wiki/display/Basis/Timezone+changes+best+practices

Hi Expert,

Thank you for your help.

As I already mention in the question that while creating YR via BAPI , it is passing 1 hr delay time and when used the same BAPI to pass Timestamp via my program , it was passing 5 hrs delay time.

  • As currently the BAPI used to Create YR is “/SAPYL/BAPI_YO_CREATE” using UTC-5 hrs , so we were getting the 5 hrs delay time. I have address this issue by using the FM “ISU_DATE_TIME_CONVERT_TIMEZONE” by passing Timestamp = UTC+5.

Thank you

4 REPLIES 4
Read only

former_member1716
Active Contributor
0 Likes
1,350

What is the FM you are using here?

Read only

Former Member
0 Likes
1,350

FM: /SAPYL/BAPI_YO_CREATE & /SAPYL/BAPI_YO_UPDATE

Read only

FredericGirod
Active Contributor
1,351

Check the timezone setting of the System, database, user ....

https://wiki.scn.sap.com/wiki/display/Basis/Timezone+changes+best+practices

Read only

Former Member
0 Likes
1,350

Hi Expert,

Thank you for your help.

As I already mention in the question that while creating YR via BAPI , it is passing 1 hr delay time and when used the same BAPI to pass Timestamp via my program , it was passing 5 hrs delay time.

  • As currently the BAPI used to Create YR is “/SAPYL/BAPI_YO_CREATE” using UTC-5 hrs , so we were getting the 5 hrs delay time. I have address this issue by using the FM “ISU_DATE_TIME_CONVERT_TIMEZONE” by passing Timestamp = UTC+5.

Thank you