cancel
Showing results for 
Search instead for 
Did you mean: 

IDoc

Former Member
0 Kudos

Hi,

I am new to SAP PI.

I am working on a message mapping that is between IDoc to External Definition,that is ,XSD.

Now the IDoc structure is changed,means it has removed one field that was not being used.

The ABAPer has done the changes in the ABAP side and released the IDoc.

Now I need to import it into PI.

Can I replace the source IDoc in the current mapping without changing the mapping at all?

Also,do I need to make any changes in the Idx2 as I need to delete the metadata for the IDoc and upload it again?

Please tell me the above things in sequence so that I can follow them sequentially.

Thanks,

Gayatri

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

If field added at lower level segment it is not going to affect anything in mapping, where every you mapped deleted field logic to be altered.

then deplete metadata and import it once again.

Regards,

Raj

Answers (3)

Answers (3)

anupam_ghosh2
Active Contributor
0 Kudos

Hi Gayatri,

1. re -import the idoc in PI

2. Activate the idoc structure.

3. Update the message mappings which involvs the idoc.

4. Activate the mappings and corrosponding interface mapping.

5. Delete metadata of the idoc using idx2 transaction.

If you run the scenario, the idoc metadata structure will automatically get updated so re-import of idoc metadata using IDX2 is not mandatory step.

Hope this solves your problem.

regards

Anupam

Former Member
0 Kudos

Thanks Rahul,Raj Sekhar,Krishna,Anupam for your replies,

1. re -import the idoc in PI

I will reimported the changed IDoc in ESR.

2. Activate the idoc structure

.

I will activate the imported IDoc in Imported Objects of ESR.

3. Update the message mappings which involvs the idoc.

How to update the mapping.

Do I need to replace the existing source IDoc structure in the mapping by reimporting the IDoc from the imported objects.?

Or cache refresh will also work?

Or some other way to achieve it.?

The field removed from the old IDoc structure is not used in the message mapping?

4. Activate the mappings and corrosponding interface mapping

.

Please tell me the point 3 so that I can activate the mapping.

5. Delete metadata of the idoc using idx2 transaction

.

I am told to do the following thinngs in IDX2.

A.Delete the metadata for this IDOC.

B.Upload the new metadata for this IDoc.

Can you please elaborate it in detail if possible with weblogs with all the procedures?

Thanks,

Gayatri

Former Member
0 Kudos

Hi,

You need to make sure:

1. Update IDOC meta data in IDX2 in PI

2. Your existing mapping will not be affected, make sure all field mappings are in place.

regards,

ganesh.

Former Member
0 Kudos

Hi Ganesh,

Thanks for the reply.

1. Update IDOC meta data in IDX2 in PI

So I need not reimported the IDoc in ESR and need not reimport it in message mapping as the source structure,right?

How to upload the metadata in IDX2?Can you please elaborate it step by step or if possible with the weblogs?

2. Your existing mapping will not be affected, make sure all field mappings are in place.

So I need not reimported the IDoc in ESR and need not reimport it in message mapping as the source structure,right?

Thanks,

Gayatri

Former Member
anupam_ghosh2
Active Contributor
0 Kudos

Hi Gayatri,

Here are answers to your questions

How to update the mapping.

Do I need to replace the existing source IDoc structure in the mapping by reimporting the IDoc from the imported objects.?

Or cache refresh will also work?

Or some other way to achieve it.?

The field removed from the old IDoc structure is not used in the message mapping?

Ans) once you activate the idoc, the message mapping automatically will show the new idoc structure. Cache refresh not required. The field being removed is not being used in mapping, thus please try opeining the message mapping if you do not see any error message then your message mapping is perfect and no need to do anything further. If your message mapping is showing some errors, then just re-activate the mapping. How to reactivate? If you open the message mapping in IR in topmost menubar which contains menu's like message mapping,Edit, view you will find a button called "switch between Display and edit modes" (it comes with a smbol of pencil). Just click it twice and activate the message mapping.

