Application Development 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: 

SET & GET Parameter id Problem?

Former Member
0 Kudos

The tcode I am using is Fb03.

I did a change in MF05LFB0,

set parameter id 'BUKRS' field rf05l-bukrs.

I can see rf05l-bukrs value in debugging at this point.

When I go to FB03-->attachemnt list --> change.

I have done a change in SAP class CL_GOS_ATTACHMENT_LIST in method IF_SREL_CTXMENU~EXECUTE_COMMAND.

The change is as to get the set value.

Get parameter ID 'BUKRS' field lv_bukrs.

I go in debugging till this statement but SAP doesn't get the value here.

What could be the cause of this?

Thanks & Regards,

YJR

Message was edited by: Joseph Reddy Yeruva

1 ACCEPTED SOLUTION

manuel_bassani
Contributor
0 Kudos

Hi,

I think it's better to use ABAP memory instead of SAP memory in those cases:

Try to do use

export ...to memory id

import .... from memory id

From F1 "help" on SET PARAMETER statement:

**********************************************

Notes:

Do not use SAP memory as a temporary storage area, since parallel sessions belonging to the same user all use the same memory area.

**********************************************

Please remember to reward points for helpful answers and to close the thread if the problem is solved.

Regards, Manuel

5 REPLIES 5

Former Member
0 Kudos

Check if you have set the parameter id after the field 'rf05l-bukrs' is populated with a value in the program. If not then place the set statement after the population of the field with a value.

NAveen.

manuel_bassani
Contributor
0 Kudos

Hi,

I think it's better to use ABAP memory instead of SAP memory in those cases:

Try to do use

export ...to memory id

import .... from memory id

From F1 "help" on SET PARAMETER statement:

**********************************************

Notes:

Do not use SAP memory as a temporary storage area, since parallel sessions belonging to the same user all use the same memory area.

**********************************************

Please remember to reward points for helpful answers and to close the thread if the problem is solved.

Regards, Manuel

0 Kudos

Hi,

I tried using IMPORT and EXPORT also but am facing the same problem. I guess the class object is interrupting.

Regards,

Joseph

0 Kudos

if you lose the value from "export from memory" statement, maybe the method is called in an update task processing.

statement "export to shared buffer indx(ZZ) id..." could solve the problem. it a cross-transaction application buffer... (instead of "ZZ" you can use other values)

let me know if it works

Regards,

Manuel

0 Kudos

Hi Manuel,

It worked and Thanks a Tonne.

Thanks & Regards,

YJR