Skip to Content
0

how to use POP_GET_VALUES function module in VA01

Oct 23, 2016 at 04:46 PM

130

avatar image

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

10 |10000 characters needed characters left characters exceeded

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
1
* Please Login or Register to Answer, Follow or Comment.

4 Answers

sandeep patel Oct 27, 2016 at 04:56 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Simone Milesi Oct 28, 2016 at 07:11 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
sandeep patel Oct 31, 2016 at 07:17 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
sandeep patel Nov 02, 2016 at 09:43 AM
0

Hi Simone,

Please reply on my above comment .

Waiting for your answer.

Thank you

sandeep

Share
10 |10000 characters needed characters left characters exceeded