‎2007 Mar 05 9:25 AM
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
‎2007 Mar 05 9:28 AM
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
.
‎2007 Mar 05 9:26 AM
‎2007 Mar 05 9:29 AM
how can this link help as the coding i did is already similar with it
‎2007 Mar 05 9:28 AM
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
‎2007 Mar 05 9:28 AM
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
.
‎2007 Mar 05 9:29 AM
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á
‎2007 Mar 05 9:32 AM
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
‎2007 Mar 05 9:38 AM
thanks guy, i copy zffmr006a to a new program and turn off the alv_grid function..
thanks for the input