2009 Mar 26 7:22 AM
Hi
i have read the source of the report-X into a internal table of a program -Y and modified that internal table according to the requirement.
now i want to put the modified code in to the report X.
so can anyone let me know how can i do this.i have to write this code in Y so that it gets reflected in X.
thanks in advance.
Hi
i have read the source of the report-X into a internal table of a program -Y and modified that internal table according to the requirement.
now i want to put the modified code in to the report X.
so can anyone let me know how can i do this.i have to write this code in Y so that it gets reflected in X.
thanks in advance.
2009 Mar 26 7:24 AM
use the INSERT REPORT statement.
Syntax - INSERT REPORT <prog> FROM <itab>.
Considering your report name to be ZREPORT_X, then the syntax becomes
INSERT REPORT ZREPORT_X FROM <itab>.
Regards,
Anirban
2009 Mar 26 7:27 AM
REPORT ZMASTER1.
DATA CODE(72) OCCURS 10.
DATA LIN TYPE I.
READ REPORT 'ZDYN3' INTO CODE.
SUBMIT ZDYN3 AND RETURN.
DESCRIBE TABLE CODE LINES LIN.
MODIFY CODE INDEX LIN FROM
'WRITE / ''Dynamic Program Changed!''.'.
INSERT REPORT 'ZDYN3' FROM CODE.
SUBMIT ZDYN3.
You will get more examples in BC-ABA in SAP Help
Edited by: ZAFCO ABAP on Mar 26, 2009 11:28 AM
2009 Mar 26 7:27 AM
2009 Mar 26 7:31 AM
Hi,
REPORT ZTEST1.
DATA: code TYPE TABLE OF rssource-line.
* rssource-line is type of an editor line
READ REPORT 'ZTEST2' INTO code.
APPEND '<<any statement you want to add>>' TO code.
INSERT REPORT 'ZTEST3' FROM code.Hope it solves your problem.
Regards.
2009 Mar 26 8:44 AM
How did you like the answers here?
Please don't open new threads for the ever same problem, follow up on your first one.
Thomas
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |