cancel
Showing results for 
Search instead for 
Did you mean: 

assignment of sy-primm

Former Member
0 Kudos

Hi Everybody

can we over write sy-primm. after printing the spool i want to delete the spool. if possible plz do provide code.

thnx n Regards

Fozia

Accepted Solutions (1)

Accepted Solutions (1)

vikasrao21
Explorer
0 Kudos

Hi

add following codes then check

TABLES: pripar_dyn.

DATA: params LIKE pri_params,

days(1) TYPE n VALUE 2,

count(3) TYPE n VALUE 1,

valid TYPE c.

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

destination = 'LP01'

copies = count

list_name = 'TEST'

list_text = 'SUBMIT ... TO SAP-SPOOL'

immediately = 'X' " Print Immediatlly

suppress_shading = 'X' " Normal Dot Matrix Printing without shading/color

release = 'X' " Delete After Print

new_list_id = 'X'

expiration = days

line_size = 79

line_count = 23

layout = 'X_PAPER'

sap_cover_page = 'X'

cover_page = 'X'

receiver = 'ABAP'

department = 'System'

no_dialog = ' '

IMPORTING

out_parameters = params

valid = valid.

Vikas Rao

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

have a look on this link, it may help you-

Former Member
0 Kudos

Hi Fozia,

Please check the below thread is useful or not,

Best Regards.

Former Member
0 Kudos

Hi,

Thnx for the reply i have written a demo code

TABLES: SYST,

PRIPAR_DYN.

WRITE 'THIS IS THE FIRST LINE'.

WRITE / 'THIS IS SECOND LINE'.

WRITE: / 'THIS IS THIRD LINE',

' I AM ALSO 3RD LINE'.

syst-PRIMM = 'X'.

PRIPAR_DYN-primm2 = 'X'.

after setting the print immediate option enabled i have to set print immediate option manually it is not setting as default.

thnx n Regards

Fozia