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

SET & GET Parameter id Problem?

Former Member
0 Likes
1,085

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
Read only

manuel_bassani
Contributor
0 Likes
765

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
Read only

Former Member
0 Likes
765

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.

Read only

manuel_bassani
Contributor
0 Likes
766

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

Read only

0 Likes
765

Hi,

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

Regards,

Joseph

Read only

0 Likes
765

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

Read only

0 Likes
765

Hi Manuel,

It worked and Thanks a Tonne.

Thanks & Regards,

YJR