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 in ECATT EndMessage Command Interface - Urgent

Talha
Explorer
0 Likes
10,983

Good day,

I have made a test script for SRM WebDynpro Shopping Cart. Following is the command interface of the test script and it was running fine till the inclusion of MESSAGE/ENDMESSAGE command interface.

 

WEBDYNPRO ( WDA_L_FPM_OIF_1 ).

WEBDYNPRO ( WDA_L_FPM_OIF_2 ).

WEBDYNPRO ( WDA_L_FPM_OIF_3 ).

WEBDYNPRO ( WDA_L_FPM_OIF_4 ).

WEBDYNPRO ( WDA_L_FPM_OIF_5 ).

WEBDYNPRO ( WDA_L_FPM_OIF_6 ).

But, my requirement is to display the created shopping cart number in the export parameter of the log. So I inserted the MESSAGE/ENDMESSAGE
command using Pattern and tried to read the message variable containing shopping card number of the relevant success message.

WEBDYNPRO ( WDA_L_FPM_OIF_1 ).

WEBDYNPRO ( WDA_L_FPM_OIF_2 ).

WEBDYNPRO ( WDA_L_FPM_OIF_3 ).

WEBDYNPRO ( WDA_L_FPM_OIF_4 ).

WEBDYNPRO ( WDA_L_FPM_OIF_5 ).

MESSAGE ( MSG_1 ).
   WEBDYNPRO ( WDA_L_FPM_OIF_6 ).

ENDMESSAGE ( E_MSG_1 ).

I have tested both the techniques of reading the message i.e. by double clicking ‘MSG_1’ and defining rule mentioning the relevant message
and by using DO/ENDDO loop to read the message variable of relevant message into my export parameter.

Still with the inclusion of MESSAGE/ENDMESSAGE command shopping cart number is generated but in both the techniques an error is being thrown at the ENDMESSAGE command mentioning “Error in eCATT command ENDMESSAGE” "Parameter Described By Is Not a Table".  Both MSG_1 and E_MSG_1 is already automatically been created with table type. 

Please can someone please advice what can be done to resolve this error.

Snapshot of the error is attached here.

Regards,

Talha

1 ACCEPTED SOLUTION
Read only

Talha
Explorer
0 Likes
10,175

Dear Ajay,

My requirement is to display shopping cart number along with the complete success message to the user as in other case user has to drill all the nodes down to see the success/error message in return to successful/erroneous execution of test script.

As per you suggestion I have just performed Standard and Extended Check and found no syntax errors in the script. I will appreciate if you please activate 'Receive email notifications' option on my profile so that I could send you the script or else could share your email id for the same reason.

Also, taking the alternative approach suggested by you and will let you know its result, but still I also require to capture the whole message to display the result of the script to user so that he/she needs not to drill all the nodes down to see the message and it can only be possible after successful execution of MESSAGE/ENDMESSAGE command.

 

Thanks and Regards,

Talha

25 REPLIES 25
Read only

Former Member
0 Likes
10,175

Talha,

I don't have an answer to your query but something I noticed in your log screenshot was this:

MESSAGE MSG_1[11,376]

Normally, I have only seen a single digit following the MSG_1 command (ex: MSG[0.310] etc.) in my eCATT logs. See screen cap.

You mention: Both MSG_1 and E_MSG_1 is already automatically been created with table type. I am not sure how you create these with "table type", but maybe that is where you issue lies?

Good luck!

Archana

Read only

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Likes
10,175

Hello,

You dont need to create any table type parameter, include the entire recording within Message and Endmessage block. You can create this Message... Endmessage block using Pattern button instead of typing to avoid any mistakes manually.

Now execute the script, all the message that appears during the execution should be captured in the log under Endmessage block.

If you dont see the message check manaually if the message is appearing if you follow the same steps what your script does.

Hope it helps.

-Aj

Read only

Talha
Explorer
0 Likes
10,175

Dear Archana and Ajay, Thank you for your replies.

