Skip to Content
author's profile photo Former Member
Former Member

Problem with GET_PRINT_PARAMETERS FM to print more than 255 characters


Currently we are printing one file in the spool as well as in Zebra printer by using FM GET_PRINT_PARAMETERS. In this function module we are passing the format as 'X_65_255'. For our device type we have this format 'X_65_255. If I see the function module there is one import paramter DEFAULT_SPOOL_SIZE which will allow till 255 characters only. But In my barcode file I am getting the content as more than 255 characters. This barcode file I am getting from third party software (Label Vision for printing labels in warehouse) How to print more tha 255 characters.

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Feb 25, 2009 at 01:24 AM


    are you sure that import parameter DEFAULT_SPOOL_SIZE is what you need because I checked two ECC versions. It's really weird on 4.6C. For some reason this parameter does not have type. When you check source code of this FM you can see that it is used only once.

      IF default_spool_size <> c_char_unknown.
        MOVE default_spool_size TO pripar_ext-orient.

    But if you check structure pripar_ext then you can see that field orient is for page format and you can enter only values L - landscape and P - portrait. So obviously this is bug in SAP.

    I also checked ECC 6.0 and it is fixed there. Now it looks like

      IF default_spool_size <> c_char_unknown.
        PERFORM set_parameter
          USING     'MXLSZ' default_spool_size
          CHANGING  pripar_ex4.

    That parameter is even documented.

    The spool request is 255 characters wide or less - irrespective of the

    value of LINSZ.

    So for me it looks like that if you leave this parameter initial and change line size (parameter LINE_SIZE) then you will be able to print content with more than 255 characters. Why do you think that you can't use this FM? Have you tested it?


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.