Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

Problem in using memory id to call a report from another report.

$
0
0

Dear All,

I need to call a report from the output of an alv report, in which the value from the caller program should pass to the selection screen of called program. I am using OOP alv and passing the required data to memory id. But the 2nd report not getting the values. It shows an error message which says to fill all required entry fields. Upon debugging I'hv found that export memory id is not getting values. Please help.

Here is my piece of code.

 

1st Program:

 

FORM mouse_click USING e_row TYPE lvc_s_row e_column_id TYPE  lvc_s_col.
     DATA : p_date TYPE sy-datum,
                p_pernr TYPE pernr.
     READ TABLE gt_data INTO wa_data INDEX e_row-INDEX.

     p_date = wa_data-ondate.
     p_pernr = wa_data-pernr.

     EXPORT p_date p_pernr TO MEMORY ID 'TEST'.

      SUBMIT ZHR_OVERTIME_APPROVAL AND RETURN.

     ENDFORM.


2nd Program :


DATA : l_date TYPE sy-datum,
        l_pernr TYPE pernr.

IMPORT p_date TO l_date p_pernr TO l_pernr FROM MEMORY ID 'TEST'.
WRITE : / l_date,
         l_pernr.


In the 2nd program I am passing data before start-of-selection.


Viewing all articles
Browse latest Browse all 3523

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>