12-26-2008 9:50 AM
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.
12-28-2008 8: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
12-26-2008 10:03 AM
Hi...
Better to Extend the Avaliable Idoc and write the code in exit to populate the added segment.
Regards,
Piyush
12-26-2008 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.
12-26-2008 7:00 PM
Hi nirmala velmala
Steps:
1 Create the segment : we31
ex: ZMATFIELD -Segment
fields: FIELD1 & FIELD2
2 Extend the idoc with your fields .we30 EX ZMATMAS01
3 Link the Basic type & Extension & Message Type - Tcode we57
ex: MATMAS01 ZMATMAS01 Matmas
4 Create user exit to populate data in ZMATFIELD -Segment & fields: FIELD1 & FIELD2
5 Create idoc and check the fileds are populated with data.
now u got .... how to extend the idoc type with new fields...
Ramesh
12-29-2008 9:33 AM
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.
12-26-2008 11:41 AM
12-27-2008 6: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
12-28-2008 8: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
12-28-2008 5:06 PM