Skip to Content

How to send standard text to segment of idoc in invoice


I have a requirement of adding text which shows in my billing document to a segment of an idoc... For this i m using invoice idoc type but not getting under which segment i need to create a new segment and how the data will come in to find a user exit .. This is for outbound idoc.

Can anyone please explain me the step wise process


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 05, 2020 at 07:03 AM

    Hello ak6155 01

    I assume the text is not added to the IDoc by default, otherwise you would not ask.

    In this case you need to write a custom ABAP code which will handle the situation. You can read the text using the READ_TEXT function. The text should be put into E1EDKT1/E1EDKT2 (for header texts) or E1EDPT1/E1EDPT2 (for item text) segments. You can do this in a BADI called SD_INVOICE_IDOC_OUTPUT_INT.

    For more information you can refer to this article:

    Kind regards,
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.