2009 May 12 11:08 AM
Hi Everyone,
I have been trying to use Ecatt for Sap gui recording as per the tutorial in saptechnical.com.
But i recieve an error in the last after i use parameters.
The Error i get is on adding a message block using script control.
the code i had written was
E_MATNR = = E_MSG_1-[1]-MSG1.
The error i get is
Parser: Operand is missing in ' E_MATNR = = E_MSG_1-[1]-MSG1.'
the complete code is
MESSAGE ( MSG_1 ).
SAPGUI ( MM01_60_STEP_2 ).
ENDMESSAGE ( E_MSG_1 ).
E_MATNR = = E_MSG_1[1]-MSGV1.
Please provide a solution for the same.
Thanks in Advance,
Best regards,
Priya
Edited by: Priya_Agarwal121986 on May 12, 2009 12:42 PM
Edited by: Priya_Agarwal121986 on May 12, 2009 12:43 PM
2009 May 12 12:55 PM
Hello Priya,
If i am not wrong you are trying to retrieve the material number created when you run the script right.
If so then you can handle it differently.
If you execute your script , you can find the message saying material XXX is created in the ENDMESSAGE block, note down the number and check whether the material is in the MSGV1 or MSGV2 of the message.
Now go to the script , and double click on the MESSAGE block and add a entry with the message number noted and then you can parameterize the E_MATNR to either MSGV1 or MSGV2 based on where the material number is.
Thanks & Best regards,
Ajay
Hi Everyone,
I have been trying to use Ecatt for Sap gui recording as per the tutorial in saptechnical.com.
But i recieve an error in the last after i use parameters.
The Error i get is on adding a message block using script control.
the code i had written was
E_MATNR = = E_MSG_1-[1]-MSG1.
The error i get is
Parser: Operand is missing in ' E_MATNR = = E_MSG_1-[1]-MSG1.'
the complete code is
MESSAGE ( MSG_1 ).
SAPGUI ( MM01_60_STEP_2 ).
ENDMESSAGE ( E_MSG_1 ).
E_MATNR = = E_MSG_1[1]-MSGV1.
Please provide a solution for the same.
Thanks in Advance,
Best regards,
Priya
Edited by: Priya_Agarwal121986 on May 12, 2009 12:42 PM
Edited by: Priya_Agarwal121986 on May 12, 2009 12:43 PM
2009 May 12 12:55 PM
Hello Priya,
If i am not wrong you are trying to retrieve the material number created when you run the script right.
If so then you can handle it differently.
If you execute your script , you can find the message saying material XXX is created in the ENDMESSAGE block, note down the number and check whether the material is in the MSGV1 or MSGV2 of the message.
Now go to the script , and double click on the MESSAGE block and add a entry with the message number noted and then you can parameterize the E_MATNR to either MSGV1 or MSGV2 based on where the material number is.
Thanks & Best regards,
Ajay
2009 May 12 1:34 PM
Hi Ajay,
I got the solution.thanks a lot.
best regards,
Priya