cancel
Showing results for 
Search instead for 
Did you mean: 

How to Create pricing Condition Record for Purchase Info Record through IDoc INFREC01

sardarjani_shaik
Explorer
0 Kudos

i have created Purchase info record through IDOC INFREC01 but pricing condition record dint get updated. we are doing migration from SAP 4.7 to Ecc 6.0

i see some information from net they say to used COND_A01 but i dint understand how to link INFREC01 with COND_A01

can any one tell step by step how to create INFO record with condition records through IDoc.

Thanks,

Sardar Jani Shaik

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

This message was moderated.

JL23
Active Contributor
0 Kudos

the field VAKEY is actually the link to your info record.

This is a combination of vendor, material, purchasing org, plant , and info record indicator.

 

data:  begin of ZZVARKEYA,

        ZLIFNR like LFM1-LIFNR,

        ZMATNR like MARc-MATNR,

        ZEKORG like LFM1-EKORG,

        ZWERKS like MARC-WERKS,

        ZINFTYP like EINE-ESOKZ,

        end of zzvarkeyA.

the link from the info record to the condition is depending on the level of your info record

you can have an info record at purchasing org level, at plant level. And info records for material groups instead of materials. Based on that SAP uses either table A017; A018, A025 to establish the link to the condition tables.

With the right VAKEY comibination, COND_A finds the corresponding info record and creates an record in one of this tables (A017; A018, A025 )  and in the usual condition tables KONH and KONP

sardarjani_shaik
Explorer
0 Kudos

Hi Jurgen,

thank you fpr your time,

so how do i link INFREC01 to COND_A. i need to do custom IDoc

or after creating info record using INFREC01  then update price condition using COND_A

Please let me know in details.

JL23
Active Contributor
0 Kudos

you just do not link INFREC01 to COND_A  as it is not necessary

you load your info records with INFREC01 and later you load COND_A

you do not even need to log somewhere the created Inforecord number.

COND_A automatically posts the condition to the info record based in the values given in the E1KOMG-VAKEY field .

you have to download your conditions from source system. I usually do this in SAP to SAP migration with SQVI. , joining KONH and KONP (minimum). Based on KONH condition table field you select either conditions for loading into A017, A018 or A025 table.

Based on that info you have to put your VAKEY field value together.

sardarjani_shaik
Explorer
0 Kudos

Hi jurjen,

Thank you for your inputs, could you please let us know in which table the long text is maintained for inforecord and which Inbound IDoc need to be used tp migrate

JL23
Active Contributor
0 Kudos

Long text - any long text in SAP - is stored in table STXH and STXL.

the migration is actually included in INFREC01 IDOC, no need to do it with any other option, even it is possible using function module save_text

or via LSMW which I described in a blog:

Former Member
0 Kudos

Hi Sardar,

U can check the table EINA for long text.

Inbound Idoc  - INFREC01 or INFRECMASS01.

Regards,

Santhosh

JL23
Active Contributor
0 Kudos

where in EINA table should be long text?

sardarjani_shaik
Explorer
0 Kudos

which segment have the long text in INFREC01

and to extract PIR text what would be the key fields to pass in table STXH and STXL.

JL23
Active Contributor
0 Kudos

E1EALTH with E1EALTL for long text at general level

E1EELTH with E1EELTL for long text at organisation level

if you extract your data from old system by table download, then you have to use a small program calling FM Read_text for long text extraction.

I usually use the ALE method for this as described in my blogs:

http://scn.sap.com/community/erp/logistics-mm/blog/2013/05/30/lsmw-migration-with-idoc-method-and-us...

http://scn.sap.com/community/erp/logistics-mm/blog/2013/06/02/lsmw-migration-with-idoc-method-and-us...

0 Kudos

Thanks its working

Former Member
0 Kudos

Hi Jani,

A few day back explain by one user how to use IDoc for vendor and PO. Please see the below thread may be helpful.

http://scn.sap.com/docs/DOC-34785

Regards

Sanjeet Kumar