Skip to Content

How to call ECATT script(s) into ABAP program?

Hi Experts,

I have a requirement where i need to create Company code. For that i need to call multiple ECATT scripts for the following requirement:

Define Company Code.

Assign Company Code to Company.

Assign Company Code to Chart of Accounts.

Assign Company Code to Fiscal Year Variant.

Assign Company Code to Field Status Variant.

Enter Global Parameters.

Can Any one help me with step by step procedure how to call the ECATT scripts in ABAP program.

Thanks in Advance,

kasi.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 03, 2014 at 05:51 AM

    Any Help...?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2014 at 06:04 AM

    I don't think it could be possible ,

    You can include ABAP Codes in eCATT scripts

    but vice versa , I don't think its possible.

    Look for other alternatives like using a BAPI within your ABAP code.

    I guess BAPIs would be available for all of these Functions.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 03, 2014 at 09:45 AM

    Hi All,

    The relavent scripts for below tasks are available at ecatt

    (Define Company Code.

    Assign Company Code to Company.

    Assign Company Code to Chart of Accounts.

    Assign Company Code to Fiscal Year Variant.

    Assign Company Code to Field Status Variant.) how to call them into a ABAP program and by uploading one template i need to finish all the tasks.

    Please help me if any one have solution to this task.

    Regards,

    kasi.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Kasi,

      I'm sorry, I didn't read the thread carefully. Obviously, you have used the FM already.

      To answer your question regarding executing those scripts at a time, you can pass all the scripts as TO_EXECUTE parameter because the parameter is a table type parameter.

      If you have tried it and it does not work, is there any error you got or if the result is not as expected, what's the actual result and expected result?

      What is the requirement to execute all the scripts at the same time? I think executing one test script using ECATT_EXECUTE FM at a time in correct order will achieve the same result as if you execute all the scripts at the same time. Please let me know if my understanding is incorrect.

      Moreover, I am not quite sure when you mentioned template file. Is that an external variant that you want to use in test data container or test configuration?

      Regards,

      Stevanic

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.