cancel
Showing results for 
Search instead for 
Did you mean: 

How to select and expand last node(creates new number) in GUI tree(Tcode - /AIF/ERR) - CBTA ?

vijayjeethuri
Participant
0 Kudos

Hello Experts,

I have one requirement in /AIF/ERR tcode.

Need to select last node in the screen, every time node number will be incremented with +1,

How we can select and double click on new number, Anybody have solution for this ?

Please check the below screenshot.

Thanks in advance.

Regards,

Vijay

Accepted Solutions (0)

Answers (1)

Answers (1)

AjayHS
Product and Topic Expert
Product and Topic Expert

Hello Vijay,

You can use CBTA_GUI_GETPROPERTY component. Refer to below link.

Loop until you recieve null in the text and then determine the nodekey position, so the last element will be in -1 position.

https://answers.sap.com/questions/287752/how-to-get-tree-node-text-via-cbta.html

Thanks,

Aj

vijayjeethuri
Participant
0 Kudos

Hi Ajay,

Thank you for your quick response.

As you suggested I tried the above method, In getproperty component I added this - GetItemText(" %i%","&Hierarchy") - able to get the item text value.

But I'm not able to find the null value till the end, so how we can define exitdo ?

We need to select end node and double click on it.

Thanks in advance.

Regards,

Vijay