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

Regarding Function Module

Former Member
0 Likes
872

Hi,

I have to convert a Bdoc to Idoc in CRM and send it to R/3 and do the vice versa while receiving data from R/3 is there any function module available in CRM whic converst Bdoc to Idoc and Idoc to Bdoc.

Reward points are assured.

Regards,

Ravi G

7 REPLIES 7
Read only

Former Member
0 Likes
840

Hi Ravi,

The scenario which you are talking abt can not be accomplished by a simple function module. The sending of data from CRM via Bdoc to R/3 via Idoc is a bit complex process which involves middleware configuration in CRM. If its a Z Bdoc then it also involves CRM Middleware customization. You need to follow a specific processing flow.

You need to write following things in CRM

Extraction function module to extract data from database table

validation function module to validate the data and populate Bdoc

mapping function module to map data between Bdoc and structure BAPIMTCS. THis is the main structure which does the talking between CRM and R/3.

On the R/3 side,

You need to write a mapping function module to map data between structure BAPIMTCS and Idoc.

extraction function module to post Idoc properly in R/3.

Appart from this, you need to maintain certain tables in Both R/3 and CRM side which defines your processing flow. These table depend upon whether you are doing middleware customization or middleware configuration.

Kindly explain your scenario completely to be able to help you more. Also go through Middleware documentation (available on help.sap.com) to give you a better idea. If its a customization then i can even send you some document if you require

Pls reward points if helpful.

Karan.

Read only

0 Likes
840

Hi Karan,

I am sending some data to CRM from R/3 PM module in the form of Idoc how this data can be captured in CRM and convert that to Bdoc in CRM and do the necessary modifications in CRM thru Bdoc.

In the same way i need to send some data from CRM to R/3 PM Module, I am sending it in the form of Bdoc's in CRM and collect it in the form of Idoc in R/3 and do the necessary updation in R/3.

I heard that there is a standard Function Module available CRM which converts Bdoc to Idoc and Idoc to Bdoc.

I think u got the scnario.

Could you please help me regarding this.

Regards,

Ravi G

Read only

0 Likes
840

Hi Ravi,

If its a customizing data which you are sending, then there is no standard function module to fulfill you requirement. You will have to write exits (in the form of function modules ) and attach them in the standard processing flow and then only can your data be correctly posted. Standard function modules are available, but you need to use them in your exits to successfully convert the data.

Which (doc and corresponding Bdoc) are you using to pass your data. Is it a Z idoc or a standard idoc. If its a standard idoc, then simple middleware configuration in CRM should serve your purpose. I have a document which describes end to end middleware customizing. Give me your mail id and i can forward the document to you.

Hope this helps,

Reward points if helpful.

Karan.

Read only

0 Likes
840

Hi Karan,

Its a Zidoc karan and u can send the document to gunda.ravi@wipro.com

It will be very helpful.

Regards,

Ravi G

Read only

0 Likes
840

Hi Ravi,

I have sent you the document. pls go through it and revert in case of any issues.

Pls reward points if it helps.

Karan.

Read only

Former Member
0 Likes
840

Not solved

Read only

0 Likes
840

What is the problem which you are facing. Was the document not useful??