‎2011 Jun 29 6:45 AM
Hi experts,
I have searched for some standard function module which returns transports details (E070,E071) with no result.
Also FM should be remote-enabled and what is important - there must be some filtering criteria like E070-AS4USER (Owner of a request or task) ...
Any idea ?
Best regards, Daniel.
‎2011 Jun 29 6:59 AM
Check FM : TRINT_READ_REQUEST or TR_READ_REQUEST but these are not RFC enabled . You may create a Z Fm and call oone of these FMs inside that .
‎2011 Jun 29 7:26 AM
Hi Daniel,
If you want to select the TRs based on the Uname, that is E070-AS4USER, then the FMs by Sandeep wouldn't work as with those FMs you need to provide the transport request number as a mandatory input.
* request must not be space
IF cs_request-h-trkorr = space.
MESSAGE e773(tk)
RAISING error_occured.
ENDIF.
If you have just the Uname as your primary filtering criteria, then use the FM - TRINT_SELECT_REQUESTS, and yes you will have to wrap an RFC around it.
Regards,
Chen
Edited by: Chen K V on Jun 29, 2011 11:56 AM
‎2011 Jun 29 8:26 AM
Thank you guys for fast reply.
TRINT_SELECT_REQUESTS is really good one, but like I said before it must be remote function.
My requirement is to read transport list (filtered by uname like in SE01) to JCo Java application (remote-functions) and make this application universal, system specific independent... (only standard FM) - sorry I should told this earlier.
Daniel.
‎2011 Jun 29 8:50 AM
Daniel,
Just create a Z wrapper function module over this standard function and make it remote enabled. This method is generally used in RFC required scenarios.
regards,
Diwakar
‎2011 Jun 29 9:00 AM
Ok, but when I start this application on other SAP server it won't work.
‎2011 Jun 29 9:22 AM
Daniel,
My requirement is to read transport list (filtered by uname like in SE01) to JCo Java application (remote-functions) and make this application universal, system specific independent... (only standard FM) - sorry I should told this earlier.
Well, like others have mentioned, you just need to create a Z function module(FM) and mark it as Remote Enabled, you could have the interface of this Z FM to be the same as that of TRINT_SELECT_REQUESTS or you can changeit for example you can take off IMPORT parameter "VIA Selection" etc and set Default values.
Once you make this an RFC it becomes available to all external systems which can invoke an RFC, also you can take it a step ahead and expose this custom RFC as a Web Service too.
Note sure if i understand what you meant by
system specific independent... (only standard FM)
The Z RFC will be independent, and will be specific to the target system on which you run this RFC.
Ok, but when I start this application on other SAP server it won't work.
Do you mean when you invoke the TRINT_SELECT_REQUESTS from JCo, you need to keep in mind that you cannot invoke TRINT_SELECT_REQUESTS directly from Jco, you need to wrap it within an RFC.
Now, If you meant you are not able to invoke the Z RFC from JCo, update the post on what is the message you get?
Regards,
Chen
‎2011 Jun 29 10:07 AM
The Z RFC will be independent, and will be specific to the target system on which you run this RFC.
Exactly and this is a problem for me.
When I create some Z solution on some R3 system, won't be accesible on other system, so there will be need to add same solution many times on each system when application will be started.
Do you mean when you invoke the TRINT_SELECT_REQUESTS from JCo, you need to keep in mind that you cannot invoke TRINT_SELECT_REQUESTS directly from Jco, you need to wrap it within an RFC.
TRINT_SELECT_REQUESTS FM is a good example of what kind of FM I need - but it is NOT a RFC FM so I cannot use this.
FM should be accesible on all SAP R3 system servers in the same form.
Daniel.
‎2011 Jun 29 10:17 AM
Well,
In this case the alternative that i can think of is to use RFC_READ_TABLE and look up table E070. Go through the below link for more details
Also, it has certain limitation that you may want to check out.
/people/piers.harding/blog/2004/11/10/rfcreadtable--my-old-faithful--what-has-happened-to-you
Regards,
Chen
‎2011 Jun 29 10:30 AM
Thanks Chen.
I think, that there is no apropriate FM for my requirement but your proposition may be very helpful also I must admit that I didn't know about RFC_READ_TABLE and it could be it.
Thank you guys especially Chen for help.
Daniel.
‎2011 Jun 29 7:26 AM
Hi Daniel,
You can try the function module TR_READ_REQUEST_WITH_TASKS.
But this is not remote enabled and you dont have USER as interface parameter.
I think you can create a custom function module and hit the tables
E070 => Change & Transport System: Header of Requests/Tasks
E071 => Change & Transport System: Object Entries of Requests/Tasks
E07T => Change & Transport System: Short Texts for Requests/Tasks
to get the details.
Regards
HM