‎2006 Nov 22 3:21 PM
I am creating an ABAP query to extract the Purchase Inforecords prices. While linking EINA and EINE Iam able to extract the effective price. When there is a scaled pricing, I want to extract information from KONM or KONW tables. Howeever, can't find a quick answer.
I liked the function module ME_GET_INFORECORD_CONDITIONS that gives the scaled prices for a given PIR information.
I would like to create an additional structure in my abap query and extract this information.
Can some one please provide the coding: I tried the following after creating a new structure called addscale. This did not work. I have limited understanding of ABAP.
CALL FUNCTION 'ME_GET_INFORECORD_CONDITIONS'
EXPORTING
i_ekorg = eine-ekorg
i_esokz = eine-esokz
i_infnr = eine-infnr
i_lifnr = eina-lifnr
i_matnr = eina-matnr
i_matkl = eina-matkl
i_werks = eine-werks
i_vabme = eina-vabme
TABLES
tekomd = addscale.
‎2006 Nov 22 3:24 PM
Within the query there is a section wherein u can write ur own logic...So, try writing the logic in that part for ur requirement.
‎2006 Nov 22 3:30 PM
I am trying those code at the DATA portion of the coding, The same place you are referring to. I am getting syntax errors that addscale is not defined anywhere.
‎2006 Nov 22 3:29 PM
use the following function module you will get the required info.
BAPI_INFORECORD_GETLIST