Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Submit the standard transaction with variant

Hi Experts,

iam having ME2N standard transaction so now i want to submit that in my report suppose ZXXX with variant and i want to download that data into my file on desktop

so iam writing the coding as

if VARR1 is initial.

submit ME2N

  • line-size p_linesz

  • line-count p_linect

via selection-screen

exporting list to memory

and return.

else.

submit ME2N

  • line-size p_linesz

  • line-count p_linect

using selection-set VARR1

exporting list to memory

and return.

endif.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = list_tab1

EXCEPTIONS

not_found = 1

OTHERS = 2.

IF sy-subrc = 0.

CALL FUNCTION 'WRITE_LIST'

TABLES

listobject = list_tab1.

ENDIF.

And iam using here GUI_DOWNLOAD functionality

pls correct this and provide solution

Mohan

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question