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

reg submit statement

Former Member
0 Likes
1,193

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..

12 REPLIES 12
Read only

Former Member
0 Likes
1,166

hi,

SUBMIT Rep Name USING SELECTION-SCREEN SCREEN

VIA SELECTION-SCREEN

AND RETURN .

thanks

Read only

Former Member
0 Likes
1,166

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.

Read only

0 Likes
1,166

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.

Read only

0 Likes
1,166

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.

Read only

0 Likes
1,166

Added by mistake. Plz ignore

Read only

Former Member
0 Likes
1,166

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.

Read only

0 Likes
1,166

no actually i want ot fill dynamic screen varialble in FBL5n transaction using submit statement

that i want sample code.

Read only

0 Likes
1,166

if so find the Memory id of that field.

then export the value to that memory id from ur program.

Read only

0 Likes
1,166

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.

Read only

0 Likes
1,166

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

Read only

Former Member
0 Likes
1,166

Hi,

Is ur proeblem solved..?

Guru

Read only

0 Likes
1,166

no.

i trying..