cancel
Showing results for 
Search instead for 
Did you mean: 

Secatt doubt

Former Member
0 Kudos

i'm trying to load some data using SECATT for transaction FB01.

i make it work but it ended creating one document for each data i was entering. what i didnt find is how to enter all the data and generate only one document

Does any one know?

Thanks !!!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Enrique,

SECATT primarily used for functional testing purpose. For data upload you can go for SCAT transaction or LSMW or any BAPI, custom programs etc.

But if you want to do in eCATT, then there is no harm doing. You can give complete set of data in the variants of test data container against your recorded test script. Link the two in the test configuration & exeucte for all the variants at once.

Here generation of document depends on transaction behavior. Meaning if with the given set of data R/3 generates multiple documents then your recorded script will also do the same. And if the R/3 generates only one doucment then your recorded script will also geneate one document.

SECATT doesn't change the functionality & behvior of any transaction. So you can think of your resultset as you get in R/3.

If this answers your query.

PS If the answer solves your query, plz do reward points to everyone responding.

Regards

Former Member
0 Kudos

Hello SAP Developer,

I am facing a similar scenario.

I have recorded MB1c transaction for initial stock upload.

It is working fine. For each variant, it is posting one document ie, one material per document.

I want to make it more generic and leave the choice to user to enter as many material in a document. How should i achieve this.?

Thanks in advance.

Regards,

Giridhar

Former Member
0 Kudos

Hello Giridhar,

The screen where these 10 values are supposed to be given, use any of the loop statements from the Pattern dropdown. Create local variables for these values & assign them to the actual parameter of variants. Finally use these variables in the loop statement.

With this, you will be able to give multiple values with single document posted.

Hope this helps.

PS If the answer helps you, plz reward points to everyone responding.

Regards

Former Member
0 Kudos

Hello Sapna,

Thank you for the reply.

Could you please give one example on this, it will be very helpful.

You could mail me the code if possible to my mail id: giridhargopal.h@gmail.com

Regards,

Giridhar

former_member585451
Active Participant
0 Kudos

HI Giridhar,

There are actually 2 ways you can do the same. First being the way Sapna has mentioned and second the way is to create a structure parameter. When you use the way Sapna has mentioned you endup creating many local parameters which you might not use in all the cases.

Procedure of creating the ST. Parameter.

In the Paramenter reference enter the table value of the fields in MB1C.(To get this Press F1 and then go to technical help, you can find the table/structure/view name here against table field) followed with open and close brackets [].

Then, use the eCATT command to get the length(GETLENGTH) of the parameter and use a loop with the loop counter(&LPC) assigned to the line items of the recording.

Hope this helps.

Former Member
0 Kudos

Hi Sapna,

do u have any knowledge regarding use of SCAT for line item.....uploading??

If so, pls do reply ...im in urgent need to that..as i have no knowledge in this area.

thanks

abdul_hakim
Active Contributor
0 Kudos

hi

thru secatt you can't transfer data for multiple trasaction as it is mainly used for initial test data transfers ie,Only one transaction...

Cheers,

Abdul Hakim

Mark all useful answers..