Skip to Content
avatar image
Former Member

Transfering data of custom fields through IDOC

Hi experts,

I have added two custom fields to the Material mater and wanted to transfer these values through IDOC. For this where should i start. Should i use any predefined IDOC type, copy and extended that or Create a custom IDOC type. Can any one help me out .

Thank you,

Nirmala V.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 28, 2008 at 08:01 AM

    Hi,

    If you want to populate the values entered through some custom fields in some database table for instance MARA then first of all u need to append a structure to this table containing custom fields. Now if u want to send data in those fields through idoc then

    1) go to we30 - use the idoctype ( For eg MATMAS05) select the radio buton extension. and then add additional segments to populate the values in custom fields.(we31)

    2) Link the idoc type with message type and add extension ( that u created for idoc type) there

    3) In we20 add the message type used in outbound

    4) Identify the suitable user exit and write the code in outbound system (sending system) to populate data in idoc

    5) identify the suitable user exit and write code in inbound system to post data from idoc to the database table.

    Now replicate data and check whether your are able to insert data in custom fields.

    Regards

    Vinod

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 26, 2008 at 10:03 AM

    Hi...

    Better to Extend the Avaliable Idoc and write the code in exit to populate the added segment.

    Regards,

    Piyush

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 26, 2008 at 10:41 AM

    Hi,

    Acutally i have question we have an IDOC type Material Master data i.e MATMAS. is that an IDOC type or Message type. If it is message type then whether i can use that to copy into custom IDOC and extend that. If so, how can i do that. Any other procedure is there. Can any one send me the step by step procedure for this.

    Thank you,

    Nirmala V.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      MATMAS is not Idoc type, it is message type. For distributing material master data of message type MATMAS, we are using idocs type MATMAS01, MATMAS02.........MATMAS05, as per our convenience. i would suggest go for more recent version MATMAS05.

      1 Go to we31 create your custom segment and add all the custom fields. Release it.

      2. Go to we30 create your enhancement type by using copy from 'MATMAS05'.

      3. Enhance your logic to fetch data from database to custom idoc in enhancement MGV00001 component EXIT_SAPLMV01_002.

      4. Enhance your posting programe with the use of MGV00001 and component EXIT_SAPLMV01_002.

  • Dec 27, 2008 at 06:12 AM

    You need to extend the basic type of the idoc as well as you need to enhance the outbound program with User exits

    Cheers,

    Hakim

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 28, 2008 at 05:06 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 26, 2008 at 11:41 AM
    Add comment
    10|10000 characters needed characters exceeded