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

Issue in spool

Former Member
0 Likes
861

Hi,

In the spool when tried to view the spool details only 5 field details are getting dipslayed instead of 10.How to get the 10 field details.What is the issue.

I have used the code as

DATA : lc_valid TYPE c.

CONSTANTS : C_FLAG_OFF(1) TYPE C VALUE ' ',

C_FLAG_ON(1) TYPE C VALUE 'X',

c_mode type sycallr value 'CURRENT'.

data: v_set_print like pri_params.

v_set_print-paart = 'X_65_80'.

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

IMMEDIATELY = c_flag_off

MODE = c_mode

NEW_LIST_ID = c_flag_on

NO_DIALOG = c_flag_on

LAYOUT = v_set_print-paart

IMPORTING

out_parameters = wa_params

valid = lc_valid

EXCEPTIONS

ARCHIVE_INFO_NOT_FOUND = 1

INVALID_PRINT_PARAMS = 2

INVALID_ARCHIVE_PARAMS = 3

OTHERS = 4

and then passing the wa_params value to FM job_submit.How to get all the fields.Please help

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
756

Set the paper format to X_65_255.

*v_set_print-paart = 'X_65_80'.
v_set_print-paart = 'X_65_255'.

Hope this will work.

7 REPLIES 7
Read only

Former Member
0 Likes
757

Set the paper format to X_65_255.

*v_set_print-paart = 'X_65_80'.
v_set_print-paart = 'X_65_255'.

Hope this will work.

Read only

Former Member
0 Likes
756

Hi, Can you try like this, so that you will get all fields filled in WA_PARAMS

CALL FUNCTION 'GET_PRINT_PARAMETERS'
         EXPORTING
              report                 = sy-cprog
              no_dialog              = 'X'
         IMPORTING
              out_parameters         = wa_params
         EXCEPTIONS
              archive_info_not_found = 1
              invalid_print_params   = 2
              invalid_archive_params = 3

Read only

0 Likes
756

Hi,

I tried same as ur code

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

report = sy-cprog

no_dialog = 'X'

IMPORTING

out_parameters = wa_params

EXCEPTIONS

archive_info_not_found = 1

invalid_print_params = 2

invalid_archive_params = 3

still am getting the required o/p.The value of LINCT is 65,LINSZ is 80 and PAART is X_paper in wa_params.Please let me know do i need to change anything.Please help

Edited by: saranya srithar on May 25, 2009 10:22 AM

Read only

JoffyJohn
Active Contributor
0 Likes
756

use pattern to create the function module call in se38 transaction.

Your issue is not clear

Read only

Former Member
0 Likes
756

I hink in the statement

v_set_print-paart = 'X_65_80'.

change the lenght and width

Read only

Former Member
0 Likes
756

hi

go to sp02 .

and tick ur corresponding spool no.

and press shift + F4 ( display in maximum width)

. it will display all the columns.

regards

surender.s

Read only

Former Member
0 Likes
756

Set the paper format to X_65_255.

v_set_print-paart = 'X_65_80'.

v_set_print-paart = 'X_65_255'.

Use the bellow function module for spool purpose:

GET_PRINT_PARAMETERS

regards,

Munibabu.K