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

Pass Parameter ID from Main Program into Function Module

Former Member
0 Likes
743

For material, there is a fileds product hierarcy (MARA-PRDHA) on Basic view, but we also append the same field in materail sales view (MVKE-PRDHA) and put on the screen of sales view, so the user want the PRDHA on sales view could be updated automatically when it has been changed on Basic view. On the screen of basic view, the field MARA-PRDHA is set as parameter ID 'VPR', the sales views are updated in function module MVKE_SET_DATA, so how can I get the value of parameter ID 'VPR' in MVKE_SET_DATA to populate the value in Sales View?!

Does parameter IDs and their values locate in global memory?!

if yes, why i can't get it with: GET PARAMETER ID "VPR' <f>?

Any idea?!

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
549

Hi,

To use GET, there must be SET used some where else. What I mean is

GET PARAMETER ID "VPR' <f>?

this statement will fetch value only if in some program you has this statement and this program come before the program where you has GET

SET PARAMETER ID "VPR' value <VALUE>

Reward points if useful.

Regards,

Atish

Read only

Former Member
0 Likes
549

Yes, this is SAP standard program for MM41/MM42 (Article material), I can't change the program and the screens are different for basis and sales views. So, I am just wondering whether there is a way to pass the parameter value of product hierarchy on basic view to any other screen process when it's updated on basic view.

The problem is the program check every single table (views) in individual function module, so it's hard to pass any updating (not updated) value from any other views.

Thanks

Read only

0 Likes
549

Hi Leo,

I am afraid, but I don't think there is some other way than the one above. Try if you have some Exits where you can write above code.

Regards,

Atish