Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IDOC Segment Adding a new field

Former Member
0 Likes
9,624

Hi all!

My disclaimer: I know less than nothing about IDOCs. So hopefully I lead you down the right path. I have searched SDN and then tried google. As far as I can tell I've gone thru the right steps. But since it isn't working I must have skipped a step.

Here's what I've done:

1. Changed the segment via WE31. I had to cancel the activation. So I activated it again. It did generate a change request.

2. Updated the custom function module. Hard coded a value into that field just to see if it would work.

Tested it by running the invoice transaction. I see the IDOC with all the fields except for the one I added.

Next:

1. Cancel the activation on WE31.

2. Cancel the activation for the Object via WE30.

3. Activate the segment via WE31.

4. Activate the object via WE30.

5. Verify the structure was correct via SE11.

All looked good, I tested again. Again the IDOC was generated with all the fields except for the one I added.

I've since tried some other things. That do not really make a lot of sense, but I tried them. Does anyone know what I'm missing? How do I get the new field to display on my IDOC?

(I've also checked the partner profile via WE20 and verified the message type and object...)

Thank you!

Michelle

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
5,277

Hi Michelle Crapo

i send mail to you

Check field got extended or not by editing the custom segment....

Thanks

Ramesh

Hi all!

My disclaimer: I know less than nothing about IDOCs. So hopefully I lead you down the right path. I have searched SDN and then tried google. As far as I can tell I've gone thru the right steps. But since it isn't working I must have skipped a step.

Here's what I've done:

1. Changed the segment via WE31. I had to cancel the activation. So I activated it again. It did generate a change request.

2. Updated the custom function module. Hard coded a value into that field just to see if it would work.

Tested it by running the invoice transaction. I see the IDOC with all the fields except for the one I added.

Next:

1. Cancel the activation on WE31.

2. Cancel the activation for the Object via WE30.

3. Activate the segment via WE31.

4. Activate the object via WE30.

5. Verify the structure was correct via SE11.

All looked good, I tested again. Again the IDOC was generated with all the fields except for the one I added.

I've since tried some other things. That do not really make a lot of sense, but I tried them. Does anyone know what I'm missing? How do I get the new field to display on my IDOC?

(I've also checked the partner profile via WE20 and verified the message type and object...)

Thank you!

Michelle

6 REPLIES 6
Read only

Former Member
0 Likes
5,277

This message was moderated.

Read only

Former Member
0 Likes
5,277

hi,

do you have extended the SAP Segment or created a new Z-Segment with the zfileld ?

I think you have to use the CMOD transaction to get your Customer-Exit activated.

Regards,

Gordon

Read only

Former Member
0 Likes
5,277

I changed an existing Z* segment.

We are using a custom function module to add the data to the IDOC. It is working for the other fields that we added to the Z segment. Just not this one. That's why I'm sure I did something wrong. The rest of it works.

Thank you for the quick answer,

Michelle

Read only

0 Likes
5,277

1. you have to activate WE30/WE31

2. you have to maintain your IDoc & extension in the WE20 outbound parameters.

3. you have to create a CMOD Project to activate your customer Exit for Incoice IDocs

4. you have to fill the new z-field with relevant value in the Function Module "assigned in CMOD".

if all steps are done. Put a breakpoint in the module to see that the z-field is filled.

Regards,

Gordon

Read only

Former Member
0 Likes
5,278

Hi Michelle Crapo

i send mail to you

Check field got extended or not by editing the custom segment....

Thanks

Ramesh

Read only

Former Member
0 Likes
5,277

Thank you Everyone!!!!

As you all have tried to tell me, the field is in the IDOC. I just have to look at the the ABAP code to try to understand why it isn't being filled.

Michelle