Skip to Content
author's profile photo Former Member
Former Member

Chanding the content in an IDOC segment at runtime

Hi Experts,

I have funny issue with modification of the data in an IDOC segment. Below is the description of the issue:

I am using the IDoc type FIDCC2.FIDCCP02. I have to populate the value for field 'KTOSL' of the

segment E1FISEG. I wrote the logic in user exit EXIT_SAPLF050_006. It is getting triggered and the

logic is updating the values in the IDOC_DATA internal table properly.

When the IDoc is generated, I observed that the value for this field is not updated in IDoc Segment.

Could you please suggest where I went wrong.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 17, 2008 at 05:25 PM


    The standard program uses this statement to populate the segment:


    If you see the segment E1FISEG ,you can see that theri 22 Fields in the segment come before the field KOSTL.

    so when you are passing the data in idoc_data table make sure that you are filling the other

    22 Fields with some data or spaces in case of no values so that KOSTL will also be populated.

    Hope it is helpful.


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Neha,

      Thank you for the responce.

      We need not to fill all the 21 fields before the field KTOSL. Because I was using the work area to modify the internal table based on the index.

      One thing I can conclude is that we cannot change the values in the standard segments of a stanrd Idoc type. By the time you enter in the processing Functinal Module, the Idoc number would have been generated. So the modification we carry out are just updating the internal table which of no effect. The right way is that find the place where the values getting updated to the data base and change values as required. These changed values can be founf in the data base but not in the IDoc generated.

      Neha one more query for the clarification,could you ever delt with the down payment requests through IDocs. If so please share the details.


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.