on ‎2016 Apr 27 8:21 AM
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:
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
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
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
| User | Count |
|---|---|
| 17 | |
| 16 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.