cancel
Showing results for 
Search instead for 
Did you mean: 

Welcome to the SAP GUI forum!

Christian_Cohrs
Product and Topic Expert
Product and Topic Expert
0 Kudos

This forum is dedicated to SAP GUI (Windows and Java), which today is the SAP user interface of choice for most customers.

While the core functionality has been almost unchanged for quite some time, there have been many new features in the current versions and some plans for the future that we would like to share with you, such as enhancements to the Scripting API, Usability improvements and better Unicode support.

On these and other topics your questions and input is more than welcome.

Best regards,

Christian Cohrs

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

As automation of the SAPGUI - in particular using the GUI Scripting interface - is at the heart of automated testing of SAP systems, please also feel free to use this forum to discuss test tools such as SAP's eCATT!

Regards

Jon.

Former Member
0 Kudos

Is it possible to use a parameter to change the screen number in the TCD command interface? This would entail changing the DYNR field after a transaction has been recorded using TCD. A practical example of this occurs when using transaction PA30 Infotype Create in HR-Personnel Administration. When attempting to create an infotype 2001 via PA30, the second screen is different depending on the subtype. For example, subtype LA will bring up screen 2001, while subtype LW results in screen 2000. We know which subtype we want to use when we execute PA30 for infotype 2001, and would like to dynamically change the screen number as it comes up. We have tried placing a parameter in the DYNR value without success. Is it possible to use a parameter to dynamically change DYNR on a respective DYNPRO? Thanks for your help.

Former Member
0 Kudos

I'm not sure that it is actually possible to parameterize the DYNR. Anyway, it would still leave you the problem that the field descriptors in the command interface would all be wrong.

My suggestion for getting around this is to make several recordings using the SAPGUI command, creating a new command for each screen change. You can then edit the script so that the different cases between which you want to differentiate are separated by IF...ELSEIF...ENDIF commands.

You might then have something that looks like this (pseudocode):

* SAPGUI command for common "opening part" of transaction

IF (subtype = 'LA'). 
*SAPGUI covering screen 2001
ELSEIF (subtype = 'LW'). 
* SAGPGUI covering screen 2000
ENDIF.

* SAPGUI for common "closing part" of transaction - if relevant.