Query related to mapping
Hi,
I have a requirement in mapping
On the Source side (04/26/2011 17:13:50 , 1000 , 90 , Business) data is coming into one field.
Sample Source Data is coming as : 04/26/2011 17:13:50 , 1000 , 90 , Business
In the source structure mentioned above
first field is Date which will be in the format "MM/dd/yyyy HH:mm:ss" and will be 20 characters.
second field is Batch id which will be of variable length
third field is submission id which will be of variable length
fourth field is task type which will be of variable length
Target Should look like as shown below
<ns2:requestContent>
<ns2:creationDate>04/26/2011 17:13:50</ns2:creationDate>
<ns2:batchId>1000</ns2:batchId>
<ns2:submissionId>90</ns2:submissionId>
<ns2:taskType>Business</ns2:taskType>
</ns2:requestContent>
Can anyone tell me how to acheive it in mapping?
Any answers will be much appreciated.
Thanks & Regards
Prabhat
Use string.split method and delimiter is "," (comma)
example
String input="04/26/2011 17:13:50 , 1000 , 90 , Business";
String delimiter =",";
String[] field = input.split(delimiter);
Since field length is not fixed, you might want to use java mapping and parse the values as above and set it in target elements.
the above field array has substring of all the 4 values. you might have to use for loop and extract each and set in target elements
code sample for loop .. instead system println you can set value for target xml tag elements.
for (int i=0; i< field.length; i++){
System.out.println(field<i>);
Edited by: Baskar Gopal on Apr 27, 2011 1:28 PM
Similar Messages
-
Query related message mapping: Play with queue.
Hi
i have a text file which i converting using File Content Conversion of file sender adapter. My file was very nested so i couldn't convert it the way i wanted i.e.
<Header></Header>
<Detail>
<Weights></Weights>
</Detail>
<Trailer></Trailer>
So now I m left with this kind of source xml:
<ns: MT_REQ>
<header>
</header>
<Detail>
</Detail>
<Weight>
</Weight>
<Weight>
</Weight>
<Detail>
</Detail>
<Weight>
</Weight>
<Weight>
</Weight>
<trailer>
</trailer>
And i want to map it to the same message type <ns: MT_REQ> but due to queuing of data it gives the following result:
<ns: MT_REQ>
<header>
<Identifier>H</Identifier>
</header>
<Detail>
<Identifier>D</Identifier>
Identifier>
</Detail>
<Detail>
<Identifier>D</Identifier>
</Detail>
<Weight>
<Identifier>W</Identifier>
</Weight>
<Weight>
<Identifier>W</Identifier>
</Weight>
<Weight>
<Identifier>W</Identifier>
</Weight>
<Weight>
<Identifier>W</Identifier>
</Weight>
<trailer>
<Identifier>T</Identifier>
</trailer>
i.e. all detail together then weights and header trailer on top and bottom. Now the problem is there is no relation between the weights and detail except that in the monitoring it comes like
1. First detail tag opens and closes with its data
2 then weights which are the heirarchy detail 1 open and closes
3 then second detail opens and closes and then weights of second detail comes under it before any third detail tag opens
So i was wondering if with the help of functions provided in the message mapping it will generate exact mirror image of my source <ns: MT_REQ> into the target <ns: MT_REQ1> which is the exact replica of the former.
I tried it with FormatByExample but dd not work. Is there any Userdefined function or something foe my problem.
Please help !!
NainaStefen
My Inbound file was coming correctly like this :
record
- detail
- weight
- weight
record
- detail
- weight
but when mapping to the target in same style it was going this way
- detail
- detail
- weight
- weight
- weight
so what i did...i asked the portal people to add an identifier to the details and weights so that i can read it and write a UD to finally map it correctly:
- 1detail
- 2detail
- 1weight
- 1weight
- 2weight
- 2weight
it is working properly now....thanks to you all.....have given the points -
Query related to UPN Suffix in Hierarchical domain architecture in Active Directory deployment
This is regarding a query related to UPN Suffix in Hierarchical domain architecture in Active Directory deployment.
We use LDAP query (filter uPNSuffixes=* for the parent domain DN) to retrieve the upn suffixes configured in the AD Domain. This returns the UpnSuffixes configured for the entire domain tree ( upnsuffixes of parent domain and all the child domains) in the
hierarchy. The AD Domains and Trusts configuration lists all the upnsuffixes as part of the dnsroot domain.
For one of our implementation, we need to distinguish between the UPNsuffixes belonging to the parent and child domain and map the UPN suffixes with the respective domain in the hierarchy. As the upnsuffixes are stored as part of the root domain in the AD
domains and trusts configuration, it was not clear how to retrieve the information specific to each domain in the hierarchy.
It would be helpful if you could provide pointers on how to obtain the above mapping for the upn suffixes in a hierarchical domain setup.
Thank you,
DurgeshBy default, you can use only the domain name as UPN suffix for user accounts you create within the domain. It is possible to add extra UPN suffixes but these are added at the forest level and not specific to a domain.
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
My Website Link
My Linkedin Profile
My MVP Profile -
Query relating to the creation of Managed Service Accounts
Hi Folks
I am studying for my 70-411 exam and have a query relating to the creation of Managed Service Accounts.
I have successfully created an MSA account named 'MSATest' on a DC using:
new-adserviceaccount -name msatest –dnshostname home-dc-01 -passthru
and
add-AdcomputerServiceAccount -identity home-ap-01 -serviceaccount msatest -passthru
However the guide that I am using now says that I now need to run: Install-ADServiceAccount on the host computer in the domain to install the MSA in order to make available it available for use by services.
So on my member server (home-ap-01) I have installed the Active Directory Module for powershell and ran:
PS C:\Users\administrator.PCECORP> Install-ADServiceAccount -Identity msatest
Install-ADServiceAccount : Cannot install service account. Error Message: 'An
unspecified error has occurred'.
At line:1 char:1
+ Install-ADServiceAccount -Identity msatest
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (msatest:String) [Install-ADServiceA
ccount], ADException
+ FullyQualifiedErrorId : InstallADServiceAccount:PerformOperation:Install
ServiceAcccountFailure,Microsoft.ActiveDirectory.Management.Commands.Insta
llADServiceAccount
PS C:\Users\administrator.PCECORP>
However this errors, Have I misunderstood the purpose of the Install-ADServiceAccount ? or am I doing something wrong?
Thanks in advance for you help.Try using -RestrictToSingleComputer parameter when creating service account with New-ADServiceAccount.
Gleb.
Hi Gleb
Thank you for your help, it is appreciated. That did the trick.
All the best. -
Query related to multiple attachments in mail adapter
Hi,
I have a query related to multiple attachments in receiver mail adapter.
I have successfully configured mail related scenarios but now I have another requirement in which I have multiple source files in one directory and I want to send one mail for multiple files as mail attachment using receiver mail adapter. Can anybody help me how to achieve multiple attachments in reciever mail adapter.
To clarify the requirement more let us take an example
Ex: I have 5 input files in the source which I pick up using additional files option in the sender file adapter, now I want to send those 5 files into one mail with 5 attachments. Can anybody explain how 5 different payload will be sent as multiple attachments in one mail.
For your information I used, options like "keep attachments" , some parameters in module processesors etcs...but not able to find out as how exactly it will be achieved.......I dont want to use BPM collect pattern for this.....
Need your help on this issue. Please suggest the solution as how it can be achieved using receiver mail adapter.
Thanks & Regards
PrabhatHi,
I resolved the issue on my own. Thanks for your help and support.
Thanks & Regards
Prabhat -
RE:Error related to Mapping and/or Database?
Hi guys,
I am processing a TLOG(transaction) from XI to BW. it is processing successfully(which i have seen in SXMB_MONI).For some TLOG's i am getting error like "Maintain entries in ZPOS_ITEMTXNTYPE for 0002/ZTGS//0000" in the response message id.
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:BAPIRET2Table xmlns:ns1="http://bell.ca/fi/metadata/pi/7.0/r3_fi">
- <BAPIRET2Record>
<Type>E</Type>
<Id>ZPIPE</Id>
<Number>016</Number>
<Message>Maintain entries in ZPOS_ITEMTXNTYPE for 0002/ZTGS//0000</Message>
<LogID />
<LogMessageID>000000</LogMessageID>
<MessageVariable1>0002</MessageVariable1>
<MessageVariable2>ZTGS</MessageVariable2>
<MessageVariable3 />
<MessageVariable4>0000</MessageVariable4>
<Parameter />
<Row>0</Row>
<Field />
<System />
</BAPIRET2Record>
</ns1:BAPIRET2Table>
Can someone please tell me weather this error is related to XI Mapping or it is related to data in the table( i mean wrong data entered into the table like......) or it is related to BI or something else.
please provide your valuable suggestions
Thanks in advance,
AmarnathAmarnath,
It seems like the values you are sending to the BAPI are not returning any values. So please check whether there is any response values for the corresponding inputs you are sending. It may be related to mapping also like when you send any number to BAPI say if the length is 10 and you are sending as 123 then it will not return any values because it expects 0000000123. So please check that.
Best thing would be test the bapi in SE37 with one values and when it returns the output use the same values you are testing.
Regards,
---Satish -
Query related to Email adapter
Hi,
I have query related to receiver Email adapter. I am able to run a scenario for 2 attachments in receiver mail adapter scenario.
My scenario is that I am picking up the multiple files using sender file adapter "additonal fiiles" fucntionality and and post the two files as attachments in receiver email adapter. I am picking up two formats: .xml file and PDF and successfully attached to the receiver email adapter.
My query is is related to Standard module processors sequence.
For 3 files in mail attachments(.xml , pdf & .txt) what should be the module processors sequence in receiver email adapter?
Currently I am using the following module processors sequence
1 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans2
2 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swap
3 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans1
4 sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
swap -> swap.keyName -> payload-name
swap> swap.keyValue> file1
trans1> Transform.ContentDescription>file1
trans1> Transform.ContentDisposition>attachment
trans1> Transform.ContentType>application/pdf;name="file1.pdf"
trans2>Transform.ContentDescription>file1
trans2>Transform.ContentDescription>inline
Can any body tell me what should be the sequence of module processors and the associated parameters so that all formats(.xml , pdf & .txt) should go as an attachments in the reciever email adapter.
Thanks & Regards
Prabhatit would be something like this, Try this
1 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swaptxt
2 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans3
3 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swapxml
4 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans2
5 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swappdf
6 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans1
7 sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
swapxml -> swap.keyName -> payload-name
swapxml> swap.keyValue> file2
swappdf -> swap.keyName -> payload-name
swappdf> swap.keyValue> file1
trans1> Transform.ContentDescription>file1
trans1> Transform.ContentDisposition>attachment
trans1> Transform.ContentType>application/pdf;name="file1.pdf"
trans2>Transform.ContentDescription>file2
trans2>Transform.ContentDisposition>attachment
trans2> Transform.ContentType>application/xml;name="file2.xml"
trans3> Transform.ContentDescription>file3
trans3> Transform.ContentDisposition>attachment
trans3> Transform.ContentType>application/txt;name="file3.txt"
mail --> mime.contenttype --> multipart/mixed
I have not tried this myself. but it should work -
Hello All,
We are in process of implementing Exchange 2013 in our Organization and had a Query related to GAL.
Below is our Environment description:
01. We have a Single Forest and Single Domain Architecture.
02. We will have separate Active Directory Sites for all 3 Regions across Global.
03. Exchange 2013 will be installed in each region.
04. In APAC region Exchange 2013 Language pack for Japanese will be installed to support Japanese language.
Our Requirement:
================
01. When a Japanese User tries to browse GAL all the display names have to be displayed in Japanese language and when a user who resides other Region (Europe or AMERICAS) tries to browse GAL the Address list has to be displayed in default English Language.
Can someone guide us on how this can be achieved?
Awaiting for all your suggestions.
Thanks in advance.
Thanks & Regards,
Nagaraj N
Nagaraj NHi Nagaraj,
Here are some requirements that I am still not quite sure. Could you please provide more information about it? Such as:
1. Do you mean one user have two display names: one with Japanese language used for users in Japan, one with English language used for English users? Then we filter address lists with language difference. Based on my knowledge, one email address is generally
involved for one display name.
2. If there are both Japanese users and English Language users in the forest, and you just need Japanese users view users whose name is displayed as Japanese language. We can use
Address book policies (ABPs) to segment users into specific groups to provide customized views of your organization’s global address list (GAL).
To show different GAL for different users, we can specify the CustomAttribute1-15 property to divide your organizations. For example, we can set the CustomAttribute15 property for Japanese users to
Japan. Just like:
Set-Mailbox –Identity JapanUser1 –CustomAttribute15 Japan
Then we can create global address list for Japanese that includes all of the recipients that exists in the address lists and room address list:
New-GlobalAddressList -Name "GAL_Japan" -RecipientFilter {(CustomAttribute15 -eq "Japan")}
For detailed steps about how to create and apply the Address Book Policies, please refer to:
http://technet.microsoft.com/en-us/library/jj657455(v=exchg.150).aspx
Hope it helps.
Regards,
Winnie Liang
TechNet Community Support -
Query related to DataGuard Archicture...
Hi All,
I want to implement DataGuard Archicture in my setup, I'hv one query related to different operating system in my setup, I'hv two server one for primary and the other for standby Database with 10g DB R2. In one server having Linux os and the other own has Solaris, so DataGuard will work on different os or both server os should be same? And if I'hv 2 GB then will it be create any prob?
pl. suggest me.A requirement for standby is both databases must be on the same platform and on the same db version, this requirement applies even if you are on a logical or on a physical dataguard database.
You can verify the Step by Step instructions to create a standby database:
Step-byStep Instructions for Creating a Logical Standby Database
Step-by-Step Instructions for Creating a Physical Standby Database
~ Madrid -
Hi Freinds,
This is mamatha i have a query related to withhold tax .what is diff b/w business place and section code.what is importance of section code.
Regards
S Mamatha
Please, search SDNFor India, witholding tax, you need to create the business place and section code with the same id.
Section code is additional field provided by sap for tds related processig, reports etc.
Regards,
SDNer -
Query related to the transfer of the control to the other controller.
Hi all,
I have a query related to the transfer of the control to the other controller.
I have components A and B .From a view of component A I neeed to open a window which belong to component B.Problem is that ,if I use create_window_for_cmp_usage( ) and the open( ) method and after that there is some code,then that code is getting executed before the window is opening.
I want that the control should be back to the these code after the window is poped up and after clossing the window.
Eg
method ONACTIONOPEN_WINDOW .
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window_for_cmp_usage(
interface_view_name = 'ZHELLO_WORLD'
component_usage_name = 'USAGE_HELLO'
title =
close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
lo_window->open( ).
data a type i.
data b type i.
a = 2.
b = 3.
a = a + b.
endmethod.
In this case I am calling ONACTIONOPEN_WINDOW method.But before opening the window the a iscalculated here.I want that after popuping the window the calculations should be done .
How will I achieve this.
Thanks in advance.
Edited by: vaibhav nirmal on Nov 25, 2008 6:42 AMHi,
You will have to do your calculation as an event in your new window, or capture the closing of the new window as an event in your currenbt view and do your calculations in the event.
Regards,
Shruthi R -
Query related to User License.
Hi all,
I have some query related to User License.
If we have 250 no of user license( with one developer),
can we use them individually on DEV, QAS & PRD ?
can we use them individually on differrent clients?
what abt users on 000 client. Is they should different license or come under same group.
Regards,
shanContact you SAP Account Manager.
Regards
Juan -
Query related to Internal Table
Hi ,
I have a small query related to internal table , can we dump millions of records to an internal .
The actual requirment is like i need to develop a report in BI side where i have to dump records into an internal table from PSA tables without filtering .
Can we do so ....
or do we have any other option to dump the data to an internal tables .
need some tips on the same .
Thanks ,
VInay.Hello Vinay,
I believe the following extract will give you a brief idea on the size limitations for an internal table.......
Internal tables are dynamic data objects, since they can contain any number of lines of a particular type. The only restriction on the number of lines an internal table may contain are the limits of your system installation. <u><i>The maximum memory that can be occupied by an internal table (including its internal administration) is 2 gigabytes. A more realistic figure is up to 500 megabytes. An additional restriction for hashed tables is that they may not contain more than 2 million entries.</i></u>
Hope it proved useful
Reward if helpful
Regards
Byju -
Query related to OA framework.
HI all,
I have one query related to OA framework.
Query : I have one business requirement to add/update one choice fields on receivables page and base on user input’s I have to add this choice in sql query and want to display result that is controller .( As of now everything is there only I want to add one more choice on page ).
So I am looking for solution what to do . As I am new in OA framework.
First of all I want to pull out all files and want to check /modify on my user desktop once it will work normal then I will start modify .
So for that what I have to do (I have to pull out all files from server ) . ?
Thanks in advance,
RajRaj,
I have already replied that you will find the details for setup in some of the old threads. Its always better to look into old threads for generic issues. If you have got any specific OAF issue, ppl are always here to help you.
--Shiv -
Query related to RSA3 transaction
Hi Guys ,
I have query related to RSA3 transaction screen in that you can see in
settings
Data Records / Calls = 100
Display Extr. Calls = 10 by default .
can this value can be made to 1000 and 1000 as a default value as soon as screen get displayed without manually changed .
can we creat any variant for this ,will it be possible .
i need some suggestion related to this .
valuble answers will be surly rewarded .
Thanks ,
Vinay .Do any one have any suggestion how to solve the query
Maybe you are looking for
-
Can anyone tell me why when I type a very long email, the send button is not highlighted anymore when I am done and I can't send the message? And I can't seem to save the message or anything and as soon as I touch a button, I lose the whole thing. An
-
Backing up iTunes on version 10 is not working, please help!!
Hi, I downloaded itunes ten in the middle of my itunes music update and now it wont let me back up my files. please help!, Hi, I downloaded itunes ten in the middle of my itunes music update and now it wont let me back up my files. please help!
-
Meaning and coherence between DEBESTA_BWPROT[/E/H] Tables
Hey together, DataSource 0UC_SALES_STATS_01 and related Extractor are working with the help of three tables. I still have some problems to understand them completly. My view and open question on them are as follows: 1.) DBESTA_BWPROT DBESTA_BWPROT is
-
Hello All, I am using COPY command of SQL/Plus, I also have set my copycommit to 0. But I am getting the error message of ORA-01458. I'll appreciate any assistance. I also noticed that if records were copied less than 1000 those were copied but this
-
All contacts lost! Urgent help needed
Dear All, I was trying to update my friends iphone and after updating it to version 6, i have lost all the contacts from the list, can anyone pls tell me how to get these contacts back. By the way i used my apple id when i connected to itunes.