cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting 'Shipment Number' from SAP GUI Tree, while running a test in QTP

Former Member
0 Kudos
553

Hi All,

In QTP, while running test for the T'Code VT04, I want the "Shipment Number" to be captured in Data Table so that it can be available for applicable subsequent transactions like VL06P, VL06C, VT02N and so on. Could you help me understand and expedite this step, through keyword/expert view?

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hey Suresh,

This is easy!

Use the getroproperty method to get the information..

Your code it will be something like this:

variable =

SAPGuiSession("Session").SAPGuiWindow("SAPWindow").SAPGuiEdit("Object").GETROPROPERTY(value)

Thanks!

former_member196871
Active Participant
0 Kudos

Hi Suresh,

You may use the component SetFocus on the field required to get the value from by passing the URI of that particular field and use the following example code to access the value and store it in a custom defined variable.

SetExitConsolidatedComponentOnFailure(True)

ImportType "GuiVComponent"

TechnicalComponentName = "Components\SAP Front End\Controls\SetFocus"

'Begin Parameters

Uri=GetParameterValue("C3_****_CJ20N_C110_Uri")

'End Parameters

GuiVComponent_SetFocus Uri

Get_Name = SAP_get_Text_Value("PROJ-PSPID")

TargetField = Parameter("C3_PROJECT_NAME")

GS_StoreValue TargetField, Get_Name

Hope this helps.

Best Regards,

Hardik Sharma