on 2013 Nov 14 3:56 PM
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.
Request clarification before answering.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.