cancel
Showing results for 
Search instead for 
Did you mean: 

memory

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

HI NAGESWAR,

i have the values display in other program.

i wrote export for the values which i want to display in script.

but import command is not possible in for text element.

so i began to write souroutine to call these values.

how to write the subroutine.

how to call these values.

explaine me

urgent plese.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.