‎2009 Dec 13 11:34 AM
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
‎2009 Dec 13 2:01 PM
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
‎2009 Dec 13 12:02 PM
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
‎2009 Dec 13 12:08 PM
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
‎2009 Dec 13 2:01 PM
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
‎2009 Dec 16 2:35 PM
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