XML-IDOC inbound for ECC 6.0
Hi,
in a ECC 6.0 only landscape we would like to process XML-IDOC in inbound. For outbound we have already create a XML-IDOC port... but I don't be able to find it for inbound.
How can I do it ?
Regards.
Ganimede Dignan.
Hi,
it's quite simple, if you have a system base on NW 2004s or newer you have all that you need but take in mind XML-IDOC it's not a Free XML .... it's an XML structure as an IDOC.
In WE21 TCODE you can set-up and "XML File" port or and "XML Http" port.
In anyway you can parser each XML by ABAP custom code.
read olso some of my old notes....
IDOC_INBOUND_FROM_FILE => called within report RSEINB00
IDOC_XML_FROM_FILE => not called by any report (on release 4.6c)
I have used fm IDOC_XML_FROM_FILE already many times to manually transfer XML-IDocs from one SAP system to another.
Given the fact that report RSEINB00 is quite simple (see below) you could create your ZRSEINB00 for processing XML IDocs.
The reports can be scheduled in background to process the inbound IDocs continuously.
REPORT RSEINB00 MESSAGE-ID E0.
* EDI inbound processing (main program to be scheduled)
* This program processes one file with one ore more intermediate
* documents. When an error occurs, a message will be send via workflow
* processing.
* The index of the last successfully processed record of the file is
* always written to the table EDFI2.
* If the program is startet again for this file, the table EDFI2 will
* be interpreted and the processing will start at the next record.
* PARAMETERS
PARAMETERS:
* directory + name of file that has to be processed
P_FILE LIKE EDI_PATH-PTHNAM DEFAULT '/usr/sap/.../SYS/global/...'.
* DATA
DATA:
G_MESSAGE_FIELDS LIKE EDIMESSAGE.
* MAIN PROGRAM
START-OF-SELECTION.
* do inbound processing from file
CALL FUNCTION 'IDOC_INBOUND_FROM_FILE'
EXPORTING
FILE_NAME = P_FILE
EXCEPTIONS
FILE_OPEN_FAILED = 1
MARKER_TO_BE_DELETED = 2
READ_FILE_FAILED = 3
IDOC_NOT_STORED = 4
FILE_DELETE_FAILED = 5
MARKER_MODIFY_FAILED = 6
EVENT_CREATE_FAILED = 7
FIRST_RECORD_INVALID = 8
INVALID_RECORD = 9
OTHERS = 10.
IF SY-SUBRC 0.
* fill message fields for exception handling from system fields
MOVE-CORRESPONDING SY TO G_MESSAGE_FIELDS.
* error handling using the 3.0 business workflow
CALL FUNCTION 'IDOC_ERROR_WORKFLOW_START'
EXPORTING
DOCNUM = 0
EVENTCODE = 'EDIM'
MESS = G_MESSAGE_FIELDS
EXCEPTIONS
NO_ENTRY_IN_TEDE5 = 0
ERROR_IN_START_WORKFLOW = 0
OTHERS = 0.
* do not care for exceptions here
COMMIT WORK.
* abend message for RFC
MESSAGE ID G_MESSAGE_FIELDS-MSGID
TYPE 'A'
NUMBER G_MESSAGE_FIELDS-MSGNO
WITH G_MESSAGE_FIELDS-MSGV1 G_MESSAGE_FIELDS-MSGV2
G_MESSAGE_FIELDS-MSGV3 G_MESSAGE_FIELDS-MSGV4.
ENDIF.
* end of report
there are some function modules to accomplish this.
IDOCS_OUTPUT_IN_XML_FORMAT
IDOCS_OUTPUT_VIA_XML_HTTP
for inbound processing,
IDOC_INBOUND_XML_SOAP_HTTP
IDOC_INBOUND_XML_VIA_HTTP
IDOC_XML_FROM_FILE
IDOC Adaptor,
IDX_IDOC_TO_XML
Extended table maintenance, to display IDOC in XML format with XSL,
IDOC_XML_DISPLAY
IDOC_XML_TRANSFORM
Similar Messages
-
XI 3.0 - XML - IDOC inbound scenario via ftp UTF-8 character encoding
Hi Everyone,
I'm having difficulties with a particular scenario. I receive via the ftp adapter xml files which have a header indicating UTF-8 coding. In SXMB_MONI, i see the cyrillic characters and after mapping the target message payload as well have readable cyrillic characters. The problem comes when i have the SAP-side check the idoc that posted in their system. They see gibberish (i.e ##### #### ### #').
I have already tried changing the XSD definition of the xml to UTF-8 however upon import it automatically changes it to ISO-8859-1. I've tested sending the xml file to XI with an ISO-8859-1 coding header and in SXMB_MONI it's gibberish as well. So i've elminated that from possible problems.
i have checked SM59 on the receiving system and unicode is checked as well.
where could the problem possibly be?
Thank you,
KentHi,
Thank you for the quick reply. however that did not solve it. I believe the Cyrillic character set lies in the UTF-8 set. i mentioned about the ISO to elmiinated its possibility and the problem i face when importing an XSD definition as it automatically changes the encoding to that set. I have confirmed that it should be UTF-8.
I have isolated the problem to between the XI box and the SAP receiving box. in SXMB_MONI, up to the call adapter part, the payload shows the correct characters. upon checking it in the receiving system at tcode "we02", the value is all gibberish. -
Hi all
If I have to receive an Edi message from an external system (for example an Invoice from a vendor), could I get in Sap an Idoc from a flat file formatted as a Sap Xml format?
As Sap Xml format I mean the same structure of an xml file generated in Sap to the Xml file port.
(The sap r/3 system is a Sap Enterprise version)
Thanks in advance
Bye
Carlo
Message was edited by: carlo pergolaHi
Thanks for the answer.
Regarding the FM IDX_XML_TO_IDOC, I thing that I can't use it directly because I have to write a program, I have to read the Xml file (that is located in a special directory of the operative system) and then use the FM putting xml data in the XML_DATA import parameter.
It's correct?
Bye
Carlo -
IDOC Inbound for Inventory Adjustment
Hi There,
I have a process we I have an inbound message to adjust the inventory, I was checking SAP Inbound proposaland I could not find any message type for this funtionality. I would like your help in this matter.
I need to indentified the IDOC and message type for this process.
Thanks in advance
AlexisHi,
For IM, you can use IDoc type WMMBID02 with message type WMMBXY.
Please check test program RLMBXY00 to simulate IDoc WMMBID02.
For MM, you can use IDoc type MBGMCR02 and message type MBGMCR.
Regards,
Ferry Lianto -
Need information on how to create Idoc Inbound Interfaces for Business Sys
Hi,
I'm losing it.
Can anyone point me to some documentation or an example of how to create inbound interfaces for Business Systems in PI 7.1.
Here's the scenario
I'm working on a B2B integration process which sends inbound idocs to an ECC 6.0 system.
I've created the Business System communication component but under the Inbound Interfaces it is blank.
I want to have MBGMCR.MGBMCR03 as an inbound interface.
But I forget how to get it there.
For Business components you can just add the inbound interface.
I've already defined the Business System in the SLD pointed it to the correct Tech System, imported the idoc definitions in the Enterprise Service Builder and set up IDX1, IDX2 to ensure the metadata exists in PI.
But for Business systems the hep says that it's got to come from the SLD.
Outbound/Inbound Interfaces
For each business system, the interfaces that are installed on the business system are also entered in the SLD. These interfaces are displayed in this frame. You cannot add any other interfaces.
I know I've done this before, but I can't remember how.
Cheers,
JohnHi John ,
Please have a look at the following links which might be of help to you
PI 7.1 IDocs interfaces act as operations
http://www.sdn.sap.com/irj/scn/weblogs;?blog=/pub/wlg/7933
/people/peter.gutsche/blog/2008/10/27/what146s-new-in-sap-netweaver-pi-71
There is a section in the following link on IDOC , have a look at the links in that section
https://wiki.sdn.sap.com/wiki/display/XI/ImportantBlogsand+Notes
Best Regards -
IDoc Inbound Processing for CREMDM & DEBMDM
Hi experts,
I'd like to gather some feedback from you regarding the topic ERP IDoc Inbound Processing for CREMDM & DEBMDM. As you all know, there's currently no option to directly process CREMDM/DEBMDM IDocs in ERP. Currently you have to use PI for splitting the CREMDM/DEBMDM message into its related ADRMAS and CREMAS/DEBMAS IDocs.
My areas of interest are:
1) How satisfied are you with the current situation? Does the split work? Are there issues or problems in the current message handling? What are the Pro's and Con's from your point of view?
2) What would be the requirements for a CREMDM/DEBMDM handler? What would you expect? Maybe you have implemented something similar on project basis and could post some feedback?
One painpoint I'd see with a CREMDM/DEBMDM inbound is that you'll lose the IDoc Monitoring capabilities. The message split allows a single record tracing in the IDoc Monitor (as there is a 1:1 relation between IDocs and records). This changes for the mass processing. The monitor would display only the status of the IDoc and you'd need some other monitoring capabilities to check the results on record level. What are your thoughts about that? Is the monitoring important? Would the application log be a feasible solution for that challenge?
Additional comments are welcome, of course.
Best regards
Michael
PS: @ Matt, please contact me by mail. thanks.Hello ,
Here are some other pain areas regarding the message split :
1. Complicated monitoring proess & reprocessing error idocs : We have to monitor ADRMAS & CREMAS or ADRMAS & DEBMAS during inbound processing. Also we could not find any best practices to reprocess error idocs. E.g. If ADRMAS fails & CREMAS succeeds what is the impact . Also the impact if it is reveresed. We know for sure that if CREMAS fails , vendor will not be created / updated. But we could not find specific pointers for ADRMAS failures.
2. It is a tedious process to link CREMAS with corresponding ADRMAS idoc specially when SAP maintains internal number range for vendors.
3 . The process is complicated if you are managing customer or vendor contact information with contact address . We could succesfully implement the integration but it took us a while to reach end-point.
4. Splitting really does not seem to support if ERP maintains internal number range.
5. Another major issue we observed is , if ADRMAS is under process & corresponding DEBMAS or CREMAS is posted , it fails raising the message that Account is locked. Default serialization does work in ERP system . But overlap of few microseconds also cause this error.
Hope this helps !!
Please let me know if you need any other specific details since we have used MDM - ECC integration using PI to its maximum extent .
Regards
Yogesh -
I've searched the internet for solutions but I have not seen any solutions. I'm trying to upload an XML IDOC (generated from SAP) back into SAP using IDOC_XML_FROM_FILE. I've configured the my XML port to see the directory where the idoc is stored but I get an error message when opening the file.
Exception FILE_OPEN_FAILED
Message ID: E0 Message number: 084
Message:
Error at OPEN '/USR/SAP/INTERFACES/TEST.XML' (check file)
I've setup this process using PI but this new setup will not use PI. Is there something SAP has out of the box to make this process easier.
SAP ECC 6.0
Thanks,
Philhi Philip,
maybe my ariticle can save you
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5593
let me know if it worked
Regards,
Michal Krawczyk -
Standard IDoc Type for Inbound NonPO Vendor Invoices - FB60
What should be the perfect standard IDoc Type for Inbound NonPO Vendor Invoice posting. Tcode FB60.
I found IDoc Type FIDCCP02 but the Function Module 'IDOC_INPUT_FIDCC2' for FIDCCP02 is not released.
In the same way many other standard function modules like - IDOC_INPUT_ACLPAY, IDOC_INPUT_FIDCCH, IDOC_INPUT_ACC_INVOICE_RECEIPT and few more are not released.
My question : If at all I have to use standard IDoc Type, Message type and Function module (Released) for Inbound NonPO Vendor Invoices, then what should be the solution from SAP ?
Thanks,
Veeru.Hi,
IDOC_INPUT_FIDCC2 for FIDCCP02 works for us in ECC6.0
If you want Automatic tax calculation functionality using FIDCCP02.. then FIDCC2 is not correct message type for you. In that case you should probably go for :
Msg: INVOIC
Basic type: INVOIC02
FM: IDOC_INPUT_INVOIC_FI
Process code: INVF
Thanks,
Kumar -
When idoc failes for inbound sales orders then how to trigger a mail notifi
Hi All,
When idoc failes for inbound sales orders in SAP then i would like to send an email notificaiton to particular user id. Could you please let me know the settings for this requirement.
Thanks in advance..Closing thread as there are no replies
-
Error : Pre Settings for IDoc inbound processing are missing error
Hi Experts,
There is a CRM job which executes LSMW and I am facing a strange problem during the IDOC posting the error "Pre Settings for IDoc inbound processing are missing error". Can anyone please tell me how to correct this error?
Thanks in advance.
Madhurima.I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
[iTunes for Windows: "Registry settings" warning when opening iTunes|http://support.apple.com/kb/TS3299] -
IDOC type for interface between SAP ECC and SAP F&R
Hi Experts,
I need SAP standatd IDOC type for interfacing between SAP ECC and SAP F&R [SAP Forecasting and Replenishment] using message type u201CFRE_LOC_SITEu201D.
Please help me in finding the idoc type?
Regards,
KrishanHi Denish,
You have 2 ways of loading data from R/3 to APO.
1. R/3 to BW cube to APO-BW cube to APO planning area
or
2. R/3 to APO-BW cube to APO planning area
BW can be a enterprise BW system ( independent) or you can use the BW inbuilt in APO also referred to as APO-BW.
The only difference between the 2 BW systems is APO-BW can not take the load of reporting where as the enterprise BW can.
Unless your company policy requires the enterprie BW system, I suggest using 2nd way.
You can load the data from R/3 to APO-BW cube using extractors either generic or standard depending on your data. You need to have a RFC connection setup between APO-BW and R/3. ( This is not CIF).
When you load the data into the APO-BW cube, you just have to load the data from the cube to APO planning area using the transaction /sapapo/tscube.
Refer to [DP Data Mart|http://help.sap.com/saphelp_scm50/helpdata/en/13/5ada58309111d398250000e8a49608/frameset.htm] for more information about the data transfer between APO-BW and APO. -
Need help for IDOC inbound function module !
Hi guys please help me to create a IDOC inbound function module.
What are the parameters and tables.
How to write the code.
What it does.
Please send me one inbound func module code if possuble
ThanksHi,
You need to create an inbound function module. Then define the process code in transaction we42 and attach the function module to this process code.
In the function module you create you need to define tables of types EDIDC (Control record (IDoc)), EDIDD (Data record (IDoc)) and BDIDOCSTAT (ALE IDoc status (subset of all IDoc status fields)).
Regards,
Soumya. -
BCExeption: The IDOC metadata for null is not available in SID
<h3>Hello Guys,</h3>
we need some information about the error message:
com.wm.pkg.sap.BCExeption: The IDOC metadata for null is not available in <SID>
We use a Business Connector 4.8 and the backend is an ECC 6.0, we have an inbound xml scenario with FTP.
We pick up the ORDRSP from the vendors ftp-server and we would like to drop it to our backend system.
We can read the xml file into a string, but not send to the backend system, we use following steps:
- bytesToString
- stringToDocument
- documentToRecord
- recordToIDOC
- lockSession
- createTID
so far works perfekt
- sendIDoc
- releaseSession
On the step "sendIDoc" we see the described error message, but what is the message from the message?
Any Ideas?
Thank you and regards,
MichaelHello Michal,
thank you for your quick answer!
In my opinion, i don't need any input for this service, because we pick up all data from the vendors ftp - server in a definied time interval.
All needed fields are available in the xml file. In the result tab is the IDocList filled correct, but no sending to the backend system because the error is displayed.
Is it a problem with my concept?
Regards,
Michael -
XML IDoc file to IDOC .
Hi,
I am receiving XML idoc (Orders05) file from 3rd party to PI system , PI needs to create sales order IDoc ( Orders05) in ECC system.
1) Do I need to create source structure for XML IDoc file ? If yes should I create the structure as Orders05 ?
2) How to map line items of xml file to Orders05 IDoc line items ?
Please help.
Thanks - Vinay.Hi Vinay,
Please see Mikes reply in this thread. You may follow the same procedure:
XML to FlatFile IDOC
Regards,
---Satish -
Hi Experts,
Inbound EDI message order acknowledgments:
When we cancel a purchase order item with IDoc message 'ORDRSP', this leads to an error message in the IDoc inbound processing.
There is note 890812, but i guess it is till release 5.0
Can anybody please guide me for the solution.
Thanks,
Sourabh KothariHi Experts,
When we tested for the note, it is giving the status that this cannot be implemented.
Could any one give me the alternate solution for the IDoc inbound processing.
When the vendor sends the quantity 0 against any of the line items, the other line items are also not posted. There error message is ME794.
As per the above note implementing the corrections & when the item is deleted in PO, again processing the idoc would be successful. But the note is not valid for ECC 6.0
Please guide.
Thanks,
Sourabh Kothari
Maybe you are looking for
-
How To Fade In a JPG or GIF Image using Inspector Build-In or Action
Inspector doesn't seem to have any Build-In or Action that allows me to FADE IN an image. There only seems to be an Opacity Action that allows a FADE OUT. This seems like kind of a software design oversight. Am I missing something in Keynote?
-
500 Internal Server Error on opening beX (bi abao unknown)
It says under Systen Environment Server BI ABAP: unknown I think thats why... But where can i customize it? Edited by: Ezachiael leaihcaze on Apr 20, 2009 4:00 PM Edited by: Ezachiael leaihcaze on Apr 20, 2009 4:02 PM
-
Lion: Weird behavior with two monitors.
Intermittently, though very often, when a window is open in the secondary monitor (without menu bar), I cannot select items within the window - files (finder), emails (mail) or songs (iTunes). I cannot clear the problem except by moving the window to
-
Logic Express and Presonus Firepod
I am trying to record live sound through a condenser mic running into Presonus Firepod. I am trying to use this successfully with Logic Express, but have thus far been frustrated. I have followed the suggested steps of adjusting Logic's preferences s
-
OS creating multiple user/library folders - need help
My computer has decided on it's own to revert back to it's original default settings causing me to lose all the changes that I have made, as well as forcing me to redo the set-up procedures for Mail, Safari and other browsers and applications. This i