Skip to Content
0
Nov 24, 2012 at 05:45 AM

SAP editor screen is called by clicking on Back button

16 Views

Dear Friends,

I have developed a z report and which I am showing some amount via ALV grid.

now after getting the data in ALV grid when I click on back button to come on

initial screen then an editor screen is displayed and then I click on back button

then I come to an initial screen , My requirement is to remove that editor screen.

on clicking on back button I must jump to the initial screen .

Hope you got me.

I think there is some problem in these code Lines.

FORM get_shrt_qty.

it_display1[] = it_display[].

SORT it_display1 BY aubel.

LOOP AT it_display1.

ON CHANGE OF it_display1-aubel.

s_ebeln-sign = 'I'.

s_ebeln-option = 'EQ'.

s_ebeln-low = it_display1-aubel.

APPEND s_ebeln TO s_ebeln.

ENDON.

ENDLOOP.

EXPORT it_display1[] TO MEMORY ID 'ZSHORTAMTCLUSTER'.

SUBMIT zcrpt_sd_sil_023_n

* with s_aedat ...

WITH s_budat BETWEEN s_fkdat-low AND sy-datum

WITH s_ebeln IN s_ebeln

WITH s_reswk = '1130'

WITH s_werks BETWEEN '1501' AND '2000'

and return.

IMPORT it_display1[] FROM MEMORY ID 'ZSHORTAMTCLUSTER'.

it_display[] = it_display1[].

LOOP AT it_display .

IF it_display-shrt_qty NE 0.

it_display-short_amt = 300 * 20 * it_display-shrt_qty.

MODIFY it_display.

ENDIF.

ENDLOOP.

FREE MEMORY ID 'ZSHORTAMTCLUSTER'.

ENDFORM.

note : when I am commenting following lines then everything is running fine

************************************************************************************

SUBMIT zcrpt_sd_sil_023_n

* with s_aedat ...

WITH s_budat BETWEEN s_fkdat-low AND sy-datum

WITH s_ebeln IN s_ebeln

WITH s_reswk = '1130'

WITH s_werks BETWEEN '1501' AND '2000'

and return.

**************************************************************************************

Please help me .

Regards,

Rihan