@Archana
The first digit in MESSAGE MSG[11,376] shows the line number of the MESSAGE command in command interface editor, I did not try to find the significance of the second digit, but I think problem does not lie here. When we insert the MESSAGE/ENDMESSAGE commands through pattern button and then save the script it automatically generates the respective variables used in MESSAGE/ENDMESSAGE commands with table type. In my case these variables are MSG_1 and E_MSG_1. I am also attaching the snapshot for your reference. As these MSG_1 and E_MSG_1 are automatically created with appropriate type so I did not define it myself then. If you think there is any other way around to do this then please let me know to overcome the problem.

@Ajay
I have created the MESSAGE/ENDMESSAGE command using the Pattern button and also the needed variables for these commands are automatically created and appropriately typed automatically. Also, I initially enclosed all the six WEBDYNPRO commands in the MESSAGE/ENDMESSAGE, but it yielded the same error, so then I just surrounded the last WEBDYNPRO command as shopping cart success message is generated in this WebDynpro screen, therefore the last WEBDYPRO is of interest to me. Also, the success message is successfully generating in the MESSAGE command as can be seen in the log but then the error raises when it reaches the ENDMESSAGE command. Also, attaching the snapshot for your reference.



Regards,
Talha

Read only

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Likes
10,175

What is the error message ?

Are you getting the success message when you do it manually ?

Trying removing Message endmessage block and see if the message is captured in execution. If you are able to get the message check in which webdynpro recording message is appearing ?

Thanks,

Aj

Read only

Talha
Explorer
0 Likes
10,175

Error message being raised is:

Error in eCATT command ENDMESSAGE

Message no. ECATT507

Yes when I am doing it either manually or by removing the MESSAGE/ENDMESSAGE command from script it is running fine and generating success message. Indeed it is generating the success message with the MESSEAGE/ENDMESSAGE command. It successfully executes

 

MESSAGE ( MSG_1 ).
     WEBDYNPRO ( WDA_L_FPM_OIF_6 ).

and generates the success message and shows the created shopping cart number. But when it reaches command

ENDMESSAGE ( E_MSG_1 ).

it then raises the error message:

Error in eCATT command ENDMESSAGE

Message no. ECATT507

It apparently seems it is unable to collect the generated message in the ENDMESSAGE command as it is raising error here. And in generated log below the Error Node of ENDMESSAGE it is also mentioning “Parameter Described By   Is Not a Table” as can been seen in my very first snapshot attached.

@Archana

I re-correct my last reply to u about the numbers in MESSAGE MSG_1[11,376]. It does not seem to be the line number of MESSAGE command as I have observed it is continuously changing and it seems it is the time taken in milliseconds by script to be executed. Anyway, it is confirm it is nothing to do with the error so should not be my point of focus.

Regards,

Talha

Read only

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Likes
10,175

Everything seems to be just right.

Can you check below screens and check your scripts.

  

Let me know the outcome.

Thanks,

Aj

Read only

Talha
Explorer
0 Likes
10,175

Please find the attached snapshots of the test script and also the log generated after running the script. Log is generating the same message as what is expected by test script. Also there are no entries for E_MSG_1.

Also, I am making the test script of ECATT on a client of a separate system with SAP BASIS 731 installed on it which is testing the SRM system remotely which has the SAP BASIS component 702 installed on it.

Thanks & Regards,

Talha

Read only

Former Member
0 Likes
10,175

Is there a problem then with the way you've defined the o/p parameter - the one that captures the shopping cart #?

Can you include a screen shot of that and the way you've defined the rule for the message capture (the row added under MSG_1 in command interface)?

Thanks,

Archana

Read only

Talha
Explorer
0 Likes
10,175

I have defined the export parameter for capturing the shopping cart number. First I identified the data node in the script, and then copied that node to DATACHANGES, and then by going to DATACHANGES node I then replaced the value of the shopping card number with the variable name I want to assign to my export parameter, it then showed a pop up to ask the type of that variable and I selected.

