Transformation help BPC 7.5 NW
Hello Experts,
We are on SAP BPC NW 7.5 SP08
I am looking some help in maintaining the transformation file.
I am loading data from application to another application using load data using Load data from Info provider with selection package.
My source location has length of 12 (example : 10-1000-A080) when i am mapping to my target i need to load last four (i.e A080). My source technical object name is /CPMB/Q3IESYO
Transformation file:
LOCATION = /CPMB/Q3IESYO ( but I need to load only last four char.)
When i load similar using flat file with out header then i can use like LOCATION = *COL(5,9:12).
I know we can use conversion file here but that is throwing some error so i am looking is there any option without using conversion file.
Thanks,
Sri
Hi Sri,
You can use the JavaScript Conversion functionality in order to achieve this. It is documented on help.sap.com.
http://help.sap.com/saphelp_bpc75_nw/helpdata/en/bpc_nw_index.htm
Data Management-->Data Conversion Maintenance
In the text there is a section on this Titled - Javascript can be used in the data conversion
See the excerpt from help below which directly addresses your issue:
Javascript can be used in the data conversion
Mandatory: Precede the Javascript code with the following string: js:
You can use Javascript code in IF statements.
Example Example
The following examples illustrate Javascript string manipulation commands:
js: %external%.substring(0,2)
This example returns a substring of the string contained in external.
You would use the above substring JavaScript method to grab the last characters of your member value. If you have varying string lengths you would need to use this in conjunction with the string length function in JavaScript.
You could also achieve this by using a start or end routine BADI....
Cheers, Scott
Similar Messages
-
Load infoprovider in 2 steps (2 transformation files) - BPC 10.0
Hi Masters,
For your better understanding, the background of this issue is that I currently have the planning solution configured and in use in BPC 7.50, in another
server, and on it I have the same ACTUAL uploading process from our legacy system (SIG) working just perfectly.
PS: The process chain to load transaction data from BW infoprovider using 2 transformation files was configured by SAP consulting, since this was a project made by SAP consulting.
So, I am migrating the solution to BPC 10.0, and is better to say "reconfiguring" the solution to BPC 10.0. I just recriated the transformations and convertion files, the process chain (and all its custom variants) and the data package. But in the new configuration, I am unfortunately facing this problem whlie executing the Process Chain.
Data Package Script:
INFO(%InforProvide%,GIF00003)
INFO(%TRANSF1%,\ROOT\WEBFOLDERS\GIF_TEMPLATE\CR_INCOMESTATEMENT\DATAMANAGER\TRANSFORMATIONFILES\CR_IST_LOAD_SIG_STEP1.xls)
INFO(%TRANSF2%,\ROOT\WEBFOLDERS\GIF_TEMPLATE\CR_INCOMESTATEMENT\DATAMANAGER\TRANSFORMATIONFILES\CR_IST_LOAD_SIG_STEP2.xls)
'Handling of records in target (0 = Append, 1 = Overwrite, 2 = Replace )
INFO(%TARGETMODE%,0)
INFO(%RUNLOGIC%,1)
INFO(%CHECKLCK%,1)
INFO(%KEYDATE%,0)
INFO(%TEMPNO1%,%INCREASENO%)
INFO(%ACTNO%,%INCREASENO%)
'Upload data from SIG - 1st Step
TASK(ZGIF_INFOPROVIDER_CONVERT1,OUTPUTNO,%TEMPNO1%)
TASK(ZGIF_INFOPROVIDER_CONVERT1,ACT_FILE_NO,%ACTNO%)
TASK(ZGIF_INFOPROVIDER_CONVERT1,TRANSFORMATIONFILEPATH,%TRANSF1%)
TASK(ZGIF_INFOPROVIDER_CONVERT1,SUSER,%USER%)
TASK(ZGIF_INFOPROVIDER_CONVERT1,SAPPSET,%APPSET%)
TASK(ZGIF_INFOPROVIDER_CONVERT1,SAPP,%APP%)
TASK(ZGIF_INFOPROVIDER_CONVERT1,FILE,%InforProvide%)
TASK(ZGIF_INFOPROVIDER_CONVERT1,KEYDATE,%KEYDATE%)
TASK(ZGIF_CRLOAD_LOAD1,PREPROCESSMODE,0)
TASK(ZGIF_CRLOAD_LOAD1,TARGETMODE,%TARGETMODE%)
TASK(ZGIF_CRLOAD_LOAD1,INPUTNO,%TEMPNO1%)
TASK(ZGIF_CRLOAD_LOAD1,ACT_FILE_NO,%ACTNO%)
TASK(ZGIF_CRLOAD_LOAD1,RUNLOGIC,%RUNLOGIC%)
TASK(ZGIF_CRLOAD_LOAD1,CHECKLCK,%CHECKLCK%)
TASK(ZGIF_CRLOAD_LOAD1,KEYDATE,%KEYDATE%)
'Corp Unit Calculation (upload base level companies with negative signal) - 2nd Step
TASK(ZGIF_INFOPROVIDER_CONVERT2,OUTPUTNO,%TEMPNO1%)
TASK(ZGIF_INFOPROVIDER_CONVERT2,ACT_FILE_NO,%ACTNO%)
TASK(ZGIF_INFOPROVIDER_CONVERT2,TRANSFORMATIONFILEPATH,%TRANSF2%)
TASK(ZGIF_INFOPROVIDER_CONVERT2,SUSER,%USER%)
TASK(ZGIF_INFOPROVIDER_CONVERT2,SAPPSET,%APPSET%)
TASK(ZGIF_INFOPROVIDER_CONVERT2,SAPP,%APP%)
TASK(ZGIF_INFOPROVIDER_CONVERT2,FILE,%InforProvide%)
TASK(ZGIF_INFOPROVIDER_CONVERT2,KEYDATE,%KEYDATE%)
TASK(ZGIF_CRLOAD_LOAD2,PREPROCESSMODE,0)
TASK(ZGIF_CRLOAD_LOAD2,TARGETMODE,%TARGETMODE%)
TASK(ZGIF_CRLOAD_LOAD2,INPUTNO,%TEMPNO1%)
TASK(ZGIF_CRLOAD_LOAD2,ACT_FILE_NO,%ACTNO%)
TASK(ZGIF_CRLOAD_LOAD2,RUNLOGIC,%RUNLOGIC%)
TASK(ZGIF_CRLOAD_LOAD2,CHECKLCK,%CHECKLCK%)
TASK(ZGIF_CRLOAD_LOAD2,KEYDATE,%KEYDATE%)
Process Chain
2. Error
3. Variant Configuration (ZGIF_INFOPROVIDER_CONVERT2)
4 . Error Package
So, what I need is to understand if there was any change between BPC 7.50 and BPC 10.0 (regarding this custom variants), that is preventing the new configuration to work as it should, or better saying, as I already have working in BPC 7.50.
I checked already the variants configurations and the Data Package Script, to certify that everything is correct, and it seems perfect!
The strange thing is that the process chain executes the first Convert (ZGIF_INFOPROVIDER_CONVERT1) with no problem, and it is exactly the same configuration as the second Convert.
5. Variant Configuration (ZGIF_INFOPROVIDER_CONVERT1)
Should I use other variant between the first Load and the second Convert?
I hope you guys can help me to solve this question.
PS: The transformation files are attached to this message.
Thanks in advance!
Adriano Frossard
São Paulo - BrazilHello Adriano,
I have small question here,
are you automate the entire process...?
if manually running the data manager package, is it successful or abort...?
As far as I know variant comes into picture while automating the process only...
recently we also face the same issue, while automating the process at that time we use RFC system name, unfortunately the user doesn't have required access to perform the task. while doing it manually its successful but throwing an error while running from back end...
In this case the problem with variant so the transformation file doesn't throw any error , its show the validation is successful..
Please check the variant is available or not...
if possible can you please share the log abort DM package...
Regards,
SRG... -
URGENT HELP BPC Park N Go does not work when VBA Project is protected
Hi
I am using NW BPC 7.5 client sp07 and the park n go feature show a dialog box with the message to disable VBA Protection but I need the protection, is there a work around.
Urgent help project is meant to be signed off today.
ThanksHi
Yes we are using native excel protection but having it protected in excel or not has no effect on the vba project being locked and the trust access with vba option is enabled, the MS version worked with vba password but only after we unlocked it and took the files offline n then online again to get the temp files added to the vba project n then protected it again. This workaround does not work in NW.
Thanks for your replies. -
Directory proxy virtual transformation - help
I have a web app that queries Active Directory for user authentication based on a users DN. (DN: cn=First Last,ou=. . . in my case.)
It assumes a flat directory such that users are in a single user container: OU=Users,dc=ad,dc=domain,dc=com
This prevents the application from working in my environment as users are not in a single OU and thus users DN's are not in a single OU.
I need help creating a virtual transformation that I think will get the application working.
I want to convert the dn request to a UserPrincipalName request.
For example transform:
cn=user1,ou=Users,dc=ad,dc=domain,dc=com to [email protected]
I have tried several times to get this to work. I have tried the following dpconf cmd.
dpconf add-virtual-transformation ad_native_directview mapping attr-value-mapping dn view-value:cn=\${uid} internal-value: ${uid}@ad.domain.com
Any ideas on getting this to work?
TIA
-AJ
Edited by: AveJoe on Jan 19, 2010 3:05 PMI have a web app that queries Active Directory for user authentication based on a users DN. (DN: cn=First Last,ou=. . . in my case.)
It assumes a flat directory such that users are in a single user container: OU=Users,dc=ad,dc=domain,dc=com
This prevents the application from working in my environment as users are not in a single OU and thus users DN's are not in a single OU.
I need help creating a virtual transformation that I think will get the application working.
I want to convert the dn request to a UserPrincipalName request.
For example transform:
cn=user1,ou=Users,dc=ad,dc=domain,dc=com to [email protected]
I have tried several times to get this to work. I have tried the following dpconf cmd.
dpconf add-virtual-transformation ad_native_directview mapping attr-value-mapping dn view-value:cn=\${uid} internal-value: ${uid}@ad.domain.com
Any ideas on getting this to work?
TIA
-AJ
Edited by: AveJoe on Jan 19, 2010 3:05 PM -
XML Transformation help required
Hi,
I want to read the contents of XML file, so i want to use Transformation. I require your help in getting that.
XML File contents
- <SOAP_FAULT>
- <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
- <s:Header>
<a:Action s:mustUnderstand="1">http://www.aaaa/bbbb/ccccc/ServiceUnavailableFault</a:Action>
<a:RelatesTo>urn:uuid:18a90558-58e4-1ee0-b5b6-4406eadff48f</a:RelatesTo>
- <u:Timestamp u:Id="_0">
<u:Created>2011-09-02T22:23:11.917Z</u:Created>
<u:Expires>2011-09-02T22:28:11.917Z</u:Expires>
</u:Timestamp>
</s:Header>
- <s:Body>
- <s:Fault>
- <s:Code>
<s:Value>s:Sender</s:Value>
</s:Code>
- <s:Reason>
<s:Text xml:lang="en-US">No recipients found</s:Text>
</s:Reason>
+ <s:Detail>
- <ServiceUnavailableFault xmlns="http://www.aaabbbccc.com/AONI/2/0/messages/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<RequestId>18a90558-58e4-1ee0-acc4-b45d6629582d</RequestId>
</ServiceUnavailableFault>
</s:Detail>
</s:Fault>
</s:Body>
</s:Envelope>
</SOAP_FAULT>
Here i want to read the tag <Reason> which is currenlyt displaying as "No recipients found".
could you please help me in getting this..?
Thaks,
RaghuHi,
if you just need to extract one element (?), you could use iXML : interface if_ixml_document contains method find_from_path_ns , to which you may pass the path to your element (and pass the namespace prefix too), which is :
/SOAP_FAULT/s:Envelope/s:Body/s:Fault/s:Reason
Sandra -
OSB XQuery transformation help in Proxy Service
Hi,
Need help in transformation of the below input to a proxy service
<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<InputParams>
<queryParams>
<quer:query-params xmlns:quer="http://www.example.org/QueryParams">
<param name="test51" value="val3353" />
<param name="test1" value="val2" />
<param name="test3" value="val3" />
<param name="test4" value="val4" />
<param name="test1" value="val1" />
<param name="test1" value="val11" />
<param name="test8" value="val33" />
<param name="test1" value="val34" />
<param name="test8" value="val33" />
<param name="test81" value="val33" />
<param name="test1" value="val333" />
<param name="test38" value="val33" />
</quer:query-params>
</queryParams>
</InputParams>
</soapenv:Body> and want to have the below output after running the below XQuery transformation
<ns0:mparams>
<ns0:param name="test1" value="val2" />
<ns0:param name="test1" value="val1" />
<ns0:param name="test1" value="val11" />
<ns0:param name="test1" value="val34" />
<ns0:param name="test1" value="val333" />
</ns0:mparams>this is the xquery transformation file
(:: pragma parameter="$InputQuery" type="anyType" ::)
(:: pragma bea:global-element-return element="ns0:mparams" location="../xsd/TargetParams.xsd" ::)
declare namespace ns0 = "http://www.example.org/QueryParams";
declare namespace xf = "http://tempuri.org/Simple/transformation/listparams/";
declare function xf:listparams($InputQuery as element(*))
as element(ns0:mparams) {
<ns0:mparams>
{ $InputQuery/ns0:params/param[@name="test1"] }
</ns0:mparams>
declare variable $InputQuery as element(*) external;
xf:listparams($InputQuery)and here is the input to the above .qs
$body/InputParams/queryParams/qp:query-paramsbut it's the output is always empty and here is what it comes out no matter what the input I give even tried the below inputs but no use
$body/InputParams/queryParams/qp:query-params
$body/InputParams/queryParamshere is the output it always prints when logging in the log file
<quer:mparams xmlns:quer="http://www.example.org/QueryParams"/>Any help is appreciated.
Thanks$InputQuery/ns0:params/param[@name="test1"]Input doesn't have a ns0:params node ..so the xpath here should be $InputQuery/param[@name="test1"]
-
Urgent(Transformation help needed)
Hello
Can anybody help me in the transformation.
I am selecting data from the table, i used (Database adapter-Single table
selection).
I need to place that data into the text file of Fixedlength format.Each record is
of diffent types.
My target xsd is:
==============
?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd=..........>
<xsd:element name="Root-Element">
<xsd:complexType>
<xsd:sequence minOccurs="0" maxOccurs="unbounded">
<xsd:element name="REC_2701" minOccurs="0" nxsd:startsWith="2701" maxOccurs="unbounded" nxsd:style="array" nxsd:cellSeparatedBy="${eol}">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="C3" type="xsd:string" nxsd:style="fixedLength" nxsd:length="1">
</xsd:element>
<xsd:element name="C4" type="xsd:string" nxsd:style="fixedLength" nxsd:length="6">
</xsd:element>
<xsd:element name="C5" type="xsd:string" nxsd:style="fixedLength" nxsd:length="5">
</xsd:element>
<xsd:element name="C6" type="xsd:string" nxsd:style="fixedLength" nxsd:length="12">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="REC_2702" minOccurs="0" nxsd:startsWith="2702" maxOccurs="unbounded" nxsd:style="array" nxsd:cellSeparatedBy="${eol}">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="C3" type="xsd:string" nxsd:style="fixedLength" nxsd:length="1">
</xsd:element>
<xsd:element name="C4" type="xsd:string" nxsd:style="fixedLength" nxsd:length="6">
</xsd:element>
<xsd:element name="C5" type="xsd:string" nxsd:style="fixedLength" nxsd:length="5">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
When i tranform the data I am getting result fixed length data file in the following format.
2701C50 50 MUVT01
2701C03451 03451SIMUL1
2701C44034 44034SIMUL3
2702C50 50
2702C03451 03451
2702C44034 44034
But i need to get the fixed length file data in the below format
============================================
2701C50 50 MUVT01
2702C50 50
2701C03451 03451SIMUL1
2702C03451 03451
2701C44034 44034SIMUL3
2702C44034 44034
Can anybody suggest me the solution to the above case ?
Thanking you
mkiOnly a guess, but could you try removing the nxsd:style="fixedLength" from the xsd?
Another option might be to concatenate the values in BPEL into one field, trimming the spaces. You could then have an xsd with the file adapter to write out this one column.
Toby
Message was edited by:
tobyc -
XML Transformation HELP!!!
I am having the input XML
<SalesOrder>
<Text type="Test1">First key</Text>
<Text type="Test2">Second key</Text>
<Text type="Test2">Third key</Text>
<Text type="Test2">Forth key</Text>
<Text type="Test3">Fifth key</Text>
</SalesOrder>
and I want this to be transformed to
<SalesOrder>
<Text type="Test1">First key</Text>
<Text type="Test2">Second key/Third key/Forth key</Text>
<Text type="Test3">Fifth key</Text>
</SalesOrder>
I need to transform this using XSL and I've tried all night to come up with an XSL for this. I am not an XSL expert and hence finding it really tough. any help appreciated!!!
Shyamno I just provided a sample for explanation, no hard-coded should be done here.
The rule is.. if the value of the 'type' attribute of 'Text' node is repeating, then the output must have only one 'Text' node with one 'type' attribute, and the element values needs to be concatenated with a '/'.
hope I am understandable here.
Shyam -
Help: BPC admin view stuck in creating a new App set
Hello,
We have SAP BPC 7.5.05.1002 NW. I have tried to create a new app set by copying an existing application set. The BPC admin view has been stuck for a couple of hours now. I have a dialog box on the screen, with the message "Waiting for the server's response....". The "OK" button is greyed out.
I would appreciate any help on this. What would happen if I were to cancel this (shut-down my BPC front end)? Would that cause any problems in the BPC application or the application set which is copied across to the new app set?
Thanks in advance.Hello,
Thanks for your response. I don't have access to the back-end BI/BW and the IT support will take a long time to get back to me.
How do I cancel this task? -
Hi ,
Source data :-
<root xmlns="http://TargetNamespace.com/">
<header>
<C2> </C2>
<C3></C3>
<C4></C4>
<C5></C5>
</header>
<body>
<a></a>
<b></b>
</body>
<body>
<a></a>
<b></b>
</body>
<body>
<a></a>
<b></b>
</body>
<header>
<C2> </C2>
<C3></C3>
<C4></C4>
<C5></C5>
</header>
<body>
<a></a>
<b></b>
</body>
<body>
<a></a>
<b></b>
</body>
the above input needs to be transformed to
<Root>
<child>
<header> ..... </header>
<body> .. </body>
<body> .. </body>
<body> .. </body>
</child>
<child>
<header>.......</header>
<body>........</body>
<body>........</body>
</child>
</Root>
(... ) here are the actual elements I jus represented them as ( .... )
can some one tell me how can we write xslt for the above transformation ..You need to create a target schema with below heirarchy.
Root
Child(unbounded)
body.(unbounded)
In .xsl file from source to target,
use mapping this way:
<Root>
for each on <Child>
for each on < body>
thanks -
am using cs3....am trying to free transform but for some reason on the menu i am unable to use either the didstort or perspective function....what do i need to do to make them active??
THANKS!!Are you trying to transform a Smart Object layer? In CS3, you can't use the Distort or Perspective transformations on Smart Objects. You will need to rasterize the Smart Object first. Let me know if this isn't what's causing your problem.
-
Hello
I've created a MST Transform file for Anyconnect 3.1 which removes the creation of the RUN key in the registry, so that the AnyConnect will not automatically started with Windows Boot.
I try to inlcude this MST now into the ASA, so that it will be deployed automatically with the web installation.
Has anybody any experience on how to do that?
Currently the active AnyConnect on my ASA is 2.5.x for Windows. ASA is 8.4.6 and ASDM is 7.1.3.
When I go to Configuration - Remote Access VPN - Network (Client) Access - AnyConnect Customization/Localization - Customize Installer Transforms and import there my .mst file, it does not offer to apply the configuration. It also seems to not work, but I can't really test it, as it's a live system with many users.
Any ideas if I do something wrong?
Attached is the MST file.
Thanks,
PatrickAre you trying to transform a Smart Object layer? In CS3, you can't use the Distort or Perspective transformations on Smart Objects. You will need to rasterize the Smart Object first. Let me know if this isn't what's causing your problem.
-
Hi all -
Does anyone know where I can find some info or a good tutorial about how to use java.xml.transform.Transformer?
I've scoured all the usual forums, but I still haven't found any concrete
examples or any how-to's.
The API is not particularly informative in this regard.
Thanks in advance...I uninstalled v10 and redownloaded v6 from my App Store Purchases. I load up v6 only to find that all the default effects are there for each instrument, but when I go to add an effect (i.e. Distortion, Vocal Transformer, Flanger, etc.), instead of the list of classic effects, there's the list of awful AU effects from v10. What gives?!
For me, the "Edit" panel in GB6.0.5 looks like this:
Are you saying, that the upper part with "GarageBand Effects" is missing?
Then check, what is installed in your System Library in the folder
/Library/Application Support/GarageBand/Instrument Library/
(the topmost "Library" folder on your Hard Drive.
You may need to restore the old GarageBand effects and Track settings files from your backup:
i.e look into the folder /Library/Application Support/GarageBand/Instrument Library/Plug-In Settings/
and restore the settings for Chorus, Flanger, Vocal Transformer, Tremolo, whatever effects you are missing.
And also look for missing files in "Track Settings" folder and "Sampler" folder.
What kind of backup do you have? If you have a Time MAchine backup, go back in time to the time before you upgraded to GB 10.
Regards
Léonie -
XSL Transformation - cut asx:abap and asx:values
Hey all,
I'm using a XSL Transformation to create a XML-File from an internal table.
My problem is, that the transformation automatically puts the two tags "<asx:abap xmlns:asx="http://www.sap.com/abapxml">" and "<asx:values>" at the beginning of my file (or string):
<?xml version="1.0" encoding="iso-8859-1" ?>
<asx:abap xmlns:asx="http://www.sap.com/abapxml">
<asx:values>
<ROOT>
</ROOT>
</asx:values>
</asx:abap>
Does anyone have any idea how I can easily suppress these lines?
The best course would be of course an XSL statement.
Thanks and regards,
Martin.Will using a Simple Transformation help your case ?
-
91 object not set in SAP BPC NW7.0
Dear friends
I am facing problem while logging on to BPC Administration
even the BPC server Diagnostics all showing green color no error
error ir
91 object not set
what could be the problem can anybody solve this problem
Regards
krishnamoorthy.pHello krishnamoorthy.p,
I hope the following might help BPC-Getting Error while connecting Application Set from BPC Administration .
Best regards,
Andreas
Maybe you are looking for
-
Zen Nano Plus can't see new so
I have a GB CL Zen Nano Plus with 208 (WMA) songs in 6 folders (352 MB space used). When I add new WMA songs, they show up on Windows Explorer File Manager but won't play on the MP3 player. When the MP3 player is unconnected to the computer, I can't
-
My firewire port simply won't work
Both of my Fire wire ports are unable to read my IPOD, and my brother's IPOD Mini. At first I thought that that might be the cable problem, yet the cable does the battery charging okay??? I use the same fire wire cable to connect to my brother's iboo
-
Mapping elements of VRA to a number
hi, My project involves maintaining the database for a bus company. Each bus_route is divided into regions. Each bus-stop on a route maps to a region. eg. bus-stop numbers 1,2,4,5,6,8 map to Region 2. I was thinking of having a table regions with the
-
Problem with adobe flash for a wabsite
by accident i cancel adobe flash for a website, and now i am not allowed to change it again
-
Ibook g3 12in Red line in screen
Today My ibook g3 poped up with a red line to the right of the screen and want go away what could be doing this?