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

ALE IDoc

Former Member
0 Likes
911

Hi,

I am trying to configure a IDOC to send HR data.

The port is a file port instead of an RFC dest.

I have not defined Model view,

I am not using any Process Code in the message control parameters in WE20.

Which means no FM or calling program for collecting data into IDOC.

Is it possible to generate the IDOC this way. or is it a must to assign a process code.

Can you give me some insight on Process codes and file ports and how to configure them.

I did tried using the configuration Steps in SALE, unfortunately no results yet.

I am getting the following error

"

An IDoc without a message type was passed to the ALE layer,

The IDoc passed to the ALE layer could not be processed. The settings in the control record were not correct.

The logical message type (field MESTYP) was not passed.

The attempt to copy the value of the EDI message type (STDMES field) also failed, because this field was also empty.

Procedure

The fields mentioned above did not contain the values which they should have done in the calling program. "

So please mention the prerequisites to write a calling program.

Thanks & regards

Hi,

I am trying to configure a IDOC to send HR data.

The port is a file port instead of an RFC dest.

I have not defined Model view,

I am not using any Process Code in the message control parameters in WE20.

Which means no FM or calling program for collecting data into IDOC.

Is it possible to generate the IDOC this way. or is it a must to assign a process code.

Can you give me some insight on Process codes and file ports and how to configure them.

I did tried using the configuration Steps in SALE, unfortunately no results yet.

I am getting the following error

"

An IDoc without a message type was passed to the ALE layer,

The IDoc passed to the ALE layer could not be processed. The settings in the control record were not correct.

The logical message type (field MESTYP) was not passed.

The attempt to copy the value of the EDI message type (STDMES field) also failed, because this field was also empty.

Procedure

The fields mentioned above did not contain the values which they should have done in the calling program. "

So please mention the prerequisites to write a calling program.

Thanks & regards

3 REPLIES 3
Read only

Former Member
0 Likes
594

Hi,

try to use generated Idoc processing programs via BAPIs: create bapi, create BUS via SW01, create ALE via BDBG.

Use only flat strucutres in BAPI.

Cheers,

Stefan

Read only

Former Member
0 Likes
594

yes u can create idoc without using model view, process code.

use FM MASTERIDOC_CREATE_<message type> in ur se38 program Pass datas to the fields in the FM. U have to specify tje message type.

for ale create Trfc port. create destination in SM59 & specify it as Trfc port in WE21.

Read only

Former Member
0 Likes
594

Hi,

Check the following links:

http://www.sapbrain.com

http://www.sap-img.com

Regards,

Bhaskar