2008 Aug 07 9:07 AM
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.
2008 Aug 07 9:15 AM
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.
2008 Aug 07 10:00 AM
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
2008 Aug 07 12:27 PM
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.