2007 Aug 29 7:22 PM
does IMPORT and EXPORT work for ldb report
i need to import pernr and endda from another report to ldb report
i m nt getting can any one give solution
its urgent
2007 Aug 29 7:28 PM
Instead of using import export.. i would go this way..
when you submit the Report..
AT SELECTION-SCREEN.
* perform user-commands on screen
CASE sy-ucomm.
* Submit Report to check ADP Number.
WHEN 'YOUR_OK_CODE'. "Submit Report
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = 'Z_CURRENT_REPORT'
TABLES
selection_table = seltab.
SUBMIT zReport_Nane AND RETURN WITH SELECTION-TABLE seltab.
ENDCASE.
this statement will automatically transfer the paramaters from one screen the other is the LDB is same in both the Reports.
Cheers
Amandeep
2007 Aug 29 7:28 PM
Instead of using import export.. i would go this way..
when you submit the Report..
AT SELECTION-SCREEN.
* perform user-commands on screen
CASE sy-ucomm.
* Submit Report to check ADP Number.
WHEN 'YOUR_OK_CODE'. "Submit Report
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = 'Z_CURRENT_REPORT'
TABLES
selection_table = seltab.
SUBMIT zReport_Nane AND RETURN WITH SELECTION-TABLE seltab.
ENDCASE.
this statement will automatically transfer the paramaters from one screen the other is the LDB is same in both the Reports.
Cheers
Amandeep
2007 Aug 29 7:32 PM
the one which is importing is only ldb report
the other one is simple report
thanks for ur response
2007 Aug 29 7:45 PM
Try this,,
<u><b>EXPORT PROGRAM</b></u>
REPORT zexp.
DATA: seltab LIKE rsparams OCCURS 2.
PARAMETERS: pernr TYPE persno DEFAULT '00000011'.
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = 'ZEXP'
TABLES
selection_table = seltab.
EXPORT seltab to MEMORY ID 'tab'.
SUBMIT zimp AND RETURN WITH SELECTION-TABLE seltab.
<u><b>IMPORT PROGRAM</b></u>
REPORT zimp.
TABLES: pernr.
NODES: peras.
DATA: seltab LIKE rsparams OCCURS 2.
INITIALIZATION.
BREAK-POINT.
IMPORT seltab FROM MEMORY ID 'tab'.
BREAK-POINT.
START-OF-SELECTION.
GET peras.
END-OF-SELECTION.
Import program uses LDB PNPCE.
hope this helps.
cheers
Amandeep
2007 Aug 29 7:56 PM
If your problem is not solved let me know..
<i><b>If solved pls close the thread and do reward points :)</b></i>
thanks
A
2007 Aug 29 9:46 PM
thanks bal,
i m requirement fisrt report is not ldb, it need not be selection screen variable
why again we r using submit again