Picking up required Characteristics from my Source field to Target field!!
Hi ,
I need to pick up data from a source field that is 35 characters long to a target field in my Cube that is only 4 char long. But the data that will be fed into this source field will be 4 char long only, so can anyone help me with picking up only the 4 char I need into my target field.
Is this possible, If yes kindly post the routine that will allow me to concatenate the remaining characteristics and pick up only the 4 char I need.
Thanks,
Guru.
Also, if this is the behaviour of the infoObject at all the places it is to be used, you can created Global Transfer Routine at infoObject level.
Otherwise you can write the routine in transformations, rule type "Routine" and then the avaiable source field can be used.
A simple example:
I needed to build a character date field for a cross-platform integration project I was working on. First, I defined the date field:
data: datechar(10).
To build the date lets use sy-datum, which has the current system date.
write SY-DATUM+4(2) to datechar+0(2).
write '/' datechar+2(1).
write SY-DATUM+6(2) to datechar+3(2).
write '/' TO datechar+5(1).
write SY-DATUM+0(4) to datechar+6(4).
Value of SY-DATUM 20010616
Here's how the field changes with the execution of each line.
06________
06/_______
06/16_____
06/16/____
06/16/2001
Hope this helps.
Cheers,
Sumit
Similar Messages
-
Dynamically filename is required in CC but not reuired in Target field
HI,
my requirement is to create filename dynamically(UDF) in Receiver communication channel but I dont want the name should be populated in the target field as target field is not provided by business.
I received the below UDF from SDN
String date = var1[0];
String RFCL = var2[0] ;
String FN = RFCL + date ;
AbstractTrace trace = container.getTrace();
trace.addWarning("Test" + FN);
String NameSpace = "http:/"+"/sap.com/xi/XI/Syatem/File";
DynamicConfiguration conf =
(DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(NameSpace, "FileName" );
conf.put(key,FN);
//trace.addWarning("Test" + var2);
//trace.addWarning("Test" + RFCL);
result.addValue(var2);
Can any one suggest me how I can achieve my requirement
ThanksHi
Use the code
public String getFileName(Container container) throws StreamTransformationException{
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
//For getting filename
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
// Retrieve the filename
String FileName = conf.get(key);
return FileName;}
Map this to the root node. Do not forget to keep the Adapter Specific Message Attributes(ASMA) checked in the communication channels.
Set Adapter Specific Message Attributes
File Name.
Regards
Monika -
Transform data from multiple sources to single target in bpel 10.13.1.0
Hi,
I need to transform data from mulitple sources to single target schema.
Please any one can give some idea.
Regards
janardhanWe are gone a other way merge multiple information into one target.
First we have created a wrapper variable with the structure of the target variable that we want use in the transformation.
With a assign element we filled the wrapper variable with information from the inputvariable of the bpel process and some addtional information.
Then we called in the transformation the wrapper variable as source and the target variable as target.
We have used that way in some bpel process and it works for us.
Within Oracle SOA Suite 11g, there is the mediator component that does simply routing
and transformation functionality within a composite (SCA).
That's all, I hope that help.
Michael -
Required Characteristics from 0BI_ALL for new custom object
Hello,
I created a small query with the following characteristics on 0BPARTNER info.provider
with the following characteristics
Rows:
Business Partner (0BPARTNER)
Country(0COUNTRY)
Region(0REGION) With Variable Mandatory
Now I need to secure this query by region.Hence started creating new authorization object ZREGUSCA using RSECADMIN and with the following charactertics / Dimensions limiting to only these characteristics out of 40 characteristics from 0BI_ALL.(I donot want to assign 0BI_ALL to S_RS_AUTH, if i do,i cannot secure this query)
0REGION
0TCAACTVT
0TCAIPROV
0TCAVALID
0APO_LOCNO
0CUSTOMER
0TCAKYFNM
My question is why do i need to have the last three characteristics (0APO_LOCNO,0CUSTOMER,0TCAKYFNM)
included in the object apart from the region and the special Characteristics? I found these three non related objects as required, after a lot of trouble shooting?
How do i know, what are the required characteristics if i want to secure by plant in another query?
I will really appreciate your responses and thoughts
Regards
SreeniHi Sreeni
Because the chars are auth relevant and are in the cube.
0TCAKYFNM is also auth relevant and therefore you need to authorize key figures.
Chars that are not explicitly in the drilldown must be authorized with aggregation auth, that is with the colon-sign :
You can find the information in the authorization protocol. There is a block auth relevant chars.
Record your query via RSUDO for the restricted user and flag the "with protocol" box or go to RSECADMIN->Error logs where you can enter your name to be logged always.
There, you will also find the protocol.
Best Peter -
Open Hub - Data from multiple sources to single target
Hello,
I am using Open Hub to send the data from SAP BI to Flat files. I have a requirement where I want to create a single destination from multiple sources. In other words in BI we have different tables for attributes and text. I would like to combine the data from attributes and text into a single file. For eg. I want to have material attributes and text in the same single file as output.
Is this possible in Open Hub? If yes could you please help me to understand the process.
Thanks,
KKHi,
1. Create the Info Spoke and activate it
2. Change it and go to transformation
3. Check the box InfoSpoke with Transf. Using BAdI
4. You are asked if you want to generate the spoke. Say yes & Simply set some texts and activate here, then return.
5. You can now change the target structure. Simply create a Z structure with all the attributs & text field in it in the SE11 and enter it here.
6. Double click on BAdI implementation & then double click again on "TRANSFORM" method of the implementation. It will take you to method
"IF_EX_OPENHUB_TRANSFORM~TRANSFORM"
7. Write a code to select & fill the text field & map other filed with the attribute fields.
Example:
ZEMPLOYEE_ATTR_STRU - Target Structure for InfoSpoke EMPLOYEE_ATTR
EMPLOYEE /BI0/OIEMPLOYEE NUMC 8 0 Employee
DATETO /BI0/OIDATETO DATS 8 0 Valid to
DATEFROM /BI0/OIDATEFROM DATS 8 0 Valid from
COMP_CODE /BI0/OICOMP_CODE CHAR 4 0 Company code
CO_MST_AR /BI0/OICO_MST_AR CHAR 4 0 Controlling Area of Master Cost Center
HRPOSITION /BI0/OIHRPOSITION NUMC 8 0 Position
MAST_CCTR /BI0/OIMAST_CCTR CHAR 10 0 Master Cost Center
TXTMD RSTXTMD CHAR 40 0 Medium description
Note: Text and attribute are in same structure. -
Hi Experts,
I have a requirement where I have two different messages on the source side one target message. One node in the Target structure should repeat as many times as one node from each of the source messages.
Eg:
<SourceMessage1>
<DocList>
<DocList>
</SourceMessage1>
<SourceMessage2>
<DocList>
<DocList>
</SourceMessage2>
Target Structure should be:
<Target>
<Msg1DocList>
<Msg1DocList>
<Msg2DocList>
<Msg2DocList>
</Target>
Please provide solution to the above query.
Thanks,
Abhishek.Hi,
I have included the two source messages on source side in Message Mapping. My only doubt was that other than "duplicating the subtree" is there any other option to do it.
Thanks,
Abhishek. -
Copy first source context to target field
Hi,
As I have not worked with the manipulation od contexts very much, I currently have the following problem.
Source message has 5 contexts of a segment <Partner> and the information in the first context needs to go into target field 1 as it is related to a specific type of partner and the other remaining contexts need to go into target field 2.
Therefore my question (albeit a pretty simple one I hope) is how do I detect the first context and move it into target field 1 ??
Thanks
Colin.you can use the function "count" to compare:
count
equalS
constant(1) /
ifWithoutElse
partner / -
I want to Pick the Single file from The source Directory
Hi,
My Scenario is File to RFC .. I'm getting the files in the source Directory.. File names are SENDER_(TIMESTAP).XML .. but the problem is... When ever Files are available in the Source Directory Immediately XI was picking all the files at a time.. But I want to to Pick a single file at a time..
for Making this what we have to do.. After Processing the first file then only my Sender adapter should pick the next file... (even though Multiple files are available in my Source Directory)
Regards
JainHi,
the other option was use Adapter specific attributes in the Sender Communication channel..
or
while droping the files ask them to drop using time stamp in another directory and an external validation is required .. and after validation push single file to Source directory using batch file..
i.e use a batch file using run time operating system or make that batch file to run at OS level ..
where the batch files needs to validate the time interval of the file and needs to push a single file to the source directory.. where from there we can directly pick a single file and process..
regards,
Kishore -
We require them to enter their own text into the field. The form was created in LiveCycle Designer and is accessed by users in Reader. Thanks
You can't prevent someone from pasting, but you can use a script to check if more than one character was pasted at a time, and prevent it if it's true. This would be a reasonable alternative it seems, but you should post this question in the LiveCycle Designer forum if you need help with the script.
-
Want To Pick a single file from the Source Directory
Hi,
My Scenario is File to Proxy. Legacy team is generating Bunch of files in a same directory.But i want to pick single file for each poll interval. after process teh firts file only Sender Adapter should pick and process the next file .
At prsent , My scenario is picking all the files in a single shot and all the files are processing parellelly. . But all the files are related to one Process Order So, out of bunch of files some few of files are processing successfullu. remaining all teh files are getting " Proces Order is locked by another User" Error message . This was happeing only for the parellel processing. And from technical point of view , In sender Communication Channel i have used Quality of Service is Exactly Once in Order and i have mentioned the Queue name also. .
Evel legacy team is generating Bulk of files i want to pick a single file only, suppose if theer is no chnace then at least i want to process single file at a time after finishing the one file processing , then only i want to go for the next file
For this, is teher any paremeters need to be set , please suggest me,.
Regards
JainAt prsent , My scenario is picking all the files in a single shot and all the files are processing parellelly.
Are you using the Additional Source Files options?
What you can do :
1) Select Processing Tab > Processing Sequence> By Date
2) You can introduce a delay between two processing by using a Thread.sleep(msec) statement in some UDF in your mapping...this will ensure some delay between two processing: Re: Delay in MM possible ?
3) You can select the Connect Mode option as Per File Transfer.....keep it as the last option....
Regards,
Abhishek. -
Data From Infocube(Source) to Infocube(Target)
Hai ,
Please can some tell me how to populate data from Infocube to Infocube.Iam working on BW 3.5.
I have created one infocube and loaded data into it and then right clicked on first infocube and said export datasource.I am able to see in BW source system the data source.Now i have created second cube and i want to populate data from 1st cube.
Please tell me the procedure.I will allocate points to all of u.Thanks in advance.
Bye
MadhuHi,
what are the navigational steps in loading data from cube to cube?
3.X
how to copy the one cube to onether cube
7
Create transformation btn cubes.
Create DTP and run it.
Loading data from one cube to another cube.
Cube to cube data loading
how to upload data from cube to cube
Can we pull data from one cube to another cube
Data Load Steps:
Reading data from another cube
Thanks,
JituK -
Loading BLOB / CLOB data from oracle source to oracle target
Hello Friends,
Source and Taret DB are Oracle 11g.
I am havnig CLOB and BLOB source columns and I am linking these links to CLOB/BLOB cloumns of Target .
but the image of source ( BLOB ) is not got loaded and when I tried to view the Image - It shows *'IMAGE COULD NOT BE DECODED FROM BINARY STREAM '.*
For BLOB Coulmn - the is what i am using for target - NVL(WRK_IMAGE.IMAGE_DATA, EMPTY_BLOB())
For CLOB Column - NVL(WRK_CALLOUT_V.CALLOUT.getClobVal(), EMPTY_CLOB()) -
For CLOB i don't have any issue - but for BLOB I could not able to see the blob image .
Appreciate if you can let me know where the issue is .
thanks/kumartry with some other image. if issue exists then open the raw form of the image and check the header.
-
Picking of Adobe forms from application server
Hi Gurus
We have SAP ECC 6.0. So far in our system we have text files and CSV excel files which comes from external system and lies in application sever and these are being picked up automatically by system and gets processed in SAP.
1)The requirement is to "pick the adobe forms from application server and read some fields in the form and update the fields (required) in customer master data in SAP". How can we achieve this?
Any kind of help is appreciated.
Thanks
AleemHi Aleem,
I tried to work on a similar scenario couple of months back. But it was not successful. Will you please let me know if you get any solution???
Thanks in advance
Poornima -
COPA Derivation based with target field as non-copa field
Hello experts,
There is a requirement to derive the Characteristic maintained in Classification view(AUSP table) in Material master based on material number.The target field into which the characteristic value needs to be populated is not in COPA(it is a non-copa field).
I tried to use table look up with AUSP table, but it is asking for values of certain key fields like
ATZHL(Characteristic value counter) MAFID(Indicator: Object/Class) and
KLART(Class Type), which are not there in COPA.
With the Enhancement in KEDR transaction, EXIT_SAPlKEDRCOPA_001 and Include ZXKKEU11, I created an enhancement step by giving the material as the key in the source fields.With that material number I can do a select on the AUSP table inside the include ZXKKEU11 and get the characteristic value. The problem i am facing is that the target field which stores the internal characteristic value is not there in COPA?And while creating a derivation rule, I can only select the COPA fields as target fields.
It's urgent....any suggestions please? Points will be rewarded for any useful answer.
Thanks,
AnkyHi,
As far as I know the derivation functionality in COPA is meant for derivation of characteristic values to store them in a characteristic field.
If you splitt up the derivation in two steps it might be possible to use the USERTEMP fields, to store the information needed and to pass it on to an other lookup step as a key-reference.
Regards,
Roy -
Derivation rule CO-PA, number of target fields
Hi all,
is there a possibility to have more than 6 target fields in a CO-PA derivation rule or is the only way to handle more fields with a separate rule based on the same source field?
thanks for your help
kind regards
AdrianDear Adrian,
If you want to update more than 6 target field in one derivation step, as for I know is not possible but create a new derivation step with same source and additonal target fields, otherwise use exits.
Regards
Ravi
Maybe you are looking for
-
Playback stuttering with certain types of animations
We are experiencing heavy stuttering or jerking attempting to play back certain types of animations. The problem persists with several codecs, regardless of pixel size or compression, both in the Quicktime player and within applications that rely upo
-
Hello, Quick question - I'm building my portfolio with Adobe Indesign and I'm using the gradient feather tool to create reflections but when I export as a PDF I have two problems when viewing in Preview. The first problem is that the gradient feather
-
Inactive plug-in in all browsers with Snow leopard
I am trying run a java applet(?) with a site. I cannot get the java plug ins to work on any of the browsers(3). I keep getting inactive plug-in. I have the latest java update for Snow Leopard loaded for the Safari. When I click on "inactive plug-
-
Lion and Mountain Lion and Snow Leopard, oh my!
My iMac does not support OS X Mountain Lion, but it does support Lion; is there anyway to upgrade to Lion? In the app store I can't find a way to download Lion now that Mountain Lion is available. Currently running Snow Leopard. Want Lion so that
-
Problem in Creating Segments in WE31
When i am creating a Z.. segement it says the segment already exists when i try to change now it says segment not found... This is in ECC 6 ... please let me know how to resolve this i need these Z segments because i have to add them in my basic ido