The scenario:
You have a report, and call a dialog screen where you modify data in the reports underlying table. After modifying the data you want to return to the report screen, and have it refreshed so that i displays the changes in the underlying table.
report zrev03 no standard page heading.
start-of-selection.
* Initial display of report
perform write_report.
* You have to display your own report headings that called from both the main report and the
* sub report ( The second display )
top-of-page.
perform page_header.
top-of-page during line-selection.
perform page_header.
case sy-ucomm.
when 'CHG'.
* Call dialog screen where data chenages are input. The code could be something like:
set parameter id 'ZR1' field itab-zzrevomr.
call transaction 'ZRE3'.
* After you return from the dialog screen you want to remove the old report so you
* don't redisplay it when you use the back button
sy-lsind = 0.
* Write the report again with new data
perform write_report.
form write_report.
*Here goes code that retrieves data for the report and write it, it could be something like:
select * from zrevomr into table itab.
loop at itab.
write: / itab-zzrevomr, itab-zzrevomrtx.
endloop.
endform.
form page_header.
* .... Code for page header
endform.
ABAP,ABAP report,Interactive Report,ALV grid,ALV list,IDOC,User Exit,RFC,Smartform,sapscript,ABAP Performance,Remote Function Module( RFC ),Function Module,Modularization techniques,ABAP tools,ALV report Generator,ABAP Interview Questions,BDC,BAPI,ALE,BADI, EDI,InternalTable,DataStructure,LSMW,Domain,DataElement,Basis and Administration ,ABAP HR development,ABAP Debugger,BW,ExceptionHandling,Download FI, CO, MM, PP, SD, PM, PS, QM, SM, HR, BW, APO,ABAP Tutorial
Search on this Website
Friday, December 7, 2007
Returning to report and refresh data after call to selection screen
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment