2013 Jul 16 3:01 PM
Dear All,
SAP memry id is not working. Kindly help me to solve this issue.
I created the Custom SAP Parameter Id. I set the parameter When i try to get the parameter the value is not coming. Please find the syntax below. Please help me to solve this issue.
Please find the syntax below i used in my program.
I Set the parameter in the Badi.
SET PARAMETER ID
'YER' FIELD IV_OBJECT_KEY.I Get the Parameter in the Webdynpro Program.
GET PARAMETER ID
'YER' FIELD LV_PERNR.Thanks & Regards,
Ashok.
2013 Jul 16 3:20 PM
I think you can't use the parameter ID with WD, it's not a dialog as dynpro
The best approach, is to put the information in the URL, have a look of this thread : http://scn.sap.com/message/7833407
regards
Fred
2013 Jul 16 3:22 PM
Hi,
Are you trying to export some data from BADI and import the same in your web dynpro application ? If it is so, then please use EXPORT .. MEMORY ID and IMPORT ... FROM MEMORY ID, statements.
Regards,
Kartik
2013 Jul 16 3:24 PM
hello,
First of all, did you check if the parameter id is set ? If set you should be able to get the parameter id.
OR
Try this
Badi -
v_indxkey = 'badi'.
EXPORT it_data TO DATABASE indx(za) ID v_indxkey.
WDA -
v_indxkey = 'badi'.
IMPORT it_data FROM DATABASE indx(za) ID v_indxkey.
DELETE FROM DATABASE indx(za) ID v_indxkey.
This is more suitable if there are tables that you need to put in memory but you could try with a single variable too.
best regards,
swanand
2013 Jul 16 4:43 PM
Hi,
Create a parameter id in SM30 table TPARA. ex YTEST_PID.
Then you can use setparameter id and get parameter id.
Ex:
DATA : lv_value TYPE char10.
lv_value = 'ABCDE10'.
SET PARAMETER ID 'YTEST_PID' FIELD lv_value.
2.
REPORT ytest_n_ps.
DATA: lv_char type char10.
Get parameter id 'YTEST_PID' field lv_char.
Write lv_char.
2013 Jul 17 1:25 AM
Hi,
First the parameter ID should exist in TPARA and the memory location has to be in scope. This does not happen I think when you try GET in Webdynpro program.
Best is to use a table to set your value and the read it in some table that you say maintain. IMPORT.. EXPORT and GET..SET are all subjective of the scope of availability of the memory location.
Cheers,
Arindam