on 05-08-2012 4:38 PM
Hello Experts,
I am very new to SAP TM and have a query.
I want to know how to find out whether a stop in stage is a pickup point or a dropping out or none.
Basically I want to extract the stops of a freight order which are marked as pickup or drop or both.
can someone help me for this.
Thanks
Archit
I think you already have an answer, anyway here's my solution:
1) Get each stop using retrieve_by_association where iv_association = /scmtms/if_tor_c=>sc_association-root-stop
2) Check if pickup using retrieve_by_association where
iv_association = /scmtms/if_tor_c=>sc_association-stop-item_tr_LOADED_at_stop
If the result is not Initial, the stop is pickup.
3) Check if drop using retrieve_by_association where
iv_association = /scmtms/if_tor_c=>sc_association-stop-item_tr_UNLOADED_at_stop
If the result is not initial, the stop is drop.
And a stop can have both.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try with Overview association. That contains each FU which are loading or unloading at every stop. (Compare with overview tab in FO).
If you need to achieve it via technical solution let me know .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Very easy.
- Instantiate service manger for TOR.
- Use retrieve by association by passing FO key / association name (Overview) and get the overview internal table
- within table there is a field called OVERVIEW_ELEMENT_CAT. If the value of this field is O (Outbound) then its mean Loading/pickup. If it is I (Inbound) then its mean unloading/drop. Get the corresponding stop from LOC_ID field from that table.
Thanks.
Hi Archit,
Do you have Event Manager integrated with your TM installation?
Regards, Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mike,
Thanks for your reply.
No we do not have an Event Manager integrated with TM installation.
My requirement is:
1) Every stop has 2 id's inbound and outbound. But I want to generate a report where I want to count Inbound and outbound stops as 1 stop and not 2.
2) I want to retrieve the sequence of stops in a way where I can tell that which is the first stop and then subsequent stops after that.
I want to send this data in XML format to a non legacy system.
Thanks,
Archit
Hi Mike,
I have got the sequencing part done. What I am really interested to know is that how do you identify whether a stop is a pickup stop(loading point) or drop stop(unloading point). I know that there is a stop_role field but it is not populated as of now for the freight order stops. What is the other way round to get this detail using BOPF?
Thanks & Regards
Archit
User | Count |
---|---|
13 | |
4 | |
3 | |
2 | |
1 | |
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.