Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Custom process code and FM for custom IDoc...

aris_hidalgo
Contributor
0 Likes
11,064

Hello Experts,

I created a custom IDoc based from ARTMAS05 IDoc. This is because we only need 3 segments and

the standard idoc(Artmas05) contains so many segments that we need.

Now, will I create a custom process code and FM for this? how do I go about this?

Thank you guys and take care!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
5,836

Hello,

Here are the Steps that we need to be following while creating a Custom Process Code with Custom Function Module. ( Since the Segments to be handled are very Less, I am recommending that you go for a Custom Function Module).

1. Go to SE37 Create a Function Module. Please ensure to Create it with the IMPORT / EXPORT /TABLES parameters exactly in the way that they exist in any Standard SAP Inbound FM (Refer to IDOC_INPUT_ORDERS for example).

2. Once our FM is Ready (Need not be Complete with the Code to go ahead with the Process Code Creation) and Active, the next Step is to Create an Entry in the Transaction Code BD51 where we will register the Function Module.

3. Next, we'll have to go to T-Code WE57 where we'll have to make an entry for the Function Module with the IDoc Type & Message Type.

4. Finally, go to WE42 and Create a New Process Code and assign the Function Module and the Message Type.

NOTE 1 : The Process Code is, as we know, Client Dependent. So, once you create a Process Code, we need to have it migrated to the Testing Environment to Start & Carry Out Testing.

NOTE 2: If Step 2 & 3 are missing, then we'll not be able to assign the Function Module in WE42 while Creating Process Code.

Hope it was helpful.

Thanks and Regards,

Venkata Phani Prasad K

7 REPLIES 7
Read only

Former Member
0 Likes
5,837

Hello,

Here are the Steps that we need to be following while creating a Custom Process Code with Custom Function Module. ( Since the Segments to be handled are very Less, I am recommending that you go for a Custom Function Module).

1. Go to SE37 Create a Function Module. Please ensure to Create it with the IMPORT / EXPORT /TABLES parameters exactly in the way that they exist in any Standard SAP Inbound FM (Refer to IDOC_INPUT_ORDERS for example).

2. Once our FM is Ready (Need not be Complete with the Code to go ahead with the Process Code Creation) and Active, the next Step is to Create an Entry in the Transaction Code BD51 where we will register the Function Module.

3. Next, we'll have to go to T-Code WE57 where we'll have to make an entry for the Function Module with the IDoc Type & Message Type.

4. Finally, go to WE42 and Create a New Process Code and assign the Function Module and the Message Type.

NOTE 1 : The Process Code is, as we know, Client Dependent. So, once you create a Process Code, we need to have it migrated to the Testing Environment to Start & Carry Out Testing.

NOTE 2: If Step 2 & 3 are missing, then we'll not be able to assign the Function Module in WE42 while Creating Process Code.

Hope it was helpful.

Thanks and Regards,

Venkata Phani Prasad K

Read only

Former Member
0 Likes
5,836

This message was moderated.

Read only

Former Member
0 Likes
5,836

WE42 and assign the Function module

Read only

0 Likes
5,836

Use WE87 for Assigning the IDOC with function Module. Also try using WEDI Area Menu for list of available transaction codes.

Thanks,

Mathivanan.G

Read only

Former Member
0 Likes
5,836

hey follow thse links..

u will create an idoc ..by making min changes..

http://www.riyaz.net/blog/beginners-guide-to-ale-and-idocs-a-step-by-step-approach/

http://www.riyaz.net/blog/beginners-guide-to-ale-and-idocs-part-ii/

Thanks and Regards,

Krishna Chaitanya G

Read only

Former Member
0 Likes
5,836

Hi,

1. Create the function module.

2. Make the entery in the transaction BD51.

3. Create the process code in WE42.

Thanks,

Asit Purbey.

Read only

Former Member
0 Likes
5,836

HI,

As per your post, it is clear that you have customized the IDoc by reducing the segments based on requirement. So, here, you can use the standard Process codes untill and unless the purpose of the usage,i.e. logic, should not be changed.

If I go elaborately,

1. If you are using the same Database Tables to upload to IDoc(i.e. Outbound) or retrieve from IDoc to update the DB Tables(i.e. Inbound) that the stadard FM is using, then no need of Z_ProcesCode/FM.

It requires the identification of the Customer Exit to modify the selection of the segments.

2. If you are not, then go for every aspect to be customized.

Hope you got it.

Thanks

Ram.