10-10-2007 4:16 PM
Hi,
We need to write a report which will run on production and find the import user certain transports.
I know how to obtain the user who released the transport (in E070), and
I am aware that the transport history in transaction STMS shows the actual import user, but I have not been able to find the table/function module that will return this information to be used in my program.
Does anyone know how to obtain the import user for a transport?
Regards,
Eugene
10-11-2007 12:23 AM
Hello Eugene
The function module which is behind the <i>Transport History</i> button is:
- TMS_TM_GET_HISTORY
Call this function module using the following parameters:
IV_SYSTEM = <sysid> " e.g. E01
IV_DOMAIN = DOMAIN_<sysid> " e.g. DOMAIN_E01
and set values for CV_START_DATE and CV_END_DATE. I believe the functions of the other IMPORTING parameters are quite obvious.
In addition to this function module have a look at threads:
There you will find another interesting function module (<b>TR_READ_GLOBAL_INFO_OF_REQUEST</b>) described.
Regards
Uwe
10-10-2007 6:37 PM
I would suggest using remote call function RFC_GET_TABLE_ENTRIES for E070 table with conditions for your transports and fetch the user list.
- Cheers
10-10-2007 11:51 PM
This might help you out -:)
<a href="/people/alvaro.tejadagalindo/blog/2007/06/25/transport-orders-report Orders Report</a>
Greetings,
Blag.
10-11-2007 12:23 AM
Hello Eugene
The function module which is behind the <i>Transport History</i> button is:
- TMS_TM_GET_HISTORY
Call this function module using the following parameters:
IV_SYSTEM = <sysid> " e.g. E01
IV_DOMAIN = DOMAIN_<sysid> " e.g. DOMAIN_E01
and set values for CV_START_DATE and CV_END_DATE. I believe the functions of the other IMPORTING parameters are quite obvious.
In addition to this function module have a look at threads:
There you will find another interesting function module (<b>TR_READ_GLOBAL_INFO_OF_REQUEST</b>) described.
Regards
Uwe
10-11-2007 8:47 AM
Great, thanks for that Uwe!
It turns out that the function module (on the system that I am currently working on) performs correctly even without the domain information filled.
Regards,
Eugene