File to multiple idoc, Raising alerts , not using ccBPM
Hi experts,
I have file to multiple idoc scenario.sturcture of the incoming file like given below..
Header
line item
line item
header
line item
line item
there is a field Company COde in Header.If that company code is not Equal to "L" then dont map that header and line items with target
now we have to raise an alert notification mail saying that "company code is wrong." we have to send a single mail for this scenario if this condition is true even many times.
i am not using ccBPM in the scenario.
how can we achieve this functionality??
Thanks in advance.
Thanks,
Rohit
Refer this blog to bundle multiple idocs.
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
After you create the custom idoc interface using the above blog,
map the root node of the idoc interface based on your condition.
put a if condition to pass a constant to the root node for the idoc.
as an else condition, raise an exception using a udf.
Create a generic alert for runtime errors in mapping, which send mails whenever there is a failure in the mapping.
http://help.sap.com/saphelp_erp2004/helpdata/en/80/942f3ffed33d67e10000000a114084/content.htm
Regards,
Ravi
Similar Messages
-
Sender File adpter --don't raise alerts when file does not exist in folder
Hi,
My Scenario is File --- >XI ---> SAP.
I must archieve the file after it got polled. and iam polling for every 60 mins, if the file does not exist,it is throwing an alert like "Could not process file '.file..xml: No such file or directory '
Is there any way i can avoid raising an alert if file does not exist in the source folder.
we are on XI 3.0 sp23?
Thanks
SriniHello,
Your Subject:
>Sender File adpter --don't raise alerts when file does not exist in folder
is contradictory to your question.
>if the file does not exist,it is throwing an alert like "Could not process file '.file..xml: No such file or directory '
> Is there any way i can avoid raising an alert if file does not exist in the source folder.
I know you want to say "Don't Raise alerts when file does not exist in folder". Correct me if I am wrong.
Some times it happens, when we write the right thing but it means something else and this is the reason many experts have replied, "how to raise an alert". So if you remove the word "Sender File adapter" from your subject then it will be easy to understand the exact meaning.
Regards,
Sarvesh -
Error Handling in File to Multiple IDOC Scenario?
Hello Experts,
My scenario is file with Multiple records and I want to send it to SAP system.If there will be 10 Records in my file I need to create 10 IDOC in Target system.
I can use below of the two options.
1) File to Multiple Idoc (1.N Mapping)
2) Using BPM
3)Directly place the file in SAP application server and process it via ABAP Program.
However I am not clear in which option error handling will be more effective.Please suggest.
Basically I want to handle If out of 10 records 9 are correct and 1 record is not correct then I should be able to report within PI without affecting 9 correct records.Is it possible 9 records will be sent to SAP system and PI will only show error for 1 incorrect record.
Also I will be doing this scenrio for transaction data with huge size (1 Million Records).Which approach will be more effective in this case.
Thanks,
PushkarHi Patel,
I want to handle If out of 10 records 9 are correct and 1 record is not correct then I should be able to report within PI without affecting 9 correct records.Is it possible 9 records will be sent to SAP system and PI will only show error for 1 incorrect record.
when working on graphical mapping, the target structure is created when there are no errors in all records of source structure.
suppose if we have validation error in 9th and 10th record, then we can not process the first eight records and inturn we can not store the two error records in XI for further.
i suggest you the third option, you can directly place the file in SAP application server and process it via ABAP Program.
this is far better because you can do more customizations as you have to deal with millions of records.
Regards,
Pradeep A. -
Dear All,
I am trying to create customer master using FILE-To-Multiple IDocs.Idoc generated with 2 errors.
1.First one is status 51...Specify the Account Group.
2.Second one is it's generating only single idoc(not multiple).
I have mapped Account Group source field to KTOKD(Idoc).is this mapping problem?I have given IDOC occurence unbounded but not generating multiple idocs.below is my message mapping structure.
mt_customer Debmas01
customer (1...1)
customer_master(1..unbounded)----
>IDOC (1..unbounded)
below is my input xml file with data.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:mt_customer xmlns:ns0="urn://fenestacustmast">
<Customer>
<Customer_master>
<AccountGroup>0004</AccountGroup>
<CustomerNumber/>
<CompanyCode>1000</CompanyCode>
<SalesOrg>DBPM</SalesOrg>
<DistributionChannel>PS</DistributionChannel>
<Division>WD</Division>
<Title>Mr</Title>
<Name>Preethi</Name>
<SearchTerm>Mat</SearchTerm>
<SearchTerm2>V6CUSTNO</SearchTerm2>
<StreetNumber>Street 6</StreetNumber>
<City>Bangalore</City>
<Country>IN</Country>
<Region>KAR</Region>
<TransporationZone>ASCHTS01</TransporationZone>
<Fax>251662546</Fax>
<Telephone>9658965236</Telephone>
<VATRegNo>ABCG1254</VATRegNo>
<LegalStatus>01</LegalStatus>
<ReconAccount>36023901</ReconAccount>
<SortKey>001</SortKey>
<TermsOfPayment>S028</TermsOfPayment>
<ToleranceGroup>1000</ToleranceGroup>
<PaymentHistRecord>TRUE</PaymentHistRecord>
<SalesDistrict>A1KAKA</SalesDistrict>
<SalesOffice>BPBL</SalesOffice>
<SalesGroup>SEN</SalesGroup>
<Currency>INR</Currency>
<CustPricingProc>1</CustPricingProc>
<CustStatsGroup>1</CustStatsGroup>
<DeliveringPriority>01</DeliveringPriority>
<ShippingConditions>01</ShippingConditions>
<Plant>DBBG</Plant>
<AccountAssGroup>01</AccountAssGroup>
<TaxClassification>1</TaxClassification>
<InvoicingDate>IN</InvoicingDate>
<InvoicingListDate>IN</InvoicingListDate>
<IncoTerms>FCA</IncoTerms>
<IncotermsPart2>Bangalore</IncotermsPart2>
<CreditControlArea>FENE</CreditControlArea>
</Customer_master>
</Customer>
</ns0:mt_customer>
I did very simple mapping one to one without any functions.All are string types.I couldn't find what is the error?any help would be appreciated.
Thanks in advance.
VinayHi,
I would like to know whether you have mapped your customer_master(1..unbounded) node to IDOC(1..unbounded) node???Please check it once.Depending on that only the multiple IDOCs will be generated. I think it is mapping problem only. Have you changed the occurrence of IDOC to unbounded by exporting & then reimporting it to external definitions???? I've already done it & i got multiple IDOcs generated. Please check it and let me know the response so that I can help.
Please follow th below links
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
Thanks & Regards
Priyanka Anagani -
Hi experts,
I have a bit of a problem here wit a flat file to IDOC interface.
My input CSV file structure (shortened) is as follows -
<?xml version="1.0" encoding="UTF-8"?>
<ns0:POINBOUND_MT xmlns:ns0="urn:xx:xi:dwn:xx:pf:xxx:poinbound:100">
<Record>
<Row>
<PO_HEADER_ID/>
<TYPE_LOOKUP_CODE/>
<LINE_NUM/>
<AMOUNT_LIMIT/>
</Row>
</Record>
</ns0:POINBOUND_MT>
the target side is an idoc - PORDCR1.PORDCR102.
in the input file, for each row the PO_HEADER_ID field will have repeated values. the structure for eg.-
PO_HEADER_ID < other fields> < otherfields> ...
12345 <other fields>..<.. >
12345 <other fields>..<..>
12345 <other fields>..<..>
56789 <other fields>..<..>
56789 <other fields>..<..>
Now i need two idocs ( 2 distinct header values) on target side - the 1st idoc will have first 3 line items and 2nd idoc will have the last 2 line items. have already edited the IDOC in xsd format to make it unbounded.
<b><u>Problem</u></b> - i am able to create two idocs by handling contexts(splitbyvalue and a UDF), but with the line items its not working i.e. <u>the first idoc gets the 3 line items created but the 2nd idoc does not have any!</u>
my mapping for line items is -
PO_HEADER_ID <-> splitbyvalue(value changed) <-> count <---> UDF (for result.addvalue using count) <-----> lDOC LINE_ITEM node.
This logic does not work incase i need to create more than one idoc on the target side, it only works for the first idoc..so wat can i do??
Plz help.
thnx in advance!
Raju.Hi Raju,
check these links...
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
Sachin -
Each line of a file to a single Idoc (one file to multiple IDoc)?
Hi Community,
I have a flat file with many lines. Each of these lines has the same structure and has to fill a separate IDoc. How can I configure XI that it creates for each line a separate IDoc?
I already found a blog to such a topic: File to Multiple IDocs (XSLT Mapping)
But thatu2019s not what I am looking for (or I do not get the Point).
I also tried to set u201CRecords per Messageu201D to 1. But that is not working to. :/
Maybe one of you guys has an idea?
Thanks in advance,
UdoHi Udo,
For instance if file structure is as follows:
<File>
<Header>
</Header>
<Item>
</Item>
<Item>
</Item>
</File>
Now if u want to genarate a new Idoc for each n every <Item> in the file. The Header Information is to be repeated for each IDOC as well.
Then allu need to do is import the idoc in XI, then take the idoc xsd and change the occurrence o..unbound and then create the external definition.
Look into this blog.
The specified item was not found.
Now use the external definition in your mapping instead of using the original IDOC. In your mapping map the item to IDOC, and for header data you have to use the useOneAsMany function.
Reward if found useful
Regards,
Vinod. -
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 -
File to Multiple Idocs, Error: Tag MESSAGE1 found instead of tag IDOC BEGIN
Hi,
I have configured my file to multiple idocs scenario using the following blog -
/people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool
Now when i try to execute this scenario it is scenario it is giving me the following error at "Call Adapter" Stage in runtime-
"Tag MESSAGE1 found instead of tag IDOC BEGIN="
My message looks like this at "Request Message Mapping" Stage in runtime -
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
- <ns0:Message1>
- <ZDR009>
- <IDOC BEGIN="1">
- <Z100901 SEGMENT="1">
<RUNDATE>20080220</RUNDATE>
<RUNTIME>0037</RUNTIME>
<CONSTANT1>PYRLINCST</CONSTANT1>
<CONSTANT2>CSC</CONSTANT2>
- <Z100902 SEGMENT="1">
<RECTYP>2</RECTYP>
<SSN>641381239</SSN>
Kindly assist me in solving this error, Thanks in Advance!!
Regards.
SudheerHi Sudheer,
Just the check the message mapping. Check the parant node mappings to create two different messages.
It seems that the mapping done on IDOC Node to create the IDOCs is getting failed.
Copy the content from inbound payload and test it in message mapping.
Remember, when you load the test data into your test tab you will get the error of structure mismatch coz in your mapping you have additional message.
Do the change with original data as shown below befor testing.
<?xml version="1.0" encoding="UTF-8" ?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
Original message will be here.
</ns0:Message1>
</ns0:Messages>
Regards,
Sarvesh -
File-XI-multiple IDoc Scenario
Hi there -
I am working on single File-XI-multiple IDoc Scenario and have following questions:
(please keep in mind that there is already an existing multiple IDocs-XI-single File scenario between the same systems)
1. Please provide any detailed step by step documentation from end-to-end.
2. I am thinking it's compulsory to use BPM, is there any way to aviod?
3. Is it possible to update existing IDocs in R/3 directly from the data from XI?
Thanks everyone in advance...
PatHI,
Pls go thru following links-
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
Single inbound file -> XI -> Multiple IDOCs in SAP
One file for multiple IDOCs
Hope this helps..
Regards,
Moorthy -
Single file to multiple IDOC's
I have a scenario (File to IDOC) where single file creates multiple IDOC's.
I got message mapping error in production for record 622.
Question here is will the IDOC's till entries 621 be created in the ECC system or the entire messaged failed.?
It is sure that from 622 nothing was processed.
Thanks.So, in Mapping Mapping, in outbound interface, you certainly used an external definition with option "maxOccurs=Unbounded". is that right?
Anyway, as in moni, you have only one XML message, and as you said to us that this message is in error in moni (so red flag), it's the wole message (file) which has been rejected.
Have you check the WE02 (ECC) and IDX5 (PI) ?... because you will have directly your answer of your question "does my file is treated partially ? or completly rejected?" !
regards.
mickael -
File to multiple idoc scenarios depending on finput field value
Hi,
i have a file to idoc scenario.
depending on a particular field of the file i have to trigger a single idoc (with all the records in the file)or multiple idocs (for each record in the file ).
for example,
the file has 5 records-
2 records have field value A (create 1 idoc for all As)
3 records have field value B (create 1 idoc for each B)
so in this case 4 idocs (1 for all A, and 3x1 for B) are created
What is the best solution ?-
1. to have several outbound idoc interfaces and check each interface mapping for field value (A or B) ?
this solution seems like overwork to me
2. handle this in mapping ?
in that case will UDF be better or ABAP mapping
3. any other way ?
Thanks in advanceHi,
if you have one IDOC type you can use ABAP mapping
this way you will handle everything in tables
and you will be able to post one IDOC (bundled)
with all IDOCs inside
also if you use ABAP mapping you will be able to incorporate changes
easily in the future I believe
for idoc bundling:
<a href="/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi"><b>Mastering IDoc Business Scenarios with SAP XI</b></a>
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
File to multiple IDOC(message)
Hi
I need to map file to multiple IDoc type that means on source message have two target message . Any ideas how to achieve that
Thanks in advance
Regards
Swatantrarefer these weblogs that will give you an idea;
Multi Mapping -
BPM involved:
/people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
/people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
Without BPM:
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible -
How to download a pdf file in external storage(sd-card) not use a isolated storage wp8
i have a url for download pdf file return by webservices
and i have attach this link in hypertext button this is start a download but in browser . and when i am google for this purpose the give me "
Background file transfer
" Process and then code is also using a isolated storage but i want a external storage process Please Help me
how to download a pdf file in external storage(sd-card) not use a isolated storage wp8Hello,
This forum is for discussions and questions regarding profiles and Microsoft's recognition system on the MSDN and TechNet sites. It is not for products/technologies.
As it's off-topic here, I am moving the question to the
Where is the forum for... forum.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}}) -
Hi,
Need help on IDOC files created on application server.
For IDOCs of EDI type generally one file is created on application server for one idoc. Is there any way to create a common file for multiple IDOCs that are created in a batch job?
Thanking in anticipation
Sudhir BhateHi Sudhir;
Yes, it is a setting on the outbound parameters of the partner profile. In the section for "output mode," select "Collect IDocs." This link to help.sap.com describes the procedure:
http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b812a43d711d1893e0000e8323c4f/content.htm
Cheers,
John -
Single inbound file - XI - Multiple IDOCs in SAP
Hi XI pros,
my file input file has very simple structure of header and item:
H
L
L
L
Header has 2 fields snd item has 3 fields which I need to map to IDOC and post simple MM document in SAP.
Mapping itself is very easy. I need to create separate IDOC for every item record type L.
Question is whether I can do this in general without BPM ?
Thank you, Forest.Hi Forest,
Go thru this blog of <b>File to Multiple IDoc's</b>
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
I think this satisfy ur requirements.
Hope it helps and u don't forget to give me points.
Regards
Arpit Seth
Maybe you are looking for
-
Windows 7 and vista. printer issue
I have 2 laptops one has vista and the new one has windows. i installed the drivers form HP's site but can not print. Shows printer offline. Need help.. using a wireless router for both.
-
How to transfer history from old hard drive to new computer
So my motherboard on my old PC died. I therefore pulled the hard-drive from my old computer and patiently waited on my new toy to come in. Problem is, I didn't have a chance to do my weekly synch before my old system crashed. I'd like to get the hist
-
TCP/IP connection in a loop
Dear Friends, I am trying to make my computer with labview to communicate with another computer running VB.net application. I am basically trying to set up a TCP/IP listener. I want the VI to continuously run and send the values based on a command bu
-
after i update my ipad 2(wifi+3g/64g) to ios 5.0.1..everything works ok except 3g can not connect to internet.. in the top of my ipad screen it show 3g sign..before update the 3g was working ok
-
I recently did a software update, restarted my laptop and tried to start Safari, and the icon just bounced and nothing happened. I searched for solutions, including logging in as another user, but nothing is causing it to launch. (Have tried deleting