Skip to Content

Need to remove field supression in PO IDOC even field value is initial

Hi experts,

In PO standard IDOC(ORDERS05), segment E1EDP01, some fields are being supressed because of no vlaues. Example:NTGEW field in E1EDP01 segment is supressed becasue of no value. I need to get fields in IDOC output even field has no value. Please let me know if ou have an idea on how to proceed to get values.

Thanks,

Bala.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Sep 08, 2016 at 07:15 AM

    Hi All,

    Thank you so much for your time and response.

    I have passed ZERO value to segmetn E1EDP01 if field NTGEW is initial in user exit EXIT_SAPLEINM_002. It has been resolved.

    Thanks,

    Bala

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2016 at 07:59 AM

    User exits/Customer Exits are called after every segment_filling subroutine.

    And same is for E1EDP01 segment. After E1EDP01 is filled you are only left with those fields which have some values.

    In exit you can append the segments fields at their right position.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 07, 2016 at 07:18 AM

    Hi Bala,

    What type of port (WE21) are you using in your scenario?

    Add a comment
    10|10000 characters needed characters exceeded

    • In such case I would suggest you a quick & dirty solution. As suggested by Amit Kumar you should fill-in empty segments with value but this value should be very distinctive (i.e. [-]).

      Next step is to implement BADI IDOC_XML_ENVELOPE_OU. It has one method called PROCESS in which you have access to IDoc in XML version (as XSTRING). There you could convert XSTRING to STRING and then replace all occurrences of your distinctive pattern.

      In your case XML is constructed in form DATA_RECORDS_XML (SAPLEDI7) which is checking if value of a field is not empty before adding it to XML hence filling in segments with distinctive pattern is mandatory (unless someone knows better solution).


  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2016 at 07:29 AM

    Hi Bala,

    what problem are your facing if the field is suppressed? NTGEW field in the IDOC segment is of character type. You can populate '0' if it is blank. this way field should not be suppressed.

    Regards,

    Amit Kumar

    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.