cancel
Showing results for 
Search instead for 
Did you mean: 

Fields to fill in BAPI /SAPTRX/BAPI_EH_ADDEVENTMSG_02

Former Member
0 Kudos

Hi experts,

we are trying to use above FM to post Events to the freight unit. We are filling the following structures:

TRACKHEADER

TRACKINGLOCATION

TRACKEEMODIFY

But, actual date and time is not filled and the Event is only updated when we go manually to the freight unit and say "insert event". Who has used this FM before and can help. Where do I have to put date and time, so that it will update actual Event date and time?

Thanks in advance

Petra

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI

It seems, the format in which you are pushing the data (date and time) is not correct one.

Kindly change it and try, you will succeed.

Former Member
0 Kudos

I am posting in format:

Date (EVTDAT)

08.12.2014

Time (EVTTIM)

14:00:00

How about time stamp (EVTTST)

I have tried 2014120814000000, but this System says wrong value and does not give me the right value.

former_member190756
Active Contributor
0 Kudos

For EVTTST:

020120215160748

You need a 0 at the beginning.

former_member186607
Active Contributor
0 Kudos

2014120814000000 is too long -> YYYYMMDDTTTTTT is correct format

Former Member
0 Kudos

I have tried this Format, but the System says "invalid value" and no indication what is correct:

When u are using the bapi, are u filling the timestamp?

Former Member
0 Kudos

Hi Petra,

I tried like this:

When I enter Date 08.12.2014 (event if I type 08122014 the system automatically converts with correct format 08.12.2014

When I enter Time 16:42:03 (event if I type 164203 the system automatically converts to 16:42:03).

Then I executed debugging in system and I can see the entry in TRACKINGHEADER[].

Regards

GGOPII

Former Member
0 Kudos

Hi Petra,

Check this format.

I can see in TRACKINGHEADER[] like below.

Check and let us know.

Regards


GGOPII

Former Member
0 Kudos

GGopii,

you got it. This was the solution. Now ist posting the date into the correct field!!!

You and all the others who have helped MADE MY DAY!! Thanks a lot!!!!

Answers (1)

Answers (1)

former_member190756
Active Contributor
0 Kudos

Hello Petra,

maybe try to remove REPDAT, REPTIM, REPZON fields. The other entries are ok.

TRACKEEMODIFY is not neede here especially when you have disabled Expected Event Profile.

It allows to update EE on the EH. But as DAMAGE is an Unexpected Event this is cannot work here.

Does the BAPI Return or SLG1 log shows any entries after posting the event?

Best regards,

Steffen


Former Member
0 Kudos

Hello Steffen,

have removed Trackeemodify and still get the Location updated. But, removing REPDAT, REPTIM and REPZON has not helped. The event gets posted without date and time. The BAPI log Looks as follows:

The Event handler Shows the time Zone, but has the reported date and time empty.

former_member190756
Active Contributor
0 Kudos

This looks strange.

Could you check table /SAPTRX/EVM_HDR and what is filled there in:

EVTDAT /SAPTRX/EV_EVTDAT DATS 8 0 Event Date

EVTTIM /SAPTRX/EV_EVTTIM TIMS 6 0 Event Time

EVTZON /SAPTRX/EV_EVTZON CHAR 6 0 Time Zone for Event Time Stamp

EVTTST /SAPTRX/EV_EVTTST NUMC 15 0 UTC Time Stamp for Event

for your sent Event Message.

Best regards,

Steffen

Former Member
0 Kudos

Hi Petra,

You mean to say "Date and Time are updated, if you fill these fields REPDAT, REPTIM and REPZON".

Can you put the breakpoint in FM /SAPTRX/CHECK_DATETIME as mentioned by Daniel in other post?

Regards

GGOPII

Former Member
0 Kudos

Time stamp is empty. I have tried to fill it, but the System says wrong value and gives no indication what the correct value could be.
Do you know which Format I have to use:

2014120814000000 seems correct to me, but the System rejects it.

Former Member
0 Kudos

ok