Skip to Content
0
Former Member
Jun 03, 2010 at 07:52 PM

how to read Macro?

65 Views

can anyone explain me how to know which table the below code is reading data from Database.

    DEFINE sel.
    when &1.
      sort s_t_select by fieldnm.                  
      do.
        fetch next cursor g_cursor into id.
        if sy-subrc eq 0.
          import &2 from database &3(bw) id id. 

I want to know how these macro will fetch data from database.

In the below code i have shown how these &2 and &3 have been built.

 CASE s_estruc.
        sel 'MC03BF0'      mc03bf0_tab       mc03bf0setup.
        ENDCASE.

Regards,

Mayank