Skip to Content
-2

EXPORTING LIST TO MEMORY with PERFORM IN PROGRAM

hello ,

how can I perform a FORM form another program and then get variables values that only know in the scope of that FORM .

I tried LIST_FROM_MEMORY but I guess this only works with submit prog EXPORTING LIST TO MEMORY .

so anyone have an idea ?

NOTICE : the FORM is in std program so I'm not supposed to change anything there .

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 18, 2017 at 10:20 AM

    Hi you can use what is called a dirty assign to access memory from other stacks.

    Check this blog on the subject https://blogs.sap.com/2013/05/30/using-dirty-assigns-in-practice-using-calling-variables-for-indirect-wagetype-evaluation/

    Kind regards, Rob Dielemans

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 18, 2017 at 04:28 PM

    It's a bad idea to call a routine from a standard program and even worse is to rely on its local variables.

    "How do I get to the local variables" is really like asking "how do I break into someone's house?" Clearly they don't want you there, otherwise they would've invited you or left the door open. If the routine authors wanted to expose that data then they would've designed the routine that way or created an API.

    Short answer to your question is you can't do that without making a modification or enhancement in the standard routine. I.e. either breaking the lock or pushing someone through the window to let you in, following the house analogy.

    If you could explain in more detail what are you trying to achieve exactly we might be able to advise of an alternative solution.

    Add comment
    10|10000 characters needed characters exceeded