Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
MP - As I mentioned, that won't help. The table you want is not populated until AFTER the user exit fires, if and only if the user exit does NOT assign an identifier. Dave From: MP Marmion via sap-dev [mailto:sap-dev@Groups.ITtoolbox.com] Sent: Thursday, July 15, 2010 9:55 AM To: Dave Thornburgh Subject: RE:[sap-dev] Is there a way to access a global variable in a SAP customer function that is not passed or updated in the customer function? Posted by MP Marmion (Technical Systems Associate) on Jul 15 at 12:51 PM Mark as helpful Hello, Thank you. SAPLSSTAG(G_IDENTIFIER) is available in the user exit. If I leave off the TYPE parameter from the FIELD_SYMBOLS and the ASSIGN statements, the value of the variable assigned is the last record of table G_IDENTIFIER inserted in ST_LOCATION_IDENTIFY. I have tried creating TYPES TABLES and assigning with this data type. This causes an ASSIGN_TYPE_CONFLICT. I have also tried different versions of the ASSIGN with the CASTING parameter and then get a ASSIGN_CASTING_ILLEGAL_CAST runtime error. Do you know if the result of the assign is allowed to be a table? If so, should the TYPE be on the FIELD_SYMBOLS or ASSIGN table? Regards, MP ---------------Original Message--------------- From: sapwes Sent: Wednesday, July 14, 2010 4:25 PM Subject: Is there a way to access a global variable in a SAP customer function that is not passed or updated in the customer function? > check in debug while in the user exit that you can see the variable by entering the following in the variable column > (SAPLSTAG)G_IDENTIFIER > If that does pick it up the in the user exit you can us field assignment to get the value locally. > FIELD-SYMBOLS <FS> TYPE ANY. > ASSIGN ('(SAPLSTAG)G_IDENTIFIER') TO <FS>. > IF sy-subrc = 0. > *to avoid short dump if assignment fails. > *do your thing with the data here > ENDIF. > > HTH > Wes | __.____._ Copyright © 2010 Toolbox.com and message author. Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251 | | Dave Thornburgh SAP Development Enthusiast
Contributed 100 posts in a group to earn a Bronze Achievement Related Content White Papers In the Spotlight _.____.__ |