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: 

how to use POP_GET_VALUES function module in VA01

former_member258592
Participant
0 Kudos

Hi experts..

I want to use pop_up window at sales order header data level when i will enter sold to party then that popup should come, for that where I have to call this pop_up in Program SAPMV45A by use of implicit enhancement and how to pass that pop-up filed value in select query(in Where condition)..

Thank you

sandeep

5 REPLIES 5

SimoneMilesi
Active Contributor

Hi Sandeep,

sorry but i cannot understand what do you mean with

and how to pass that pop-up filed value in select query(in Where condition).

For the "where", it's easy to find:

  1. Enter in VA01
  2. In the SO main screen, put /H in the command field and press enter
  3. Add/change a Sold to Party
  4. The debugger will start and you can see the form, the includ and all the other informations you need to place your enhancement

former_member258592
Participant
0 Kudos

Thank you Simone Milesi,

My requirement is that , I have to fetch data from custom table at Sales order header level data and pass this data to item level, for that I have to add fields at header level and that we can done thorough access key in screen 8309, but i won't use access key.

so I was thinking about, one pop-up window should be come at header level when I will enter sold to party in VA01, for that I have searched we can generate pop_up by use of function module pop_up_get_value.

is it possible ? if possible then where to attach this pop_up_get function module in SAPMV45A..

Thank you

Sandeep

SimoneMilesi
Active Contributor
0 Kudos

I think you are overcomplicating your work.

You have to fill some Item or Header fields? Because you say you add them at header level and that you have to pass them to item level.

So i'm still a bit confused.

Anyway, you do not have to enhance standard code, but you can rely on the old and reliable user-exits (check include MV45AFZZ).

There is the event/form userexit_field_modification: put here a break point and check if it's triggered when you change your Sold-to-Party (or any field you want to trigger).

Show your popup (but if you have to store at header level, add the custom screen for Customer Data B, there are plently of examples and tutorials if you search)

Then in userexit_save_document_prepare i would work on SO items according the value.

former_member258592
Participant
0 Kudos

Thank you so much Simone for understanding my requirement.

#1 I am new in SAP and working on Dummy IDES system and trying to learn new things and working on that.

#2 I can't add field in Tab Customer Data B because that require Access key.

#3 I am trying to explain my requirement in little bit depth, Suppose We have to take the value of freight charges value from custom tables and that charges will be calculate based on delivery location and weight of consignment, when you will enter sold to party in VA01.

#4 For location(From location and To location) or weight, We have to add three fields at Sales Order header level for that I am trying to using Pop_up window of three field from that we can fetch data from custom table but I can't add filed without use of access key.

#5 If i will enter sold to party in VA01 then that pop-up should come with 3 fields, if will enter value in pop_up then fetch the freight charges value from custom table then pass that value(KBETR) to item level and that will be final price(net value).

#6 But where I have to call that Popup_get_value function module in SAPMV45A(Means in which exit) and there I can write my select query also.

I hope you will understand my query.

Thank you

sandeep

former_member258592
Participant
0 Kudos

Hi Simone,

Please reply on my above comment .

Waiting for your answer.

Thank you

sandeep