2012 Jun 11 2:12 PM
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.
2012 Jun 11 2:22 PM
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 .
2012 Jun 11 3:02 PM
Hi Anjaneya ,
This is printer issue means basis issue . That's why getting dump.now it is rectified.
2012 Jun 11 3:10 PM
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 .
2012 Jun 13 12:58 PM
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
2012 Jun 11 2:29 PM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |