Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member181923
Active Participant
0 Kudos

<p>When I took the Enhancements and Mods course back in 2004, they never told me a little secret that all the pro's seem to know.</p><p>The little secret consists of two declarations:</p><p>DATA wa_structure(n) TYPE c VALUE '(program_name)structure_name'.</p><p>FIELD-SYMBOL <fs_stru> TYPE structure_name.</p><p>and one statement:</p><p>ASSIGN (wa_structure) TO <fs_stru>,</p><p>That's all there is to getting a hold of any piece of memory in any program in which you're executing an exit or a BAdI (assuming of course that you can figure out the name of the relvant progam, which isn't always as easy as it sounds.)</p><p>And of course, the ability to do this permits you to extend the "reach" of virtually any exit or BAdI that provides a convenient place for you to put some custom code.</p><p>For example, '(SAPLMEPO)ekko" gives you ekko (PO) data in the middle of an FM derivation BAdI, even though SAP isn't kind enough to pass the ekko structure to the BAdI. </p><p>So, should I demand my money back?</p><p>Well, one part of me says absolutely, because by not teaching me that trick, SAP sent me out to do battle with dragons using only a slingshot.  And I'm not as good at that as my Biblical namesake.</p><p>And the other part says, well - maybe it's really a trick that folks shouldn't learn until they've been "on the job" a while and are doing work that's sufficiently advanced enough to warrant some senior person clueing them in.  </p><p>Because if you know the trick too early, you lose incentive to find out how to do things the hard way, and that can be extremely instructive.</p><p> </p><p> </p>

17 Comments