Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ldb report

Former Member
0 Kudos
160

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
126

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

5 REPLIES 5

Former Member
0 Kudos
127

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

0 Kudos
126

the one which is importing is only ldb report

the other one is simple report

thanks for ur response

0 Kudos
126

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

0 Kudos
126

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

0 Kudos
126

thanks bal,

i m requirement fisrt report is not ldb, it need not be selection screen variable

why again we r using submit again