cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to add multiple texts in idoc(E1EDKT1) from PO

SriSanjay1
Explorer
0 Kudos
210

Hi,

I've encountered a problem regarding the header text transferring from PO to IDOC.

The requirement is to populate both header text F01 and F85 ariba header text into the idoc segments E1EDKT1.

Both F01 and F85 are included in  following configuration under "Purchasing->Message->Text for Message->Define Text for Purchase Order".
But when the PO is having both header text F01 and Ariba header text F85, the IDOC is getting populated with only F01 text but I need both the texts to be populated in the Idoc, please guide me if there is any configuration that should be done to fulfill my requirement or I should go for enhancement.
Thanks everyone!

Accepted Solutions (0)

Answers (1)

Answers (1)

Ndubuisi_PALMER
Participant
0 Kudos

Dear sri sanjay

In your case, since both F01 and F85 header texts are configured correctly under the path "Purchasing → Messages → Texts for Messages → Define Texts for Purchase Order", the issue is not with basic configuration but with how the IDoc generation logic handles multiple header texts.

By default, the IDoc type (typically ORDERS05) and its associated function module (like IDOC_OUTPUT_ORDERS or the message type-specific FM) will only populate selected header texts into the E1EDKT1 segment. If only F01 is being transferred while F85 is ignored, it's likely that the underlying function module is not retrieving or mapping multiple header text types.

There is no standard configuration that allows you to specify multiple header text types to be included in the IDoc unless the message output program has been customized to handle that. Therefore, you will need to implement an enhancement to ensure both F01 and F85 texts are fetched and passed to the IDoc.

You should implement a user exit or enhancement in the relevant IDoc generation program. For example, use enhancement IDOC_OUTPUT_ORDERS (or its variant depending on your output type) and within that, enhance the logic where E1EDKT1 segments are being filled. Retrieve both text types from the purchase order header using READ_TEXT with object type EKKO and include both in the internal table that is used to populate E1EDKT1.

Ensure that the TDID field of E1EDKT1 is set to F01 and F85 respectively for the two texts. Also, verify that both text types exist in the PO before generation.

This approach will allow you to send both F01 and F85 texts in the same IDoc under separate E1EDKT1 segments.

Best regards

SriSanjay1
Explorer
0 Kudos

Hi Ndubuisi_PALMER,

But when there is only F85 text present for a PO then F85 text is populating in the IDOC.