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: 

Problem in updating Shipment status VTTK-STTRG with given time zone

Former Member
0 Kudos
1,115

Hai,

I need to update the shipment status for one shipment.

But the problem is the update should consider the given time zone not the system date & time.

for example if the time zone is CST,

then the logic should update the shipment status along with

CST date & time(fields -VTTK-DAREG & VTTK-UAREG).

fields VTTK-DAREG & VTTK-UAREG should be updated with

CST time zone NOT the system date & time.

I checked the FM 'SD_SHIPMENT_STATUS_SET'. But here it is not considering the time zone.

Can any one please help me how to update this?any FM is there for this purpose?

Thanks & Best Regards,

Bhaskar.

3 REPLIES 3

vinod_vemuru2
Active Contributor
0 Kudos
220

Hi Bhaskar,

Instead of global system fields(Sy-datum, sy-uzeit) use local time system fields which gives the local setting of the user.

fields: Sy-timlo: for time

Sy-datlo: for date

Sy-zonloL for local time setting.

Thanks,

Vinod.

0 Kudos
220

Hai Vinod,

The time is zone is not actually the time zone of the user.

it comes from the delivery-plant time zone.

so I cant use the user time zone here.

thanks,

Bhaskar

0 Kudos
220

HI,

Then do like this.

First get the time zone from plant to one variable. Then use this FM CIF_GEN3_CONVERT_DATETIME to convert to time stamp. Here pass time zone from plant.

Next convert this time stamp back to date and time using FM

CIF_GEN_CONVERT_TIMESTAMP.Here also pass time zone from plant.

Hope it helps.

Thanks,

Vinod.