2013 Jul 03 12:14 PM
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.
2013 Jul 04 11:54 AM
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.
2013 Jul 03 4:49 PM
Hi,
did you manage your WE20 ? or your BD64 ??
what kind of IDOC did you try to integrate ?
regards
Fred
2013 Jul 04 11:36 AM
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.
2013 Jul 04 11:39 AM
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.
2013 Jul 04 11:54 AM
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.
2013 Jul 04 1:39 PM
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.
2013 Jul 05 7:37 AM
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
2013 Jul 05 12:16 PM
Hi Yakub,
Thanks for your reply,
But i am not clear that, can we remove unwanted fields from all segments in MATAMS05 ?
Regards,
Mahesh.
2013 Jul 06 7:08 AM
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
2013 Jul 08 6:32 AM
Hi Yakub,
Thanks for your reply, Can you explain the way of debugging inbound and outbound IDoc generation ?
Thanks in Regards,
Mahesh.
2013 Jul 09 7:22 AM
Yes Mahesh,
Use the Tcode BD73 from the other end(SAP System). Give your idoc number and execute.