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

How to get vbkey from memory?

Former Member
0 Likes
924

When I push save button in the T-code CJ20N (project builder). I want to get the vbkey in my BADI. How can I do? Thanks a lot

When I push save button in the T-code CJ20N (project builder). I want to get the vbkey in my BADI. How can I do? Thanks a lot

4 REPLIES 4
Read only

Former Member
0 Likes
805

Which badi are you using?

Check the interface of the badi method you are using, (Importing parametters).

Regards,

Ravi

Read only

0 Likes
805

Thank u for ur reply

The BADI I use is WORKBREAKDOWN_UPDATE

I have checked the BADI import parameter, there is not such a parameter.

And this time the vbhdr record has not been created in table vbhdr.

So I think the only way to get the current vbkey is from memory.

Can u help me?

Read only

0 Likes
805

Hi Simon,

If you know the name of the GLOBAL VARIABLE that the main program is using, then you can use the following statement to get its value.

ASSIGN ( '(<main program name>)<Variable name>' ) TO lv_variable.

http://www.sapdevelopment.co.uk/enhance/enhance_fsymbol.htm

Regards,

Ravi

Read only

0 Likes
805

Great appreciate for ur reply.

I'm sorry that maybe I am too stipuid that I am still confused.

I don't know the name of the GLOBAL VARIABLE and I only know that I want to get the vbkey from memory. Even I don't know for which memeroy ID I can get the vbkey value.

My msn is : [email protected]

Would you like to help me? I am so despair and helpless.

Thanks a lot.