Skip to Content
avatar image
Former Member

custom Segment is not appearing in orders05

Hi ,

I am trying to extend IDOC type ORDER05.I have followed all the steps But even then segment is not appearing after i generate IDOC and test in we02.

The two fields has to extended in EKKO and same has to extened in ORDER02 at the time PO creation.

This is the requirement. Right now iam not passing any data in the custom segment but i have done all the initial configuration..

Idoc also generated succssfully..but its having my custom segment..Pls advice

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Dec 20, 2011 at 11:47 AM

    The outbound ORDERS IDoc is created from PO output by standard EDI function IDOC_OUTPUT_ORDERS

    When you add a new custom Z segment you should also append the segment, in a user exit, at the correct level (as per IDoc definition in WE30)

    SE37 -> IDOC_OUTPUT_ORDERS -> perform fuellen_idoc_inttab. -> perform customer_function. -> user exit CALL CUSTOMER-FUNCTION '002' -> EXIT_SAPLEINM_002.

    Here you can append your Z segment below the standard segment as you defined in WE30

    Sample logic, here I am appending custom ZEDP01 segment below E1EDP01 segment

    IF int_edidd-segnam EQ 'E1EDP01'.
        CLEAR int_edidd.
        MOVE xekpo-matnr TO i_z1edp01-matnr.
        MOVE 'Z1EDP01' TO int_edidd-segnam.
        MOVE i_z1edp01 TO int_edidd-sdata.
        APPEND int_edidd.
      ENDIF.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 20, 2011 at 11:48 AM

    Have u written the code in USER-EXIT to populate your custom segment???

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 20, 2011 at 11:48 AM

    Once u extend the IDOC ! u need to fill the extended fields / segments with Values.U can fill this values though an User Exit .

    Find the function module in the outbound function module which is attached to the Process code 'ME10' i guess you are using ME10 .

    Regards,

    Mithun Shetty

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 20, 2011 at 12:10 PM

    Hi,

    You need to code in the user exit to populate the extended segment in the idoc.

    Also you need to define the idoc extension in the partner profile definition.

    Thanks and Regards,

    Sriranjani Chimakurthy.

    Add comment
    10|10000 characters needed characters exceeded