Question:
Hi all,
I haven't use macro before. But I just tried by myself. Still not working. The coding is
DEFINE macro.
concatenate 'pernr' 'bukrs' into v separated by space.
macro v.
END-OF-DEFINITION.
loop at itab.
define selection.
clear pa0000.
select &v from pa0000 into corresponding fields of table itab2
where pernr = itab-pernr.
END-OF-DEFINITION.
endloop.
can anyone check this code for me.
Thank u
Answer:
Why didn't you check the ABAP knowlegde corner or use the search function?
Answer:
Have a read of 0013 - Macros And Performs.
Macros come in two parts. The definition and the use. You are mixing the two up.
For example
Hi all,
I haven't use macro before. But I just tried by myself. Still not working. The coding is
DEFINE macro.
concatenate 'pernr' 'bukrs' into v separated by space.
macro v.
END-OF-DEFINITION.
loop at itab.
define selection.
clear pa0000.
select &v from pa0000 into corresponding fields of table itab2
where pernr = itab-pernr.
END-OF-DEFINITION.
endloop.
can anyone check this code for me.
Thank u
Your question is real? Are you defininf a macro in the middle of a loop? WoW!
Read R's Knowledge Corner... posting something like this is a disrespect thing over his hard work...
Now I must leave, all my macroes are crying after see your code
_________________
Brief History of the Tuly Idiots
Bad advices, wrong answers, bigotism
sapfans GD
Ad by Viiiiiic