Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Generate Sapscript Programmatically

Former Member
0 Likes
743

Hi, gurus,

Is there a way for abaper to import/export sapscript form through abap coding? As for abap programs this can be done with 'read/insert report....' and likewise dialog module with the 'export/import dynpro ...' statements. So perhaps sapscript can also be generated similarly like the first two.

Your help is greatly appreciated

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
707

Hi afro100,

simple: This is report RSTXSCRP. If you do not want to use the report, look what they did in the report.

anything else is not what you want.

Regards,

Clemens

4 REPLIES 4
Read only

Former Member
0 Likes
707

Hello,

This can be done, however this is not easy because SAPscript consists of multiple objects that are linked to each other (windows, paragraphs, ...).

To start take a look via SE80 to the function group STXS.

Function group STXS contains a set of function modules to create, edit, delete, activate, ... different objects in a SAPscript.

Furhermore you have all function modules (SE37) that start with SAPSCRIPT*

Of course it will not be easy to combine all these functions in order to create dynamically a working SAPscript.

Success and let us know the result.

Wim

Read only

Former Member
0 Likes
707

Hi ,

This is not possible. You have to design the layout & write a driver program to generate it. There is no way you can generate a sap script programmatically.

Regards

Abhii

Read only

Clemenss
Active Contributor
0 Likes
708

Hi afro100,

simple: This is report RSTXSCRP. If you do not want to use the report, look what they did in the report.

anything else is not what you want.

Regards,

Clemens

Read only

Former Member
0 Likes
707

Thx for the replies guys, I will definitely take a look at RSTXSCRP. Maybe i can find out how the report imports/exports and generates 'FORM' object and hopefully it will point to the right direction.

-Off topic.

I generated a report program, via 'insert report..' and I added its own entry to TADIR manually (TRDIR was automatically generated). I checked everything in the program attributes and it contains all the correct info (author,date created,dev class etc..) however when I used se80 to list down the programs under my name, the program I created with 'insert report' did not appear in the list, it can only be accessed and viewed in se38.

Any idea?

Edited by: afro100 on Dec 17, 2009 1:17 PM