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

Inbound IDoc Processing

Former Member
0 Likes
1,592

Hi experts,

In this case, Non-Sap system has palced a XML file in a folder, now i need to consume that file.

What are the ways to consume XML file from the folder ?

Thanks in advance,

Mahe.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,440

Hi Mahesh,

As mentioned by Federic you will need the WE20 and WE21 Configuration in place.

For XML as you are mentioning is an IDoc.. So i assume it is properly phrased ..

You need to write a Z Wrapper program to read the file list from the path where the XML files FM are on the app server using FM SUBST_GET_FILE_LIST and process them with FM 'IDOC_INBOUND_FROM_FILE' .

Rest with the WE20 and WE21 Config it will process automatically if it is a standard IDoc and has an inbound process mapped.

10 REPLIES 10
Read only

FredericGirod
Active Contributor
0 Likes
1,440

Hi,

did you manage your WE20 ?  or your BD64 ??

what kind of IDOC did you try to integrate ?

regards

Fred

Read only

0 Likes
1,440

Hi Fred,

I have maintained partner profile in we20 and distribution model bd64, but its not working when they(NON-SAP) push the XML file(MATMAS) into a folder(SAP APPLICATION layer)...How can I proceed ???

Regards,

Mahesh K.

Read only

0 Likes
1,440

Hi Fred,

I have another scenario like, once Standard IDoc is generated then converted to XML file. Now i need to remove empty attributes from the XML file. Is this Possible ? If yes, What are the ways to do ?

Reward points .

Thanks in advance,

Mahe.

Read only

Former Member
0 Likes
1,441

Hi Mahesh,

As mentioned by Federic you will need the WE20 and WE21 Configuration in place.

For XML as you are mentioning is an IDoc.. So i assume it is properly phrased ..

You need to write a Z Wrapper program to read the file list from the path where the XML files FM are on the app server using FM SUBST_GET_FILE_LIST and process them with FM 'IDOC_INBOUND_FROM_FILE' .

Rest with the WE20 and WE21 Config it will process automatically if it is a standard IDoc and has an inbound process mapped.

Read only

0 Likes
1,440

Hi Yakub,

Thanks for your reply, it seems good, let me check and then i will let you know the progress.

And I again stuck at another scenario, that is,

Once Standard IDoc(MATMAS) is generated then converted to XML file. Now i need to remove empty attributes from the XML file which are not required. Is this Possible ? If yes, What are the ways to do ?

Reward Points.

Regards,

Mahesh.

Read only

0 Likes
1,440

Hi Mahesh,

There is a concept in sap called reduced IDoc types.

With this you can cut down the idoc and process only what is needed.

http://wiki.sdn.sap.com/wiki/display/ABAP/Reduced+Message+Types

Regards

Read only

0 Likes
1,440

Hi Yakub,

Thanks for your reply,

But i am not clear that, can we remove unwanted fields from all segments in MATAMS05 ?

Regards,

Mahesh.

Read only

0 Likes
1,440

Hi Mahesh,

BD53 is the transaction for Reduced Message types.

A reduced message type means it is a subset of the old one i.e. it will contains some fields of all the fields of the original Idoc... but you cannot add new ones you can remove old ones.

Launch the BD53 transaction (IDoc Reduction Maintenance: Initial Screen).

In the Reduced message type field, type the value ZMATMAS_REDUCED, then press the Create button.

In the popup window which appears, type in the Message type reference field the value MATMAS.

Validate.

In the next popup window, type a short description for the new reduced message type.

Validate.

In the following window, select the segments and the fields needed for the new reduced message type.

Save.

Activate change pointer for the reduced message type and done.

Regards

Read only

0 Likes
1,440

Hi Yakub,

Thanks for your reply, Can you explain the way of debugging inbound and outbound IDoc generation ?

Thanks in Regards,

Mahesh.

Read only

0 Likes
1,440

Yes Mahesh,

Use the Tcode BD73 from the other end(SAP System). Give your idoc number and execute.