1 FILE to 2 different IDocs scenario
I need to pick a file from an FTP server which has lot of rows inside, and due to some condition they need to go to IDoc1 or IDoc2.
I put the condition in the message mapping as it can't go in the receiver determination neither interface determination because it will look in the condition of the whole file.
My concern is that I am not able to put both IDocs as receivers in the interface determination because they both has the same business component and PI will trigger an error.
Is there any other way to design this scenario?
So your requirement is, based certain values in the File, you need to post IDoc1 and IDoc2
Say if Value 1 --> IDoc 1 & Value2 --> IDoc 2
The split needs to happen in the mapping. You need to maintain the condition in your mapping. (Multi Mapping)
In the target message, add both IDoc Types in your mapping program.
In the Interface Determination, when you import your operation mapping, you will see both IDoc types. (Import your operation mapping and not the inbound interfaces)
And for your error, as long as you have two separate operation mapping, and two separate inbound interfaces (IDoc1 & IDoc2), you can have two interfaces in the interface determination with condition for the same sender & Single receiver.
Thanks,
Sreehari
Similar Messages
-
File to Multiple Idocs scenario. Pls help
Hi All,
For Single File to Multiple Idocs scenario i am referring blog --
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
Suppose my source file is
AAA, BBB,CCC
111,222,333
ZZZ,ZZZ,ZZZ
I want to make 2 IDOCS for the first 2 records (AAA, BBB,CCC and 111,222,333)
and do not want to make IDOC for the 3rd record -- how to achive this.
RegardsHi,
If the condition is like, for 'AAA' and '111', IDocs to be generated, then do as follows.
If IDOCs are of same type.
1. Value
> Equals -
> createIf -
> IDOC
Constant('AAA')
2. Value
> Equals -
> createIf -
> IDOC
Constant('111')
3. Value
> Equals -
> not -
> createIf -
> IDOC
Constant('ZZZ')
If 2 IDocs are of differnet types,
create different mapping programs with same logic.
If 2 IDocs are to be generated based on the record no in the file rather than the first field value, i think you can go for Global container.
Refer these,
[http://help.sap.com/saphelp_nw04/helpdata/en/ee/bf9640dc522f28e10000000a1550b0/frameset.htm]
[http://help.sap.com/saphelp_nw04/helpdata/EN/49/1ebc6111ea2f45a9946c702b685299/content.htm ]
[http://help.sap.com/saphelp_erp2004/helpdata/en/75/8e0f8f3b0c2e4ea5f8d8f9faa9461a/frameset.htm]
thanks.
Edited by: P.Ravi Varma on Apr 22, 2009 10:27 AM -
Error values in Idoc Control Records in File to Idoc Scenarios
Hi All,
I am posting 2 different types of Idocs in 2 different File-to-Idoc Scenarios. In many cases both these files may get picked at the same time. One is an Orders Idoc and the other one is Shipment Idoc. The Orders Idoc has a control record value in the Sender Partner Fn as 'ZC' while as for Shipment Idoc that value is not passed. The other Sender parameters are passed and are different for both these idocs. But when the files are processed, the value 'ZC' get populated for the Shipment Idoc also. When 100 files are sent with 90 orders and 10 shipments, the shipments get created with 'ZC' partner fn. This is visible in the Call Adapter Pipeline Step under the node IDocOutbound. . I have 2 different Idoc receiver adapters.Can anybody help me out here?
Thanks,
GeethaHey,
>'ZC' while as for Shipment Idoc that value is not passed
Check whether the Source/ Mapping populates the 'ZC' , Did you checked Apply Control record in Receiver Adapter for Shipment, What is the name you have mentioned for the in the SLD -Logical system for Sender system
Cheers
Agasthuri -
File -- IDOC scenario using XI 3.0
Hi
I tried out a simple flat file to IDOC scenario using XI as the middleware and tried to post documents of type CREMAS03 on the backend R/3 system.
Now, I see that there is an IDOC number generated in the XI layer by the IDOC adapter. This IDOC number is seen under <SAP:DOCNUM>XXXXXXXXXX</SAP:DOCNUM>in the
Response-->IDOCOUTBOUND section of the pipeline in SXMB_MONI
According to SAP documentation :
<b>To enable you to select IDocs in the target system later on, the system transfers the message GUID and the IDoc number in the ARCKEY field of the IDoc control record.</b>
Now, I do find the XI msgid given as arckey in the control record of the Inbound in the target R/3 backend system. But I cannot find the XI IDOC number being cross referenced in the control record of the IDOC in the R/3 backend.
1.Is there a way to cross reference the IDOC number in XI with the IDOC number in the R/3 backend ( we have two different IDOC numbers, right ) i.e a IDOC number to IDOC number cross referencing in this File-->IDOC inbound into the R/3 system scenario involving XI
2. In the XI box, do we get as a part of async.reponse from the R3 system, the IDOC number that is created within the R3 system ? This would serve directly as a cross reference. Or do we have to indirectly query EDIDC table in the R/3 backend with the arckey value = msgid in XI - to retrieve the IDOC number created in the R3 backend ?
Thank you in advance for your time.Hi,
Pls look into following link about Acknowledgement.
http://help.sap.com/saphelp_nw04/helpdata/en/f4/8620c6b58c422c960c53f3ed71b432/content.htm
Pls note that , you can't get/receive the Acknowledgement for Sender File Adapter. Because File System acts as an Async system. But you can get the Idoc response and you can write it into another file. For this you need to use BPM.
Hope this helps..
Regards,
Moorthy -
Multiple Operations for File to IDoc scenario
Hi all,
I have a file to IDoc scenario where two IdocXML files (one for INSERT and one for CHANGE of Business Object) have to be picked up by file adapter and transfered to SAP System. In respect to the multiple operations PI 7.1 can handle I would like to create one Service Interface for the Business Object and two operations (INSERT and CHANGE).
Unfortunately I am not able to use the operation in the sender agreement, so I can't specify the comm-channel for the operations, only for the interface.
So, can I use multiple operations in a file scenario (respectively in a non Web Service scenario)??
Thanks a bunch,
ManfredThe scenario is pretty easy. I just want two different files to be read by one Comm Channel with one Sender Agreement.
They are both transferred to the same receiver. I just wanted to test one scenario using multiple operations.
In your blog you described that you should not use two operations with the same set of messages (synchronous/asynchronous). In my case both are asynchronous but I already tried it with one being sync and the other one async. Where did you actually get this information, it puzzles me a little since SAP does the same in its preconfigured Enterprise Services as far as I know.
In the Trace for pipeline step Interface determination in SXMB_MONI it says:
<Trace level="1" type="T">...There is no Interface Determination configured for receiver party and receiver service BS_RECEIVER</Trace>
<Trace level="2" type="T">Check conditions for (Inb: Party Srvc If) BS_RECEIVER SI_..._Out</Trace>
<Trace level="2" type="T">...valid InbIf without Condition: SI_..._Out</Trace>
<Trace level="2" type="T">Number of receiving Interfaces:1</Trace>
So it finds the Outbound Interface in Receiver side which is wrong since I specified the Inbound Interface in the Interface determination. Did anyone of you already encounter such a behaviour? I already deleted and recreated all routing objects but without any success.
Thanks,
Manfred -
Query Regarding File to IDOC Scenario (1:2)
Hi,
I am working on a scenario like One File to Two IDOC's . In file we are getting some business functions (It's One feild in source file) , Some Business functions I need to map with One IDOC and some with other Idoc.
So I need to route a file content to two different Idoc's at a time.
I know this we can achieve this by using standard functions but not aware what to use.
So could anyone guide me how to achieve this..Hi Saydulu,
>>n file we are getting some business functions (It's One feild in source file) , Some Business functions I need to map with One IDOC and some with other Idoc.
So you know which fields to map to idocA and whih to IdocB
Now to configure this...
1. create a Message Mapping
Add source as the message type which you created for file and target as the IDocs which you want to use .. Make sure you add them in the signature tab of message mapping. Here I will suggest to change the occurence of IDoc node befotre adding it to message mapping signature tab.. By default it is 1..1. To change the occurence download the XSD of Idoc and change the minoccur to 0 and maxoccurs to unbounded. This shopuld be done for both the Idocs.
2. Create a interface mapping with the source message interface (or service interface) and target Idoc names. No need to create any service interface for Idoc, you can use the same Idocs (that is imported from SAP)
3. Use this in interface determination of Integration Directory
Regards
suraj -
Problems in file to idoc scenario
hi all
I am doing file to IDOC Scenario. In that I am getting the successful message but the Fields which I mapped to the IDOC is not populated in the IDOC.
In message mapping also it was showing the same thing. when I entered the fields of the file manually it was coming into the idoc and if i gave any file then it was not populated.
Can any one help us.
Regards
VasuHello
For that u will have to change the occurunces in messages tab in mappings and do a split by value in mappings to generate 4 different messages.
secondly i hope ur using BPM for the same. in that case u can use parForEach to post 4 IDocs at a time.
regards
rajeev -
Need pdf file links for different scenarios
Hi folks,
I am new to PI.Please can any body provide me pdf file links for different scenarios like File to File, File to JDBC,JDBC to File,File to RFC, RFC to File, File to IDOC, IDOC to File, Http to RFC, Web services to RFC, File to Mail,ABAP to ABAP proxy and Java Proxies to JDBC.
Thanks in advance.
SAP XI/PI Moderator ****************
Very Simple. Search SDN.
Thread Locked.
SAP XI/PI Moderator ****************
Edited by: Aashish Sinha on Feb 21, 2012 1:36 PMhi chandra, do you have the pdf file for fi-ca configuration
-
File to Idoc Scenario based on conditions
Hi,
My scenario is file to IDOC.
I have a source file and I need to check the content of the file. I cant use content conversion in the sender file adapter since the structure of the file is so complicated. So am using Java mapping to read the file...that is field1 based on which I have to select different IDOC types.
If the field1 in the source file is having the value 'X' then I need to select the IDOC1 else if the field1 value is 'Y' then I need to select the IDOC2. And post the IDOC to R/3.
But both IDOC1 and IDOC2 I need to post it to same R/3 system.
First I thought to develop this scenario with enhanced receiver configuration. Since both the IDOC's have to be posted to same system I cant use two different Business system. Please suggest.
Thanks
SumaHi Suma,
This is possible by spliting the interface into 2
Interface1:
Use java mapping to convert the file to xml and write it in some temporary location in PI (as an xml file). Just a file to file interface
Interface2:
Create a message structure in IR which is similar to the strucure you have converted using java mapping
Create two individual message mappings for IDOC1 and IDOC2 and two different operational mappings.
In the interface determination you can use the condition to choose the recevier interface using XPath.(Assuming that your xml payload will exactly match your source message structure)
No need to use the content conversion in sender channel.
Thanks & Regards
Stephen Rouvier -
Exceptions in file-idoc scenario
Hi Folks,
I am developing a file-idoc scenario. What are the different exceptions I would be needed to handle apart from the following two identified?
1. Mapping issue
2. Problem in posting the idoc (SAP system may be down and others)
Thank youHi Raja,
The errors an happen at following steps:
1. Error while picking the file:File adapter error
2. Error in mapping: error due to incorrect data, incorrect format, corrupt file etc.
3. While posting Idoc: due to Incorrect userId password, due to structure not matching, destination system being down.
Hope this helps.
Regards
Vijaya -
XI 3 File to IDoc scenario - Still referencing Old Logical system
Hi
Dont know if you can help. I have a file to idoc scenario using XI 3 to R/3 4.6c system.
I had the interface working from a third party system XMLHUB to SAP R/3. The Logical system name for the XMLHUB was XMLHUB01 in the SLD which I have set up as a partner profile in R/3. I have recently changed the logical system name to XMLHUBDEV01 in the SLD and created that logical system in R/3 and changed the partner profile to XMLHUBDEV01.
Unfortunately in the sender information of the IDoc the partner number is still XMLHUB01 and not XMLHUBDEV01. I don't understand where this partner is sent from to get into the control record of the IDoc.
I have cleared the SLD cache in both the Repository and the directory. Is there somewhere else I should be looking? Any help would be appreciated.
Regards
Danielhi daniel...
this thread wud answer ur query....
Re: IDOC Payload
regards..
vishal -
Message has error status at outbound side File To Idoc Scenario
hi ,
In my File to Idoc scenario , when i go to sxmb_moni , i found that its showing red flag at Outbound Status Tab and showing message "Message has error status at outbound side".
When i go to IDX5 and and select my idoc and click on Transaction Id it shows "Password logon no longer possible - too many faile" .
Please suggest what may be the problem ?
Regards,
Rohit1. First check the RFC destination name used in receiver Idoc adapter communication channel.
2. As i said earlier, in sm59 transaction in XI gui, u can check same rfc destination under type 3. There check the logon credentials and the username.
3. Now goto the R3 system GUI and check in su01 that same user is locked or not. If locked unlock it.
4. And if u change the password of that user, then do the similar change in XI -> sm59 -> rfc destination logon credential
Regards,
Prateek -
Error in File to IDOC Scenario
Hi,
I have File to IDOC scenario.
I am getting error in sender file channel.
"Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'xml.keyfieldName': no value found "
Although I have used this parameter in content conversion 'xml.keyfieldName' (for each sub structure and defined a key field).
Despite of this error in sender channel I am receiving the message in XI.
But in XI also it throws error :
"Unable to convert the sender service PG_TOM_CEEMEA_RU_SFA to an ALE logical system"
Any help on this ?
Thanks,
VikasHello Vikas,
I am getting error in sender file channel.
"Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'xml.keyfieldName': no value found "
Although I have used this parameter in content conversion 'xml.keyfieldName' (for each sub structure and defined a key field).
Check your flat file structure whether the key field you have chosen is appropriate and also recheck the FCC details whether you have assigned the value for the key field i.e. keyFieldValue.
"Unable to convert the sender service PG_TOM_CEEMEA_RU_SFA to an ALE logical system"
regarding the above error refer this
https://wiki.sdn.sap.com/wiki/display/XI/Unable%20to%20convert%20Sender%20system%20to%20ALE%20logical%20system
Regards,
Prasanna -
Error while doing a File to IDOC scenario
Hi Experts,
I have created a File to IDOC scenario where in i have sent a file which has to pass data to ABSEN1 IDOC.I could see the IDOC reaching R/3 ,but with the status 56: "EDI: Partner profile inbound not available"
I have checked with all the configurations and couldnt find where it went wrong.
Kindly help me in this regard.
Thanks.Hi
Check the inbound parameter and the process code.
To find Process code for IDoc use Tcode WE42.
ALE idoc trouble shooting use
Troubleshooting of ALE Process
look also this configuration
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6bd6f69a-0701-0010-a88b-adbb6ee89b34 -
How to handle the control records in case of file to idoc scenario.
Hi All,
can you please clarify me how to handle the control records in case of file to idoc scenario.Hi,
In File to Idoc scenario even though you selected apply control record values from payload and you are not getting those correct values which you have provided in the mapping.
Also check the checkboxes Take sender from payload and Take receiver from payload along with the Apply control record values from payload checkbox
Regards
Seshagiri
Maybe you are looking for
-
How can I print a form using ADF JHeadstart
Hi I'm developing an application and I need to generate an option that lets the user print the actual page, the table form on it, without any links or botons. Is there any option in JHeadstart that let me generate it? or, What can I do?
-
Is there a way to overwrite the data on the palm centro with data from my computer without losing the applications that are installed on the palm? I have acquired a used centro with lots of great applications on it that I want to keep. I know how t
-
How do I rebuild the 'open with' contextual menus?
I'm running the latest version of OSX 10 Mountain Lion- the contextual menu 'open with' section shows multiple instances of the same programs, sometimes 6 or 8 of them. How can I rebuild the menu so that it shows only one copy of each program?
-
OS 10.4 Images on 10.5 Server ?
I have some SOE images that are 10.4 based and would like to use them for netbooting / netinstalling. I've started up System Image Util thinking that would do it for me but have now read it needs 10.5 images. Is this correct or am I trying to use my
-
Batch Submission From Application in Debugging Mode
Hi , I am submitting a batch program for adding a person in CCB (single threaded, not rerunable ) from submitjob command via command prompt, it is running fine. But when in debug mode , submitting via application , It creates as many number of person