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

submit statement

Former Member
0 Likes
801

i coded:

SUBMIT zffmr006a AND RETURN

WITH p_kokrs = $6-kokrs

WITH s_gj_bud = $6-gjahr

WITH p_perbv = $6-perbv

WITH p_perbb = $6-perbb

WITH p_verp = $6-verp

WITH p_aufgr = $6-aufgr

WITH s_aufgr IN _6-aufgr

.

but the program still stuck at zffmr006a , i have to click back only it will go back to write my output..how to code the submit syntax that it will straight away generate my output without displauing zffmr006a

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
764

Try the addition: EXPORTING LIST TO MEMORY .

SUBMIT zffmr006a <b>EXPORTING LIST TO MEMORY</b> AND RETURN

WITH p_kokrs = $6-kokrs

WITH s_gj_bud = $6-gjahr

WITH p_perbv = $6-perbv

WITH p_perbb = $6-perbb

WITH p_verp = $6-verp

WITH p_aufgr = $6-aufgr

WITH s_aufgr IN _6-aufgr

.

7 REPLIES 7
Read only

Former Member
Read only

0 Likes
764

how can this link help as the coding i did is already similar with it

Read only

Former Member
0 Likes
764

Hello,

If ur report ZFFMR006A is displaying a ALV grid then it is not possible to avoid the display.

If it is using the ALV LIST or WRITE Sattement then u can avaoid it like this:


  DATA: LISTOBJECT LIKE ABAPLIST OCCURS 0 WITH HEADER LINE.
  SUBMIT  Z48R_PROJEKTSTATUS WITH SO_WWSTO IN SO_WWSTO
                             WITH SO_ISTAT IN SO_ISTAT
                             EXPORTING LIST TO MEMORY
                             AND RETURN.


* Import the list from memory and store it in table listobject
  CALL FUNCTION 'LIST_FROM_MEMORY'
       TABLES
            LISTOBJECT = LISTOBJECT
       EXCEPTIONS
            NOT_FOUND  = 1
            OTHERS     = 2.
  IF SY-SUBRC <> 0.
    WRITE  'Error in list_from_memory.'.
  ENDIF.
  CALL FUNCTION 'LIST_TO_ASCI'
*       EXPORTING
*            LIST_INDEX         = -1
       TABLES
            LISTASCI           = LT_TXT
            LISTOBJECT         = LISTOBJECT
       EXCEPTIONS
            EMPTY_LIST         = 1
            LIST_INDEX_INVALID = 2
            OTHERS             = 3.
  CHECK SY-SUBRC = 0.

  DATA: LV_LINES LIKE SY-TABIX.
  DESCRIBE TABLE LT_TXT LINES LV_LINES.
  LOOP AT LT_TXT INTO W_TEXTLINE.
    CHECK SY-TABIX > 3.
    CHECK W_TEXTLINE(5) <> 'Keine'.
    CHECK W_TEXTLINE(5) <> '-----'.
    DO 120 TIMES. REPLACE ' |' WITH '|' INTO W_TEXTLINE.  ENDDO.
    "WRITE / w_textline(255).
    PERFORM HANDLE_LINE USING W_TEXTLINE.
  ENDLOOP.

* Free memory
  CALL FUNCTION 'LIST_FREE_MEMORY'
       TABLES
            LISTOBJECT = LISTOBJECT
       EXCEPTIONS
            OTHERS     = 1.
  IF SY-SUBRC <> 0.
    WRITE  'Error in list_free_memory.'.
  ENDIF.

If useful reward.

Vasanth

Read only

Former Member
0 Likes
765

Try the addition: EXPORTING LIST TO MEMORY .

SUBMIT zffmr006a <b>EXPORTING LIST TO MEMORY</b> AND RETURN

WITH p_kokrs = $6-kokrs

WITH s_gj_bud = $6-gjahr

WITH p_perbv = $6-perbv

WITH p_perbb = $6-perbb

WITH p_verp = $6-verp

WITH p_aufgr = $6-aufgr

WITH s_aufgr IN _6-aufgr

.

Read only

Former Member
0 Likes
764

Hi!

Yes, that's true, the last called list will remain on the screen.

You may write a silent mode to the program:zffmr006a. This means, you can handle all writes with a parameter.

For example:

PARAMETERS: p_silent AS CHECKBOX.

IF p_silent = ' '. "only print, if silent is switched off

WRITE:/ ...

ENDIF.

With this way you can prevent the called program to stay on the screen.

Regards

Tamá

Read only

Former Member
0 Likes
764

make sure that in the called program there should not be any output statements like WRITE, SKIP, ULINE.. etc...

then it processes that program and comes back to the main program and displays the output..

If u have any output statement in the called program then it is not possible with out back statement...

u need to use some other logic..

reward if it is helpful..

sai ramesh

Read only

0 Likes
764

thanks guy, i copy zffmr006a to a new program and turn off the alv_grid function..

thanks for the input