‎2008 Mar 27 9:38 PM
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.
‎2008 Mar 27 9:44 PM
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.
‎2008 Mar 27 9:44 PM
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.
‎2008 Mar 27 9:44 PM
Hi,
Copy your code including the data declaration here.
Thanks,
Greetson
‎2008 Mar 27 10:00 PM
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