Skip to Content
author's profile photo Former Member
Former Member

memory

hi experts,

Is export/import to/from memory ID id , would work in form(text elements) in se71. if it works ,give me the syntax.

thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 09:43 AM

    Hi Surendra,

    I dont think they work in Scripts.But i can provide u one solution.

    Usually we go for Subroutine pools for performing these operations.i.e u just call a subroutine in ur script & include the code whichever u want.I hope that will work.....

    Sy :-

    /: Perform subroutine1 In 'program1'

    /: Endperform.

    Here program1 is the subroutine pool,in that u write the code u want.

    Form subroutine1.

    .....

    .....

    endform.

    In this form,without any doubt u can put all types of ABAP commands.

    Reward points if useful.

    Pavan.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 10:54 AM

    Hi,

    It wont work in scripts . There are no such commanda you can use in script editor.

    If you are using text element then the field available in script then why do nyou need to exporta a value again.

    Regards,

    Nageswar.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      use the subroutines as follows.

      the following lines you ned to write in your script editor

      /:Perform get_text

      /: using &v_text&

      /: Changing V_text1& (You dont need to declare this field)

      /Endperform

      Using statement is must even you dont have parameters to be passed (So just use some dummy variable)(

      In your subroutine code as below.

      form get_text table in_tab structure itcsy

      out_tab structure itcsy.

      import p_var from memory id ID. ( I dont remember the syntax)

      read table out_tab index 1.

      if sy-subrc eq 0.

      out_tab-value = p_var.

      endif.

      modify out_tab index 1.

      endform.

      ITCSY is structure that will contain Name of the variable and corresponding value.

      reward points if useful.

      Regards,

      Nageswar

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.