Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Exporting a variable

Former Member
0 Likes
514

Hi

I am using the transacction XD02, the user put the value on the bukrs field and goes to another dynpro, i need to use the bukrs value I use EXPORT rf02d-bukrs TO MEMORY id 'X_BUKRS' , and in the second dynpro i put MPORT ls_bukrs FROM MEMORY ID 'X_BUKRS' but i can't obtain the value of the variable. I need help to get these value.

Thank You.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
489

Are you using a user exit?

Try this.


data: l_text(50) value '(SAPMF02D)rf02d-bukrs'.
field-symbols <fs> type rf02d-bukrs 

Assign (l_text) to <fs>.
if sy-subrc EQ 0.
"do whatever you want with <fs>
endif.

3 REPLIES 3
Read only

Former Member
0 Likes
490

Are you using a user exit?

Try this.


data: l_text(50) value '(SAPMF02D)rf02d-bukrs'.
field-symbols <fs> type rf02d-bukrs 

Assign (l_text) to <fs>.
if sy-subrc EQ 0.
"do whatever you want with <fs>
endif.

Read only

Former Member
0 Likes
489

Hi,

Copy your code including the data declaration here.

Thanks,

Greetson

Read only

Former Member
0 Likes
489

her u need to use

SET PARAMETER ID pid FIELD f. and

GET PARAMETER ID pid FIELD f.

For XD02 transaction , BUKRS field has Parameter ID.

u need to get that value by using GET PARAMETER ID pid FIELD f. and set this value to another dynpro field value.

to find the parameter ID of the field

goto XD02 transaction and place the cursor on Company code (BUKRS) field and press F1 button.

u get the Performance Assistant screen. here press Technical Information push button on the top.

Now u will see Technical Information pop up . In this u have the Parameter ID BUK in Field Data box.

use this parameter ID to populate the value in another dynpro screen using above SYNTAX.

reward if helpful

raam