We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE: RE:[sap-abap] Standard Program Enhancement

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by TerryB (Senior SAP Developer)
on Oct 7 at 3:08 PM
I like that SYSTEM_CALLSTACK idea. The thing I love most about this forum is that I learn new stuff all the time!
Cheers,
Terry

---------------Original Message---------------
From: USER_2491202
Sent: Friday, October 07, 2011 1:27 PM
Subject: Standard Program Enhancement

An alternative to import/export you could try to read the calling stack to check for the calling programs. I've used this in a pricing requirement.

data: lt_callstack type sys_callst.
field-symbols: <ls_cs> like line of lt_callstack.
refresh lt_callstack.

call function 'SYSTEM_CALLSTACK'
importing
et_callstack = lt_callstack.

loop at lt_callstack assigning <ls_cs>
where progname = 'pgmtocheckfor'.
"<do something like set a flag>
exit.
endloop.

Regards,

Margaret Schumacher
Sr. Programmer Analyst - SAP

__.____._
Copyright © 2011 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Mark as helpful
View this online
  
TerryB
SAP ABAP Enthusiast

Contributed 100 posts in a group to earn a Bronze Achievement
Popular White Papers

In the Spotlight
Have you explored the Toolbox.com Marketplace? Learn more and access a free course now.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language