Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Messing around with SAP table KONP

Hi all,

im trying to get this done:

Tables VBRK, VBRP, A305 and KONP.

For every Customer-Material combination there can be one or more Sales Prices (identified by the fields dateFrom and dateTo).

So I created a Key %Customer_Material_Key to link sales table and conditions table.

What i get now is this:

VBELNSales PriceDate_FromDate_ToRevenue
123451.501-11-201131-12-2013200
123451.601-01-201431-12-2014200
123451.6501-01-201501.06.2015200

Where there should be only one row and not three of course

So i need the the user to be able to select a date for the sales price.

For example, if the user selects 12-06-2012 the first sales price should be displayed (and therefore only the first row).

Can somebody help me?

3 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Don't you mean: "I want to get the correct sales price condition (period from-to) attached to the sales document based on the document date or creation date"?

Anonymous
Not applicable
Author

Hi Peter,

Almost. What i want is:

"I want to get the correct sales price condition (period from-to) attached to the sales document based on the date the User selects for the sales price condition"


Example: two conditions: 01-01-2012 to 31-12-2012: price is 1,23

                                      01-01-2013 to 31-12-2013 price is: 1,29


case 1: User selects 04-05-2012 as price date -->

VBELNPriceRevenue
123451,23300


case 2: user selects 02-03-2013 as price date --->

VBELNPriceRevenue
123451,29300

case 3: user selects 10-10-2005 as price date --->

VBELNPriceRevenue
12345NULL300

Hope this makes it clearer.

settu_periasamy
Master III
Master III

Hi,

May be check the Attachment, I created one variable and used as a calendar object..and the expression is

=sum({<Date_From={'<=$(=Date(vDate))'},Date_To={'>=$(=Date(vDate))'}>}[Sales Price])