cancel
Showing results for 
Search instead for 
Did you mean: 

SAP textbox error

OskarJennische2
Level 2
hi. i am trying to write in a sap textbox. i have used application modeller in SAP mode. i get this error:

Internal : Failed to perform step 1 in Navigate Stage 'Navigate5' on page 'create customer sales' - Object reference not set to an instance of an object.

i am using attach before this stage. i am not sure how to do this. i would like to go "set focus" and then send keys f4 to get to the list with the possible inputs, since i apparently cannot write directly in this textbox for some reason.

any ideas? here is the ID from application modeller of the texbox if it would be of any help: /app/con[0]/ses[0]/wnd[0]/usr/subSUBTAB:SAPLATAB:0100/tabsTABSTRIP100/tabpTAB01/ssubSUBSC:SAPLATAB:0200/subAREA1:SAPMF02D:7310/ctxtKNVV-KDGRP



------------------------------
Oskar Jennische
------------------------------
4 REPLIES 4

MichalSzumski
Level 6
Hi Oskar,

Just to understand - do you want to write into this field or send F4 key to it?

If you want to write there then you need to use Write stage - did you try it?

If you want to send F4 shortcut then you need to:
1. Attach
2. Focus on the field using navigate stage
3. Activate application
4. Send keys Event or Send keys using navigate stage to send F4

------------------------------
Michal Szumski
RPA developer
Rockwell Automation
------------------------------

hi Michal

i want to write in the textbox, and one way of doing it was by sending f4 to get to the menu and select an menu item. but writing also works.

 i have been looking more into this and realized i need to first fill in the steps below the SAP textbox mentioned. once this is done, the mentioned texbox is GREY, not WHITE. this means i can not write in the textbox without making it white first. to make it white, i need to double click the box to make it white. the question now is how do i double click it? if i go into navigate stage i can only do "set focus"

27522.png

27523.png

i hope this makes sence

thanks



------------------------------
Oskar Jennische
------------------------------

Hi Oskar,

What you can do is to Activate Application (SAP window), focus on the field and then use in navigate global send key events (or just global send keys) with F2 or F4 on the whole application - depending what is should cover your activity. Are you familiar with sending keys to the application? There is a guidance how to do that on BP portal:

https://portal.blueprism.com/system/files/2018-02/Guide%20to%20Send%20Keys%20and%20Send%20Key%20Events.pdf



------------------------------
Michal Szumski
RPA developer
Rockwell Automation
------------------------------

And by the way - Did you press green button provided on the screenshot below? I never saw case when you need to double click on the field to enable it in SAP - usually SAP validates input when you press anything so it should work as well.

27526.png



------------------------------
Michal Szumski
RPA developer
Rockwell Automation
------------------------------