The I go to commad MESSAGE ( MSG_1 ) and the double click on variable MSG_1 then it shows me the screen to define my rule, I then define my rule to capture the value of shopping cart into my export parameter from the relevant message. The values entered to define my rule was; MODE = 'E', MSGID = '/SAPSRM/PCD_SC', MSGNR = 002 , MSGV1 = V_SCID.

Snapshots of both steps are attached here for your reference.

Note: Currently the I removed the rule from my script just to make my script simple to resolve the problem being faced when the error at ENDMESSAGE had started to come.

Regards,

Talha

Read only

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Likes
10,175

When you remove the rule from Message are you still getting the same error ?

Also the V_SCID variable you have declared for capturing output of MSGV1 should be of data reference of the output type.

Thanks,

Aj

Read only

Talha
Explorer
0 Likes
10,175

Yes it is still giving same error even when I remove the rule. The script only runs fine when I remove MESSAGE/ENDMESSAGE command, but inclusion of MESSAGE/ENDMESSAGE command is necessary to meet my objective.

Also, I have checked by running the script again after changing the type of V_SCID variable to SYMSGV(i.e. the data reference to the relevant message component MSG1 of output type MSG_1 where the shopping cart number is populated), but the same error is still coming.

Regards,

Talha

Read only

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Likes
10,175

Remove the Message ID in the MSG_1 block , Message number is sufficient and also remove the Local variable assigned and run , if it works put back the local variable.

Thanks,

Aj

Read only

Talha
Explorer
0 Likes
10,175

I run the script by setting the following rule values but the same error is coming.

Error in eCATT command ENDMESSAGE

Message no. ECATT507

Rule Values:

MODE = 'E',

MSGID = BLANK

MSGNR = 002

MSGV1 = BLANK

Regards,

Talha

Read only

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Likes
10,175

May be you have said earlier can you tell me what is the message text you are expecting as i see in your first query you are creating SRM request but at the later replies i see data changed (shopping cart data is changed).

Also you can download the script and send it to me i will try to upload into my system and check at the moment i have tried all options and not able to figure out whats the error , my feeling is the error in syntax check itself , did you do the syntax check of the code ?

Also lets use alternative to Message Endmessage , your requirement is to capture the shopping cart number created if i am not wrong.

Try using get value option from the screen:

https://help.sap.com/saphelp_nw73ehp1/helpdata/en/49/70aa7181463e90e10000000a42189c/content.htm

Thanks,

Aj

Read only

Former Member
0 Likes
10,175

Hi Talha,

Please try to refresh your script once and then try to execute.

Regards,

Latha

Read only

Talha
Explorer
0 Likes
10,175

Hi Latha,

I just refresh all the components of my script through menu Edit -> Refresh all, but still no luck.

Regards,

Talha

Read only

Former Member
0 Likes
10,175

Hi Talha,

You can refer the below thread for more info on handling MESSAGE END_MESSAGE command.

Hope this might give you some information

http://scn.sap.com/thread/1275855

Regards,

Latha

Read only

Talha
Explorer
0 Likes
10,176

Dear Ajay,

My requirement is to display shopping cart number along with the complete success message to the user as in other case user has to drill all the nodes down to see the success/error message in return to successful/erroneous execution of test script.

As per you suggestion I have just performed Standard and Extended Check and found no syntax errors in the script. I will appreciate if you please activate 'Receive email notifications' option on my profile so that I could send you the script or else could share your email id for the same reason.

Also, taking the alternative approach suggested by you and will let you know its result, but still I also require to capture the whole message to display the result of the script to user so that he/she needs not to drill all the nodes down to see the message and it can only be possible after successful execution of MESSAGE/ENDMESSAGE command.

 

Thanks and Regards,

Talha

Read only

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Likes
10,175

I have activated recieve email Notification.

