Macro in ABAP

Embed Size (px)

Citation preview

  • 8/18/2019 Macro in ABAP

    1/5

    Hi,

    I am trying to join a db table with dynamic db table. But i am getting syntax error.

    DATA g_viewname!"# ty$e c.

    g_viewname % &'_()*I&.+elect )uery

    (-(T + into table i_e/ui 0123 g_viewname#

    I44(1 52I4 jest 24 g_viewname#6objnr e/ jest6objnr.

    Than7s in advance.

    1egards,Aso7an.

    Bac7 to to$ 

    Google$onsor 

    8osted9 0ri 4ov :;, :""< ="9!" am 8ost subject9 Advertisement

    Bac7 to to$ 

    Raju Chitae

    >uest

    8osted9 Tue 4ov !", :""< ?9?; am 8ost subject9

    HI,

    an you just $ost the exact code so that it can be investigated.

    1egards1aju hitale

    Bac7 to to$ 

    Asokan

    >uest

    http://www.sapfans.com/forums/viewtopic.php?t=152996&highlight=jest&sid=9480c0b5f1907db894efb2b89dcfbb91#tophttp://www.sapfans.com/forums/viewtopic.php?t=152996&highlight=jest&sid=9480c0b5f1907db894efb2b89dcfbb91#tophttp://www.sapfans.com/forums/viewtopic.php?t=152996&highlight=jest&sid=9480c0b5f1907db894efb2b89dcfbb91#tophttp://www.sapfans.com/forums/viewtopic.php?t=152996&highlight=jest&sid=9480c0b5f1907db894efb2b89dcfbb91#tophttp://www.sapfans.com/forums/viewtopic.php?t=152996&highlight=jest&sid=9480c0b5f1907db894efb2b89dcfbb91#tophttp://www.sapfans.com/forums/viewtopic.php?t=152996&highlight=jest&sid=9480c0b5f1907db894efb2b89dcfbb91#tophttp://www.sapfans.com/forums/posting.php?mode=quote&p=461919&sid=9f7a0f4ac3b6fcdc5a0ca32d10fedd79http://www.sapfans.com/forums/viewtopic.php?p=461919&sid=9f7a0f4ac3b6fcdc5a0ca32d10fedd79#461919http://www.sapfans.com/forums/viewtopic.php?p=460460&sid=9f7a0f4ac3b6fcdc5a0ca32d10fedd79#adhttp://www.sapfans.com/forums/viewtopic.php?t=152996&highlight=jest&sid=9480c0b5f1907db894efb2b89dcfbb91#tophttp://www.sapfans.com/forums/viewtopic.php?t=152996&highlight=jest&sid=9480c0b5f1907db894efb2b89dcfbb91#tophttp://www.sapfans.com/forums/viewtopic.php?t=152996&highlight=jest&sid=9480c0b5f1907db894efb2b89dcfbb91#top

  • 8/18/2019 Macro in ABAP

    2/5

    8osted9 Thu Dec ":, :""<

  • 8/18/2019 Macro in ABAP

    3/5

    Ater >_TAB-(4A3(#,there must be a s$ace or e/uivalent character

    9,,,.#.

    1eagards,

    Aso7an

    Bac7 to to$ 

    Catman

    5oined9 =; A$r :""!

    8osts9 :?J

    -ocation9 9noitaco-8osted9 Thu Dec ":, :""< K9

  • 8/18/2019 Macro in ABAP

    4/5

    Ad by 'iiiiiic

    Bac7 to to$ 

    Asokan

    >uest

    8osted9 Thu Dec ":, :""< L9!L am 8ost subject9 1e9Dynamic Table 5oin @

    here

    Hi all,

    Than7 you all or the re$ly&s and s$ecial than7s to 'loCano. I have added the code or ur

    reerence and let me 7now i any other sim$le method available instead o macro. The below code wor7ing ine.

    Report zmademo.DEFINE myJoin.Data : begin of i_int occurs 0,be!n !i"e brp#be!n,end of i_int.

    $E%E&' ( into corresponding )e!ds of tab!e i_intFR*+ - INNER J*IN brp*N -be!n / brpbe!n.%oop at i_int.

    rite:1 i_int#be!n.end!oop.END#*F#DEFINI'I*N.

    D2'2 br"345 '67E & 82%9E 8;R

  • 8/18/2019 Macro in ABAP

    5/5

    I&m ha$$y to be hel$ul. 4ow a hint and a $etition9

    The hint Be careul declaring variables in a macro. I you call the macro more than once, the

    system will chec7 your macro code at com$iling and you will get a du$licate deinition

    error.

    The etition 

    I you thin7 your $roblem is solved more or less#, edit the subject o your to$ic. 8eo$lewith a $roblem li7e yours will ind easyly a solution using the search i they see a

    solved to$ic. Than7s in advance.

    Best luc7,'ic

     _________________ 

    Brief History of the Tuly Idiots Bad advices, wrong answers, bigotism

    sa$ans >D 

    Ad by 'iiiiiic

    Bac7 to to$ 

    http://www.sapfans.com/forums/viewtopic.php?t=174021&start=30http://www.sapfans.com/forums/viewtopic.php?t=152996&highlight=jest&sid=9480c0b5f1907db894efb2b89dcfbb91#tophttp://www.sapfans.com/forums/viewtopic.php?t=152996&highlight=jest&sid=9480c0b5f1907db894efb2b89dcfbb91#tophttp://www.sapfans.com/forums/privmsg.php?mode=post&u=22754&sid=9f7a0f4ac3b6fcdc5a0ca32d10fedd79http://www.sapfans.com/forums/profile.php?mode=viewprofile&u=22754&sid=9f7a0f4ac3b6fcdc5a0ca32d10fedd79http://www.sapfans.com/forums/viewtopic.php?t=174021&start=30http://www.sapfans.com/forums/viewtopic.php?t=152996&highlight=jest&sid=9480c0b5f1907db894efb2b89dcfbb91#top