2007 Dec 10 4:26 AM
Hi,
I'm developing a CATT test case for data upload and i want to capture the batch number which determine by the system. I have tried the M01-M04 system variable and nothing success. What is the correct way to capture those screen value??
Regards,
Kit
Hi,
I'm developing a CATT test case for data upload and i want to capture the batch number which determine by the system. I have tried the M01-M04 system variable and nothing success. What is the correct way to capture those screen value??
Regards,
Kit
2007 Dec 10 4:45 AM
Hello Kit
If the transaction displays the batch number as part of the message shown in the status bar then you should be able to catch it.
I would recommend two things:
(1) Use <b>eCATT </b>instead of CATT (requires SAP system >= 6.20)
(2) Having eCATT available use the <b>MESSAGE...ENDMASSAGE</b> pattern.
Example:
MESSAGE ( MSG_1 ).
TCD(VA01, VA01_1).
ENDMESSAGE ( E_MSG_1 ).Within MSG_1 you define which messages you expect and whether they are required or not. E_MSG_1 contains the collected messages which you can evaluate.
Regards,
Uwe
2007 Dec 10 6:01 AM
Thanks for your reply. I'm using 4.6c and only see the batch number is appear in the text field. So, there is no message prompted.
2007 Dec 10 6:05 AM
Hello Kit
Do you have any SAP system (>= 6.20 basis release) available in your system landscape?
If so then all you need to use eCATT is a RFC destination from this system to your 4.6c system where you do the scripting.
Please note that transaction SECATT enables you to migrate old CATTs to eCATTs.
However, if you have no chance to switch to eCATT I would recommend to look for a <b>function module</b> (or <b>BAPI</b>) which reads the newly created business object/document and which returns you the required batch number.
Regards,
Uwe
2007 Dec 10 7:35 AM
Thx for your suggestion.
I have tried to call the BAPI_GOODSMVT_GETDETAIL in my test case with parameter defined. But, it always return:
The call to the function module "BAPI_GOODSMVT_GETDETAIL" is incorrect:
The function module interface allows you to specify only fields
of a particular type under "MATDOCUMENTYEAR". The field "&MATDOCUMENTYEAR"
specified here
has a different field type.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |