HttpServletResponse's Header printing

Hi,
I wrote a servlet to download mail attachment file with imap.
And, I noticed S1AS7 send header part as UTF-8.
It's not good for Japanese environment, because unfamous IE can't handle filename with any charset except SJIS raw bytes.
So, I want to process Response's Header part as ISO-8859-1.
Is it possible? or Is there a workaround for it?
Regards,

Hi,
I wrote a servlet to download mail attachment file with imap.
And, I noticed S1AS7 send header part as UTF-8.
It's not good for Japanese environment, because unfamous IE can't handle filename with any charset except SJIS raw bytes.
So, I want to process Response's Header part as ISO-8859-1.
Is it possible? or Is there a workaround for it?
Regards,

Similar Messages

  • Report queries and bind variables - only header printing to PDF

    Hi,
    I created a simple report query for printing to PDF with 2 bind variables. I created a link to this report like this
    Print - the header information prints but none of the data.
    What am i doing wrong? I'm pretty sure it has s/t to do with the bind variables.
    IF a/o can please help, i'd really appreciate it.
    Thanks,
    Hindy

    is it possible to export your application page to apex server and you shall also create a userid as demo/demo and post the url so that we shall try the debug

  • Email header printing on separate page

    Not sure what I did, but now when I print an email, the header (to/From:) prints on the first page and then the main email prints from page 2 on.  I can not see where this can be changed.  They used to print together as they do on my other Macs.  Just this machine.
    Thanks,
    Calvin

    Having the same problem.. any progress?
    I tried fixing fonts and repairing permissions, which I saw somewhere else, and it seemed to have fixed one, but still happening on others.

  • Email header printed on separate page

    Hi,
    I have some users that are having a problem with printing emails.
    On occasion, these users have emails that print the "header" on the first page, and the rest of the email starts on a new page. This does not occur all the time, but appears to be limited to 3 or 4 persons.
    The printers involved are different, the senders are different, and even the networks are different. There seems to be only the common thread that all have upgraded to Mavericks and this has only begun since upgrading to Mavericks.
    I have searched the forums and only find one reference to a solution suggesting a font issue, and even in that thread several contributors indicate the solution does not work for them. It is difficult to determine what search parameters should be used.
    Raw source comparisons of emails that do not print provide any common issues WRT font, character set, or source mail client.
    The systems are of various ages, with the prime one being Late 2012 iMac 27". This user has the greatest need to print copies of emails, so seems to be the most affected.
    Some users probably don't report the issue because it is intermittent.
    The Preview shows the email will print incorrectly, and an email that presents incorrectly will continue to do so. In other words, the issue is with a particular email and that email will continue to print incorrectly.
    Any ideas would be appreciated.
    JD

    Hi,
    I have run into this issue again, and this time fonts are not involved.
    I have posted the following on another thread.
    "I now have upgraded to Yosemite, and the issue still exists. (This time not font related)
    I have just analyzed the Raw Source of three emails, all of which were sent from the same source within three minutes.
    Every aspect of the raw source is the same in each of the three emails.
    However, one of the three prints the body of the message on the second page,  leaving only the header on the first. The other two emails print as expected.
    By transferring these three emails to another computer as attachments, I can also confirm that the issue still exists on that computer, therefore they are not computer or printer specific.
    The space you refer to appears to be created by some sort of spacing setup that Mail is inserting. Others have already noted that printing at a smaller percentage reduces the unwanted space, therefore it is not a "page break" per se"
    JD

  • Regarding item header printing in the  script

    HI,
      i am working on Goods issue script. In my script there 2 pages. For printing the header for items i have taken a new window from the second page onwards.The item header is printing in all the pages from the second pages onwards. But if there is no item data in the lsat page then also its printing the header. How to supress the header if there is no data.
    kishore

    Hi!
    This can be solved in your printer program.
    LOOP AT gt_main INTO wa_main.
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          window = 'MAIN'
          element = 'ITEM_HEADER'
          type = 'TOP'   "print the header of the items here
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          window = 'MAIN'
          element = 'ITEM_DATA'
          type = 'BODY'   "print the item data
    ENDLOOP.
    Regards
    Tamá

  • Page Header Printing on Subreport

    I have a page header on my main report that prints on an unlinked subreport.  Can anyone tell me how I can suppress it?

    Hi Gayle,
    If the sub report is placed in report footer section, then you will go to selection expert and selected the u2018Page Headeru2019 section. You click on suppress formula of that section and add the following condition
    u201COnLastRecordu201D then the u2018Page Headeru2019 will print up to the main report detail section.
    Thanks,
    Naga.

  • Split-column-header print

    Hello All,
    I am having an issue.
    Problem :
    I have a 6 column in a table and I need to print some number into this 6 columns.
    I tried using <?split-column-header:G_SCHEDULE_NUMBER?><?ASSEMBLY?> in the first column but the same split and print the 6 columns in the first column itself and rest 5 is left blank.
    XML:
    <LIST_G_SCHEDULE_NUMBER>
    <G_SCHEDULE_NUMBER>
    <START_POINT>PITCH START POINT</START_POINT>
    <START_DATE>29-DEC-08</START_DATE>
    <END_DATE>29-DEC-08</END_DATE>
    <START_TIME>06:00:00</START_TIME>
    <END_TIME>06:10:00</END_TIME>
    <ASSEMBLY>905-1011-006</ASSEMBLY>
    <CHANGEOVER>905-1011-006</CHANGEOVER>
    <QUANTITY>20</QUANTITY>
    <SCHEDULE_NUMBER>965</SCHEDULE_NUMBER>
    </G_SCHEDULE_NUMBER>
    <G_SCHEDULE_NUMBER>
    <START_POINT>PITCH START POINT</START_POINT>
    <START_DATE>29-DEC-08</START_DATE>
    <END_DATE>29-DEC-08</END_DATE>
    <START_TIME>06:10:00</START_TIME>
    <END_TIME>06:20:00</END_TIME>
    <ASSEMBLY>905-1011-006</ASSEMBLY>
    <CHANGEOVER></CHANGEOVER>
    <QUANTITY>20</QUANTITY>
    <SCHEDULE_NUMBER>966</SCHEDULE_NUMBER>
    </G_SCHEDULE_NUMBER>
    <G_SCHEDULE_NUMBER>
    <START_POINT>PITCH START POINT</START_POINT>
    <START_DATE>29-DEC-08</START_DATE>
    <END_DATE>29-DEC-08</END_DATE>
    <START_TIME>06:10:00</START_TIME>
    <END_TIME>06:20:00</END_TIME>
    <ASSEMBLY>905-1011-006</ASSEMBLY>
    <CHANGEOVER></CHANGEOVER>
    <QUANTITY>20</QUANTITY>
    <SCHEDULE_NUMBER>966</SCHEDULE_NUMBER>
    </G_SCHEDULE_NUMBER>
    <G_SCHEDULE_NUMBER>
    <START_POINT>PITCH START POINT</START_POINT>
    <START_DATE>29-DEC-08</START_DATE>
    <END_DATE>29-DEC-08</END_DATE>
    <START_TIME>06:10:00</START_TIME>
    <END_TIME>06:20:00</END_TIME>
    <ASSEMBLY>905-1011-006</ASSEMBLY>
    <CHANGEOVER></CHANGEOVER>
    <QUANTITY>20</QUANTITY>
    <SCHEDULE_NUMBER>966</SCHEDULE_NUMBER>
    </G_SCHEDULE_NUMBER>
    <G_SCHEDULE_NUMBER>
    <START_POINT>PITCH START POINT</START_POINT>
    <START_DATE>29-DEC-08</START_DATE>
    <END_DATE>29-DEC-08</END_DATE>
    <START_TIME>06:10:00</START_TIME>
    <END_TIME>06:20:00</END_TIME>
    <ASSEMBLY>905-1011-006</ASSEMBLY>
    <CHANGEOVER></CHANGEOVER>
    <QUANTITY>20</QUANTITY>
    <SCHEDULE_NUMBER>966</SCHEDULE_NUMBER>
    </G_SCHEDULE_NUMBER>
    <G_SCHEDULE_NUMBER>
    <START_POINT>PITCH START POINT</START_POINT>
    <START_DATE>29-DEC-08</START_DATE>
    <END_DATE>29-DEC-08</END_DATE>
    <START_TIME>06:10:00</START_TIME>
    <END_TIME>06:20:00</END_TIME>
    <ASSEMBLY>905-1011-006</ASSEMBLY>
    <CHANGEOVER></CHANGEOVER>
    <QUANTITY>20</QUANTITY>
    <SCHEDULE_NUMBER>966</SCHEDULE_NUMBER>
    </G_SCHEDULE_NUMBER>
    </LIST_G_SCHEDULE_NUMBER>
    Thanks
    Sk

    Sure.
    Its like this.
    I have columns in where i need to have 6 columns.but the same can have data in 2 or 3 columns.
    Rest needs to be blank.
    If i make 6 columns in the template and then attach the xml tage it splits only the first columns on the cell in 6 columns and rest 5 are kept blank which disturbs the whole layout.
    If i don't make 6 columns in the template and have only 1 cell with the tag attached it does make the required amount of columns on each row but its not consistent ,so somewhere its 2 columns and somewhere 3 or 6.
    Thanks
    Sk

  • Pick ticket header prints the wrong information on 2nd page of order

    Hello,
    Whenever we have an order that has more than one page of items, it prints all the wrong order header information on the pick ticket.
    We are on SAP 9.0 Business one PL08hf  SS2008.
    Thanks,
    Nick

    Gordon,
    I finally have the screen and the report but I am having a hard time trying to paste the images to this site. Can I send them to your email address?
    thanks,
    Nick

  • Database report header prints info not in filtered info ??

    I have a database where I sort on a division ID #, a location and salary. I then find records of a particular division # for a report. In the report I use a layout that has a report header with the NAME of the division, not the ID #, along with the location, page number and date. When I pick the report from the report choices the header contains the correct name of the division but when I go to print (either a file - print preview or file and just print to paper) the NAME of the division defaults to the NAME of the division in the LAST record in the entire sorted database. Page 2 and any remaining pages of the report contain the correct division name, it is only the first page that has the error. The only report that prints correctly is the one that reports on the last division. What am I doing wrong?
    Frustrated ...... Richard

    Hi Harshith,
    I have already tried for custom button and code to download into excel and it works fine for normal case.
    But when the user will sort on any filed then the report gets modified (gets grouped etc). In that case my code gets failed as i am getting the report data from the context node which in this case will be simple but diiferent as what user is seeing on the screen.
    so is it possible to get the report data (currently visible in the screen).
    Thanks in advance
    Gopal

  • Acrobat 9 Header print Flush Right???

    I enter the text I want in the Right Header box and in the preview pane it shows it as Flush right in the right header box, but when I apply it and go back to the document it is aligned to the left in the right header box. How do I get it to insert into the document the way it actually looks in the preview?

    Works fine here in 9 - remember there is a right hand margin by default, so it will not be against the right hand side of the page. Try adjusting the margins.
    "and in the preview pane it shows it as Flush right in the right header box," - this is confusing ... there is no 'right header BOX'
    There is:
    a) a Right Header Text entry box
    b) a Preview area. No 'Box' in here.

  • Header printing in smartforms

    plz help me inthat how and where header text stored in any tcode and how to get that header text in smart forms?

    Hi,
        To get ur header text write the piece of code in Program lines and Display ur text with the Filed &IT_TLINE-TDLINE&
    TDNAME   = IT_VBRK-VBELN.
    *--- Call FM Read Text to get the Long Text for Mode of Dispatch Details
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    CLIENT                        = SY-MANDT
    ID                            = 'V007'
    LANGUAGE                      = SY-LANGU
    NAME                          = TDNAME
    OBJECT                        = 'VBBK'
    TABLES
    LINES                         = IT_TLINE
    EXCEPTIONS
    ID                            = 1
    LANGUAGE                      = 2
    NAME                          = 3
    NOT_FOUND                     = 4
    OBJECT                        = 5
    REFERENCE_CHECK               = 6
    WRONG_ACCESS_TO_ARCHIVE       = 7
    OTHERS                        = 8 .
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Here TDNAME, ID all these Fields can be Viewd by clicking on the Header Text node in ur Transaction and Go to -
    >Change Header u will get the Technical Details
    Regards,
    Vijaya Lakshmi.T

  • SMARTFORM: PROBLEM WITH PRINTING SAME HEADER IN PAGES FOR A NON-FINISH LIST

    Hi, guys!
    I hope you can help me as well as many other times.
    I have a Smartform which contains a header,body and a footer in a page.
    This is a form for a report, which we have a column header and the positions. the problem is that if a current account haven't finish in that list (see the example)
    ASD
    ASDASDASDASD
    ASDASDASDASD
    MY REPORT
    ACCOUNT      | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |                <-- COLUMN HEADER
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |12.12            |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |123123.23    |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |123.1233      |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |21222.23      |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |123.23          |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |1212.12        |
    PAGE 1
    in the next page, we don't want to repeat the columns header. just only continue printing the lines...
    ASD
    ASDASDASDASD
    ASDASDASDASD
    MY REPORT
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |123.1233      |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |21222.23      |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |123.23          |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |1212.12        |
    PAGE 2
    Has anyone encourage this issue? What can I do? remember is a smartform.
    please help us!!
    thanx

    Guys.
    Remember that the columns header won't be printed only if the lines per account continues. I mean, the column header printing depends on the number of lines that are being printed.
    If at the end of a previous page the list (for example the positions that belong to this account) still continues for an account, then in the next page the column header musn't be printed, just only continue printing the rest of the positions. As you notice this case would be found in any number of pages during the rest of the report.
    I'm agree with all your solutions but this only functionin some cases for the first page.
    I look forward to hearing from you.
    If I'm clear now, please help me!
    Thanks guys!

  • Taking download into excel from ALV Grid - header is printing in two lines

    Hi All,
    I have a scenario where I am taking the download from ALV grid to an excel sheet. Now the header of the ALV (column names) is appearing in two lines in the downloaded excel sheet while items (records of the ALV table) are getting displayed in a single line.
    This download is taken from the standard download to local file (spreadsheet) button provided by SAP for ALVs.
    I am using function module "Reuse_alv_grid_display" for the purpose.
    Can somebody provide an idea how I can avoid the header printing in two lines and keep the length as it is.
    Thanks in Advance,
    Chandan

    Hi..
    1. Pass header name in internal table appned first line.
    2. after that pass u r data .
    3. Use  FM. WS_DOWNLOAD 
    Salil ......
    Edited by: salil chavan on Nov 26, 2008 11:07 AM

  • How to print Group Header on page break in a subreport - CR XI

    Post Author: rickcf
    CA Forum: General
    I have a subreport that has 3 groups with only one group that has a heading.  When the report prints and a subreport group is split between two pages (on a page break) I would like the group heading to also print again at the top of the page- even with the word "continued..." also.  Right now only the main report page header prints.  How can I do this since there is no page header in a subreport?
    Thanks
    Rick

    Post Author: rickcf
    CA Forum: General
    Is there any way to test during detail processing time to see if a page break is occuring?  If so I could print out a fake header on the detail line, suppressing it only if the page breaks.  That is the only thing I can come up with to solve the issue.
    I am surprised the is not an option to reprint the group header on a page break.  That seems like a needed option and that is the standard in Foxpro reporting - there is a checkbox option to cover this scenario.
    A coworker did find a workaround to add a psudo page header to a subreport so if I can add that and put my group info in there it will also work.  I have not looked at the code yet though.
    I have another issue I am working on so this one might take a while to get back to.
    Rick

  • Header not visible in alv output print preview using html_top_of_page

    hi to all experts,
    im using html_top_of_page for alv header and using fm reuse_alv_grid_display. when i see the print preview im getting the report output but not the alv header . what could be the problem

    Hi tarun,
    im unable to see the header print preview . I can see it in the report output .
    here is my code
    FORM html_top_of_page USING document
            TYPE REF TO cl_dd_document .
      CREATE OBJECT:  document.
      DATA:text TYPE sdydo_text_element.
      DATA: l_repid TYPE sy-repid,
            l_mandt TYPE sy-mandt,
            l_date(10),
            l_yr(4),
            l_mm(2),
            l_dd(2),
            l_hr(2),
            l_sec(2),
            l_min(2),
            l_time(10).
      CALL METHOD document->add_gap
        EXPORTING
          width = 70.
      text = text-005.
      CALL METHOD document->add_text
        EXPORTING
          text      = text-005
          sap_style = 'HEADING'.
      CALL METHOD document->new_line.
      CONCATENATE 'Report:' sy-repid INTO text.
      CALL METHOD document->add_text
        EXPORTING
          text         = text
          sap_emphasis = 'Strong'.
      CALL METHOD document->add_gap
        EXPORTING
          width = 206.
      l_date = sy-datum.
      MOVE: l_date+0(4) TO l_yr,
            l_date+4(2) TO l_mm,
            l_date+6(2) TO l_dd.
      CONCATENATE 'Run Date:' l_dd '.' l_mm '.' l_yr
                  INTO text.
      CALL METHOD document->add_text
        EXPORTING
          text          =  text
          sap_style     =  space
          sap_color     =  space
          sap_fontsize  =  cl_dd_document=>medium
          sap_emphasis  =  cl_dd_document=>strong
          style_class   =  space
    *  CHANGING
    *    document      =
      CALL METHOD document->new_line.
      CONCATENATE 'Client:' sy-mandt INTO text.
      CALL METHOD document->add_text
        EXPORTING
          text          = text
          sap_fontstyle = cl_dd_document=>medium
          sap_emphasis  = cl_dd_document=>strong.
      CALL METHOD document->add_gap
        EXPORTING
          width = 220.
      l_time = sy-uzeit.
      l_hr = l_time+0(2).
      l_mm = l_time+2(4) .
      l_sec = l_time+4(6).
      CONCATENATE l_hr ':' l_mm ':' l_sec
           INTO l_time.
      CONCATENATE 'Time:' l_time INTO text.
      CALL METHOD document->add_text
        EXPORTING
          text           = text
          sap_fontstyle =  cl_dd_document=>medium
          sap_emphasis  =  cl_dd_document=>strong
          style_class   =  space
    *  CHANGING
    *    document      =
      CALL METHOD document->new_line.
      CONCATENATE 'User Id:' sy-uname INTO text.
      CALL METHOD document->add_text
        EXPORTING
           text          =  text
          sap_style     = space
          sap_color     = space
          sap_fontstyle = cl_dd_document=>medium
          sap_emphasis  = cl_dd_document=>strong
          style_class   = space
    *  CHANGING
    *    document      =
      CALL METHOD document->new_line.
      CALL METHOD document->new_line.
      text = 'Note: The maximum value for the column Qty to Print is 10,000.'.
      CALL METHOD document->add_text
        EXPORTING
           text          = text
    *    text_table    =
    *    fix_lines     =
    *     sap_style     =  cl_dd_document=>strong
           sap_color     = cl_dd_document=>list_negative
    *    sap_fontsize  =
          sap_fontstyle = cl_dd_document=>strong
    *    sap_emphasis  =
    *    style_class   =
    *  CHANGING
    *    document      =
      CALL METHOD document->new_line.
      CALL METHOD document->new_line.
      text = 'Selection Criteria:'.
      CALL METHOD document->add_text
        EXPORTING
           text          = text
    *      text_table    =
    *      fix_lines     =
           sap_style      = 'KEY'
    *      sap_color     =
           sap_fontsize  = cl_dd_document=>medium
           sap_fontstyle = cl_dd_document=>strong.
    *  CALL METHOD document->new_line.
    *  CALL METHOD document->new_line.
      IF so_mblnr[] IS NOT INITIAL.
        CALL METHOD document->new_line.
        IF so_mblnr-high IS NOT INITIAL.
          CONCATENATE 'Material Doc:' so_mblnr-low '  TO   '  so_mblnr-high INTO text SEPARATED BY space.
        ELSE.
          CONCATENATE 'Material Doc:' so_mblnr-low INTO text SEPARATED BY space.
        ENDIF.
        CALL METHOD document->add_text
          EXPORTING
            text          = text
            sap_fontsize  = cl_dd_document=>medium
            sap_fontstyle = cl_dd_document=>strong.
      ENDIF.
      IF so_bwart[] IS NOT INITIAL.
        CALL METHOD document->new_line.
        IF so_bwart-high IS NOT INITIAL.
          CONCATENATE 'Movement Type:' so_bwart-low ' TO  ' so_bwart-high INTO text SEPARATED BY space.
        ELSE.
          CONCATENATE 'Movement Type:' so_bwart-low INTO text SEPARATED BY space.
        ENDIF.
        CALL METHOD document->add_text
          EXPORTING
            text          = text
            sap_fontsize  = cl_dd_document=>medium
            sap_fontstyle = cl_dd_document=>strong.
      ENDIF.
      IF so_bldat[] IS NOT INITIAL.
        CALL METHOD document->new_line.
        IF so_bldat-high IS NOT INITIAL.
          CONCATENATE 'Document Date:' so_bldat-low ' TO  ' so_bldat-high INTO text SEPARATED BY space.
        ELSE.
          CONCATENATE 'Document Date:' so_bldat-low  INTO text SEPARATED BY space.
        ENDIF.
        CALL METHOD document->add_text
          EXPORTING
            text          = text
            sap_fontsize  = cl_dd_document=>medium
            sap_fontstyle = cl_dd_document=>strong.
      ENDIF.
      IF so_budat[] IS NOT INITIAL.
        CALL METHOD document->new_line.
        IF  so_budat-high IS NOT INITIAL.
          CONCATENATE 'Posting Date:' so_budat-low ' TO  ' so_budat-high INTO text SEPARATED BY space.
        ELSE.
          CONCATENATE 'Posting Date:' so_budat-low INTO text SEPARATED BY space.
        ENDIF.
        CALL METHOD document->add_text
          EXPORTING
            text          = text
            sap_fontsize  = cl_dd_document=>medium
            sap_fontstyle = cl_dd_document=>strong.
      ENDIF.
      IF so_matnr[] IS NOT INITIAL.
        CALL METHOD document->new_line.
        IF so_matnr-high IS NOT INITIAL.
          CONCATENATE 'Material ID:' so_matnr-low ' TO  ' so_matnr-high INTO text SEPARATED BY space.
        ELSE.
          CONCATENATE 'Material ID:' so_matnr-low INTO text SEPARATED BY space.
        ENDIF.
        CALL METHOD document->add_text
          EXPORTING
            text          = text
            sap_fontsize  = cl_dd_document=>medium
            sap_fontstyle = cl_dd_document=>strong.
      ENDIF.
      IF so_werks[] IS NOT INITIAL.
        CALL METHOD document->new_line.
        IF so_werks-high IS NOT INITIAL.
          CONCATENATE 'Plant:' so_werks-low ' TO  ' so_werks-high INTO text SEPARATED BY space.
        ELSE.
          CONCATENATE 'Plant:' so_werks-low INTO text SEPARATED BY space.
        ENDIF.
        CALL METHOD document->add_text
          EXPORTING
            text          = text
            sap_fontsize  = cl_dd_document=>medium
            sap_fontstyle = cl_dd_document=>strong.
      ENDIF.
      IF so_lgort[] IS NOT INITIAL.
        CALL METHOD document->new_line.
        IF so_lgort-high IS NOT INITIAL.
          CONCATENATE 'Storage Location:' so_lgort-low ' TO  ' so_lgort-high INTO text SEPARATED BY space.
        ELSE.
          CONCATENATE 'Storage Location:' so_lgort-low INTO text SEPARATED BY space.
        ENDIF.
        CALL METHOD document->add_text
          EXPORTING
            text          = text
            sap_fontsize  = cl_dd_document=>medium
            sap_fontstyle = cl_dd_document=>strong.
      ENDIF.
      IF so_lifnr[] IS NOT INITIAL.
        CALL METHOD document->new_line.
        IF so_lifnr-high IS NOT INITIAL.
          CONCATENATE 'Vendor:' so_lifnr-low ' TO  ' so_lifnr-high INTO text SEPARATED BY space.
        ELSE.
          CONCATENATE 'Vendor:' so_lifnr-low INTO text SEPARATED BY space.
        ENDIF.
        CALL METHOD document->add_text
          EXPORTING
            text          = text
            sap_fontsize  = cl_dd_document=>medium
            sap_fontstyle = cl_dd_document=>strong.
      ENDIF.
      IF so_xblnr[] IS NOT INITIAL.
        CALL METHOD document->new_line.
        IF so_xblnr-high IS NOT INITIAL.
          CONCATENATE 'Delivery Note:' so_xblnr-low 'TO' so_xblnr-high INTO text SEPARATED BY space.
        ELSE.
          CONCATENATE 'Delivery Note:' so_xblnr-low INTO text SEPARATED BY space.
        ENDIF.
        CALL METHOD document->add_text
          EXPORTING
            text          = text
            sap_fontsize  = cl_dd_document=>medium
            sap_fontstyle = cl_dd_document=>strong.
      ENDIF.
      IF so_ebeln[] IS NOT INITIAL.
        CALL METHOD document->new_line.
        IF so_ebeln-high IS NOT INITIAL.
          CONCATENATE 'PO NO:' so_ebeln-low ' TO  ' so_ebeln-high INTO text SEPARATED BY space.
        ELSE.
          CONCATENATE 'PO NO:' so_ebeln-low INTO text SEPARATED BY space.
        ENDIF.
        CALL METHOD document->add_text
          EXPORTING
            text          = text
            sap_fontsize  = cl_dd_document=>medium
            sap_fontstyle = cl_dd_document=>strong.
      ENDIF.
      IF so_usnam[] IS NOT INITIAL.
        CALL METHOD document->new_line.
        IF so_usnam-high IS NOT INITIAL.
          CONCATENATE 'User Name:' so_usnam-low ' TO  ' so_usnam-high INTO text SEPARATED BY space.
        ELSE.
          CONCATENATE 'User Name:' so_usnam-low INTO text SEPARATED BY space.
        ENDIF.
        CALL METHOD document->add_text
          EXPORTING
            text          = text
            sap_fontsize  = cl_dd_document=>medium
            sap_fontstyle = cl_dd_document=>strong.
      ENDIF.
      CALL METHOD document->new_line.
      IF 1x3 = 'X'.
        text = 'Barcode label 1x3 maintained'.
        CALL METHOD document->add_text
          EXPORTING
            text          = text
            sap_fontsize  = cl_dd_document=>medium
            sap_fontstyle = cl_dd_document=>strong.
      ELSE.
        text = 'Bar Code label 2x4 maintained'.
        CALL METHOD document->add_text
          EXPORTING
            text          = text
            sap_fontsize  = cl_dd_document=>medium
            sap_fontstyle = cl_dd_document=>strong.
      ENDIF.
      CALL METHOD document->new_line.

Maybe you are looking for