Skip to Content

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

How to pass a field symbol to subroutine?

I'm trying to pass a field symbol to a subroutine.How to declare the field symbol in parameter interface?

Tags:
replied

I did get the error. I am not sure how to define the field symbol to meet your requirement. Well, if you have defined <FS> as a global variable then you can directly use it inside the subroutine. See code below.

REPORT zkar_001.

FIELD-SYMBOLS: <fs> TYPE c.

PARAMETERS: test(2) TYPE c.

PERFORM write.

&----


*& Form write

----


FORM write.

ASSIGN test TO <fs>.

WRITE :/ <fs>.

ENDFORM. " write

-Kiran

*Please mark useful answers

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question