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

Coding for an additional structure in ABAP Query

Former Member
0 Likes
567

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.

3 REPLIES 3
Read only

Former Member
0 Likes
452

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.

Read only

0 Likes
452

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.

Read only

Former Member
0 Likes
452

use the following function module you will get the required info.

BAPI_INFORECORD_GETLIST