‎2010 Jan 14 4:36 PM
Hi folks :
I have read several blogs and wiki and able to get to my final goal of calling the function Module. Thanks for helping me jump started.
However - now that I have created my Test data set - using the Variant dowload and then updating the .txt file ( using excel )
My FM is called for every record.
I want collect the data in a Table and supply it to the FM. But it appears that my script has no memory of the previous record collected.
For example - in my test data below
[VARIANT] [DESCRIPTION] BID_INVITATION VENDOR PREFERENCE_NUM SCALE_ID SCALE_FROM SCALE_RATE SCALE_CURR
* Bid Invitation Number Vendor Number Preference Number Scale Sequence # Scale From Scale rate Scale Currency
*ECATTDEFAULT
1 2000003281 1001006 3000004341 1 1 100 USD
1 2000003281 1001006 3000004341 2 10 110 USD
1 2000003281 1001006 3000004341 3 20 125 USDI want to be able to collect all the 3 entries and send it to my FM.
if I set the first column ( [VARIANT] to unique numbers - then they are treated as 3 different runs.
if I set the first column to be the same - then it is not reading the next 2 lines..
So maybe I am not understanding - how eCATT is reading this data.
Can someone enlighten me please ?
Your help is truly apppreciated..in advance.
Thanks
‎2010 Jan 14 6:14 PM
Hi Naresh,
each variant is one test execution. Between test executions is no data sharing possible, so you can not access line 1,2,3 together in one execution with your approach.
What you can do is to define a table structed parameter with the columns you need. With this you will be able to fill in several lines into the table in ONE internal variant of a test configuration.
So variant lines 1 to 3 becomes 3 lines of one table parameter in one variant line of your configuration.
Last issue is how to define a table structed parameter in a test script for usage in a config? Give in column "Parameter Reference" for an import parameter a table type or use dictionary structure with "[]" at the end.
Hope that explanation helps.
Best regards,
Christoph
‎2010 Jan 14 6:14 PM
Hi Naresh,
each variant is one test execution. Between test executions is no data sharing possible, so you can not access line 1,2,3 together in one execution with your approach.
What you can do is to define a table structed parameter with the columns you need. With this you will be able to fill in several lines into the table in ONE internal variant of a test configuration.
So variant lines 1 to 3 becomes 3 lines of one table parameter in one variant line of your configuration.
Last issue is how to define a table structed parameter in a test script for usage in a config? Give in column "Parameter Reference" for an import parameter a table type or use dictionary structure with "[]" at the end.
Hope that explanation helps.
Best regards,
Christoph
‎2010 Jan 18 7:02 PM
Christoph,
Thanks for the response. I now understand it - Especially - the part - "Between test executions is no data sharing possible." I suspected this but I wasn't sure.
Having said that tried your suggestion. Unfortunatley, my data in the above structure is not being collected into the Table.
I created a structure "ZLT_ECATT_BIDRESPONSE_INPUT" and assigned [ ] at the end.
So I declared a Parameter - P_BIDS of the parameter reference above with [].
I have a line of code which says
log ( P_BIDS ).While executing the test Config - the displayed table P_BIDS is empty/Initial.
Again I feel - I am missing something very fundamental. Either with my Test Data or with concept.
Does my Test data ( my .txt file ) need to have Column names defined inside or just the parameter Name or nothing ?
‎2010 Jan 18 9:54 PM
>
> Having said that tried your suggestion. Unfortunatley, my data in the above structure is not being collected into the Table.
> I created a structure "ZLT_ECATT_BIDRESPONSE_INPUT" and assigned [ ] at the end.
> So I declared a Parameter - P_BIDS of the parameter reference above with [].
> I have a line of code which says
log ( P_BIDS ).
In the parameter list of the test script you see the line with parameter name P_BIDS and parameter reference ZLT_ECATT_BIDRESPONSE_INPUT[]. So in the column Value should be stated <Initial>. Just click double on this cell for opening a table editor on the right side of your script code. Into this you can add lines of your table type parameter with all your needed columns (inside of ZLT_ECATT_BIDRESPONSE_INPUT[]).
In test configurations it is the same way to maintain data lines.
If you want to download and upload dat variants in you test configurations, you can NOT use table type parameters. The download file of variants is only able to handle simple import parameters.
Best regards,
Christoph
‎2010 Jan 27 4:30 PM
Hello,
You can read multiple lines from the table using the select statement within ABAP ... ENDABAP.
Then you can export this table .
Thanks & Best regards,
Ajay
‎2010 Feb 01 7:04 PM
Hi Sawanth,
You can use the below code template to store your data in the table.
loop at <fs_itab> assigning <fs_wa>.
assign component 'C2' of structure <fs_wa> to <fs_field>.
V_RESSTRUC = <fs_field>.
append v_resstruc to v_restab.
ENDLOOP.