User-defined transforms and Python - what valuable usages have you found?
Hi everyone,
I just started looking into the User-Defined Transforms / Python-editor in Business Objects Data Services Designer.
I'm fairly new to this, but it sounds like the purpose of this editor is to write Python scripts to do things that the standard Transforms cannot do. I'm curious to hear about what valuable usages you've found for this Python-editor. Any feedback would be much welcome and appreciated!
Thanks,
Sunny
The additional button on the GUI Status needs to start with a Z.
Then it's available and its possible ot put some coding behind it using the available user_exits.
Similar Messages
-
At our elementary school, our 150 iPads are separated into 5 subsets. Can I download different apps to each subset, or must they all have the same apps since they all share the same Apple ID. Some iPads are for grades k-2, and some are for 3-5. I'd like to have the best apps for the different grade levels on the iPads. Currently we have "iPad Carts" to house our iPads in, and could use them to upload and update apps all at once, but don't utilize this function as we have a custom set up for the iPads that is erased each time we update through the carts.
You can configure different set of apps for different groups of ipads.
You need an mdm to do this.
"This document offers guidance on some important considerations for getting the most out of your iOS deployment." Covers: Prepare your infrastructure. Set up devices. Configure and manage devices. Deploy apps and content. Plan for support.
https://www.apple.com/ipad/business/docs/iOS_Enterprise_Deployment_Overview_EN_F eb14.pdf
Quick overview of zero-touch MDM enrollment, DEP
http://www.apple.com/education/it/dep/
Consider DEP, Device Enrollment Program. Use VPP, Volume Purchase Program. Select an MDM, Mobile Device Management. Read the Google doc below and nsdjoey write up.
IT Resources -- ios & OS X -- This is a fantastic web page. I like the education site over the business site.
View documentation, video tutorials, and web pages to help IT professionals develop and deploy education solutions.
Education
http://www.apple.com/education/ipad/resources/
scroll down after all the pretty picture. Click on the words "For It".
business site is:
http://www.apple.com/lae/ipad/business/#browse-it-resources
If necessary, scroll down until you see the Browse IT Resources button. Click on button.
MDM -- Mobile Device Management
For a comparison see this page:
http://www.enterpriseios.com/wiki/Comparison_MDM_Providers
VPP -- Volume Purchase Program
http://www.apple.com/education/it/vpp/
Joe Rowe's Excellent guides
IT managers who are new to configurator and managing a cart of ios devices:
https://docs.google.com/document/d/1SMBgyzONxcx6_FswgkW9XYLpA4oCt_2y1uw9ceMZ9F4/ edit?pli=1
[ original announcement -- https://discussions.apple.com/thread/4256735?tstart=0 ]
Quick help presentation for students:
https://docs.google.com/presentation/d/18937JdleX2gymtSb8zfbDczV-76BdR2DIfCV9eJi yOE/edit#slide=id.g1b776944_0_224
MDM -- Mobile Device Management
MDMs
Airwatch, Meraki, MobileIron, Profile Manager on OS X Server, or Zenprise
For a comparison see this page:
http://www.enterpriseios.com/wiki/Comparison_MDM_Providers
Airwatch
http://www.air-watch.com/
Meraki -- A free MDM [ expect lots of email and phone calls about upgrades ]
Read the product overview. Click on "get started now" to sign up.
https://meraki.cisco.com/products/systems-manager/?ref=YZRzCR
Video's on how to setup and use Meraki.
https://meraki.cisco.com/blog/2012/08/how-to-get-the-most-from-meraki-systems-ma nager/
MobileIron
http://www.mobileiron.com/
Apple Configurator and Apple Profile Manager
"Apple Configurator makes it easy for anyone to mass configure and deploy iPhone, iPad, and iPod touch in a school, business, or institution." Limited to Macs. Connects via USB cable.
http://itunes.apple.com/us/app/apple-configurator/id434433123?mt=12
"Profile Manager lets you configure OS X and iOS devices so they’re set up to use your company or school resources and have the settings, apps, and books your organization requires. Profile Manager creates settings and preference bundles for devices and deploys them to devices via the Mobile Device Management (MDM) service." Requires OS X server.
http://www.apple.com/uk/support/osxserver/profilemanager/
Zenprise
http://www.zenprise.com/ -
User-Defined Function and Context Manipulation
Hi Mapping Gurus, I need your help.
I have a user-defined function and one of my input parameter (c) is in a loop (EDI segment). So one, if I execute my function I get:
Exception:[java.lang.ArrayIndexOutOfBoundsException: 0]
If I change the context or use the remove context node function its working but its always taking the first row in consideration since I'm using c[0] . Here is the logic:
String WHERE_CLAUSE = "A"" = ""'"b[0]"'"" and B = ""'"c[0]"'";
So since c is an array [], I have tried different logic to get to the right row.
1- I tried using another parameter (e) to pass a counter or an index to my function. So each time it's looping, it's passing a new value to the function but Im still getting the first row and Im not to sure why?
int G = Integer.parseInt(e[0]); // e[] = My counter field
String WHERE_CLAUSE = "A"" = ""'"b[0]"'"" and B = ""'"c[G]"'";
2- I tried using a parameter stored in the container:
String Num;
Num = (String)getParameter(counter);
if (Num == null) G = 0;
else
G = Integer.parseInt(Num);
G = G + 1;
String WHERE_CLAUSE = "A"" = ""'"b[0]"'"" and B = ""'"c[G]"'";
Num = "" + G;
setParameter(e[0], Num);
and Im still getting the first one, look like its using a different container each time its looping so the Value is always the same?
4- I created a new user-defined function with the container logic, then its working but Im back to the same problem in my main function, its only looking at e[0] for my counter all the time.
5- I tried using the Seeburger Java Variables and guess what in the main fonction, as new UDF,... and guess what, same result!
So anybody out there that was able to get UDF's working into a multiple context scenario?
Am I missing something?
I will reward points and beer for any help!This is one of the text with passing a counter to the function to try to go to the right row in the array since I'm doing a remove context and I'm getting all the d_234's:
public void ReadTable(String[] a,String[] b,String[] c,String[] d,String[] e,ResultList result,Container container){
int G = Integer.parseInt(e[0]); // My counter
String var;
String DBTABLE = a[0];
String lookUpField = d[0];
String WHERE_CLAUSE = "A"" = ""'"b[0]"'"" and B = ""'"c[G]"'";
Now this one was with the internal container logic:
int G;
String DBTABLE = a[0];
String lookUpField = d[0];
String Num;
Num = (String)getParameter(e[0]);
if (Num == null) G = 0;
else
G = Integer.parseInt(Num);
G = G + 1;
Num = "" + G;
setParameter(e[0], Num);
String WHERE_CLAUSE = "A"" = ""'"b[0]"'"" and B = ""'"c[G]"'";
And now with the Seeburger Variables:
int G;
try {
VariableBean be=VariableFactory.getVariableInstance("");
G = Integer.parseInt(String.valueOf(be.getStringVariable("yves")));
} catch (Exception f) {
throw new RuntimeException(f);
String DBTABLE = a[0];
String lookUpField = d[0];
String WHERE_CLAUSE = "A"" = ""'"b[0]"'"" and B = ""'"c[G]"'";
try {
G = G + 1;
Num = "" + G;
VariableBean be=VariableFactory.getVariableInstance("");
be.setStringVariable("yves",Num);
catch (Exception f) {
throw new RuntimeException(f);
All 3 logics were returning always the first row or a counter of 1 if the logic is in the main ReadTable function. -
User defined attrinute and objectclasses
iam not able to create user defined attributes and object classes by running an ldif file.
could you suggest me some solution ?First, what directory vendor and version and OS are you running?
Second, can you post an example of the LDIF file you are trying to use? -
How to create User-defined Transform in BODS
Hi,
Is there documents explaining how to create a User-defined Transform in BODS Designer?
Thanks
RexHi,
Please follow the steps mentioned in below link
http://help.sap.com/saphelp_nw04/helpdata/en/f8/2857cbc374da48993c8eb7d3c8c87a/frameset.htm
also refer below links to know more about UDF
udf
Thanks
Swarup
Edited by: Swarup Sawant on Mar 3, 2008 3:59 PM -
User Defined Fields and Reference Fields on the B/S
Dear Experts,
On the balance sheet in SAP 9.0/8.82 once you click on the expanded button, there are user defined fields and reference fields which are blank. Could someone assist on how to use them ?
Kind RegardsHi Martin,
If you add any user defined fields (UDF) in Journal Entry (JE) screen, You can use the udf's in the
balance sheet report.
Regards
Neslin -
Attach User define tables and view table need add to database into my add-o
Hi there,
I want to deploy an addon, there are User define tables and view table need add to database.
I need some advice on some issues..
1. Can I attach User define tables and view table need add to database into my addon.
2. I wonder which chance is properly to add them, if add these user define objects in time of install and I can't get the enough information that connect to SQL server
Thanks for any help.Hi Weerachai,
Here's an example of how to create a user-defined table in code. My suggestion would be to check if it exists when your add-on starts up and then if not, create the tables, fields and objects.
'User Table
Private Sub CreateTable(ByVal sTable As String, ByVal sDescription As String, ByVal oObjectType As SAPbobsCOM.BoUTBTableType)
Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
Dim iResult As Long
Dim sMsg As String
oUserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
If Not oUserTablesMD.GetByKey(sTable) Then
oUserTablesMD.TableName = sTable
oUserTablesMD.TableDescription = sDescription
oUserTablesMD.TableType = oObjectType
iResult = oUserTablesMD.Add()
If iResult <> 0 Then
oCompany.GetLastError(iResult, sMsg)
MessageBox.Show("Error Creating Table: " & sTable & " Error: " & sMsg)
End If
End If
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserTablesMD)
End Sub
'User Field
Private Sub CreateField(ByVal sTable As String, ByVal sName As String, ByVal sDescription As String, _
ByVal iSize As Integer, ByVal aFieldType As SAPbobsCOM.BoFieldTypes, _
ByVal aSubType As SAPbobsCOM.BoFldSubTypes, ByVal sLink As String, _
ByVal bMandatory As SAPbobsCOM.BoYesNoEnum)
Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
Dim oTable As SAPbobsCOM.UserTable
Dim iResult As Long
Dim sMsg As String
Dim i As Integer
Dim x As Integer
Dim bFound As Boolean = False
Dim oField As SAPbobsCOM.Field
oTable = oCompany.UserTables.Item(sTable)
For i = 0 To oTable.UserFields.Fields.Count - 1
oField = oTable.UserFields.Fields.Item(i)
'MessageBox.Show(oField.Name)
If oField.Name = "U_" & sName Then
bFound = True
End If
Next
System.Runtime.InteropServices.Marshal.ReleaseComObject(oTable)
If Not bFound Then
oUserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
oUserFieldsMD.TableName = "@" & sTable
oUserFieldsMD.Name = sName
oUserFieldsMD.Description = sDescription
oUserFieldsMD.Type = aFieldType
If aFieldType = SAPbobsCOM.BoFieldTypes.db_Alpha Or aFieldType = SAPbobsCOM.BoFieldTypes.db_Numeric Then
oUserFieldsMD.EditSize = iSize
Else
oUserFieldsMD.SubType = aSubType
oUserFieldsMD.Mandatory = bMandatory
End If
oUserFieldsMD.LinkedTable = sLink
iResult = oUserFieldsMD.Add()
If iResult <> 0 Then
oCompany.GetLastError(iResult, sMsg)
MessageBox.Show("Error Creating Field: " & sTable & "." & sName & " Error: " & sMsg)
End If
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserFieldsMD)
End If
End Sub
If you want to create a View I think you would have to use the RecordSet object. This will ensure that you don't have to log in to the database again
Hope it helps,
Adele -
How To Create User-Defined DateTo and DateFrom?
This document https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6ce7b0a4-0b01-0010-52ac-a6e813c35a84 describe techniques used to create BI Infocubes.
In chapter 4.4.2.4 Report only on data for constellations valid today and yesterday (comparable results) - today and yesterday.
...Report only on data for constellations valid today and yesterday (comparable results): Solution
Given an attribute–characteristic relation.
Define the dependent attribute as a time-dependent navigational attribute of the characteristic. Define
additionally user-defined DateTo and DateFrom time-dependent navigational attributes. Together with the
query key date and a filter on DateTo and DateFrom excluding your reporting time span, you will get the
desired result.
MatGr-SID From-User To-User From-Sys To-Sys Material Material-SID
910 01/1000 12/9999 01/1000 12/9999 AAA 001
910 01/1000 09/1998 01/1000 09/1998 BBB 002
920 10/1998 12/9999 10/1998 12/9999 BBB 002
920 01/1000 12/9999 01/1000 12/9999 CCC 003
920 01/1000 12/9999 01/1000 12/9999 DDD 004
920 10/1998 12/9999 10/1998 12/9999 EEE 005
Report showing comparable results
Material group Rev 09/98 Rev 10/98
X 100 100
Y 200 200
HOW TO Create From-User To-User attributes?Hi Monica
Third party software is available,from AccessVia, that can be used to create and update templates. Sample sample sqt can help you to understand the required inputs (batchID, templateID, departmentID, locale).
Thanks
Himanshu -
User define table and store procedure install
Hi there,
I like to deploy an addon, there are User define tables and store procedure need add to database, I wonder which chance is properly to add them, if add these user define objects in time of install, we can not get the enough information that connect to SQL server, and also create UDT need DIAPI. if put create UDT and UDsp in addon program, the problem is which DIAPI funciton or object can execute create store procedure SQL string.
Thanks for any help.
LanjunR. Schwachofer,
Thank you very much,
the way call isqlw.exe to run SQL script is a good way when install, but I confuse with two questions about this way. first, run isqlw.exe should provid loginid and password of SQL server, these two information need additional install dialog to get; second if use isqlw.exe the store procedure only create to the current company database, when create new compay DB the store procedure does not exist in new DB.
so I still do not know which way is the proper way to create SP for addon.
Thanks in advance.
Lanjun -
What are field symbols and field groups.? Have you used "component idx of s
What are field symbols and field groups.? Have you used "component idx of structure"
Field Symbols and field groups
Field Groups / Extracts
http://help.sap.com/saphelp_46c/helpdata/EN/9f/db9ede35c111d1829f0000e829fbfe/frameset.htm
Field Symbols
http://help.sap.com/saphelp_46c/helpdata/EN/fc/eb387a358411d1829f0000e829fbfe/frameset.htm
Field symbols: are placeholders or symbolic names for other fields. They do not physically reserve space for a field, but point to its contents. A field symbol cam point to any data object. The data object to which a field symbol points is assigned to it after it has been declared in the program.
Whenever you address a field symbol in a program, you are addressing the field that is assigned to the field symbol. After successful assignment, there is no difference in ABAP whether you reference the field symbol or the field itself. You must assign a field to each field symbol before you can address the latter in programs.
Field Groups:
A field group is a user-defined grouping of characteristics and basic key figures from the EC-EIS or EC-BP field catalog.
Use
The field catalog contains the fields that are used in the aspects. As the number of fields grows, the field catalog becomes very large and unclear. To simplify maintenance of the aspects, you can group fields in a field group. You can group the fields as you wish, for example, by subject area or responsibility area. A field may be included in several field groups.
When maintaining the data structure of an aspect, you can select the field group that contains the relevant characteristics and basic key figures. This way you limit the number of fields offered.
A field group combines several existing fields together under one name
like
FIELD-GROUPS: fg.
then you can use one insert statement to insert values in fields of field-group.
INSERT f1 f2 ... INTO fg.
Field symbols
If u have experience with 'C', then understand this to be similar to a pointer.
It is used to reference another variable dynamically. So this field symbol will simply point to some other variable. and this pointer can be changed at runtime.
FIELD-SYMBOLS <FS>.
DATA FIELD VALUE 'X'.
ASSIGN FIELD TO <FS>.
WRITE <FS>.
Field symbols: are placeholders or symbolic names for other fields. They do not physically reserve space for a field, but point to its contents. A field symbol cam point to any data object. The data object to which a field symbol points is assigned to it after it has been declared in the program.
Whenever you address a field symbol in a program, you are addressing the field that is assigned to the field symbol. After successful assignment, there is no difference in ABAP whether you reference the field symbol or the field itself. You must assign a field to each field symbol before you can address the latter in programs.
Field Groups:
A field group is a user-defined grouping of characteristics and basic key figures from the EC-EIS or EC-BP field catalog.
Use
The field catalog contains the fields that are used in the aspects. As the number of fields grows, the field catalog becomes very large and unclear. To simplify maintenance of the aspects, you can group fields in a field group. You can group the fields as you wish, for example, by subject area or responsibility area. A field may be included in several field groups.
When maintaining the data structure of an aspect, you can select the field group that contains the relevant characteristics and basic key figures. This way you limit the number of fields offered.
Field Groups / Extracts
http://help.sap.com/saphelp_46c/helpdata/EN/9f/db9ede35c111d1829f0000e829fbfe/frameset.htm
Field Symbols
http://help.sap.com/saphelp_46c/helpdata/EN/fc/eb387a358411d1829f0000e829fbfe/frameset.htm -
When I try to upgrade, it tells me all that is on my iPad 1 is going to be erased.
How to I upgrade and keep and backup what I already have.
Thanks for any info.
ShirleyHello, alaute.
Thank you for visiting Apple Support Communities.
If you are experiencing issues activating your device, see the article below.
iPad: Troubleshooting activation issues
http://support.apple.com/kb/ts3424
Cheers,
Jason H. -
My iPad color changed?the background is now green and blue .what should I have to do?
go to settings. press on background and wallpaper. choose your new wallpaper. your friends might have changed it on yours or something.
-
I want to import CD's to iTunes. Other than direct burning on a Mac or PC, what pathways have you found?
I want to import CD's to iTunes. Other than direct burning on a Mac or PC, what pathways have you found?
-
Where are User Defined Functions and Stored Procedures kept in SQL Server?
Hi,
I have a growing list of Stored Procedures and User-Defined Functions in SQL Server, and would like to be able to list all my user SP and UDF easily.
Is it possible to write a query to list all SP and UDF?
I saw the following specimen code in an SQL book, but am not sure this is what I need because I could not make it work.
SELECT *
FROM INFORMATION_SCHEMA.ROUTINES
WHERE SPECIFIC_SCHEMA = N'CustomerDetails'
AND SPECIFIC_NAME = N'apf_CusBalances'
I tried:
SELECT *
FROM INFORMATION_SCHEMA.ROUTINES
but it does not work.
Suppose all my SP are named following this pattern:
dbo.usp_Storeproc1
How would I modify the above code? or is there a better code?
Thanks
Leon LaiHi ,
try this to get list of all stored procedures:
SELECT *
FROM sys.procedures where name like 'dbo.usp%'
Thanks,
Neetu -
UDT and UDF - User-defined Tables and Fields
Dear All,
I am writing a Query to permit the Cashier to check her Cash entries and balances on a Daily basis.
Basically, it's a General Ledger, but I want the Query - Selection Criteria window to display only a few GL codes namely GL codes 1240601, 1240602, 1240603 etc.
I don't know if I am doing it right. This is what I did (SAP B1 8.8):
UDT
I created a UDT called TEST2 using:
Tools -> Customization Tools -> User-defined Tables - Setup
UDF
Then I created a field in the UDT called GlCod using User-Defined Fields - Management
Title : GlCod
Description : GL Code
Type : Alphanumeric 30
Field Data
In the Field Data window, I ticked the Set Valid Values for Fields checkbox and filled in the blanks as follows:
# Value Description
1 1240601 Cash in Hand (Rs)
2 1240602 Cash in Hand (USD Notes)
3 1240603 Cash in Hand (Euro Notes)
etc...
Query
Then I wrote my Query (see below).
When I run it, I get the Selection Criteria screen as I wanted:
Query - Selection Criteria
GL Code ............... (arrow here)
Posting Date ...............
[OK] [Cancel]
When I click on the GL Code arrow, I get a window with the exact choices I need. It looks like this:
1240601 - Cash in Hand (Rs)
1240602 - Cash in Hand (USD Notes)
1240603 - Cash in Hand (Euro Notes)
Executing the Query
The Query seems to run normally, but nothing is generated on the screen, and there's no Error Message.
What can be wrong about this query?
I suspect that the GL codes in JDT1 and TEST2 are not of the same data type, so that INNER JOIN returns nothing.
Thanks,
Leon Lai
Here's my SQL
declare @TEST2 TABLE
(GlCod varchar(30))
declare @GlCod nvarchar (30)
set @GlCod =/*SELECT T0.U_GlCod from [dbo].[@TEST2] T0 where T0.U_GlCod=*/ '[%0]'
declare @refdt datetime
set @ref=/*SELECT T1.RefDate from [dbo].[JDT1] T1 where T1.RefDate=*/ '[%1]'
select
t1.Account as 'GL Code',
t1.RefDate as 'Posting Date',
t0.U_GlCod as 'Restricted GL Codes'
from JDT1 T1
INNER JOIN @TEST2 T0 ON T0.[U_GlCod] = T1.[Account]
WHERE
t1.RefDate <= @refdt
and
t0.U_GLCod = @GlCodTry this:
declare @GlCod nvarchar (30)
set @GlCod =/*SELECT T0.U_GlCod from [dbo].[@TEST2] T0 where T0.U_GlCod=*/ '[%0]'
declare @refdt datetime
set @refdt=/*SELECT T1.RefDate from [dbo].[JDT1] T1 where T1.RefDate=*/ '[%1]'
select
t1.Account as 'GL Code',
t1.RefDate as 'Posting Date'
from JDT1 T1
WHERE
t1.RefDate <= @refdt
and
T1.[Account] = @GlCod
(There is no need to declare the memoria table @test2 if you already created one table with this name.
And there is no need to a join.)
Edited by: István Korös on Aug 15, 2011 1:27 PM
Maybe you are looking for
-
Control Center not getting started
Hi All, I have installed oracle business intelligence 10g release 2 on a linux box. I have installed Oracle Warehouse builder on both linux box and on my laptop which is windows. I tried to start the control center from the server which is the linux
-
i have two mail servers , First email server wants to authenticate users in ou=people tree whose affiliation attribute value says staff. second email server wants to authenticate users in ou=people tree whose affiliation attribute value says vendor I
-
Ann: Jinspired Provides Free JDBInsight 1.2 Developer Edition License
Press Release =================================================================== Jinspired Provides Free JDBInsight 1.2 Developer Edition License DUBLIN, IRELAND - 14 April , 2003 - Jinspired (www.jinspired.com), a leader in J2EE™ transaction analys
-
Newbie question on raw adjustments in LR
I am just trying to get a handle on how lightroom works. If I make adjustments in the Develop module are the adjustments made to the RAW file itself or are the adjustments written as instructions within LR. When I use ACR in bridge I notice that I ca
-
How can I obtain the value of the field LFA1-EMNFR?