Skip to Content
avatar image
Former Member

How to extend the basic IDOC type COD_REPLICATE_SALES_ORDER01

Dear All,

I have a requirement where I have to extend basic IDOC type COD_REPLICATE_SALES_ORDER01.

This IDOC is generated and hence does not allow doing that. Also request you to tell how can we pass multiple data to extended IDOC.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 23, 2017 at 06:20 AM

    To extend any basic IDoc type (of course it should be generated anyway), create an Extension Type in transaction WE30.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 23, 2017 at 08:17 AM

    Hello,

    Basically :

    - WE31 : create a new segment (ZCOD_REP_SO01_S1 for example) with only new fields you want to add. Edit > Set release.

    - WE30 : create a new extension (ZCOD_REP_SALES_ORDER01_E1 for example) with basic type COD_REPLICATE_SALES_ORDER01. Add segment ZCOD_REP_SO01_S1 in it. Release.

    Then 2 possible ways to perform (as fas as I know as I only dealt with HR Idocs):

    Not recommended : change standard scenario

    -WE82 : change message type COD_REPLICATE_SALES_ORDER01 entry to add extension ZCOD_REP_SALES_ORDER01_E1

    - Change your program/scenario to fill new fields in COD_REPLICATE_SALES_ORDER01 idoc. Have a look at BD60 entry to know FM used (and debug the very end of it until you find a enhancement spot where to fill your new fields).

    Best practice : replace by a new scenario.

    - First have a look at transactions SPRO and SALE. May be there is a detailed article about what you want to do.

    - WE81 : create a new message type ZCOD_REPLICATE_SALES_ORDER01

    -WE82 : copy message type COD_REPLICATE_SALES_ORDER01 entry to ZCOD_REPLICATE_SALES_ORDER01. Add extension ZCOD_REP_SALES_ORDER01_E1.

    -BD60/WE57/WE42 : copy message type COD_REPLICATE_SALES_ORDER01 entry to ZCOD_REPLICATE_SALES_ORDER01 and modify to fit your new scenario (copy actual FM used for COD_REPLICATE_SALES_ORDER01 into Z* and modify them to fill your new fields)

    That's barely all I can say. :)

    Best regards

    Bertrand

    Add comment
    10|10000 characters needed characters exceeded