Skip to Content
0
May 01, 2015 at 12:30 PM

Submit Report select options not working

156 Views

Dear Frds,

Searched lot of threads not getting idea .

I am calling the report J_1HSTCD in my custom program

For Plants is reading the first given input rest not reading.

While importing the data it's retreiving only one plant contents

Below are my conditions... Pls help me

lt_selscreen-selname = 'BM_MATNR'.

lt_selscreen-kind = 'S'.

LOOP AT s_matnr.

lt_selscreen-sign = s_matnr-sign.

lt_selscreen-option = s_matnr-option.

lt_selscreen-low = s_matnr-low.

lt_selscreen-high = s_matnr-high.

APPEND lt_selscreen.

ENDLOOP.

CLEAR lt_selscreen.

lt_selscreen-selname = 'BM_WERKS'.

lt_selscreen-kind = 'S'.

LOOP AT s_werks.

lt_selscreen-sign = s_werks-sign.

lt_selscreen-option = 'BT'.

lt_selscreen-low = s_werks-low.

lt_selscreen-high = s_werks-high.

APPEND lt_selscreen.

ENDLOOP.

CLEAR lt_selscreen.

lt_selscreen-selname = 'BM_BUKRS'.

lt_selscreen-kind = 'S'.

LOOP AT s_bukrs.

lt_selscreen-sign = 'I'.

lt_selscreen-option = 'EQ'.

lt_selscreen-low = s_bukrs-low.

lt_selscreen-high = s_bukrs-high.

APPEND lt_selscreen.

ENDLOOP.

CLEAR lt_selscreen.

lt_selscreen-selname = 'MTART'.

lt_selscreen-kind = 'S'.

LOOP AT s_bukrs.

lt_selscreen-sign = 'I'.

lt_selscreen-option = 'EQ'.

lt_selscreen-low = s_mtart-low.

lt_selscreen-high = s_mtart-high.

APPEND lt_selscreen.

ENDLOOP.

CLEAR lt_selscreen.

lt_selscreen-selname = 'DATUM'.

lt_selscreen-kind = 'S'.

lt_selscreen-sign = 'I'.

lt_selscreen-option = 'BT'.

lt_selscreen-low = s_datum-low.

lt_selscreen-high = s_datum-high.

APPEND lt_selscreen.

CLEAR lt_selscreen.

lt_selscreen-selname = 'BWBST'.

lt_selscreen-kind = 'P'.

lt_selscreen-option = 'EQ'.

lt_selscreen-low = ''.

APPEND lt_selscreen.

CLEAR lt_selscreen.

lt_selscreen-selname = 'S_RPT2'.

lt_selscreen-kind = 'P'.

lt_selscreen-option = 'EQ'.

lt_selscreen-low = 'X'.

APPEND lt_selscreen.

CLEAR lt_selscreen.

cl_salv_bs_runtime_info=>set(

EXPORTING display = abap_false

metadata = abap_false

data = abap_true ).

* * Submit Wage Type Reporter

SUBMIT j_1hstcd

WITH SELECTION-TABLE lt_selscreen

AND RETURN.

Attachments

Stc.jpg (38.8 kB)