Now open interface mapping, I hope you will not find any error here else follow same steps as message mapping.

Finally use transcation idx2 and delete idoc metadata. Now coming to your other questions

I am told to do the following thinngs in IDX2.

A.Delete the metadata for this IDOC.

B.Upload the new metadata for this IDoc.

Can you please elaborate it in detail if possible with weblogs with all the procedures?

ans) Once you give idx2 command an window opens. You will see names of loaded metadata. If you click each metadata, you will find a list called "idoc types". Click on idoc types list and find the basic type of the idoc you want to delete. Once you find your idoc, go to menubar and select delete button (dustbin like symbol). You will be prompted yes /no . press yes and idoc metadata gets deleted.

As I said earlier no need to upload new metadata again, just run the scenario and check in SXMB_MONI, the payload structure.

I am sure it will show you new idoc structure.

regards

Anupam

Former Member
0 Kudos

Thanks Ganesh and Anupam,

So the conclusion can be:

1.I need to reimport the IDoc in ESR and reactivate it.

2.Then I need to open the message mapping,if it will reflect the newly added IDoc structure over there.

If it shows any error,then I should reactivate it as mentioned by Anupam.

Please let me know whether I am correct or not over these points.

Also,I have a few questions.

1.Suppose reactivation of the message mapping does not work,then do I need to refresh the cache?If so,then how to do it?

2.

As I said earlier no need to upload new metadata again, just run the scenario and check in SXMB_MONI, the payload structure.I am sure it will show you new idoc structure.

After keeping the cursor on the IDoc name ,and deleting the metadata is applicable for the single IDoc field change as well,right?

Also,how to upload the metadata manually?

Thanks,Gayatri

rajasekhar_reddy14
Active Contributor
0 Kudos

Gayatri,

your problem is very simple,

as i already mention re-import idoc structure once again in PI and activate it once it done delete meta data and import meta data once again using IDX2.

now coming to mapping no need to change anything . it will work as expected and i dont think you will face any problem..(no need to activate mapping once again).

Regards,

Raj

anupam_ghosh2
Active Contributor
0 Kudos

Hi Gayatri,

your first question

"Also,I have a few questions.

1.Suppose reactivation of the message mapping does not work,then do I need to refresh the cache?If so,then how to do it?"

ans) Activation of mapping is only required if your message mapping is giving errors. In your case I don't think you are going to face any error. Refresh of cache will not be required in your case.

2.After keeping the cursor on the IDoc name ,and deleting the metadata is applicable for the single IDoc field change as well,right?

ans) yes that's right. At this juncture, there is an important point,Please search all "idoc types" for your idoc basic type, its possible that you might find same idoc basic type in multiple locations. Delete each of the entries.

Also,how to upload the metadata manually?

ans) I have faced this situation multiple times. I never uploaded any metadata. Once I ran the scenario metadata got uploaded automatically. Thus no need to import metadata once again.Still if you wanna re-import metadata again, on the same menubar there is a button called "create". Click on the button and provide idoc basic type details and system details from where to import (sometimes this information is not required). Click OK and new metadata will get imported.

Finally I feel once you start working on the scenario, you will find answers to all your questions yourself, else forum is always there.

regards

Anupam

Former Member
0 Kudos

Hi,

1. re-import idoc structure into PI under imported objects and activate then coming IDX2 delete meta data and import meta data using IDX2.

2. Coming Message Mapping ,Your existing mapping will not be affected. then all steps you done you need to check cache.

regards,

ganesh.

Former Member
0 Kudos

I think a simple meta-data refresh should do ..

Best Regards

Krishna

Former Member
0 Kudos

Yes .

1. Remimport the idoc .

Activate it .

Make sure the cache is all green .

Check if the newly added fields are there .

2.Delete the metadata from IDX2

This should do it .