on 05-26-2011 12:16 PM
Hi All,
Actually I want to call a report program which is created by using SE38 from my WDA application. Bcoz I have established a relation between 11 tables inside the report program using SE38 and I want to use that relation between the tables inside my WDA. Both WDA application and report program are inside same package.
Can anyone suggest me how to do that...??
Thanks in advance.
Sekhar
thanks..all for your reply
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
sorry for replying late. Actually I want to update data in a table through assistance class. So i made a button with name "Update" when user'll click the button the method inside assistance class is called along with some importing parameters from the event method. But the problem is that inside method we can't use TABLES statement . so how can I update the table inside method without using table statement because without tables statement it shows error as the field is unknown.
please help in this regard.
Thanks,
sekhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi lukas,
sorry for that cross post. actually i created a relationship among 11 tables in one report program . through WDA I want to pass some parameters to the assistance class and inside assistance method (method inside the assistance class) I tried to update the tables by calling the report program using SUBMIT keyword.
I found the data is passed corectly and inside report program also the value is changed but when coming to update the table it shows runtime error.. I think my scenario is clear to you now.
hope you can understand my point. And the method you suggest, I can't understand that . so if possible can you plz elaborate the method..
Thanks in advance.
sekhar
If you need interaction and data transfer between the program and the WDA, you should consider rewritting the program as a class. This is a much better approach. You can call a program using submit report, but the ability to pass data back and forth is very limited.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello Thomas,
Thanks for your prompt reply. Actually inside the report program I created the relationship among the 11 tables and insert the values into some database tables. But inside the WDA application I have to use that database table only. so whether its a better option to use SUBMIT REPORT..? Please suggest in this regard..
Thanks,
Sekhar
I would still suggest a class instead of a report for reusability and general architecutre; however, if you already have it developed and data interaction isn't an issue you can technically do this via the SUBMIT. I would still recommend at least to place the SUBMIT call to the report within a method of the assistance class of the WDA and not directly in a controller method.
Hi Sekhar,
there is another way, using the ABAP-Memory ( Thomas might scold me for mentioning this 😜 ).
You can export your data from the executed report into the ABAP memory with a certain ID. Then you define the same structure which has been written to memory in your WD4A-Framework and issue the IMPORT FROM MEMORY command, calling the ID you gave it earlier.
This is kind of the "last resort" you have when you have to pass data between Applications with no point of intersection. Last resort because it's redundant and you should keep your hand off the memory if possible; also it's heresy considering the WD4A-Framework concept 😛
Use Thomas' suggestion considering Classes / Assistance Classes if you can.
regards, Lukas
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.