cancel
Showing results for 
Search instead for 
Did you mean: 

Can We Add Some More Fileds To the Imported IDOC ??

Former Member
0 Kudos

Hi All,

Can We Add Some More Fileds To the Imported IDOC ??

If I Imported IDOC to IR. But I Want to Add Some More Fields To IDOC.

Then Can I Go For this Process ??? Is This is Correct ???

Please Correct Me If Iam Going Wrong

1) Open the Imported IDOC in IR

2) Export it as XSD File in to your Local Machine

3) Add Necessary Fields & Save it

4) Come to IR And Import it into external definition

Is this is the Correct way of Doing ???

If Not What is the Problem in Doing This ??

Regards

Vamsi

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

Hi all,

This may not be the correct post to ask this question, but hopefully someone will be kind enough to answer my question or point me in the direction to obtain the answer I need.

Question = I have a current message mapping where I received an xsd for the target data and I am using an Idoc for the source data.

The new requirement is to add new fields to both the source Idoc and the target xsd.

I am new to PI and have tried to find information on how to add new fields without losing the current mapping code I have in place.

These are the new field I need to add to the target xsd:

<reference>

<type>MaterialGroupDescription</type>

<value>Footwear Components</vale>

</reference>

I understand that the Idoc will need to be updated in SAP, once done how do I get the updated idoc with the new field to show in my current map?

I have been unable to find a reference document explaining this process.

also how to I update the target with a new field so that it shows in my current map, I have not been able to find a reference document that describes this procedure.

Thanks in advance,

Keith

Former Member
0 Kudos

Hi,

Well the solution to the problem is you have to make changes on the R/3 end.

Have to copy the exsisting <IDOC> to Z<IDOC> and then add segements to it.

Yeah you need to import the Z<IDOC> in XI.

<b>Cheers,

*RAJ*</b>

Former Member
0 Kudos

Hi Rajesh,

Then What We Call those Steps Which I Mentioned At First Itself.

Is There any Process Like that Which I Mentioned.

Please let me Know

Regards

Vamsi

Former Member
0 Kudos

Hi

the steps which you have mentioned in the begginning will be done when you want to make changes in a xsd file which you have imported.

Thanks

Former Member
0 Kudos

Hi,

That is Okay,

Then What is the Difference Between Those Two Processes

When We Wil go for Z<IDOC> Method

And When We Will Go For the Steps Which I Mentioned At First

Regards

Vamsi

Former Member
0 Kudos

OK,

let me say it moreclearly, since IDOCs from R/3 systems are always imported chages must be made in R/3 vie enhancments or zIDOCs as i wrote above (BTw, same goes for RFC structures - they should only be changed in R/3 and reimported, never changed in IB).

changes to XSD are done when you send a message to a third party system that only give you an XSD and you can play with it all you want or make changes in coordiantion with the other system.

will be glad to help if there is any more questions,

please reward points etc...

Uri.

Former Member
0 Kudos

Hi,

If You Make Changes in XSD Means Then How It Will be Reflected in R/3

That is Not Possible Naaa

So Modifying the XSD Process is Nothing Use . Am I Right ????

Regards

Vamsi

Former Member
0 Kudos

Correct Vamsi, there is no use to changing XSD when dealin with RFC or IDOCs.

Uri Lifshitz.

Former Member
0 Kudos

Hi

XSD is not related to R/3, so why will the changes be reflected there.

Modifying an xsd is a personal requirement.When an existing xsd does not have all fields you have, you will add, remove, etc according to your needs.

Thanks

former_member181959
Contributor
0 Kudos

Hi,

Generally we go for IDoc enhancement or custom IDoc development for your requirement.

I guess your approach wont work. Correct me if i am wrong.

Hope this helps.

-Prasad Babu.

Former Member
0 Kudos

Hi,

we can't do that....

vasanth.

Former Member
0 Kudos

Hi

No not at all.This is not the correct way to add some more fields.If at all you want to add more fields, you need to create a new version of the existing iDoc at the R/3 side.You must ne knowing about Basic and Enhanced iDocs.Then import the iDoc you have changed.After importing you cannot make any changes to the existing structure.

Thanks

Former Member
0 Kudos

Hi,

yes , you are right.

But how can we replicate the changes in R/3...

vasanth

Former Member
0 Kudos

Hello Vamsi,

That is NOT the correct way to play around with IDOCs.

the correct way is to create an enhancement to an exiting IDOC (this is done on the SAP R/3 side) after you craeted an enhancment you reimport the IDOC in XI from the R/3 and then you have a new structure with the new fields you need.

worst case scenario you can define a new IDOC type just with the fields you need.

you can check out the SAP library at http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm

on how to do that.

Have a good one,

Uri Lifshitz.

Former Member
0 Kudos

Hi Vasanth,

Yes, Here My Doubt is Also Same

Please Let Me Know How those Changes Will be Replicated in R/3

Regards

Vamsi

former_member184543
Active Participant
0 Kudos

Sorry I misinterpreted your query. I thought you wanted to extend the fields in IR and use them..

If you need to extend the fields in IDoc.You will have to write a Z IDOC for extending the field pal. Then import and use..

Thanks

Sanjo

Former Member
0 Kudos

Hi ,

What is the Difference Between those Two Methods

extend the fields in IR and use them..

Adding the Fields to IDOC

Regards

Vamsi

former_member184543
Active Participant
0 Kudos

Hi,

You cannot add into the import objects more fields. But you can save the Idoc structure imported from SAP and save it as an XSD. Add more fields and import it as an ED for your purpose.. Your steps are correct. Follow them..

Thanks

Sanjo

Former Member
0 Kudos

Hi,

follow the same procedure as you mentioned.

Regards,

S.RamNarender