Jump to content
PauloRodrigues

AutoIt combo box SAP manipulation

Recommended Posts

PauloRodrigues

I need to select an item from a SAP combobox, could anyone help me or did something like that? I tried to use some AutoIt functions but without success.

When i try to identify the combobox with au3Info, this is the return:

Nenhum texto alternativo automático disponível.

Could anyone help me with this challange?

Share this post


Link to post
Share on other sites
JLogan3o13

@PauloRodrigues have you tried looking at the SAP UDF? It works well as long as the SAP GUI Scripting Interface is enabled.

 

  • Like 1

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
PauloRodrigues
13 minutes ago, JLogan3o13 said:

@PauloRodrigues have you tried looking at the SAP UDF? It works well as long as the SAP GUI Scripting Interface is enabled.

 

Yes, i look out this SAP UDF i'm using this to automate SAP, but in this challange i have to identify this combo box and this AutoItInfo don't give me something to manipulate.
i'm trying to use the autoit3 functions to manipulate ComboBox and to identify Control ID/Handle to the control:
Func. like this--> '_GUICtrlComboBox_AddDir' ; _GUICtrlComboBox_GetEditText; _GUICtrlComboBox_GetLBText; _GUICtrlComboBox_GetList;

 

Share this post


Link to post
Share on other sites
JLogan3o13

If the Window Info Tool is not giving you what you need, have a look at the IUIAutomation thread in the examples forum. What does Simple Spy show you?

Also, please use the reply button rather than quoting everything, it pads the thread unnecessarily. I know what I said, I was there when I said it ;)

 

Edited by JLogan3o13
  • Like 1

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
PauloRodrigues

" Also, please use the reply button rather than quoting everything, it pads the thread unnecessarily. I know what I said, I was there when I said it ;) "

Oh, i'm sorry !!! :)

I resolve this challenge, after this afternoon i'll share it here.

Share this post


Link to post
Share on other sites
PauloRodrigues
If($itemDoComboBox="") Then

      _registrarLog($PARAMETRO1,$PARAMETRO2,"PARAMETRO3 - MSG ", $PARAMETRO4, 1)

   Else

      $sap_session.findById("wnd[" & $sap_window_num & "]/usr/tabsTABSTRIP1/tabpLAW/ssubMAINAREA:SAPLSUID_MAINTENANCE:1112/cmbSUID_ST_NODE_UCLASS-LIC_TYPE").value = $itemDoComboBox

      If(_SAPObjPropertyGet("usr/tabsTABSTRIP1/tabpLAW/ssubMAINAREA:SAPLSUID_MAINTENANCE:1112/cmbSUID_ST_NODE_UCLASS-LIC_TYPE", "key")="") Then

            _registrarLog($PARAMETRO1,$PARAMETRO2,StringFormat("O usuário será criando sem itemDoComboBox, pois a o item: $s Não existe no combobox",$itemDoComboBox), 1)


      EndIf

EndIf

This resolve my problem. Where i have fixed values in this combobox

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • autotin
      By autotin
      Hello I am a first time user of AutoIT with little coding experience and I would REALLY really appreciate your help.
      I work in a warehouse where I am responsible for data entry along with a slew of other different tasks such as auditing and managing paperwork. Most of my time is tied up entering info to close receipts of product orders (8-12+ hours for thousands of products). The quantity actually produced by the warehouse is sometimes different from the quantity listed on the reciept (in this case 20). I need to change all the build qty for sublocation "1-WIP" from 20 to the actual quantity 22 and set all other numbers as 0. The form is an iframe coded with jQuery and freezes for 1-2 seconds after every entry and refreshes. As such, it doesn't allow me to use tab and I need to click and type every incorrect field.
      I have attached an image as an example from the webapp, FinaleInventory.
      I'm thinking that I probably need a macro that has a message box entry where I can type the corrected number entry I want. Then it uses image/character recognition (Tesseract?) to find "WIP" sublocation =,   Move the mouse over to the right to "Quantity" relative to location of WIP If quantity number = entry, then move to next "WIP" image (Not quite sure how to make Tesseract "find next") Elseif quantity number ≠ entry then click quantity number of "WIP" and type corrected entry Scroll down Loop until bottom of page I would greatly appreciate any help, ideas or pointers for this project. Thank you!
      -A newbie scripter

    • Pagi
      By Pagi
       
      <a href="index.php=4143b27b41db0a40c499202865c3e24d" class="menuitem " target="\_self"> "Menu Item 1" </a>
      Can you tell me if it´s possible to click this menu button? If yes, how? Cause I have no idea, I think i should use _IETagNameGetCollection
    • mar3011
      By mar3011
      hello, I want to set in the inputbox field random key from the keyboard to which the function will be assigned, for example F4 function start notepad ALT + A function start notepad for one function. Thank you for any help.  
    • JuanFelipe
      By JuanFelipe
      Cambiar a español Hello friends, I need help with a problem I have, I want to know if there is any way to update a GUI already running, that is I have a GUI of a certain size and with a button I would like to enlarge it:
      example: $ form1 = GUICreate ("", 200,100,0,0)   When you press the button, the gui increases its size, and actuates the new size.
×