Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CTS - RFC or BAPI Calls ?

Former Member
0 Likes
1,986

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,807

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

10 REPLIES 10
Read only

Former Member
0 Likes
1,807

Hi,

Go through below link, it may help you

<b>Reward Points if this helps,</b>

Satish

Read only

0 Likes
1,807

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.

Read only

Former Member
0 Likes
1,808

Try exploring the package <b>SCTS_REQ</b>. You will find some usefule functions there which might help you.

Cheers

A

Read only

0 Likes
1,807

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.

Read only

0 Likes
1,807

Aren't approvals and confirmnations done by workflows ?? Not sure.

A.

Read only

0 Likes
1,807

Yes "Approvals" and "Confirmation" are done by workflows.

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,807

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_REQUEST

I 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

Read only

0 Likes
1,807

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

Read only

0 Likes
1,807

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

Read only

0 Likes
1,807

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