Application Development 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: 

submit program

Former Member
0 Kudos
255

Hi all,

I need to send cost center in background. so am using tcode ;- BD16 corresponding program in the RFC. As this program contains information messages the process is not getting stopped. is there any option to skip these messages while using submit program option. kindly help me..

thanks,

praveena

5 REPLIES 5

RoySayak
Active Participant
0 Kudos
201

try using SKIP FIRST SCREEN.

Reward if useful

Thanks

Sayak

Former Member
0 Kudos
201

Exceute the program in Background that will omit the informattion messages.

use following FM's to submit program in Background:

job _open

JOB_SUBMIT

JOB_CLOSE.

Reagards,

Gopi,

reward point if helpfull.

0 Kudos
201

Hi all,

with submit is there any option where we can skip the information messages available in the standard program.

points will be rewarded

Thanks,

praveena

0 Kudos
201

data: p_repid like sy-repid.

data: p_linsz like sy-linsz default 132, " Line size

p_paart like sy-paart default 'X_65_132', " Paper Format

p_slset like sy-slset, "Variant name

data: mstr_print_parms like pri_params.

p_repid = sy-rep_id.

call function 'GET_PRINT_PARAMETERS'

exporting

authority = space

copies = '1'

cover_page = space

data_set = space

department = space

destination = space

expiration = '1'

immediately = space

layout = space

mode = space

new_list_id = 'X'

no_dialog = 'X'

user = sy-uname

importing

out_parameters = mstr_print_parms

valid = mc_valid

exceptions

archive_info_not_found = 1

invalid_print_params = 2

invalid_archive_params = 3

others = 4.

if mstr_print_parms-pdest = space.

mstr_print_parms-pdest = 'LOCL'.

endif.

mstr_print_parms-linsz = p_linsz.

mstr_print_parms-paart = p_paart.

submit (p_repid) to sap-spool without spool dynpro

spool parameters mstr_print_parms

using selection-set p_slset

and return.

kesavadas_thekkillath
Active Contributor
0 Kudos
201

I have used something like this...check whether it helps u.

data: p_repid like sy-repid.

data: p_linsz like sy-linsz default 132, " Line size

p_paart like sy-paart default 'X_65_132', " Paper Format

p_slset like sy-slset. "Variant name

data: mstr_print_parms like pri_params.

p_repid = sy-rep_id.

call function 'GET_PRINT_PARAMETERS'

exporting

authority = space

copies = '1'

cover_page = space

data_set = space

department = space

destination = space

expiration = '1'

immediately = space

layout = space

mode = space

new_list_id = 'X'

no_dialog = 'X'

user = sy-uname

importing

out_parameters = mstr_print_parms

valid = mc_valid

exceptions

archive_info_not_found = 1

invalid_print_params = 2

invalid_archive_params = 3

others = 4.

if mstr_print_parms-pdest = space.

mstr_print_parms-pdest = 'LOCL'.

endif.

mstr_print_parms-linsz = p_linsz.

mstr_print_parms-paart = p_paart.

submit (p_repid) to sap-spool without spool dynpro

spool parameters mstr_print_parms

using selection-set p_slset.