cancel
Showing results for 
Search instead for 
Did you mean: 

PIR no and conditon records.

Former Member
0 Kudos

hi Everyone,

how can i check the no of condition records a PIR record number is having ??

the Requirement is i hav to migrate the PIR records from 4.7 to 6.0

i hav a BDC code which is migrating the PIR records if it is having one condition record

but if i am having more than one it is still migrating only one..

i want to check how many PIR records i have, in which there are more than one condition record present? so dat if the number is small i can manually update orelse i vll write the code for it.

Can you suggest me a table where i can see the PIR no and and condition records assigned to it.

it would be immense helpful.

i knw link between pir and cond rec is A25 ,28, 29, etc etc

but how do i search them ? which table and wat selection criteria??

thanks and regards

venkat

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

The condition records can be fetched from tables KONH, KONP and KONV .

Regards,

Mansi.

Former Member
0 Kudos

Hi Mansi,

i understand dat we can see the condition records in the KONH KONP and KONV tables

but wats the link between the pir nos (infnr) and condn rec no (knumh)

i wanted to check the no of conditon records for a particualr PIR record (infnr)

regards

venkat

GauthamV
Active Contributor
0 Kudos

This condition may help you.

EINA-INFNR = EKPO-INFNR

EKPO-EBELN = EKKO-EBELN

EKKO-KNUMV = KONV-KNUMV

KONV-KNUMH = KONH-KNUMH.

Answers (1)

Answers (1)

kesavadas_thekkillath
Active Contributor
0 Kudos

MAKE USE OF fM 'ME_GET_INFORECORD_CONDITIONS'

CHECK THIS SAMPLE PROG.

  • I_VABME =
PARAMETERS:PA_INFNR TYPE INFNR. DATA:BEGIN OF W_EINE OCCURS 0, EKORG TYPE EKORG, ESOKZ TYPE ESOKZ, WERKS TYPE WERKS, END OF W_EINE, BEGIN OF W_EINA, INFNR TYPE INFNR, LIFNR TYPE LIFNR, MATKL TYPE MATKL, MATNR TYPE MATNR, END OF W_EINA. DATA:T_EKOMD TYPE TABLE OF EKOMD. SELECT SINGLE INFNR LIFNR MATKL MATNR INTO W_EINA FROM EINA WHERE INFNR = PA_INFNR. SELECT SINGLE EKORG ESOKZ WERKS INTO W_EINE FROM EINE WHERE INFNR = PA_INFNR. CALL FUNCTION 'ME_GET_INFORECORD_CONDITIONS' EXPORTING i_ekorg = W_EINE-EKORG i_esokz = W_EINE-ESOKZ i_infnr = W_EINA-INFNR i_lifnr = W_EINA-LIFNR i_matkl = W_EINA-MATKL i_matnr = W_EINA-MATNR i_werks = W_EINE-WERKS tables tekomd = T_EKOMD .

Former Member
0 Kudos

Hi all,

by the above mentioned method i vll get all the condition records for a PIR

i want to check only those PIR which are having two or more Condition records.

there are many PIR records i cant check each one manually.

how do i acheive this.??

kesavadas_thekkillath
Active Contributor
0 Kudos

CHECK THE COUNT OF THE INTERNAL TABLE .

DESCRIBE TABLE EKOMD LINES VLINES.

VLINES HOLDS THE COUNT !!!!