Skip to Content

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

Calling Form from Another program

All.

I have program A and program B. While executing Program A i need to call a perform (form) from Program B and result out this needs to flow into program A

Like Program B having a form f_select_data

form f_select_data.
select * from mara into table it_mara
     where matnr  in s_matnr
endform.

I need to call this from program A and results back to A

Former Member replied

hi

look at this example:

REPORT  ZREP1.

perform get(ZREP2).
field-symbols <f1> type mara.
data fs(20) value '(ZREP2)zmara'.
assign (fs) to <f1>.
write: / <f1>-matnr

REPORT  ZREP2                                   .

data: zmara type mara.

form get.
  select single * from mara into zmara.
endform

reagards,darek

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question