cancel
Showing results for 
Search instead for 
Did you mean: 

PLM- SAP Interface

Former Member
0 Kudos

Dear All,

I am facing problem while sending material master from PLM ( Teamcenter Enterprise) to SAP. I am sending data in 'Tax Classification' of material master, in four fields where all the fields are having same Field name and structure in SAP, as shown below

Country Tax Category T ax Classification

IN(hard coded) UTXJ(hard coded) 1(this is to be transferred from PLM)

IN(hard coded) JTX1(hard coded) 1(this is to be transferred from PLM)

IN(hard coded) JTX2(hard coded) 1(this is to be transferred from PLM)

IN(hard coded) JTX2(hard coded) 1(this is to be transferred from PLM)

Below is the coding In PLM

memset( sndstr ,' ', 310 ) ;

sndstr[311] = '\0' ;

/* Build string to be sent to Sap */

strncpy(&sndstr[0],mpMats[rec]->mmcMaterial,18);

strncpy(&sndstr[18],mpMats[rec]->mmcIndSector,1);

strncpy(&sndstr[19],mpMats[rec]->mmcMatType,4);

strncpy(&sndstr[23]," ",30);

strncpy(&sndstr[53]," ",40);

strncpy(&sndstr[93]," ",14);

strncpy(&sndstr[107]," ",38);

strncpy(&sndstr[145], plant, 4);

strncpy(&sndstr[149]," ",4);

strncpy(&sndstr[153]," ",3);

strncpy(&sndstr[156]," ",3);

strncpy(&sndstr[159]," ",29);

strncpy(&sndstr[188]," ",4);

strncpy(&sndstr[192]," ",1);

strncpy(&sndstr[193]," ",1); /* Engg/Design View */

strncpy(&sndstr[194]," ",1); /* Storage View */

strncpy(&sndstr[195]," ",1); /* MRP1 View */

strncpy(&sndstr[196]," ",1); /* MRP2 View */

strncpy(&sndstr[197]," ",1); /* Accounting View */

strncpy(&sndstr[198]," ",1); /* Purchase View */

strncpy(&sndstr[199]," ",1); /* MRP-3 View */

strncpy(&sndstr[200]," ",18); /*********Production Hierarchy**********/

strncpy(&sndstr[218]," ",15);/***********Mov. Avg. Price*******/

strncpy(&sndstr[233]," ",1); /*********Automatic PO*********/

strncpy(&sndstr[234],"X",1); /************ Sales-1 View Indicatior*********/

strncpy(&sndstr[235],"X",1); /************ Sales-2 View Indicatior*********/

strncpy(&sndstr[236],"0001",4); /*******Loading Grp********/

strncpy(&sndstr[240],"26",2);/*******Sales Division*****/

strncpy(&sndstr[242],"1",1); /*********Mat Stat Grp****/

strncpy(&sndstr[243],"02",2); /****Act Assignment Grp*******/

strncpy(&sndstr[245],"NORM",4); /******Item Category Grp***/

strncpy(&sndstr[249],"0001",4); /******Transportation Grp***/

strncpy(&sndstr[253],"X",1); /******Sales/Plant View Indicator***/

strncpy(&sndstr[254]," ",3); /******Planned Delivery Time***/

strncpy(&sndstr[257],"2080",4); /******Sales Organisation Indicator***/

strncpy(&sndstr[261],chnl,2); /***********Distribution Channel*********/

strncpy(&sndstr[261],"UTXJ$1$JTX1$1$JTX2$1$JTX3$1$",24);/********Tax Data For Tax category UTXJ,JTX1,JTX2,JTX3****/

hd = SapMatcr("MR",sndstr,&rcvstr,&sapmes); /******Call For Material Creation************************/

Whenever i am sending it is throwing error that Tax Category UTXJ is missing. Kindly tell me the solution. Where is the problem either in PLM Coding or SAP.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

It looks like there is no proper match code available in PLM for ‘UTXJ’ , please remove code from PLM and try, if its working fine than do proper customizing in PLM and add the Tax code ‘UTXJ’ .