Import Script with Temp Variable at Bottom of Load File - No Results
I am running into an issue while trying to load an entity's financials using a Data Pump script to assign a temporary value for the entity number, which is located at the bottom of the report. Here is how the import file is layed out:
Account Description Final Balance
All Accounts and information....
Entidad: 93 A: 93
I am trying to pull the 93 into PvarTemp1. Is there something I need to do special in the scripting since the variable I am trying to extract is at the bottom of the data? All examples I have been able to find on the forms show the temp variable at the top of the data that the temp vaiable is being applied. I am very new to VB and would appreicate any help.
Here are the scripts that I am running:
GET:
If Mid(strRecord, 23, 8) = "Entidad:" Then
RES.PvarTemp1 = Mid(strRecord, 32, 2)
End If
GetMexicoEntity = strField
End Function
PUT:
PutMexicoEntity = RES.PvarTemp1
End Function
Thanks in advance!
Saldo Inicial Activ Período Balance Final
Cuenta Descripción 06/01/13 06/30/13 Ajuste Balance
12012 PTU DIFERIDO -489.00 .00 -489.00
12018 IETU DIFERIDO -13,100.00 .00 -13,100.00
13520 CREDITO MERCANTIL 13,682,407.05 .00 13,682,407.05
20819 OTRAS RESERVAS 445,751.35 86,957.38 532,708.73
21402 PASIVO NETO PROYECTADO 4,887.65 .00 4,887.65
30101 CAPITAL SOCIAL HISTORICO 25,791.04 .00 25,791.04
30151 CAPITAL SOC. ACTUALIZADO 87,406.99 .00 87,406.99
30201 RVA. LEGAL HISTORICO -210,712.72 .00 -210,712.72
30301 UTIL/(PERD) AC. HISTORIC -2,605,881.57 .00 -2,605,881.57
30501 RESUL. ACUM. HIST. -10,969,131.88 .00 -10,969,131.88
30502 OCI -22,567.00 .00 -22,567.00
30721 POSICION MONETARIA 233,964.17 .00 233,964.17
30801 CXREEXP.TRASP. DEL EJERC 1,164,673.76 .00 1,164,673.76
77403 OTROS -445,751.35 -86,957.38 -532,708.73
1,377,248.49 .00 1,377,248.49
==================== ==================== ====================
Criterio del Reporte: Reporte pedido por: iochoa
Entidad: 93 A: 93
Fecha Efectiva: 06/01/13
A: 06/30/13
Sumar Subcuentas: S
Sumar Centros Costo: N
Moneda: MN
Suprimir Montos Cero: S
Redondeo al Millar más Cerc: No
Redondeo a Unid más Cercana: No
Moneda Reportes: Salida: Bal93
ID Batch:
Similar Messages
-
How to use import script with FDM using adapter ERPI?
Hi,
I use FDM and ERPI 11.1.2 to load data from EBS R12 to Planning 11.1.2
Data loaded from eBS are YTD data.
I have seen that I could use an import script to calculate manually the amount with the periodic_net_cr and periodic_net_dr fields.
But how to use this import script? Because in my import format in FDM, I don't use a file but directly the adapter, so no "Expression" field.
Thanks in advance for your help
FannyHello Fanny,
No you will not need to put anything in the BatchAction. If you review the FDM API Documentation posted it will outline all the scripts that will execute for a particular event ... and the order in which they execute. The BatchAciton only affects the execution of the batch ... it does not control processing of data. Processing of data is controlled by many others.
There is a script that can be written and placed (as Tony mentioned) in the ImportAction that will be able to recaculate the values from ERPi to be YTD values. You can possibly open an SR and a support Engineer can help you .... or you can search the current KM base and use that information there from the v11.1.1.3.00 version to build your own for v11.1.2.x
Thank you, -
FDM import script with selectable source file
Hi All,
I would like to build an import script attached to an import format that imports a text file with multiple value columns.
Source file:
Entity, Detail, Account 1, Account 2
E_abc, D_abc, 100, 200
In FDM this needs to be:
Entity, Detail, Account, Amount
E_abc, D_abc, Account 1, 100
E_abc, D_abc, Account 2, 200
So i need to loop through the file.
My biggest challenge is that when i attach a script to an import format in the import process i cannot select a file from inbox anymore, it has to be a pre-defined file.
Has someone an example or solution how to make a script-import format and enable the select file from inbox?
And if possible has someone an example script of the issue stated above?
Thanks in advance,
MarcHi Wayne..
Thanks for your reply (and sorry for the delay in mine).
Could you tell me what script to use to open the file in the befImport script, or how to rename the file in memory to a new one?
So i write a script that rewrites the file to a new file in the inbox but i need to tell FDM that it needs to process this new file.
Thanks,
Marc -
IMPORT statement with dynamic variable
Friends, Need Help!!!!!!!
Im trying IMPORT variable contents from a cluster table VARI. I can do a IMPORT without issues when I use exact name of the variable but I have issues with dynamic variable selection. Pls see code below.
loop at objects.
assign objects-name to <fs>.
IMPORT <fs> to tmp_var from database vari(va) id st_key.
endloop.
I do not get any value to tmp_var. Need help!
thanks
BhaskarTry this.
loop at objects.
IMPORT (objects-name) to tmp_var from database vari(va) id st_key.
endloop.
Does it work?
Regards,
RIch Heilman -
Maxl Clear Script with Substitution Variables
Hi,
I am new to Maxl and I am trying to write a clear script with Maxl on an ASO Cube. The script should only clear data on a certain version and year that changes every month. I am using the following syntax and it doesn't work.
alter database ASOSamp.Sample clear data in region '{[&SV_CurrentPeriod]}';
What is the correct syntax here?
thanks,alter database ASOSamp.Sample clear data in region '{[&Test]}';...with the subvar 'Test' set to Jan...works on my 11.1.2 test system.
Incidentally, when you say "it doesn't work", do you mean you get a MaxL error, or it doesn't clear the expected region? I was assuming the former, but you don't say. -
Detail view with bind variable. TreeTable not showing all detail result.
I’m having trouble with treeTable using detail view with bind variables and where clause defined in VO definition.
Both, master and detail view objects, base on the same entity and have the same condition in where clause. The view objects also have bind variables, which are set in prepareRowSetForQuery() method.
Again, these are two different views, that get different result, based on value of one of the bind variable.
When I show results in two different tables on jsf page, where master table has "RowSelection" set on "single", all results are displayed in detail table.
But when I use treeTable, only the first result of the detail is shown.I tested it in applicationModule and it works, but i think that's the same as two tables on a jsf page.
This is the order in which overridden methods are called in ADF BC or two tables on jsf page
when clicking on row in master table.
PrepareRowSetForQueryDetail
executeQueryForCollection_Detail user param: 2
Object 2: class [Ljava.lang.Object; -> print of the object2[] parameter in executeQueryForCollection
List 0: Bind_ChildId -> viewLink parameter
List 1: 400035313 -> viewLink parameter value
getEstimatedRowCount_Detail
count: 2
getEstimatedRowCount_Detail
count: 2 And when i click on "expand node" in tree table:
getEstimatedRowCount_Root
count: 2
PrepareRowSetForQuery_Detail
executeQueryForCollection_Detail user param: 2
Object 2: class [Ljava.lang.Object;
List 0: Bind_ChildId -> viewLink parameter
List 1: 400035321
PrepareRowSetForQueryDetail
executeQueryForCollection_Detail user param: 2
Object 2: class [Ljava.lang.Object;
List 0: Bind_ChildId -> viewLink parameter
List 1: 400035313
getEstimatedRowCount_Root
count: 2
getEstimatedRowCount_Root
count: 2
getEstimatedRowCount_Root
count: 2
PrepareRowSetForQueryDetail
executeQueryForCollection_Detail user param: 2
Object 2: class [Ljava.lang.Object;
List 0: Bind_ChildId -> viewLink parameter
List 1: 400035313
PrepareRowSetForQueryDetail
executeQueryForCollection_Detail user param: 2
Object 2: class [Ljava.lang.Object;
List 0: Bind_ChildId -> viewLink parameter
List 1: 400035321
getEstimatedRowCount_Root
count: 2
getEstimatedRowCount_Root
count: 2Values of user parameters are OK. Is there another method that i should override?
I also noticed, that if detail view doesn't have user bind variables, the tree works fine and is shown even in ADF BC (aplication module).
I guess we loose a tree, when using bind variables in detail view object.
Is there a way around it? -
Illustrator scripting with datasets & variables
I have a .ai file with 3 datasets containing 2 variables each. I am new to adobe scripting and am trying to write a script that will loop through the 3 datasets, swap out the variables, and save as 3 different .pdf files. I can loop and export, but don't know how to access the variables.
Here is a snipped from what I have:
for (var i=0; i< docRef.dataSets.length; i++){
var ds1 = docRef.dataSets.getByName('ABC'); // ABC is a client name, but numeric index is required
//var ds1 = docRef.dataSets.index(1); // this doesn't seem to work, but i need it to
docRef.activeDataset = ds1;
// I need to access the dataset variables here, where ClientName is a variable name within the dataset
client_name = ?????;
ds1.display();
app.redraw();
// ----- save changes
filepath = '/Users/me/Documents/clients/'+client_name+'.pdf';
saveInFile = new File( filepath );
pdfSaveOpts = getPDFOptions( );
docRef.saveAs( saveInFile, pdfSaveOpts );
Thanks for any helpmarkr34,
I have never done any dataset scripting, but my eyes tell me that at this line:
//var ds1 = docRef.dataSets.index(1); // this doesn't seem to work, but i need it to
you'd probably want to use square brackets [1] rather than parentheses to refer to array by index.
HTH -
AT NEW/AT END performance versus using temp variables.
What would be more efficient? Imagine you are looping through a table that contains sales information for many sales documents/sales groups/sales offices. I need an AT statement for each. The amount of data that this report is HUGE so any performance would be noticed.
So, which would perform better? Using some if statements along with temp variables or the AT statements?
Regards,
DavisYou can use Control break statements.
make sure you sorted the Table with the fields you are going to perform control breaks.
and also those fields should be in the beginning or the fields changes should not controlled by any other fields.
you need to use one extra work area to avoid '*' may be some cases you want some data from the work area.
loop at itab.
wa = itab.
at new field.
"here some fields which are next to control break fields will appear stars
"so use work area here
endat.
endloop. -
Creating single executible with global variables
I am trying to create an executible with global variables. I dynamically load the source file but when I run the indicator does not update unless I run both VI's together. Is the executible require different inputs during creation?
Hello,
It's not the fact that you are creating an executable that is causing the issue. What you are experiencing is expected behavior. Please see this KnowledgeBase" for some solutions.
Nicholas C
National Instruments
Applications Engineering -
SMARTFORM - Part of variable content missing in otf file
Hi colleagues,
In my smartform, I have variables, defined as STRING, which contains HTML coding to generate URL links in the final document.
The variable is correct and ends with '</a>'.
But in the otf file, the result is sometimes wrong. The variable is splitted into several lines (no problem), but the last line is somehow shorted... I only get '</'.
Due to that, end of URL is not recognized and the whole content below this unless link appears as part of the link.
This seems to be related to the length of the variable content.
If it is short enough (but this I could not insure), the code is complete and everything works fine.
Does this means that my url should be splitted to never exceed a certain limit (254 or 255 chr).?
thansk for your help,
BarbaraHi,
Thanks for feedback.
Lengh is the issue. If I split the single varaible into several to only have 255 chars in each of them, it is possible to not loose part of the content.
I try to put the two variables (part1 and part2) on the same line in SMARTFORM without any separators. This has exactly the same effect than if I use one varaible which exceed 255 chars. The content of the 2nd one is lost in the OTF.
I then insert a blank between them, and I do not loose anything in the OTF.
Unfortunatelly, due to the separator, the URL is also split in 2 parts on my final content, which is not really good.
Splitting the label is not beautiful, but not dangerous. Adding one space in the URL may leads to not working link.
I will try to consider this issue when preparing the content from the OTF file.
If you have any hints what to consider, I would appreciate.
Kind Regards,
barbara -
Importing existing worksheet yields "Object variable or With Block variable not set" error
There is not much more to say. I try to import the worksheet, but it gives that error. I do not see anywhere I can enter VAB either. FYI, I am working with SharePoint 2007 but there was no forum for that.
Hi SAP collegues,
At my site, BPC Excel created this problem too "Object Variable or With Block Variable not set" .
It turned out that this is symptom of a a dys-functioning BPC COM Plug-in in XL2007 or XL2010!
This is a consequence that your Excel recently crashed while using BPC. And it relates to an Excel Add-in becoming disabled when the applications crashes. Please check the following.
Note before doing the following, close all other open Excel and BPC sessions.
Within Excel go to File à Options
Select the Add-Ins option on the left
Select the <<COM Add-ins >> option in the Manage drop down, and click Go
Make sure that the Planning and Consolidation option is selected. If not, mark this box and click OK.
If you do not see anything listed, return to the Add-in screen and select the Disabled Items option, and see if Planning and Consolidation is listed there.
Let me know if you have any queries,
Kind Regards,
robert ten bosch -
Working with TimeZone variables in UCCx script
Hi Team
I'm wondering if you guys could help me to find out the best way to work with TZ variables in UCCx script.
Because of different countries customer has a branches, I need to setup different TimeZones for each country handled by the same centralized UCCx.
In this post they use Java to work with TZ, however, but I prefer another way to work with TZ variables:
https://supportforums.cisco.com/discussion/11851751/how-make-uccx-holiday-script-timezone-aware
My idea is to work with Time Zone variables in the script, so what I did was to create different TZ variables and each one of the them assigned the proper timezone based on the country, so depending of the Trigger involved (DNIS), I can find witch country this call came from and give the right timezone.
The problem I have is that at the time I want to add or subtract two variables of TZ, I got an error because of the syntax. I've been trying different options, but until now, no luck.
Would you mind you guys who had been working on this let me know what is the right syntax to add or subtract TimeZone variables un UCCx?
Thanking you in advance
MartinHi
I've been working on TZ's recently... see this post:
https://supportforums.cisco.com/discussion/12474756/how-check-daylight-saving-within-uccx-script
My approach in the scripts was that basically I allow the department to set their opening hours in the timezone of their choice.
They have a management web page served from CCX that accepts start/end times each day, and a timezone. That all gets stored in XML.
In the script, based on that information I get the current time in whatever timezone is set, and compare that to the XML open/close times.
Similarly for holidays, I get the current date/time in the holiday TZ and compare the holidays to that.
Aaron -
How to import files with static variables into a block with methods?
i have a problem. is it possible to import files with static variables into tags like
<%!
//here i want to import a file named settings.inc
//whitch is used to set jdbc constants like url,driver,...
private void method() {
private void method2() {
%>
<%@include file="xy"%>//dosn�t work above
//only in <%%>tagThis should be done using either the Properties class or ResourceBundle. Ex.
<%
ResourceBundle resBun = ResourceBundle.getBundle(String resource);
String username = resBun.getString("username");
String password = resBun.getString("password");
// etc
%> -
Importing graphics with variables
If I import a graphic with a variable, and then a bit later
import a
different graphic with different sizes, the icon still
reports the
dimensions of the previous graphic. What can I do to update
the reported
values?
I'm using aw5.2
ThanksWithout opening Authorware at the moment, isn't there an 'As
Is' vs.
'Scaled' option somewhere on the display icon's property
inspector?
Even if so, I don't know if that would work anyway. I recall
that I
could never get images of various sizes to display in any
dimension
other than the one first linked-to, but that could be fuzzy.
Check the Property Inspector options. If you have the
settings as you
think should work but the second image still displays at the
first
images size, try erasing then redisplaying the icon...
Erik
dave wrote:
> If I import a graphic with a variable, and then a bit
later import a
> different graphic with different sizes, the icon still
reports the
> dimensions of the previous graphic. What can I do to
update the reported
> values?
>
> I'm using aw5.2
>
> Thanks
>
>
Erik Lord
http://www.capemedia.net
Adobe Community Expert - Authorware
http://www.adobe.com/communities/experts/
http://www.awaretips.net -
samples, tips, products, faqs, and links!
*Search the A'ware newsgroup archives*
http://groups.google.com/group/macromedia.authorware -
Problems with import script on Firefox 3.6.3
Hi all,
I have just started using Firefox after hearing so much good about it. Unfortunately, I am disappointed to find it just cannot import all of my cookies, bookmarks, etc. from IE 6.0.2900.5512. I am on Win XP SP3.
When I try and import into Firefox, it keeps telling me the import scripts foe each one are unresponsive. Are there any patches to get this to work?
== User Agent ==
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705)See http://kb.mozillazine.org/accessibility.tabfocus
Note: In OS X (as of 2005-01), if this preference is not explicitly set, the “Full Keyboard Access” setting in System Preferences will be honored. All builds before that date (e.g., Firefox 1.0.x) will ignore that setting.
Maybe you are looking for
-
Time Machine and File Vault problems
Hi, Since I converted to Mac more than a year ago, I turned my file vault on (although I learned in the meantime that it is not actually necessary....) I now recently bought the time Capsule and found out that the Time Machine doesn't go well with th
-
Why won't my Mac with Mountain Lion OS recognise my external Samsung hard drive?
Why won't my Mac with Mountain Lion OS recognise my external Samsung hard drive?
-
I cant create an event in iCal
When viewing Month all of the Dates and Times are displayed in grey. If I attempt to create an event by clicking in a day the NEw Event dialogure does not appear, although the event appears in my google calendar which its synced to.
-
"Maybe it much early in the game, Ooh, but I thought I'd ask you just the same..." I know Logic 8 has just come out but I can still think of lots of things I'd like to have in Logic. But here is one wish I have that is not exactly a L8 feature. I wis
-
How do i repair HD when repair disk doesn't show up on disk utility
I'm having problem after problem with installing Yosemite. Now I can't get into my PC at all. It says the file system verify or repair failed. I followed directions and am now in utility which cays under Macintosh HD... Warning SUID file "system/li