cancel
Showing results for 
Search instead for 
Did you mean: 

How to send Multiple Idocs?

Former Member
0 Kudos

Hi all,

I am doing a file to Multiple Idocs scenario. The file contains multiple records. I want to recieve multiple idocs in the R/3.

My idoc type is CREMAS03. In my mapping i have disabled the EDI_DC40 field. But i am getting an error as: <b>Control record must start with tag EDI_DC40, not E1LFA1M</b>.

I have also tried by enabling the EDI_DC40 field and giving default values to it. In this case the error gets eliminated but i am not receiving any Idocs.

Can anybody help me with this?

Regards,

Divija.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Divija,

Yes, you need not generate EDIDC_40 in mapping. However just test the mapping once and ensure that the output structure from mapping looks like below:

<MSG_TYPE>

<IDOC BEGIN="1">

<E1LFA1M>

.....

</IDOC>

<IDOC BEGIN="1">

<E1LFA1M>

...

.....

</IDOC>

...

</MSG_TYPE>

Secondly, dont't forget to check "Apply Control Record From Payload" in the receiver CC.

This will create the control record runtime as per the configurations.

I hope this solves your problem.

Regards

Amit

Former Member
0 Kudos

Hi Amit,

Thanks for your reply. I tested the mapping as suggested by you. It is working fine with the EDIDC_40 field disabled. But when i run the entire scenario, i am getting the error: Control record must start with tag EDI_DC40, not E1LFA1M.

Michal: Yes, I am using the same technique mentioned in your weblog. (Without using BPM)

Regards,

Divija.

bhavesh_kantilal
Active Contributor
0 Kudos

Divija,

if you have disabled the control record in your mapping, then in that case, the control record will be automaticcaly filled from the data in the COnfiguration.

Just make sure that in the Receiver IDOC adapter, the following options have not beeen selected.

Take Sender from payload,

Take receiver from payload,

apply control record from payload.

Regards,

Bhavesh

Former Member
0 Kudos

Hi,

In case you have not gone through this thread:

Regards

Vijaya

Former Member
0 Kudos

Hi Divija,

Probably something is missing in the config. Can you tell what is the scenario i.e. non-LS to LS or LS to LS etc..?

CHEERS

Amit

Former Member
0 Kudos

Hi Amit,

My scenario is LS to LS.

I tried by checking the Apply control record values from payload option. I have also enabled the EDI_DC40 field and i have given proper values for MESTYP, SNDPOR, SNDPRN, RCVPOR and RCVPRN.

I have checked in IDX5 transaction in XI. There i can see the Idoc being created. Idoc number is also generated.

But in R/3 i am not receiving any messages. Can any body help me with this?

Regards,

Divija.

bhavesh_kantilal
Active Contributor
0 Kudos

Divija,

Can you take a look at the following?

1. Do you see a chequered flag on both sides of your message in SXMB_MONI?

2. Go to SM59 -- RFC DESTINATION poitning to the R3 system and try a remote log on. Is it succesful?

3. Also, go to transaction SM58 and see if there is any dump for your RFC log?

Regards,

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

1.I am seeing one chequered flag at the biginning and <b>one red flag at the end</b>. But i could not see the error message associated with this error.

2.Remote logon to the R3 system was successful.

3.In sm58, i tried by giving my RFC destination name. But i got a message saying <b>nothing was selected</b>.

Also now i have disabled the EDI_DC40 field and i have not selected the Apply control record values from payload. Because my mapping is working properly only under this condition.

Please help.

Regards,

Divija.

bhavesh_kantilal
Active Contributor
0 Kudos

Divija,

<i>I am seeing one chequered flag at the biginning and one red flag at the end. But i could not see the error message associated with this error.</i>

This implies, the IDOC was not sent out of XI.

Steps to check :

1. Make sure that the details entered in the IDOC comm channel, like RFC destination ,port , etc are correct.

2. Sm58, is the transaction RFC log. Just try to execute the scenario again , do not give anything against the RFC destination name and just see the log of the error messages.

Regards,

Bhavesh

Former Member
0 Kudos

Hi Divija,

Please try following:

1. Disable the EDIDC_40 in mapping

2. Apply control record from payload

3. Check the adapter-specific parameters for the business service / system by right clicking on them in directory. Make sure the logical system names given are same as that in the partner profile configured in R/3.

CHEERS

Amit

Former Member
0 Kudos

Hi Bhavesh,

In the RFC destination field, i have given the name of a RFC destination which takes me from the XI system to R3 system.

In the Port field, I have given a port which is using the above mentioned RFC destination.

I executed the scenario again and checked in the tRFC log by not giving anything against the RFC destination name. But still i am getting the same message: Nothing was selected.

Pls help.

Regards,

Divija.

bhavesh_kantilal
Active Contributor
0 Kudos

Divija,

Can you send me the screen shots. You will find my email id in my business card.

Regards,

Bhavesh

Former Member
0 Kudos

Hi,

I tried doing a simple file to Idoc scenario. But even that was not working properly. Again the file is received by XI and the idoc is generated. In IDX5 i can see the generated idoc.

In sxmb_moni, i am seeing a red flag at the end. When i check in SM58, i saw a message saying: <b>"No authorization to send IDocs with message type CREMAS03"</b>. I also saw the system log in the transaction sm21 but there i did not find any entries regarding my scenario.

In SM58, i selected my entry and i tried Edit->Execute LUW. But i got a message saying: <b>"Function module does not exist or EXCEPTION raised."</b>

I am not understanding which authorization it is reffering to? Can anybody help me with this?

Regards,

Divija.

Former Member
0 Kudos

With reference to my previous mail, i was getting that message in SM58 only when i tried to send an idoc using we19 transaction. Otherwise i was not seeing that message.

Regards,

Divija.

Former Member
0 Kudos

Hi,

In the RFC destination that you have put in IDoc communication channel. This must be present in your SAP XI system, transaction SM59.

Please check if the user id/Password that you have given has all the authorization.

Regards

Vijaya

bhavesh_kantilal
Active Contributor
0 Kudos

Divija,

<i>With reference to my previous mail, i was getting that message in SM58 only when i tried to send an idoc using we19 transaction. Otherwise i was not seeing that message.</i>

Check the User ID and passwrord in SM59 <b>in R3</b> and see if a Remote Login is possible .

Regards,

Bhavesh

Former Member
0 Kudos

Hi Vijaya,

My RFC destination is present in SAP XI system. I checked using sm59. The user is having all the authorization. I also tried remote logon which was successful.

Regards,

Divija.

Former Member
0 Kudos

Hi Divija,

There is some configuration by which the clients are allowed / blocked from receiving Idocs from XI. Basis guys can do it for you. Please approach your basis consultant. Hopefully that helps..

Regards

Amit

moorthy
Active Contributor
0 Kudos

HI,

First test your mapping. Take input xml from SXMB_MONI and test in the Repository with Test Tab. And check your target structure is populated correctly as required or not.

Regards,

moorthy

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

did you have a look at my weblog?

/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change

Regards,

Michal