‎2009 Mar 23 5:58 AM
Gurus,
i want to add the dynamic scren field as input in the submit stattemnt.
For ex: i want to select data of particular document type 'DZ' using submit statemnt.
i dont know how to give th input in submit statemrnt.
Thanks in advance.
Regards,
bhuvana..
‎2009 Mar 23 6:02 AM
hi,
SUBMIT Rep Name USING SELECTION-SCREEN SCREEN
VIA SELECTION-SCREEN
AND RETURN .
thanks
‎2009 Mar 23 6:03 AM
Hi,
U mean to say from a program u pass document type as 'DZ' to the other program. and in the other program u use this 'DZ' to select from Some table.
Clear about this please.
Guru.
‎2009 Mar 23 6:13 AM
FOR EG:
USING SUBMIT STMT I AM GOING TO SELECT A CUSTOMER OPEN ITEMS.
BUT I WANT ONLY DOCUMENT TYPE 'DZ' ONLY.
THE HOW I PASS THIS INPUT IN SUBMIT STATEMENT.
Regards,
Bhuvana.
‎2009 Mar 23 6:25 AM
use a EXPORT before ur SUBMIT statement.
and in the other program IMPORT this value and use it..
like..
move the data wht u need to pass into a variable
here its lv_type.
EXPORT lv_type TO MEMORY ID 'M_TYPE'.
SUBMIT 'Rep name'.
in the other report.
define a varible which is of same type lv_type.
and use.
IMPORT lv_type FROM MEMORY ID 'M_TYPE'.
FREE MEMERY ID 'M_TYPE'.
u can use this lv_type in ur second prorgam.
‎2009 Mar 23 6:28 AM
‎2009 Mar 23 6:14 AM
You can use SUBMIT statement as follows
SUBMIT report name and cna use the following additions.
... VIA SELECTION-SCREEN
... AND RETURN
SUBMIT report name
VIA SELECTION-SCREEN
AND RETURN.
you can also use export to memory statements with submit statement.
... EXPORTING LIST TO MEMORY
Does not display the output list of the called report, but saves it in ABAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. In addition, you must not assign a function code to the ENTER key in the current GUI status. The saved list is read from the SAP memory using the function module 'LIST_FROM_MEMORY' and can then be saved to the database using EXPORT, for example. You can process this list further with the function modules 'WRITE_LIST', 'DISPLAY_LIST' ... of the function group "SLST".
hope this will help u.
‎2009 Mar 23 6:20 AM
no actually i want ot fill dynamic screen varialble in FBL5n transaction using submit statement
that i want sample code.
‎2009 Mar 23 6:29 AM
if so find the Memory id of that field.
then export the value to that memory id from ur program.
‎2009 Mar 23 6:38 AM
Guru Ram,
my coding is
submit z_rfitemar1 using selection-screen 1106
with dd_kunnr = '1'
with dd_bukrs = '2000'
with x_opsel = 'X'
with pa_stida = '20060305'
with x_norm = 'X'
with x_shbv = 'X'
and return.
clear it_pos.
import it_pos from memory id 'zit_pos'.
with the above code it will select all the open item of the particular customer through Fbl5n.
But i want to restrict only particular document type 'DZ' through Submit statement itself.
in fbl5n doucment type is in the dynamic selection screen.
i dont know how to pass value to that variable in dynamic selection screen through submit statement.
i think now u can understand my problem.
Regards
Bhuvana.
‎2009 Mar 23 6:46 AM
i understand.
your report z_rfitemar1 have some select statement which uses these dd_bukrs, dd_kunnr to select data .. right.
u can not pass just a variable in submit statement.
so use a export befor ur sumbmit.
lv_type = 'DZ'.
like EXPORT lv_type to memory id 'M_TYPE'.
submit.....
in z_rfitrmar1
import lv_type from memory id 'M_TYPE'.
and use this lv_type also in the select query.
i might be wrong.
sorry.
Guru
Edited by: Guru Ram on Mar 23, 2009 7:57 AM
‎2009 Mar 23 8:03 AM
‎2009 Mar 23 8:23 AM