Skip to Content
avatar image
Former Member

LIST_TO_ASCI

Hi

In a FM code, I am SUBMIT a report with a VARIANT. I pass it to the memory using the FM: LIST_FROM_MEMORY. I get it back into the internal table using the FM: LIST_TO_ASCI.

Now my problem is that I am not getting the last 5-6 columns of the report due to the restriction on the table ASCII_TAB-LINE with only 255 characters.

Now I am not sure if the SUBMIT is passing those restricted no of columns or the problem is happening during the internal table download.

How should I get all my columns in the report.

Thanks in advance.

Harsh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 09, 2017 at 11:43 AM

    How do you declare your internal table? Probably it's defined incorrectly -> Increase the number of characters of its line type to more than 255 characters.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 09, 2017 at 02:11 PM

    Does the Selection-Screen Variant also have an Output-Variant (Layout)? That might be an issue there ...?
    Does the report output make use of ALV? If so, what is the result when you SUBMIT the report using "CL_SALV_BS_RUNTIME_INFO"-methods ...

    cl_salv_bs_runtime_info=>set(
        EXPORTING display  = abap_false
                  metadata = abap_false
                  data     = abap_true ).

    See : https://blogs.sap.com/2011/07/07/gain-programmatic-access-to-data-of-sapgui-alv-reports/

    Add comment
    10|10000 characters needed characters exceeded