cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

No EH created after initial creation

Former Member
0 Likes
485

Hi Experts,

We have an issue where we are using BPT :ESC_SORDER , when we are using event type-sales order created the event handler is not getting created. Somehow one ordered appears in EH list but no tracking ID appears and after that no EH is getting created. I am attaching the screenshot for your reference:

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hello Dipak,

The creation of Tracking ID is purely depend on the way you define your event handler. If SO event handler is at line level then you should go ahead and create tracking ID FM to add SO_NO and SO_LINE as tracking IDs.

If you create event handler at SO header level then you can use Main table with Tracking ID set as SO_NO and Tracking ID as VBELN.

Always use primary key values if you are using it in Standard Tracking ID field so you wont have such issue in future.

Hope this helps!

Regards,

Kinjal Rathod

Former Member
0 Likes

Dipak,

I agree with Kinjal. You can simply remove OBJNR and use VBELN as your tracking id field.

You should also follow Kinjal's advice of

"In general, whatever the tracking ID code set and Tracking ID you are using while creating tracking ID, your Event extractor FM should use the same you have defined at the time of AOT definition."

Thanks,

Vishnu

Former Member
0 Likes

Hi,

Thx .I wll check this and revert you back.

One more question. For this specific scenario which is the standard web transaction and user profile we need to use .I was using the below enclosed user profile but its throwing me this error message although I have configured the user profile for LTL_customer.

Former Member
0 Likes

Hi,

LTL means Less than Truckload and is the scenario for shipment tracking in ERP.

For sales order tracking no standard scenario and therefore no UI config is available.

Best regards,

Steffen

Former Member
0 Likes

Hi Dipak,

I don't see any standard SAP EM sales order tracking for Web UI in the system.  You can define a custom new Web Interface Transactions for Sale Order which you defined.

You have to configure in IMG Configure Fields for User Profiles, Define User Profile, Assign User Profiles* and Define Web Interface Transactions.

Regards


GGOPII

Former Member
0 Likes

HI,

Is it possible to create two eh having same appsystem, appobjid and with same master tracking id?

Regards,

Ratnakar

Former Member
0 Likes

Hi Ratnakar,

no

AO_SYSTEM

AO_TYPE

AO_ID

are a unique index on the EH Header Table /SAPTRX/EH_HDR.

Best regards,

Steffen

Answers (2)

Answers (2)

Former Member
0 Likes

Hello Dipak,

Firstly as Vishnu mentioned, please make sure the tracking ID that you wanted to add using OBJNR has correct value using tracking ID code set SO_LINE.

Secondly, when you are posting SO_CREATED, make sure you are using OBJNR as TRXID and SO_LINE as TRXCOD in order to post event on the event handler.

In general, whatever the tracking ID code set and Tracking ID you are using while creating tracking ID, your Event extractor FM should use the same you have defined at the time of AOT definition.

Thanks,

Kinjal Rathod

Former Member
0 Likes
ZenonK
Active Participant
0 Likes

Are you tracking the Sales Order or each line on the Sales Order?

You have called the tracking id SO_LINE.  I assume you want this to be Sales Order Number + Line Number.   To do this you will need to write an abap FM to combine the 2 fields and update 'Trk.Id Extractor'.

Former Member
0 Likes

Hi Dipak,

What does your OBJNR field has? Is it Sales Order + Line number stored in it. Make sure it has the right value in all cases.

However, I agree with Zenon about writing tracking id extractor FM.

Once done, make sure you have value in table /SAPTRX/EH_TRKID for your Sales Order EH GUID.

Thanks,

Vishnu

Former Member
0 Likes

Hi,

Actually I just want to track the sales order. In this case what should I specify in OBJNR field?

Since tracking ID is based on sales order, hence kindly inform what tracking ID extractor I should use? Since its std process, do I still need to write FM for tracking id EXTRACTOR

Former Member
0 Likes

If all you need is sales order number, then replace the OBJNR with VBELN. Also for tracking code set, you might want to change SO_LINE to SO_NUM or something like that to make it meaningful.

If you need much more than single sales order number as tracking id, then you need to create an extractor and code it.

Thanks,

Vishnu

Former Member
0 Likes

Hi Dipak,

If you are tracking only Sales Order not Sales Order Line item.  Then do following settings in Application Obj.Typ.

1. General Data tab - Object type - VBAK

2. Control Tables tab - Main Obj. Table - SALES_ORDER_HEADER_NEW, Master Table - SALES_ORDER_ITEMS_NEW, Del.Obj. Table - SALES_ORDER_HEADER_OLD, Uplink Field - VBELN, Uplink Target Field - VBELN, Uplink Mode = "R"

3. Object Identification Tab - AOID Method - Determine from Field, First Field to Build Appl. Obj. ID -

Control Table Type - 1 Main Object Table, AO ID Field - VBELN,

4. Event Mgmt Relevance - You would have already defined this function or condition.

5. Parameter setup tab - TrkID Method - "B" Determine From Field, Tr.ID Tab.Type - 1 Main Object Table, Track.Code Set - SO_NO or SORD_NO, Tracking ID Fld - VBELN.

Note: I assume other fields you have already populated like Seq. No, Event Manager etc.

Regards


GGOPII

Former Member
0 Likes

Hi Dipak,

When I check your screenshot with OBJNR field, the field value may not be populated in VBAK-OBJNR though you have done SAP EM configuration correctly.

Follow the steps extra to check in detail:

1. Go to SE16N and check the Sales Order number in VBAK table.

2. Check the field VBAK-OBJNR for Sales Order number and check data populated e-g "VB0012345678000000" - <VB><SalesOrderNumber><000000> (To check VBAP, you need to check VBAP-OBJNR - <VB><SalesOrderNumber><000010>). If yes, then check the solutions which we have given in this discussion.

2. If there is no data in VBAK-OBJNR, then you need to check Sales Document type "XXXX" is assigned with Status profile.

3. To check and assign status profile IMG -> Sales and Distribution -> Sales -> Define And Assign Status Profile -> Assign order types / status profiles.

Regards


GGOPII

Former Member
0 Likes

Hi Gopi,

Why are you suggesting the following step:

"2. Control Tables tab - Main Obj. Table - SALES_ORDER_HEADER_NEW, Master Table - SALES_ORDER_ITEMS_NEW, Del.Obj. Table - SALES_ORDER_HEADER_OLD, Uplink Field - VBELN, Uplink Target Field - VBELN, Uplink Mode = "R""

Basically, it should be

A) If it's sales order header level tracking, then Main = SALES_ORDER_HEADER_NEW and you do not need master.

B) if it's item level tracking, then Main = SALES_ORDER_ITEMS_NEW and Master = SALES_ORDER_HEADER_NEW.

Your advice to Dipak is strange which says main = HEADER and master = ITEM.

Thanks,

Vishnu

Former Member
0 Likes

Hi Vishnu,

Yes you are right we do not need Master Table - SALES_ORDER_ITEMS_NEW, Uplink Field - VBELN, Uplink Target Field - VBELN, Uplink Mode = "R" at all. I copied the config Sales Order item which I was seeing in system, so I flipped it for Sales Order Header New and Items New given here for Sales Order header. I just noticed that I had given Item also and I couldn't edit as you replied to the message.  Good catch.

Regards


GGOPII