Guixt QandA All

download Guixt QandA All

of 5

Transcript of Guixt QandA All

  • 8/20/2019 Guixt QandA All

    1/9

    11/5/2015 questions and answers

    http://www.synactive.com/www_e/qa.html

    General Topics

    I get an error message when calling help for a command, what is

    wrong?

    You probably did not install the documentation which is also the help. Whenyou install GuiXT (either after downloading it from our website or byinstalling the version delivered by SAP) you do not install the help filesautomatically. You can download the documentation from the downloadpage of our website. Please note that the language of the help will dependon the language used for the logon (English/German/French). So, for exemple, if you logged on in English, the English version of documentationhas to be installed. Please check in your GuiXT profile that the directory

    indicated for the documentation is correct.

    Can we use InputAssistant in our R/3 3.1H system?

    Yes, we support 3.1 as well (full functionality, with single-screentransactions). You can use a sapgui version of your choice (3.1-4.6).We work with GuiXT on R/3 4.5. Can problems arise with GuiXT whenwe install R/3 4.6?There are no differences concerning the scripting language. But the SAPscreens may change in a new correction level or new release, makingchanges in the scripts necessary. In practice, these problems, when theyoccur, are easy to solve. Our experience so far is that they normally do notoccur in a correction level. On the other hand, you should include a certainamount of time for the adaptation of the GuiXT scripts when you plan a newR/3 release. Compared with the training of your end users to deal with thenew screens, the adaptation of the scripts is not significant. Indeed, youshould keep in mind the possibility that GuiXT will save a lot of time andmoney otherwise needed for end user training. For example, if SAP adds a

    new entry field on a screen, you would normally have to teach your userswhat to do with this field. With GuiXT, you can simply delete the field, or you can display appropriate radio buttons for immediate input, or you caninclude a quick info or a comment for this field.Will the existing concepts of user groups and catalogs work on ITS aswell?Yes, business as usual; GuiXT will indeed support these concepts for ITSas well. Each time a user logs on, GuiXT on the ITS will determine thescript directories for this specific user.With sapgui 6.20, SAP offers a new GUI Scripting tool that alsocontains a macro recorder. Does this make InputAssistant obsolete?No, both have their uses: There are some tasks (e.g. test automation) for which you can use either GUI Scripting or InputAssistant. Comparing both,you will find that GUI Scripting is certainly powerful and flexible, butrequires much more programming skill and effort than InputAssistant. Themain focus of InputAssistant (single screen transactions), and thepossibility to combine GuiXT scrips (which reduce screen complexity) and

    InputScripts (which reduce dialog complexity), is not the intention of GUIScripting, and is not covered by it.There is a transaction in Service Managements to view a list of tasks(IW66). This screen displays a 'grid' that I do not seem to be able tochange with GuiXT. Is there a way to change column headings on agrid?

    It is currently not possible to change the grid control column  headings. We

    hope to find a solution together with SAP.

    Does GuiXT support the SAP Gui for html and SAP Workplace?Yes, it is available with ITS 6.10 Patch 14 and GuiXT 2002 Q2 9. Pleaserefer to "GuiXT in SAP GUI for html" in "Special Topics".Can you send us a reference list for your products?We are preparing such a list for our internet site. Please send an email [email protected]  if you need some references now.What is the relationship between Synactive GmbH in Germany andSynactive LLC in California?Both companies are legally independent, but we work together in closecooperation, both in marketing&sales and in product development.

    Geographically, Synactive LLC focuses on North, Central and South America and South East Asia.We would like to purchase a book or manual dealing with your products. Is such literature available?We are considering the publication of a book on GuiXT components. In themeantime you can download our documentation in .pdf format from our download page and print it.After logging on to R/3 I got the GuiXT license popup. I clicked on"System->Status>Activate GuiXT", and it worked fine during thissession. But each time I now logon to R/3 I have to perform the sameGuiXT activation steps again. What can be done?

    You probably work with a guixt.ini file where you specified

    "IgnoreRegistry Yes". There is a bug in GuiXT, corrected with version 2001Q3 02, which forces you to do the activation for each logon in this case.Solution: Either you install a new GuiXT version or you work without the"IgnoreRegistry Yes" option.I cannot find the file guixt.dll on my computer. What is wrong?

    You probably chose the option "hide files of these types" in your Explorer

    options. You can change this by choosing option "View" "Options" "Showall files" in your Explorer.I need to export the Document & Delivery #'s of each order that isprocessed to a txt file. Can you tell me what command & variables Ineed to use?Please use the "search=" option of Set and &[_message]; see the "Set"documentation:"The specified string is searched in the given text (ignoring upper/lower case). If the string is found, the following word is set into the variable.Example: Set V[docno] "&V[_message]" "Search=document" Assume thatthe system variable V[_message] has the value "Document 10004003 wasposted". The variable V[docno] then gets the value "10004003". "Please note that you must use capital V (not small v), and also remember to use closefile at the end of processing.When we activate GuiXT it comes with a pop up. How can we

    deactivate the pop up for certain users?You can configure GuiXT to start "Normal", "Minimized" or "Hidden"; this isa parameter in GuiXT profile (or guixt.ini, if you work with a .ini-file).

    Installation

    How should I install the components?See Download and follow the instructions (guixtsetup.exe, guixtdocu.exe,guixtpro.exe).Is there a way to deactivate the user's ability to deactivate GuiXT from

    within SAP?This is possible with Sapgui 4.6D (Patch 103) via a registry entry inHKEY_CURRENT_USER/Software/SAP/SAPGUI Front/SAP FrontendServer/Administration

     Add a string variable with the name "DisappearItems" and value "Act ivateGuiXT". If this variable exists already with some other menu entries, youcan add the new entry "Activate GuiXT" at the end separated by ';', e.g."Generate graphic;Activate GuiXT".

    The user will then no longer be able to activate or to deactivate GuiXT. If GuiXT should always be active, you have to set the variable "GuiXT" inHKEY_CURRENT_USER/Software/SAP/SAPGUI Front/SAP FrontendServer/Customizeto 1.

    Where should I install the software if I want several people to workwith it?The GuiXT components allow a fully centralized server installation. You caput all programs and scripts on a central server, and if you want to avoidregistry entries on each individual PC, you can work with a central guixt.inifile instead. For details see our installation guide.

    Where should we put the guixt.ini file if we work with sapgui 4.6D?Put the guixt.ini file into the sapgui directory(e.g. C:\Program files\sappc\sapgui).I entered the testkey and installed the latest version of GuiXT, but Istill get the pushbutton GuiXT inactive in system status, with themessage "licence key missing/invalid in GuiXT profile (see GuiXTproto Ctrl+F1)". What is wrong?

    Please check installation number and testkey/licence key. If there is no

    mistake here, you propably did not choose the correct components in your 

    GuiXT profile. Testkeys/licence keys are always valid for a combination of 

    components (Testkeys are valid for  GuiXT+InutAssistant+Viewer. So even

    if you just want to test GuiXT and InputAssistant you have the select

    Viewer as well). The Designer can be selected or not; it has no influence.

    .

    mailto:[email protected]://www.synactive.com/www_e/webgui.htmlhttp://www.synactive.com/www_e/webgui.htmlmailto:[email protected]://www.synactive.com/www_e/webgui.html

  • 8/20/2019 Guixt QandA All

    2/9

    11/5/2015 questions and answers

    http://www.synactive.com/www_e/qa.html

    License

    How can I get test licenses? 

    In order to allow you to test our components for 30 days we can issue afree testkey for you. For this, send us your R/3 installation number (System-> Status in your R/3) and your HostId for Designer (installDesigner and execute SynSerialManager.exe in your GuiXT installationdirectory; HostId is shown in the title bar of the window, starts with "S"followed by 8 digits/letters). Please use our order form.If a company buys, say, 100 licenses, can it split these across sites or are they registered for the one site only?

     A company c an use the li censes for several R/3 s yst ems of the s ame R/3installation number.

    Which licenses for which components?For R/3 Rel 3.x you need a license for each component.If you are using an R/3 Rel. 4.0 or higher, you do not need a license for GuiXT on its own, but you do for the other components, i.e. for InputAssistant, Viewer and Designer. If you just want to use componentGuiXT, deactivate the other components in your GuiXT profile (in GuiXT-window-> Edit -> profile). In R/3 Rel. 4.6B GuiXT is directly included andcan be activated from SAPGUI options.I want to add a new Designer license, but I always get the message"Unable to update serials database, please try again." What should Ido?

    You probably do not have permission to create the license file"synserial.sy9" in the Windows system directory. For NT this isC:\WINNT\System32, for Win95 and Win98 it is C:\Windows\System.

    Please logon as a user with administrator rights on this PC.

    GuiXT Box - Columnsize- Default - Del - Fieldsize- Icon- Image- If/else/endif - Listimage- NoInput - Offset - Pos- Pushbutton- Radiobutton- Tab- Text - Tip- Title-View339

    How can I create a script?

    Go to the R/3 screen that you wish to modify. Click on Edit->Script in theGuiXT Menu. Now the text editor (Notepad) for the corresponding script isstarted.How do I name GuiXT scripts and Input scripts?

    GuiXT scripts: GuiXT scripts are simple text files. They follow strict namingconvention. GuiXT script names are based on R/3 repository's ABAPprogram name and four-digit screen number. A language is also included for various languages. Format: xxxxxxxxx.ldddd.txt ( xxxxxxx is the ABAP

    program name, l is the language and dddd is the screen number). For language independent GuiXT scripts ignore the language key.Example:For transaction MM01 first screen, the ABAP program name isSAPLMGMM and screen number is 60; the language is English. The GuiXTfile name will be SAPLMGMM.E0060.txtIn normal practice please accept the name GuiXT and/or Designer proposewhile saving the active screen.Input scripts: Input scripts are simple text files as well. They do not haveany restriction on what they can be named.Example:save_workorder.txt

    How can I differenciate between different clients and databases? 

    You can use different directories by using:&client&database

    in the designation of your directories in your GuiXT profile.Or you can usethe same scripts and differentiate within a script by using:if Q[database] and Q[client]...endif 

    Does Synactive offer ready to use GuiXT scripts for specificapplications?No. We offer some examples, including those in the tutorial, for downloading. If other software companies offer such scripts, e.g. industryspecific versions of R/3 transactions, we will be pleased to indicate them inour website.

    In which directory should I place the file Lsession.txt (L stands for  the

    language)?

    The Lsession.txt file should be in one of the script directories specified in

    the GuiXT configuration. It will only be read once, at the start of ther R/3

    session. The Lsession.txt file contains  global commands as

    globaltextreplace.How can I address an input field without name?

    You can designate a field without name by using its coordinates: #[x,y]where x is the row and y is the column.

    How can I include a double quote in a GuiXT variable?

    Use 2 double quotes, e.g. Set [screen element] """abcd"" ""xy z""" for"abcd" "xyz".

    Does GuiXT support tab controls?

    You can delete, rename and add tips for tab controls (use del, text and tip).With InputAssistant it is possible to move fields from one page of a tabcontrol to another (see special topics).How can I check if a field is an entry field?

    You can use following command: if I[screen element]

    Is it possible to have a statement such as this:if[Material=123456]

    Is there any risk that SAP transactions will behave incorrectly throughuse of GuiXT?No. The R/3 application logic and the transaction flow remain untouched.There is no possibility of deactivating the R/3 consistency checks withGuiXT, or of modifying the transaction logic in any way. GuiXT simplyoffers a new layout of the screens combined with enhanced input support.Is it wise to pass on GuiXT to the end user?This is not dangerous so far as data integrity is concerned. However, webelieve it is preferable to retain a centralized responsibility for the

    application of GuiXT, either for the whole company or for specified groups.Is it possible, within one system, to have different screen variants for each R/3 client?Yes. In the GuiXT profile you can include a placeholder variable "&client" ineach of the 4 directory names. At run time, "&client" is replaced by thecurrent client number. With this technique, you can, for example, define 2directories to be client independent, and a third to be client specific.How can I address screen elements with the same name?If the screen elements are of a different nature (input, box, table...) you canspecify the nature of the field e.g.: T[table]. If the screen elements have thsame nature and same name you can address first with [screenelement],second with [screenelement.2], third [screenelement.3] etc.Is it possible to display a pdf-file in an R/3 screen?Displaying pdf files is possible if you use an html file that contains the pdf (use the View-command for the html file). You could also use thecommand View "...my file.pdf" (no screen coordinates), but in this case thepdf file is displayed outside the R/3 screen. You can also use the

    command Image .... "Start=. ..my file.pdf" which displays the pdf file whenthe user clicks on the image.In my scripts I use the call-statement; during development I workedwith profile, in which RFC-user and password are to be found. I nowwant to work with Ini files. How can I enter the RFC-user and, moreimportantly, the password, without everyone seeing them?In order to encode a password, e.g. abcde, call up GuiXT from Start->Run(or from the MS-DOS command line) by means ofC:\GuiXT\guixt.exe rfcpassword abcdeThe encoded password will be displayed and copied into the clipboard,allowing for it to be introduced into the guixt.ini-file by means of CTRL+V.Can I move the function "mark all" onto a pushbutton?Yes, you can achieve this by means of the commandpushbutton (toolbar) "@4B@mark all" "MKAL"(You obtain the function code MKAL via F1 if you position the cursor on theappropriate menu entry.)I am trying to extract some Material data to a file using an input script

    The material numbers are read in from a range of numbers (eg. 400000to 400999. Unfortunately some of the materials do not exist andtherefore the script stops with an error. Is there any way for the inputscript to ignore the error and move on to the next number without anyaction by the user?Yes, this is possible (but some documentation is still in progress here).Please look at http://www.synactive.com->Special topics->File handling in InputScripts->Example 2You have to use to "OnError=" option in the Enter statement.I want to to use the TitlePrefix statement. But it doesn't work: I alwaysget an error message "Command 'TitlePrefix' not available". What canI do?Please install a new GuiXT version. The TitlePrefix command came withversion 2001 Q4 05 in December 2001. By the way, you can always find aGuiXT version overview (enhancements and corrections) in

    http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://www.synactive.com/www_e/bestellung.html

  • 8/20/2019 Guixt QandA All

    3/9

    11/5/2015 questions and answers

    http://www.synactive.com/www_e/qa.html

      Do Something...else  Something else...endif

    This is not possible in standard GuiXT, but it is child's play with theInputAssistant component using variables:Set V[scr_material] "&[Material]"if V[scr_material=123456]  Title "Attention, this is material 123456"endif 

    I am trying to set up central GuiXT scripts for a large number of users.The Sapgui/GuiXT installation however has been done previously, on

    the local (Sapgui) directories. Can I force the local GuiXT.exe to use acentral .ini-file, that points to the central script folders?

    The solution we suggest is to put a guixt.ini file in the sapgui directory(instead of using a .bat file). In this local guixt.ini, you can use thecommand

    SwitchTo xxx

    where xxx is a central .ini file, e.g. \\P7103\GuiXT\guixt.ini. In the

    central .ini file you specify all options and directories.

    Is it possible to store the UserCatalog in the web repository with all

    the other files?

    Yes, this is possible (notation SAPWR:...) 

    Is it possible to store GuiXT.ini in the web repository with all the other 

    files?

    No, this is currently not possible (guixt.ini contains the RFC connectiondata. But it is planned to work with a standard user/password here in the

    future, to look for guixt.ini).

    I have created a transaction variant and added it to a GuiXT script. On

    downloading the script I receive the message:  "GuiXT Script

    Download RFC Error. No RFC authority for function group SHD0 for user SAPCPIC." What should I do?One solution is to provide the authority in R/3 for user SAPCPIC for function group SDH0.

     An alternative solution is to indicate another user in the GuiXT-profile, onewho already has authority for function group SDH0.Is GuiXT also available for SAP under Linux?

    The R/3 system (database + application servers) can run on any  system,

    but the frontend (sapgui) has to be a Windows PC.

    Can I move an entire table into another Dynpro?

    No, this is unfortunately not possible with GuiXT or InputAssistant.

    However, what you can do is define a limited number of input fields in

    the GuiXT script and, using "save", automatically transfer them into thetable via an InputScript (in other words: darkened or shaded processing

    of the screen containing the table).

    The guixt.ini file contains a command "replication Yes" and itsapplication makes a copy of each script in the directoryC:\Program files\sappc\sapgui\r3db\guixt cache\sapwr\P01which is fine for one session. But when the user opens a new SAPwindow, GuiXT again downloads scripts it has already read in the firstwindow, increasing the net traffic. Can this be avoided, i.e. canperformance be improved?

    Yes, fortunately, it can (in GuiXT 2001 Q3 06 and upwards). Here's how:

    In your logon script (e.g. Flogon.txt), you specify a version number with

    the "Version" command, e.g.

    Version "0001"

     As long as the version is not changed, all scripts (except the logon s cript

    itself) are taken from the cache without checking web repository.

    When you have relevant changes in the scripts, you can increase theversion number. GuiXT then deletes the previous cache and starts to fill

    a new one. As a consequence, a user will normally need only a s ingle

    RFC (for the logon script).

    http://www.synactive.com->Download->Version info.On the bottom of this page, click on "All previous versions".Is it possible to change the height of a table?No, since this would interfere with the SAP scrolling logic.What is the generally accepted practice for distributing new versionsof the .exe and .dll files? I ask because the SAPgui versions that areavailable from SAP marketplace don't seem to get updated with thelatest versions of the executable. Can the older files simply bereplaced by the new ones?Typically, the GuiXT version shipped with SAPGUI is not current with theversion that is available from Synactive's website. In order to satisfy clientexpectations we are constantly adding new features and applyingcorrections to existing GuiXT software. If you are using SAPGUI version

    4.6D and below, any guixt version should work. (However, we do encourageyou to update the version for new features.) If you are using SAPGUIversion 6.1 and above, you would require PATCH 15 for SAPGUI andGuiXT Version at least 2002 Q2 10.Is it possible on Enter event in a table to move the cursor relativelytwo columns left?Yes:GuiXT script:if V[NewCursorPosition]SetCursor "&V[NewCursorPosition]"Set V[NewCursorPosition] ""endif On Enter Process="va01_skip2cols.txt"InputScript "va01_skip2cols.txt":Set V[NextColumn] "&V[_tabcol]" + 2Set V[NewCursorPosition] "cell[All Items,&V[NextColumn],&V[_tabrow]]"Is it possible on Enter event to detect that the cursor is in a table?

    Yes, use the system fields&V[_cursorrow]&V[_cursorcol]position of cursor: row and columnavailable in an InputScript if the user has placed the cursor in an input field&V[_tabrow]&V[_tabcol]position of cursor: number of the table row and number of the table column,in each case beginning with 1available in an InputScript if the user has placed the cursor in a table cellSo, in order to detect that the cursor is in a table, you can useif not V[_tabrow=0]...endif Is it possible with a control key, e.g. CTRL+A to setcursor on absoluteaddress (second column, current line) of a table "All items" of an SAPorder?Yes, use the following coding in your script:Pushbutton (toolbar) "Material column" process="va01_setcursor2.txt""Ctrl+F12"if V[NewCursorPosition]SetCursor "&V[NewCursorPosition]"Set V[NewCursorPosition] ""endif ...and the InputScript "va01_setcursor2.txt":Set V[NewCursorPosition] "cell[All items,2,&V[_tabrow]]"With Ctrl+F12 the cursor is now set into the Material column. PreviouslyCtrl+A could not be assigned by GuiXT, but we have added this to theversion (2002 Q3 11).This solution is not a local frontend action. The GuiXT "Tab" commandwould provide an alternative solution for fast data entry.

    GuiXT: Box

    GuiXT: Columnsize

    I want to use the functions ColumnSize, ColumnHeader, ColumnWidthfor a certain table containing a comma in its title, e.g. "Wholesale,retail and miscellaneous products". But since GuiXT expects thecolumn name after the comma, this is not possible. What is thesolution?

     Abbreviate the table t itle, e.g. if you want to set column s ize 6 f or t hecolumn "Material":ColumnSize [Wholes.,Material] 6

  • 8/20/2019 Guixt QandA All

    4/9

    11/5/2015 questions and answers

    http://www.synactive.com/www_e/qa.html

    GuiXT: Default

    Is it possible to set a default value to a field/radiobutton for which R/3sends a value?This is not possible.

    GuiXT: Del

    I am using GuiXT for the first time to enhance some of the screens in

    our SAP system to make them more user friendly. I am trying to deletemost of the fields in the screen ME55 - Collective Release (program:RM06BF00 screen: 1000). The problem is trying to delete multiple

    fields on the one line from the screen eg: Document Type has 2

    selection fields and a multiple selection box. I have tried using: DEL

    [Document Type] "-Triple" but this does not delete all of the line; it

    leaves 1 field and the multiple selection box. Can you advise?

    There are several ways to delete fields without names:(1) you use direct coordinates:// delete pushbutton in "document type" linedel #[11,78]I would avoid this possibility, since any changes in the ABAP report could

    change the position of this button as well 

    (2) you use relative positions with respect to [Document type]: 

    // delete pushbutton in "document type" line 

    del [Document type]+(0,78) 

    This is much better, since the vertical position (column) of the button does

    not change, if more or less parameters are defined in the report.  

    (3) You delete the whole line 

    // delete line containing the "document type" selection 

    del [Document type] [Document type]+(0,100) 

    This is fine if you really want to delete the whole line.

    Is it possible to delete tabs controls?You can delete, rename and add tips for tabs controls (use del, text andtip). It is also possible, with InputAssistant, to move fields from one tabcontrol to another. You can find an example in our "Special Topics".Is it possible to delete columns in a table?Yes, this is possible. Use ColumnSize with value 0.

    GuiXT: Fieldsize

    GuiXT: Icon

    How can I get an icon in all my R/3 screens?By using the icon command in the logon script it will appear in all screens.You can also put it in the main menu so that you can differenciate the icondepending on the client.

    GuiXT: Image

    I try to customize a screen with several tab pages. How can I influence

    the position of a field on one tab page only? How can I show an image

    on one tab page only?Use:if Q[Page=tabtext]  pos ...

    Image ...

    endif 

    where tabtext is the text displayed on the tab.  We also suggest that you

    download a newer GuiXT version from our download page.

    What is the reason for font problems with R/3 - GuiXT?In 3.1/4.0 SAP shows a different font size from the one the user programmed before. GuiXT takes into account the size the user set; that iswhy pictures do not appear at the excpected location. To solve theproblem, choose a font size which will also be used by R/3 for viewing. Theproblem does not appear with R/3 4.5 or 4.6.

    Can I make the background colour of my R/3 screen client dependent?It is not possible to alter the background colour with GuiXT. However, theicon command allows you to differentiate between clients by replacing thestandard R/3 icon in the taskbar by one of your own choosing.

    GuiXT: If/else/endif 

    How can I query the value of a field without a label?Use the #-notation to denote the field. For example, for a field in row 5 andcolumn 30:

    Set V[myvar] "[5,30]"if V[myvar=00:00]  Set #[5,30] "24:00"endif 

    GuiXT: Listimage

    GuiXT: NoInput

    Is it possible to use NoInput in a table?

  • 8/20/2019 Guixt QandA All

    5/9

    11/5/2015 questions and answers

    http://www.synactive.com/www_e/qa.html

    Yes, you can forbid the input for whole columns using the command:NoInput [Table,Column]

    GuiXT: Offset

    GuiXT: Pos

    GuiXT: Pushbutton

    We are using GuiXT to help simplify some screens for our clientsusers. When using pushbuttons to call other functions or transactions,we have found that we cannot return to the exact screen from whichthe new function/transaction was called. Now I would like to know if there is a way to allow the user to go back to the calling screen oncehe or she has finished with the transaction called up to use the GuiXTpushbutton.It is currently not possible to invoke transactions in a true "call mode" fromGuiXT. You can try the following:(a) When you call the new transaction, use the /Oxxxx... instead of /Nxxxx.

     At the end of the your t ransaction t he user can then c lose the new modeand continue with his original transaction(b) Sometimes there exist menu items in the transaction that actually callthe new transaction, returning to the screen again.We will try to find a better solution. We already spoke with SAPdevelopment about implementing a /Cnnnn command, like /N or /O, thatcalls a transactions. But this will not be implemented by SAP in the near future, and we are currently testing a GuiXT call to an ABAP function thatwill then call the transaction. We hope that this will lead to a satisfyingsolution.

    How can I address a pushbutton without text (icon only)?Use the quickinfo text instead.I want to create a new pushbutton that invokes a function that ishidden in the menu. How can I find the internal function code that Ihave to specify in the Pushbutton command?

    Put the mouse cursor on the function in the menu and then, while keepingthe left mouse button pressed, press F1. Now R/3 displays the technicalfunction code that you need.I created a new pushbutton with function code "/*VA01", in order toskip the initial screen of VA01. Since there are obligatory fields on thiscreen, I also created a GuiXT script that sets all necessary defaultvalues. But this screen still comes up with an error message askingme to fill in the fields.

    With "/*xxxx" the first screen of the transaction xxxx is not sent to the

    frontend, and GuiXT never gets the chance to fill in the defaults.Possible

    solution: you call the transaction with "/nxxx" together with an InputScript.

    In the InputScript you then set the defaults and skip the first screen with

    "Enter".

     

    GuiXT: Radiobutton

    GuiXT: Tab

    I use the command "Tab" as follows:Tab F[Material] F[Price] and get an error message:"ligne 101 command Tab is not supported".Why? Did I miss something?You need to install a new GuiXT version (2002 Q3 4 or upwards).

    GuiXT: Text

    Is it possible to specify font and color in the text command?No, this is not supported. But you can create an image (.bmp, .gif, ,jpg),and display this image with the "Image" command.

    GuiXT: Tip

    GuiXT: Title

    I use an InputField Statement with variable name MySalesOffice. WItha Call statement after the InputField statement I want to set an initialvalue into the variable &[MySalesOffice]. The Call works fine, but theInputField is empty. The value is shown when I press Enter. How can Irectify this?Put the Call statement before the InputField statement. GuiXT takes thevalue as it is when interpreting the InputFIeld command, without reflectinglater changes of the variable

    GuiXT: View

    Do I need a specific browser when I want to view an html-file?Yes, Viewer has been defined to work with Microsoft Internet Explorer which should be installed on the PC.We are using an external database to hold some information outside

    SAP. We access this database using the view command and we arewriting data back to SAP using the sap: url method. This works verywell. Excellent functionality! The question is how can we stop userstyping text into the field and only accept the data from the webbrowser, because if I set the field to noinput I can't update it from theweb browser either?There are 2 ways to solve this:1 Delete the field form screenLet us assume that the field is [Price]. Usedel [Price]and, if you want to display a value, perhapsText (..,. .) "&F[P rice]" -border size=6With the SAP-URL SAP:/ /Price:50 the value is not set on screen (sincethere is no Price field, but GuiXT sends the value 50 o the applition with thenext Enter on the screen.2 Set the field to NoInput and use an InputScript with the SAP UrlThis is a little bit more compliated, and if you are not yet using an

    Is it possible to display R/3 data in the html-file?Yes, use the "template" function of the View command.

  • 8/20/2019 Guixt QandA All

    6/9

    11/5/2015 questions and answers

    http://www.synactive.com/www_e/qa.html

    InputScript with the SAP URL I would prefer method 1. In addition, method2 does not work if the field is an obligatory entry field on the screen.UseNoInput [Price]and a URL where you pass the price as parameter to an InputScript:SAP://U[parPrice]:50;OK:abcd,process=mySave.txtmySave.txt, example::Screen ...Set F[Price] "&U[parPrice]"..Enter /11

    InputAssistant FIle Handling - InputField 

    Where are the Input Sets and the History stored?Input Sets and History are stored in the history directory you specified inyour GuiXT profile. Shared Input Sets are stored in the Shared Input Setsdirectory you specified in your GuiXT profile or by specifying option:InputSets c:\directory.

    I want to use GuiXT's Call statement, but I always get an error "Incorrect field length for 'Remote Function Call'." which appears in apopup box with the header "GuiXT Call RFC Error." What is wrong?

     All passing parameters of the f unction have to be c haracter based. Theerror message most likely comes the fact that one of your parameters is ofa different type, e.g. NUMC.

    I have a problem handling a pop-up window when it has the samescreen name and number as the screen that calls it. The example I amusing is transaction IW31. If you drop down on the functional locationfield a pop-up window appears, but I am having difficulty using itbecause it has the same screen name and number as the screencalling it. What I want to do is select one of the tabs and enter information into a field in the pop- up window and then select the oneentry that will return. The exact steps are:

    1. Run transaction IW31 

    2. Drop down on the functional location field. 

    3. Select the Cost center tab

    4. Enter a value in the Cost center field

    5. Click the green check

    6. Select the 1 functinal location in the list

    7. Return the the IW31 screen. 

    Can you possibly solve this ?

    In your system the R/3 matchcode display is configured to be processed asa special control, without using R/3 dynpros. GuiXT does not handle thesecontrols. One could change the configuration (Help->Settings) and switch todynpro-based display, but this is probably not what the users want. There isa better way to determine the functional location if the cost center is given,namely a Call to an ABAP function that you have to implement. Theimplementation is quite simple (SE37): Name the Import-Parameter COSTCENTER and the Export- Parameter FUNCLOCATION, and use thefollowing ABAP code:

    TABLES: ILOA. Select TPLNR INTO ILOA-TPLNR FROM ILOA 

    WHERE KOSTL = COSTCENTER..

    FUNCLOCATION = ILOA-TPLNR.

    ENDSELECT.

    Since there is a secondary index on the cost center field in table ILOA, thisis pretty fast. The implementation assumes that exactly one functionallocation will be found. You could add a little bit more code to handle thecases where more than one, or not any, functional location is returned bythe Select- Statement.

    What is the impact of InputAssistant on the R/3 performance?

    GuiXT runs on the the client (frontend) PC. There is no performance impacon the application server or on the database. We measured around 5-10milliseconds for a typical screen and with a script of medium length, on a266 MHtz Pentium PC. The user will probably not realize any performanceimpact. If you store the scripts on a central server in your LAN, or on awebserver, this causes increased net traffic. It might make sense to usethe built-in local cache of GUiXT if several hundred or more GuiXT usersare expected.

    If you generate the "local value help" of InputAssistant, then you can savea lot of F4 requests to R/3 (less application server and database load).

    Is it possible to have a statement such as this:if[Material=123456]  Do Something...else  Something else...endifThis is not possible in standard GuiXT, but it is child's play with theInputAssistant component using variables:Set V[scr_material] "&[Material]"if V[scr_material=123456]  Title "Attention, this is material 123456"endif I have a problem wi th transaction "XD01" or "V-09" in Sap's version4.6B. I want to convert this screen into a "singl e-screen transaction",but the screen (a popup) is too small.

    Use "WindowSize" in the GuiXT script for the first screen, e.g.:WindowSize (25,125)In transaction CS03 I added a new pushbutton that calls uptransaction ZS13 (function code "/OZS13), and starts an InputScript.In my InputScript I use the the variable &[::Material] (the most recentlyentered material number), but it is always empty.With function code "/O..." you open up a new mode, which has acompletely new set of variables. In order to transfer the material number from the first mode to the new one, you have to use parameters in your InputScript. The parameter values are automatically carried over.

    Is the History size limited?Yes, Hist ory is limited to 512 signs. When this siz e is reached new valuesare stored and the oldest discarded.

    How can I prevent the system from stopping on an error because thesystem has to do some updates before processing the next step in anInputScript?You can use the command "Retry on error" in your input script. Put it justafter the Screen command where you expect to get the message that theobject is still blocked (since the update task is not yet finished). GuiXT

    then waits a second, trying later on again after an increasing period of time

    Is it possible to delete history entries even if GuiXT is started"hidden"?Yes, just display the history of an inputfield with the right mouse key (or other as specified in GuiXT configuration); select the entry with the leftmouse key and press "del".

    Is there a way of using GuiXT global variables across multiplesessions. For example, if I'm in transaction X and I start a new sessiofor a transaction Y with /OY, can I use the variables I set whilst intransaction X?These are distinct sets of variables, one for each session. But you canpass using-parameters to InputScript started with a /O...-command. If thisis not enough, you could write a file and read it in the next mode.

    I have a Text command in my script which displays a text returnedfrom a function call: text (7,85) &[ReturnValue]... However, the issue isthat the ReturnValue gets truncated in the screen. For example, if thecalled function module returns a value of "Client Proposal", what isdisplayed on the screen is only "Client". How can I rectify this?Put the variable in double quotes, i.e.text (7,85) "&[ReturnValue]"...Otherwise, since GuiXT replaces the variable by its content before

    http://-/?-http://-/?-

  • 8/20/2019 Guixt QandA All

    7/9

    11/5/2015 questions and answers

    http://www.synactive.com/www_e/qa.html

    We want to put a value into a table with the command "Set", e.g.Set cell[Table,7,5] "x"

    Instead of specifying a certain row and column, we would like to putthe value into the table cell we point at with the mouse cursor. Canthis be done?You can use the system variables &V[_tabrow] and &V[_tabcol]. For example:Set cell[Table,&V[_tabcol],&V[_tabrow]] "x"In a GuiXT script we work with the command "On" to define our ownhandling for certain function codes like "/3", "/12", "/15". The 3InputScripts are almost identical and we would like to avoid theredundant coding involved. Is there a way to achieve this?The "using" command is available for "On" as well, e.g.:

    On "/3" "process=IS _return.txt "using FC = "/3"

    On "/12" "process=I S_return.tx t"using FC = "/12"

    On "/15" "process=I S_return.tx t"using FC = "/15"

    In the InputScript you then work with a parameter "FC", e.g.:

    Parameter FC...Enter "&U[FC]"Is it possible to generate local value help for a created inputfield?Yes, in file domTextScreen you add the field text and associate a domainname ie. ABCDEF. You then create a file dom.L.ABCDEF.txt (L stands for the language), where you specify possible values with corresponding text.The program ZGUIXT16 (intended to generate the local value helpfiles) always stops and produces an ABAP short dump. What could bethe reason?

    ZGUIXT16 uses the SAP standard function CHECKTABLE_GET in order to

    generate the local value help. For some reason, this function aborts for several domains, depending on the R/3 release.

    Solution: In ZGUIXT16 some domains are already excluded:* Exclude some domains (error in SAP value list generation):CHECK DOM-DOMNAME NE: 'HIERANM', 'IM_POSNR', 'IWEXTSYMBL','P02_BTRTE'.Here you can enumerate domains that lead to errors, and then restart theprogram.

    How can I find out the name of the domain that produced the error?

    When the ABAP short dump is displayed, choose "Debugger" and then,using the call stack display, select the program ZGUIXT16. Now you candisplay the value of the field "DOM". This is the name of the domain thatproduced the error.

    If you have no possibility to invoke the debugger, only the ABAP shortdump, then please look at the value of table DD04L. It contains the dataelement at the time of the breakdown. For example, the entry could look asfollows:

    DD04L |RESADSGDEMA ND A0000RESA

    The data element in this cas e is RESADSGDEMAND. Using the repositoryinformation system, you can now find the domain name, which in this caseis also RESADSGDEMAND.

    interpreting the command, it gets the command text (7,85) Client proposaland then simply ignores the word "proposal".

    Is it possible to insert a new column into a table with GuiXT?With InputAssistant you can set additional data for each row and have itdisplayed, but not as a scrollable column.

    I am trying to compare 2 variables (numbers) in an input script.However,one is in the format "17100" and the other is "17,100". Therefore theywillnever match. Is there a way to manipulate the string to remove thecomma?

    One possibility would be to use calculations; they ignore the comma (group

    separator) at this position:

    Set V[a] &V[x1] + 0Set V[b] &V[x2] + 0if V[a=&V[b]]Title "OK]"endif 

     Another possibility would be to use ">" or "< " instead of "="; thesecomparisons also ignore the group separator:if not V[a>&V[b]] and not V[a

  • 8/20/2019 Guixt QandA All

    8/9

    11/5/2015 questions and answers

    http://www.synactive.com/www_e/qa.html

     Alternatively, you can c hoose a certain f ield on the s creen, e.g. the f ield[Price], and determine whether it is an input field or just read-only. Use thesyntax

    if I[Price]

    This condition is fulfilled only if there is an input field [Price] on the screen,i.e.

    I[Price] does not pertain if [Price] is a read-only field.

    Is there a way to concatenate two variables in GuiXT?

    Simply write the two (or more) variables one after the other, e.g.Set V[my_digits] "&[my_digits]&[new_digit]"

    How can I prevent the system from going back to the first screen of thetransaction in case of an error message?

    You can use the command "No return on error" in your input script. In thiscase the system stops the InputScript if an error message occurs, and theuser can correct the error and continue with the transaction.

    InputAssistant: File handling

    I´m trying to produce a file using the commands OpenFile, AppendFileand CloseFile. But the file remains empty. I already checked that theCloseFile command was carried out, and that the variables inAppendFile "&[nomeFile]" &[ApplMod] &[RevSoft] &[Docum]are correctly filled. What could be the reason?

     AppendFile uses the names of the variables f or t he record f ields, not direct

    values. Please write AppendFile "&[nomeFile]" ApplMod RevSoft Documinstead of 

     AppendFile "&[nomeFile]" &[ApplMod] &[RevSoft] &[Docum]

    InputAssistant: I nputField

    I would like to mark a field that I defined with InputField. How can Iaddress the field in the Mark command?

    Let's assume that you defined a new field as follows:InputField (10,1) "Company code" (10,30) "Size=4" "Name=mycc"You can then either use the field text, i.e.Mark [Company code]or the first position given in the InputField command, i.e.Mark #[10,1]

    I create an input field and would li ke to make it inaccessible for end

    users. I tried "noinput" syntax but it doesn't work. The field is still

    editable. Is there a solution?Use the "Text" command instead of the "InputField" command in order todisplay the variable, preferably with the "- border" and "size=" options, e.g.:

    Text (3,20) "&V[m y_variable1]" Size=18 -border 

    Designer 

    Is there a way to introduce conditions like if Q[transaction=...] or  if Q[page=...] with the Designer in a script?

    Yes, just toggle from wysiwyg to text editor, go to the location where youwant to introduce the condition, press right mouse key; Designer offers thiscommand line with the value of the actual  transaction "Insert IFQ[Transaction=XXXX]...ENDIF" or "Insert IF Q[Page=XXXX]...ENDIF"

    How can I change the title of the R/3 screen with Designer?Just click the right mouse button on the Designer screen, go to"Properties", change the title.

    Does the GuiXT designer program work on Windows 2000?Yes, indeed, the GuiXT Designer works on Windows 2000 as well.How can I add an icon to the R/3 screen with Designer?Just click the right mouse button on the Designer screen, go to"Properties", choose the icon file either by entering the name or byselecting the file with the browser (...)I want to change a screen but Designer shows a different screen.

    What's wrong?Check the selected script directory through "Directories"

    Viewer 

    My Viewer does not work on some PCs, i.e. nothing happens. Why?Probably pinnacle.dll is missing. It comes with the GuiXT and Designer installation. You can copy the dll either into a suitable WIndows direcory(e.g. C:\WINNT\System32), or into the sapgui directory (e.g.C:\Programs\SAPPC\sapgui).In this case the GuiXT protocol window (View->Protocol) contains the error message "pinnacle.dll not found".Using GuiXT is it possible to design a screen for sales order entrywhere a click on a map is used to select a sales area. I have seensolutions that use a map icon to display the areas with radio buttonsat the side but I want to be able to click on the map itself to select theregion. If it can be done what method would be used?

    Do I need a specific browser when I want to view an html-file?Yes, Viewer has been defined to work with Microsoft Internet Explorer which should be installed on the PC.

    I created an html page that conatins the following hyperlink:SAP://Table:*;Enqueue argument:*;Client:*;User:*;OK:SM12The link is meant to invoke transaction SM12, fill in some values, andactivate Enter. But it does not work.In the hyperlink string, please start by invoking transaction SM12, then fillin the values, then activate Enter:SAP:OK:/NSM12;Table:*;Enqueue argument:*;Client:*;User:*;OK

  • 8/20/2019 Guixt QandA All

    9/9

    11/5/2015 questions and answers

    http://www synactive com/www e/qa html

    Yes, this is possible with the "GuiXT Viewer" component. For an example,see http://www.synactive.com->Tutorials->Viewer->Tutorial 2 and alsoTutorial 7Short description:You create an html page that contains the image + an image map. Thehyperlinks of the image map all start with "SAP://", followed by field namesand values. The SAP-URL string is passed to GuiXT as soon as the user clicks on an image. GuiXT then enters all values into the fields that youspecified.

    Technology, P erformance

    What is the impact of GuiXT on the R/3 performance?

    GuiXT runs on the the client (frontend) pc. There is no performance impacton the application server or on the database. We measured around 5-10milliseconds for a typical screen and with a script of medium length, on a266 MHtz Pentium PC. The user will probably not realize any performanceimpact. If you store the scripts on a central server in your LAN, or on awebserver, this causes increased net traffic. It might make sense to usethe built-in local cache of GUiXT if several hundred or more GuiXT usersare expected.