Between your issue is taking time of mine tooo just cant figure out where the issue is ... i am sure it would be the sillest of the lot... experience
Can you specify the complete text of the Message you are expecting...

On a lighter note Looks like you have recorded GHOST you can try rerecording the entire script in a Brand new script sometime it just works...

Thanks,

Aj

Read only

0 Likes
10,175

Dear Ajay,

GETS_AND CHECK as well as DATACHANGES techniques to capture the dynamic output data yielded by running the test script are not workable here, as these techniques only captures recording data which are bound with the Context of WebDynpro application and messages raised by WebDynpro application are not bound with the context of application. So in my case neither I can capture the shopping cart number alone nor the complete success message of shopping cart creation with these techniques.

Also, I made a new custom WebDynpro application and made its test script just to check it might be the problem with message area of the standard SAP application but error is still standing with ENDMESSAGE command of custom WebDynpro application test script.

I also like to thank you for your continuous support and interest in resolving my issue. Also, I raised the OSS on this issue yesterday but still no response from the SAP yet

Regards,
Talha

Read only

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Likes
10,175

I have not recieved any email yet.

As an alternative provide your email id i will drop a test mail and you can forward the script.

Thanks,

Aj

Read only

0 Likes
10,175

I am unable to send you the script through 'Direct Message' link due to the following error although you have activate the Receive email notification for me:

"You can only send Direct Messages to your Friends / Connections (people following you). You must remove users marked with an exclamation point before your message can be sent."

Also, there is the option of sending the image files only and also the size of my test script file is over 1MB.

My email id is md_talha786@hotmail.com

Regards,

Talha

Read only

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Likes
10,175

I had a look into the script, at the first level looking at the script i dont find anything wrong , everything seems just right. Are you sure about the Message number as 002, can you check it manually ? Obviously for better analysis i need to run the script which is not possible without accessing your system .

At moment i can think of below workarounds :

- Are you experiencing similar error with Endmessage with other scripts recorded for other functionalities ?

- Can you try rerecording the entire script again in a fresh script, logout - login and create fresh script

- Instead of checking the message using Message Endmessage, you can just create script without this check but do a table level check for shopping cart creating using your name /created time/ description some unique value which will help retrieve your shopping cart number either by using Select statement or Gettab either in the same script or other script and call both the script in a fresh script.

- Or if your script is part of the larger process script then you can create script without message check, retrieve the shopping cart number from table or you can record another script to start the change shopping cart functionality and search for your shopping cart and do additional steps

- You can also wait for the SAP support to provide assistance

Hopefully you will be able to get some success with above approach.

Thanks,

Aj

Read only

0 Likes
10,175

Dear Ajay,

I have received the reply from SAP against the OSS I raised.

Following is the SAP's reply:

please use the following workaround:

- Start transaction SECATT_UTIL

- Press button 'eCATT Settings'

- Confirm the warnings message 'Caution: The table is cross-client'

- Press button 'New Entries'

- Choose this value within field Area 'Improved XML Processing (2010)'

- Save

- Restart transaction SECATT

after you have applied support package 8 for SAP-BASIS release 731

you can deimplement the workaround described

The workaround has worked for us and things are working fine now.

Thank you for your continuous and extraordinary efforts to resolve my issue.

Regards,

Talha

Read only

Talha
Explorer
0 Likes
10,175

Dear Latha,

Before posting my issue on the forum I checked many relevant threads on the forum to get my problem resolved but found no success, and it seems that I am the first person facing this issue. Following is the list of relevant threads I have gone through and it includes the one you have shared

http://scn.sap.com/thread/1583709

http://scn.sap.com/message/864730#864730

http://scn.sap.com/thread/1135146

http://scn.sap.com/thread/100217

http://scn.sap.com/thread/111915

http://scn.sap.com/thread/80186

http://scn.sap.com/thread/193908

http://scn.sap.com/thread/405106

http://scn.sap.com/thread/231955

But thanks again for the suggestion you have provided.

Regards,

Talha