2007 Nov 19 8:53 PM
I posted this question in the Scripting forum. Probably the wrong place I guess, so am forced to repost it again here. Sorry about that.
-
Does someone know the RFC or BAPI calls that I can use to perform the CTS functions like "Release", "Approve","Export", "Import" etc ?
If not available as RFC, can someone at least point me to the FMs that can help me do that ?
-
Thanks,
Yogi
2007 Nov 19 9:04 PM
Try exploring the package <b>SCTS_REQ</b>. You will find some usefule functions there which might help you.
Cheers
A
I posted this question in the Scripting forum. Probably the wrong place I guess, so am forced to repost it again here. Sorry about that.
-
Does someone know the RFC or BAPI calls that I can use to perform the CTS functions like "Release", "Approve","Export", "Import" etc ?
If not available as RFC, can someone at least point me to the FMs that can help me do that ?
-
Thanks,
Yogi
2007 Nov 19 9:03 PM
2007 Nov 19 9:31 PM
Thanks satish, but BAdI's don't really address my problem. They are too late. I want to be able to invoke the actual Approve or Confirm from my function.
2007 Nov 19 9:04 PM
Try exploring the package <b>SCTS_REQ</b>. You will find some usefule functions there which might help you.
Cheers
A
2007 Nov 19 9:33 PM
Thanks A,
SCTS* has some interesting functions...Still no trace of the "Approve" and "Confirm" actions in the TMS worklist. Any ideas where I could find those ?
Yogi.
2007 Nov 19 9:38 PM
Aren't approvals and confirmnations done by workflows ?? Not sure.
A.
2007 Nov 19 9:40 PM
2007 Nov 19 9:50 PM
Hello Yogi
At least part of the function modules you are looking can be found in function group <b>CTS_API</b>:
- CTS_API_CREATE_CHANGE_REQUEST
- CTS_API_IMPORT_CHANGE_REQUESTI am not sure if there is a remote-enabled function module for releasing transport request. However, simply create an RFC wrapper around <b>TRINT_TP_INTERFACE </b>(IV_TP_COMMAND = 'EXPORT'; IV_TP_COMMAND = 'ADDTOBUFFER') and you have your required functionality.
Regards
Uwe
2007 Nov 19 11:29 PM
Uwe, thanks for a very helpful pointer. I am unable to locate the function group CTS_API. I put in CTS_API in the R/3 Repository Information Modules search screen but nothing appears.
Also is "ADD_TO_BUFFER" and "EXPORT" together equivalent to the "Release" that is performed in the UI ?
Any ideas on how to trigger an "Approve" or "Confirm" in the TMS worklist ?
Yogi
2007 Nov 20 4:41 AM
Hello Yogi
Function group CTS_API is available since basis release >= 6.20. I am not sure about release 4.6c.
You may find additional useful function module beginning with TMS_MGR_....
The commands for TRINT_TP_INTERFACE (see constants defined in include LSTPACON) correspond to the actions in the dialog transaction, e.g.:
- release request = 'EXPORT'
- add request to import queue = 'ADDTOBUFFER' (no blanks, no underline)
- import request = 'IMPORT'
I am not sure about where in the transport process your <i>Approve </i>and <i>Confirm </i>happen. Perhaps some functionality has to be implemented indeed in the available BAdIs (note: list based on ECC 5.0):
CTS_CURRENT_PROJECT Determine the current CTS project
CTS_EXPORT_FEEDBACK Feedback after export of a transport request
CTS_IMPORT_FEEDBACK Feedback after import of transport requests
CTS_INT_REQUEST_CHCK Internal: Request Checks
CTS_REQUEST_CHECK Request checks
CTS_TASKDOC_TEMPLATE Determine template for the task documentation Regards
Uwe
2007 Nov 21 9:29 PM
That was very helpful and also explains why I was missing the CTS_API functions. We are running on 4.6D Basis Kernel.
I am using the "Workflow" based Transport Strategy for the routes instead of the queue, in a three system setup. In such a case, after I release a request, I have to go to the TMS worklist and approve the request, before it can be imported on the target system.
I understand that somehow, this is related to SAP's standard workflow. Does anyone know how the TMS worklist can be managed using Workflow RFCs ?
Thanks,
Yogi