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

SAP Memory Id is not working

Former Member
0 Likes
1,453

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.

5 REPLIES 5
Read only

FredericGirod
Active Contributor
0 Likes
854

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

Read only

Kartik2
Contributor
0 Likes
854

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

Read only

Former Member
0 Likes
854

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

Read only

NAeda
Contributor
0 Likes
854

Hi,

Create a parameter id in SM30 table TPARA. ex YTEST_PID.

Then you can use setparameter id and get parameter id.

Ex:

  1. REPORT  ytest_n.

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.

Read only

arindam_m
Active Contributor
0 Likes
854

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