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

get_print_parameters

Former Member
0 Likes
894

Hi Genius ,

  In my program I disabled standard Print button & I created custom print button . In that custom print button I am using the below code.

  If I give Line count & Line Size I am getting dump. If I don't use then I am not getting last 2 columns in print out but I am getting in Output List .

Please suggest me to solve this problem. I searched a lot but didn't find any soluiton.  

data : v_count TYPE PRI_PARAMS-LINCT,
       v_size TYPE PRI_PARAMS-LINsz.

  CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
      ARCHIVE_MODE           = '1'
      LINE_COUNT             = v_count
      LINE_SIZE              = v_size
      REPORT                 = SY-REPID
    IMPORTING
      OUT_PARAMETERS         = PRINT_PARAMETERS
      OUT_ARCHIVE_PARAMETERS = ARCHI_PARAMETERS
      VALID                  = VALID_FLAG
    EXCEPTIONS
      INVALID_PRINT_PARAMS   = 2
      OTHERS                 = 4.

Hi Genius ,

  In my program I disabled standard Print button & I created custom print button . In that custom print button I am using the below code.

  If I give Line count & Line Size I am getting dump. If I don't use then I am not getting last 2 columns in print out but I am getting in Output List .

Please suggest me to solve this problem. I searched a lot but didn't find any soluiton.  

data : v_count TYPE PRI_PARAMS-LINCT,
       v_size TYPE PRI_PARAMS-LINsz.

  CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
      ARCHIVE_MODE           = '1'
      LINE_COUNT             = v_count
      LINE_SIZE              = v_size
      REPORT                 = SY-REPID
    IMPORTING
      OUT_PARAMETERS         = PRINT_PARAMETERS
      OUT_ARCHIVE_PARAMETERS = ARCHI_PARAMETERS
      VALID                  = VALID_FLAG
    EXCEPTIONS
      INVALID_PRINT_PARAMS   = 2
      OTHERS                 = 4.

5 REPLIES 5
Read only

AnjaneyaBhardwaj
Contributor
0 Likes
836

Hi Shek ,

I do not know which Genius you are referring to .

1. What is the Result of your search you did around this topic ?

2. Did you debug the function module to see at which point  are you getting dump and why ?

3. Did you look at ST22 and see when where and what caused the Jump.

I do not think that this issue requires search but it requires debugging and Once you initiate debugging you should be able to get answer yourself .

Thanks,

Anjaneya .

Read only

0 Likes
836

Hi Anjaneya ,

  This is printer issue means basis issue . That's why getting dump.now it is rectified.

Read only

0 Likes
836

Now as you have found your answer yourself ...Please  write a more detailed description of problem and solution and close the question .That will help some one who will get similar issue later.

Thanks,

Anjaneya .

Read only

0 Likes
836

Hi ,

  In the printer setting they didn't maintain format setting . that's why getting dump.Later after giving format size it was resolved.

Regards

Read only

venkateswaran_k
Active Contributor
0 Likes
836

Goto ST22 and paste the screen shot of dump...

Probably your report length is not fit into the line size you have passed.

Regards,

Venkat