Application Development and Automation 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: 
Read only

ldb report

Former Member
0 Likes
850

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
Read only

Former Member
0 Likes
816

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
Read only

Former Member
0 Likes
817

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

Read only

0 Likes
816

the one which is importing is only ldb report

the other one is simple report

thanks for ur response

Read only

0 Likes
816

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

Read only

0 Likes
816

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

Read only

0 Likes
816

thanks bal,

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

why again we r using submit again