Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error on Sapgui recording

Former Member
0 Likes
506

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
477

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

2 REPLIES 2
Read only

Former Member
0 Likes
478

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

Read only

0 Likes
477

Hi Ajay,

I got the solution.thanks a lot.

best regards,

Priya