cancel
Showing results for 
Search instead for 
Did you mean: 

CBTA - mapping parameters to a TDC structure

0 Kudos
1,020

How do you make use of a structure defined in your TDC within a CBTA script?

I follow the instructions in the Test Suite - How-to Guide 2018, section 3.2.3.1 How to define a TDC. Example 2 on page 30 details creating a TDC with a data structure. The example involves running transaction VA01 and wanting to fill in the material and quantity on multiple rows of the table. All of this works a documented.

The problem is when I add the TDC to my test configuration and run the Test Data Assignment Wizard. The last screen allows you to map CBTA parameters to TDC fields. When I try to map a parameter for one cell on the VA01 screen to the TDC structure I get an error.

Any ideas or suggestions? I assume this can be done since SAP documented adding a structure to a TDC for CBTA. But they don't, as far as I can find, documented how to use this in CBTA.

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

Hi Rick,

Did you find any solution to your question? Even I am facing the same issue. If you find any, please comment here

Regards

Janakiram

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Rick,

Currently as I understand there is no option to handle structured parameter within CBTA.

0 Kudos

Aj,

Thanks for responding. The error I get mapping in the Test Data Assignment Wizard is "Structured TDC parameter I_STRUCTURE doesn't fit to unstructured TC parameter TABLECELL_MATERIAL_0. Message No. ECATT_TDW057"

I am doing exactly what you said could not be done... mapping a unstructured CBTA parameter to the TDC structure.

All I am doing is following the example in the Test Suite - How-to Guide 2018. Section 3 is specifically about automated tests. Section 3.2.3.1 is about defining a TDC. Example one is the easy example of mapping CBTA parameters to single fields defined in the TDC. Example 2 is "Define a complex TDC with data for multiple line items in VA01 “Create Sales Order”. I am simply trying to replicate the example SAP started here. I want to create one variant that will fill in multiple entries in a table such as VA01 with multiple material and quantity entries. If you can use a structure in TDC then why did SAP document exactly that?

So if you can't map an unstructured CBTA parameter to a structured TDC parameter then how do you create a structured parameter in CBTA?

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

Can you please specify the error you are experiencing. Do you mean assigning the structure parameter of TDC to the non structure parameter of CBTA ? If that's the case then you cannot map structure parameter.

If its mapping mapping of parameters of TDC to CBTA then you have many options like mapping manually one to one or based on data type etc. This should be quite simple process.

Thanks,

Aj