cancel
Showing results for 
Search instead for 
Did you mean: 

Calling SAP Transactions

Former Member
0 Kudos

Hello ,

I have a requirement where in I just need to display an Input box and a submit button in a iview (Similar to r/3's Command box) where the users can enter sap t-code.

Upon Entering the t-code and clicking on the button the t-code should open up in another window (possibly a new window).

Can you please suggest some ideas?

Thanks and Regards

Pradeep Bhojak

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Here is the workaround for your requirement.

1. In R/3 create a function module which accept T-Code

2. Create a JCO between EP and R/3.

3. Create a small JAVA file with one input box and one button.

4. On click of button open Connection to backend and pass TCode as parameter to backend function module which executes the Transaction.

<b>I Agree that this is very long procedure.. but sure that it will work.. </b>

regards

-Kedar Kulkarni

rewards points if useful

Former Member
0 Kudos

Hi Pradeep,

You can go ahead and create the transactional iviews for this purpose.

Let me know if you need any help on how to create it.

Regards,

Sandeep Tudumu

Former Member
0 Kudos

Hello Sandeep,

If I am creating a sap transaction iview for SE38 then the whole menu options will be visible. I do no want that. I just want user to see the Command box and nothing else.

Pradeep

Former Member
0 Kudos

Hi Pradeep,

Any transaction can be called from the URL in SAP GUI for HTML.

In order to resolve ur issue, create a Webdynpro Application with an Input Box and a Command Button.

On click of that Button pass the parameter entered into the Input Box to the URL which will open up the Transaction Page.

You can also have a validation for the T-code entered on the basis of table TSTC in ur ECC Box.

Regards,

Atul Shrivastava

Former Member
0 Kudos

Hello Atul,

Web dynpro for JAva is the last option, Cant we use a simple HTML and Java Script.

I had seen a code piece in SDn, but now I am not getting that hence this thread.

Pradeep

Former Member
0 Kudos

Hi,

You can definately use HTML and JavaScript. However I do not know how will u take care of validation of transactions in that case.

If you want to show the standard error screen that will work.

Hope this helps!

Regards

Atul Shrivastava

PS: Award points for helpful answer.

Former Member
0 Kudos

Hello,

I think it should be OK if I show a standard error screen now.

But yes moving forward , we need to validate the t-code entered.

So any references for using HTML and JS?

Pradeep