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

Convert ALV

vallamuthu_madheswaran2
Active Contributor
0 Likes
292

Hi Friends,

SUBMIT rahafa01 EXPORTING LIST TO MEMORY VIA SELECTION-SCREEN AND RETURN.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = itab_list

EXCEPTIONS

not_found = 4

OTHERS = 8.

CALL FUNCTION 'LIST_TO_ASCI'

EXPORTING

list_index = -1

  • with_line_break = ' '

TABLES

listasci = vlist

listobject = itab_list

EXCEPTIONS

empty_list = 1

list_index_invalid = 2

OTHERS = 3.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

IF sy-subrc NE '0'.

WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.

ELSE.

LOOP AT vlist.

WRITE:/ vlist-field1.

ENDLOOP.

CLEAR vlist. REFRESH vlist.

WRITE: ' success '.

ENDIF.

now i want the output in ALV grid ie. i want vlist-field1 in alv grid IS IT POSSIBLE?

Thanks & Regards,

vallamuthu.M

1 REPLY 1
Read only

Former Member
0 Likes
264

No , SAP always gives u output in ALV List for BG jobs.

Regards

Peram