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

BAPI to create transport request.

Former Member
0 Likes
5,431

Hi All,

I want to create Transport request through program . Is there any functionModule/ BAPI for the same?

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
3,242

Yes, for example TR_REQUEST_CHOICE or TR_INSERT_REQUEST_WITH_TASKS.

Thomas

14 REPLIES 14
Read only

ThomasZloch
Active Contributor
0 Likes
3,243

Yes, for example TR_REQUEST_CHOICE or TR_INSERT_REQUEST_WITH_TASKS.

Thomas

Read only

Former Member
0 Likes
3,242

hii

try using following FM

TRINT_TDR_USER_COMMAND.maintain parameters like.

IV_OBJECT = YOUR REQUEST ID

IV_TYPE = 'TASK'

IV_COMMAND = ' ' -


> Give Function code here

regards

twinkal

Read only

Former Member
0 Likes
3,242

Hi,

Make use odf BAPI_REQUEST_CREATE.

You can also use the FM... AFX_GF_CTS_REQUEST_GENERATE

Regards,

Kiran

Read only

Former Member
0 Likes
3,242

Swarup,

I have program for exactly same purpose.i think you need to do huge amount of work on same,as you must check also username and aurthorization aslo.

i think there is no FM on same you must use like:

call transaction 'SE10' using  itab_bdc
                          mode   'E'
                          update 'S'.

its a BDC code.

where itab hold you object and its type which you can get trdir table.

Amit.

Read only

0 Likes
3,242

I verify the Amit; Batch Input is Right choise of you .

Read only

0 Likes
3,242

Thanks Amit,

I am already using Call transaction for that . I just want to varify that there is not a proper FM/BAPI for the same.

Thanks

Read only

0 Likes
3,242

excuse me? There are tons of BAPIs/FMs for this purpose, just look at all the anwers to your question.

Read only

0 Likes
3,242

>

> excuse me? There are tons of BAPIs/FMs for this purpose, just look at all the anwers to your question.

Thomas,

Excuse me again

The reason is that because The above FM doest check that sy-uname is authorized to manage the transports or not.

so they should not be used for safer site.

Cheers

Read only

0 Likes
3,242

These can be explicitely programmed before the call, still better than using clumsy old BDC technique, in my opinion.

Cheers

Thomas

Read only

0 Likes
3,242

>

> still better than using clumsy old BDC technique, in my opinion.

> Cheers

> Thomas

Again not much agree.

BDC is much far better in some cases,

you know there is no BAPI or FM to upload data in F-28!!

I'm sure you will suggest now to use BAPI_ACC_DOCUMENT_POST either POSTING_INTERFACE_CLEARING either POSTING_INTERFACE_DOCUMENT

but sorry these not worth at all you have to go with BDC in this case

Cheers

Read only

0 Likes
3,242

Good discussion on this subject.

Yes, sometimes I'm using BDC as well, e.g. lately for a little interface for users to upload FI postings from an Excel spreadsheet. By using BDC in mode 'E', they can correct errors (e.g. typo in account number) on the fly rather than changing the spreadsheet data and start all over. Would be idiotic to re-program such a correction facility.

Also, in some cases no suitable BAPI/FM exists (yet).

But whenever possible (like in this case with the transport requests) I avoid BDC because it is very "fragile" especially for more complex transactions (we all know the "field not available" or "invalid screen" type of errors), and you will have to do rework after every upgrade or patch where SAP decided to change the screen flow of the transaction you are calling.

Cheers

Thomas

Read only

0 Likes
3,242

HI,

But the function modules suggested here have not facility to add objects to it just like SE10. Thats why i guess BDC is more prefarable

Read only

0 Likes
3,242

>

> But whenever possible (like in this case with the transport requests) I avoid BDC because it is very "fragile" especially for more complex transactions (we all know the "field not available" or "invalid screen" type of errors), and you will have to do rework after every upgrade or patch where SAP decided to change the screen flow of the transaction you are calling.

> Cheers

> Thomas

I personally think that("field not available" or "invalid screen") would not be in case od BDC cause,as we all know user does not much do ( I Would say R&D ) in SE10 except just realease the TR

so BDC would be preffer as No authorization check in Above BAPI suggested.

Cheers

Amit.

Read only

Former Member
0 Likes
3,242

Hi,

Use the function module CTS_API_CREATE_CHANGE_REQUEST. You have to pass the type of request you want to create (workbench or customizing).

Thanks.