‎2008 Nov 20 5:58 AM
Hi,
I am new to eCATT. I work on SAP R/3 v 4.7.
i am creating eCATT for customer master. want to maintain "customer" as my export parameter. i am working in TCD mode.
can you please suggest what needs to be done?
thanks & regards
sonalika
‎2008 Nov 20 6:23 AM
Hello Sonalika
I assume that as soon as you have saved the new customer master data the transaction will send a success message (in the status bar) containing the new customer number. Here you can extract the customer number.
Below is an example for transaction SU01 showing how it works:
MESSAGE ( MSG_1 ).
TCD ( SU01 , SU01_1 ).
ENDMESSAGE ( E_MSG_1 ).
* &TFILL contains total number of collected messages
* => last message (i.e. index = &TFILL) contains success message
LOG ( &TFILL ).
" ED_UNAME: defined as EXPORTING parameter of script
ed_uname = E_MSG_1[&TFILL]-MSGV1.
Note: I did not define any conditions in the MESSAGE interface but just used it to collect all messages sent within the transaction.
Regards
Uwe
‎2008 Nov 20 7:14 AM
Hi,
Thanks. I am using only -
MESSAGE ( MSG_1 ).
TCD ( XD01 , XD01_3 ).
ENDMESSAGE ( E_MSG_1 ).
Will it be sufficient to export "customer number" as a parameter?
thanks & regards
sonalika
‎2008 Nov 20 5:52 PM
Hi Sonalika,
Whether it is sufficient to just have one export parameter of your customer number depends on your own requirement, ie, what you are going to do when reusing the same eCATT for XD01.
Kind Regards, Qian
‎2008 Nov 20 6:25 PM
Hello,
In this case 2 messages can be captured in the End Message block , one is "Customer XYZ is created" or "Customer XYZ already exists".
Since Customer number is what you need then you have to expect mode E two messages in the in Message block and then parametrize the field MSGV1 or MSGV2 based on in which variable the Customer XYZ appears with your Export parameter.
This Export parameter can be used outside the script.
Hope this answers your question.
Thanks and Best regards,
Ajay