2012 Feb 02 2:44 PM
Hi,
I need to find any FM in order to create an event in an outbound delivery (VL02N-GoTo-Header-Dates).
I have found FM /SPE/TSEG_MOD_TIMESTAMP but it is not working. Do you know how to use this FM or another way to do that?
Thx,
Manel
2012 Feb 02 6:28 PM
Hi,
Use FM - TSEG_WRITE_UPD.
I have used this FM for same purpose it works perfectly fine..
If you need any clarification then let me know, I will guide you.
Regards,
Harsh Bansal
2012 Feb 02 6:28 PM
Hi,
Use FM - TSEG_WRITE_UPD.
I have used this FM for same purpose it works perfectly fine..
If you need any clarification then let me know, I will guide you.
Regards,
Harsh Bansal
2012 Feb 03 11:37 AM
2012 Feb 03 12:59 PM
2014 Jul 25 10:39 AM
Hi Harsh,
Can you share how to fill the FM TSEG_WRITE_UPD?
Thank you.
Regards,
Aileen
2014 Sep 03 10:49 AM
2014 Sep 03 10:58 AM
2014 Oct 01 1:22 PM
Hello All,
I have recently used this FM, so I can share it for those who still want it on SCN :
When you have to create a new event, 2 entries need to be passed in tsege table.
First one with
wa_tsege-head_hdl = <likp-handle>.
wa_tsege-even = <EventName>.
wa_tsege-even_cnt = '0'.
wa_tsege-even_verty = '0'.
wa_tsege-even_vernu = '0'.
wa_tsege-even_sor = 870. (Starting number for sort index. Have to increased by 1 for every new event)
wa_tsege-even_zonto = <TimeZone>.
wa_tsege-even_tstto = <Blank>.
wa_tsege-even_zonfr = w_upd_date-zonfr.
wa_tsege-even_tstfr = <Blank>.
wa_tsege-diag_modif = 'I'. (I- Insert , U-Update)
INSERT wa_tsege INTO TABLE it_tsege.
Next Entry:
wa_tsege-head_hdl = <likp-handle>.
wa_tsege-even = <EventName>.
wa_tsege-even_cnt = '0'.
wa_tsege-even_verty = '1'.
wa_tsege-even_vernu = '0'.
wa_tsege-even_sor = 870. (Starting number for sort index. Have to increased by 1 for every new event)
wa_tsege-even_zonto = <TimeZone>.
wa_tsege-even_tstto = <Time>.
wa_tsege-even_zonfr = w_upd_date-zonfr.
wa_tsege-even_tstfr = <Time>.
wa_tsege-diag_modif = 'I'. (I- Insert , U-Update)
INSERT wa_tsege INTO TABLE it_tsege.
CALL FUNCTION 'TSEG_WRITE_UPD'
EXPORTING
it_tsegh = it_tsegh
it_tsege = it_tsege.
-Rajat
2015 Oct 05 12:23 PM
Thank you Rajat for your help.
I just have one question how you determined the event type if you have a delivery ?
I have event name 'Arrival at Customer' but for this again I have 5 events in TTSEGEVTY table?
Thanks in advance for your help.
Harish Bhatt
2015 Nov 16 6:53 AM
Hello,
i am also looking to update the event in date tab of delivery order but not sure how to use the available FM's
/SPE/TSEG_MOD_TIMESTAMP - Insert/modify TSEG Timestamps
or the one given here TSEG_WRITE_UPD not sure how to use it to update the delivery order as it doesn't carry the delivery order number field.
Any help please.
Regards
Anand
2015 Nov 18 8:03 AM
Hello Anand,
You have to call folowing FMs in given sequence :
Here in FT_VSTEG , you have to create event data, normally you can see the where use of this FM. also PS_LIKP is type of LIKP.
Here F_HANDLE , you get from the LIKP table. and F_TZONE is timezone (e.g. UTC)
Here all values are normally number. you can get hint froim TSEGE table.
I hope this will be helpful for you.
Cheers !
Harish Bhatt
2015 Nov 18 8:51 AM
Hello Harish,
Thanks for replying back, can you help to know how do we call delivery number to update the event date/time information? As in the code mentioned by you I am unable to see the field for delivery number that has to be updated.
Regards
Anand
2015 Nov 18 9:57 AM
Hello,
Delivery number and all delivery details from LIKP must be passed in PS_LIKP.
is_object_wa = ps_likp
Thank you !
2015 Nov 18 10:04 AM
2015 Nov 18 7:18 PM
2016 Jan 22 7:21 AM
HI Guys,
Requirement - I need to update only Begin Plan Dates, when I was using above code it is updating both begin plan and begin actual also.
Please help on this.
2020 Sep 27 4:59 AM
This was my solution to solve this problem.
Use the function /SPE/TSEG_MOD_TIMESTAMP to create the event and TSEG_WRITE_UPD for add timestamp.