Calling Form from Another program
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
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