[HELP]Button no longer works in the transaction ME21N(SAP/QTP) - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: [HELP]Button no longer works in the transaction ME21N(SAP/QTP) (/Thread-HELP-Button-no-longer-works-in-the-transaction-ME21N-SAP-QTP) Pages:
1
2
|
[HELP]Button no longer works in the transaction ME21N(SAP/QTP) - rafaponzio - 06-22-2012 Hi, I am automating a process of SAP, transaction ME21N in HP QTP. This generates the Purchase Order for this transaction will be in a copy of Purchase Requisition. The option to perform the copy, is to click in a Variant Selection button, Purchase Requisition option. Button image: [attachment=1032] I am using the following command to open the function. It was working, but it is not working now. . Code: SAPGuiWindow ("Create request"). SAPGuiToolbar ("ToolBarControl"). PressContextButton "SELECT" Can anyone help with this case? RE: [HELP]Button no longer works in the transaction ME21N(SAP/QTP) - Ankesh - 06-25-2012 Hey do you need to select a variant and then just execute the transaction? Please elaborate your requirement. I have also worked on ME21N --To create purchase order. What i do is enter the Org datas and Material and just hit save. It works fine. Regards, Ankesh RE: [HELP]Button no longer works in the transaction ME21N(SAP/QTP) - rafaponzio - 06-25-2012 I need to create a Purchase Order based on a Purchase Requisition. RE: [HELP]Button no longer works in the transaction ME21N(SAP/QTP) - Ankesh - 06-25-2012 As per your post you are not able to click on a button. The code which u have posted shows that you are selecting some menu items. It would be better for me to help if you could post you code, requirement and screenshot of the page. Can you post the object spy for that object too? Regards, Ankesh RE: [HELP]Button no longer works in the transaction ME21N(SAP/QTP) - rafaponzio - 06-25-2012 [attachment=1034] I need select the menu item marked in red. When I select this item, it displays a screen where I fill the purchase requisition number and click on the Execute button. So, I create a purchase order based on the purchase requisition. object is marked in blue: Code: "Class Name: = SAPGuiToolbar" Code: Code: If SAPGuiSession("Session").Exist(2) Then RE: [HELP]Button no longer works in the transaction ME21N(SAP/QTP) - Ankesh - 06-26-2012 Hey code is fine. It is working fine for me. What error are you facing? RE: [HELP]Button no longer works in the transaction ME21N(SAP/QTP) - rafaponzio - 06-26-2012 This is the error: [attachment=1041] The code worked normally until a few days ago. I could not understand why it does not. Before I forget, thank you for your attention and help. RE: [HELP]Button no longer works in the transaction ME21N(SAP/QTP) - Ankesh - 06-26-2012 This error usually happens when the item you are trying to select is not available in the list. Make sure the item you are trying to select is listed under the menu. Can you try this alternate code. Code: SAPGuiSession("Session").SAPGuiWindow("Create Purchase Order").SAPGuiToolbar("ToolBarControl").PressContextButton "SELECT" Let me know the output. Regards, Ankesh RE: [HELP]Button no longer works in the transaction ME21N(SAP/QTP) - rafaponzio - 06-26-2012 Now it worked! You saved my life ! LoL Thank you for help! RE: [HELP]Button no longer works in the transaction ME21N(SAP/QTP) - Ankesh - 06-26-2012 Glad that it worked for you |