cancel
Showing results for 
Search instead for 
Did you mean: 

regarding sending data throgh IDOC MBGMCR02

Former Member
0 Kudos

hi friends,

iam sending data from non sap to sap through xi using idoc adapter.i am using mbgmcr02 idoc.what is the use of mbgmcr02 and how to send .pls help on this.

adavnce thanks

Ravi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI,

your scenario is FILE-XI-IDOC.

SINCE the sender is file,first of all u need to convert the file in csv format to xml.for tht while we configured the file adapter we need to use file content conversion.for tht u can refer to the following link.

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3228] [original link is broken] [original link is broken] [original link is broken];

We need to do the following settings in XI

1) Create an RFC Destination to the Receiving System in transaction code (SM59)

a) Choose create

b) Specify the name of the RFC destination

c) Select connection type as 3 and save

d) In the technical settings tab enter the details SAP SID/URL and system number#

e) Enter the Gateway host as same details above SID/URL

f) Gateway service is 3300+system number#

g) In the Logon /Security tab, enter the client, user & Password details of Destination system

h) Test the connection and remote logon.Both should be succesful

****************************************************************

2) Create Port Using Transaction Code IDX1

**************************************************************

a) Select Create New button

b) Enter the port name as SAP+SID (The starting char should be SAP)

c) Enter the destination client

d) Enter the RFC Destination created in XI towards R/3

e) Save

*********************************************************************

3) Load Meta Data for IDOC Using transaction Using Transaction (IDX2)

**********************************************************************

a) Create new

b) IDOC Message Type

c) Enter port created in IDX1

**********************************************************************************************************************

SETTINGS IN SAP R/3

***********************************************************************************************************************

We need to do the following settings in R/3

Logon to Sap R/3 System

**********************************************************************

1) Create an RFC Destination to XI in transaction code (SM59)

***********************************************************************

a) Choose create

b) Specify the name of the RFC destination

c) Select connection type as 3 and save

d) In the technical settings tab enter the details SAP SID/URL and system number#

e) Enter the Gateway host as same details above SID/URL

f) Gateway service is 3300+system number#

g) In the Logon /Security tab, enter the client, user & Password details of Destination system

h) Test the connection and remote logon.Both must be succesful

***********************************************************************

2) Create communication Port for Idoc processing Using Transaction(We21)

***********************************************************************

a) First Select Transactional RFC and then click create button

b) Enter the destination port name as SAP+SID (The starting char should be SAP)

d) Enter the RFC Destination created in SAP R/3 towards other system.

e) Save

***********************************************************************

3) Create Partner Profile with Inbound Parameters (WE20)

***********************************************************************

a) Create New

b) Create the Partner no. name as same the logical system name of the destination system

c) Select Partner type LS

d) Enter details for Type: US/USER, Agent, and Lang

Then Save

e) Select Partner no. and LS which were create above

f) Now we have to give some Inbound Parameters.So click on ADD TO Create Inbound Parameter

g) Select Message type

h) Double click on Message Type and Then Enter the details for Message Type and Process Code.

I) save

*******************************************

4) In Transaction SALE, Create Logical System

*******************************************

a). Go to Basic Settings-> First Define logical systems

and then assign logical systems

b) Double click on Define the logical systems

c) Give data for your Logicaal System and Name

d) Now click on Save.Here one window may appear just click on Continue.Now the Logical System name is ready

e) Assign the logical system name to the client

Also we need to configure the Idoc adapter so tht the idoc-xml can be converted into idoc by idoc adapter.

To do tht plz refer tht link below

[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d19fe210-0d01-0010-4094-a6fba344e098]

also when u design u need to check the radio button IMPORT OF IDOC AND RFC FROM SAP SYSTEMS PERMITTED

PLZ REWARDS POINTS IF HELPFUL

VIKAS JAIN

Former Member
0 Kudos

Hi Ravi,

Your scenario will be FIle-IDOC.

How ur getting the data from non sap system to XI is it in the form of file.

Refer the below FCC if ur getting the file in the form of CSV or fixed length.

Sender -

/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1

Key value:

/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30

/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file

/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter -

IDOC configuration:

Configurations required in R/3:

Maintain Logical System (SALE) for PI

Maintain Port (WE21)

Maintain partner profile. (WE20): For XI

COnfiguration required at Xi side:

Create the Port using IDX1

Load the metadata using IDX2 transaction

Create RFC destination which points to R3.

mbgmcr02 is the IDOC which post the data in R3 table which wil hold the data which is send by XI.

Thnx

Chirag