Need limit data selection to GL_Period in FDM integration script
Greetings!
I am trying to modify an FDM Integration script to limit the data selection to a specific GL period name. The FDM function passes 4 parameters of which one is dblPerKey. My understanding is that this parameter contains the end-date of the requested GL Period and thatthe element is a datetime data type. I have tried several incantations of VB Script to create a period name in MON-YY format and all seem to fail with no data returned. What I am not understanding is what is the content of dblPerKey and can I use it to derive a GL period name? If not, I am open to any and all suggestions.
My deepest appreciation and thanks for any and all suggestions you may send my way.
Tom
Hi Tom
If you haven't already I'd try posting this in the FDM forum as I think you are more likely to get an answer there.
Performance Management Applications > Financial Data Management
Regards
Stuart
Similar Messages
-
Hi Guru's
When i want to pull the data from SQL table using below integration Script from admin guide, its showing <font color="red">-2147217865 Data access Error at line15 (Line 15:Set rsAppend = DW.DataAccess.farsTable(strWorkTableName) </font>
I tried with both web client and workbench. i got same error message.
(FYI: UDL test connection is succeeded)
Please help me.
SQL server name: DEV
Database name: FDM
Sql Table name: SDR
SDR Table contains Below Data Example:
Entity Account ICP Custom1 Custom2 Custom3 Custom4 Amount
India, Extsales, [Icp None], Nocc, No Cust, None, None, 50000
India, rent, [Icp None], Nocc, No Cust, None, None, 20000
Intigration Script:
Function SQLIntegration(strLoc, lngCatKey, dblPerKey, strWorkTableName)
'Hyperion FDM Integration Import Script:
'Created By: admin
'Date Created: 04/19/2012 2:18:39 PM
'Purpose: Pull data directly from SQL DB
Dim objSS 'ADODB.Connection
Dim strSQL 'SQL String
Dim rs 'Recordset
Dim rsAppend 'tTB table append rs Object
'Initialize objects
Set cnSS = CreateObject("ADODB.Connection")
Set rs = CreateObject("ADODB.Recordset")
Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)
'Connect To SQL Server database
cnss.open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=FDM;Data Source=DEV;"
'Create query String
strSQL = "Select * "
strSQL = strSQL & "FROM SDR "
'Get data
rs.Open strSQL, cnSS
'Check For data
If rs.bof And rs.eof Then
RES.PlngActionType = 2
RES.PstrActionValue = "No Records To load!"
Exit Function
End If
'Loop through records And append To tTB table In location’s DB
If Not rs.bof And Not rs.eof Then
Do While Not rs.eof
rsAppend.AddNew
rsAppend.Fields("PartitionKey") = RES.PlngLocKey
rsAppend.Fields("CatKey") = RES.PlngCatKey
rsAppend.Fields("PeriodKey") = RES.PdtePerKey
rsAppend.Fields("DataView") = "YTD"
rsAppend.Fields("CalcAcctType") = 9
rsAppend.Fields("Amount") = rs.fields("dblAmt").Value
rsAppend.Fields("Desc1") = rs.fields("txtAcctDes").Value
rsAppend.Fields("Account") = rs.fields("txtAcct").Value
rsAppend.Fields("Entity") = rs.fields("txtCenter").Value
rsAppend.Update
rs.movenext
Loop
End If
'Records loaded
RES.PlngActionType = 6
RES.PstrActionValue = "SQL Import successful!"
'Assign Return value
SQLIntegration = True
End Function
<font color="red"> BELOW IS THE ERROR LOG </font>
Error Log:
** Begin FDM Runtime Error Log Entry [2012-07-16-01:57:58] **
ERROR:
Code............................................. -2147217865
Description...................................... Table does not exist.
Procedure........................................ clsDataAccess.farsTable
Component........................................ upsWDataWindowDM
Version.......................................... 1111
Thread........................................... 8252
IDENTIFICATION:
User............................................. admin
Computer Name....................................xxxx
App Name......................................... xxxxx
Client App....................................... WorkBench
CONNECTION:
Provider......................................... SQLOLEDB
Data Server...................................... xxxxx
Database Name.................................... xxxxx
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... India
Location ID...................................... 751
Location Seg..................................... 4
Category......................................... actual
Category ID...................................... 13
Period........................................... Jan - 2012
Period ID........................................ 1/31/2012
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... True
Is Auditor....................................... False
regards
SarillaHi Sarilla
I assume you ran the script from the editor.
You HAVE TO run it from the normal FDM workflow "Import".
Otherwise "Data access error"
Hope this helps
BR -
Minimum How many dimension required for FDM integration Script
Hi Gurus
I have only 2 dimensions in my SQL Table name dbo.ABC (Example: 1.Entity 2.Account and amount(data value)
Example:
USA, SALES, 50000
(Including value its total 3 dimensions)
How to export this data to Target HFM Application.
Integration Script got success when i click on validation it is shows only 2 dimension 1.Account 2.Entity. i have mapped correctly. but validation screen not showing anything. i got gold fish for validation button and Export is also showing success and got goldfish. but no data is exported to HFM application.
in FDM outbox its created a file which is containing only *!data* text. There is no record in this file.
I want to load the data with rest of the dimensions with [None] member combination as i don't have the additional dimensions in my source file.
Minimum how many dimension required to export the data from FDM to HFM?
regards
TaruniHi,
I came to know, at least one member from the source file should be there in the integration script then only we can assign at least [None] member or any member for the target dimensions.
My source file having only 3 dimensions ( USA,Sales,Amount)
1.USA,2.Sales,3.$50000
Import Screen Dimensions:
1.Source-FM-Entity
2.Source-FDM-Account
3.Account Description
4.SourceICP
5.SourceCustom1
6.SourceCustom2
7.SourceCustom3
8.SourceCustom4
9.Amount
In the integration script its taking the values as
Source-FM-Entity(0)
Source-FDM-Account(1)
Account Description
SourceICP
SourceCustom1
SourceCustom2
SourceCustom3
SourceCustom4
Amount(2)
above it shows only 0,1,2 numbers are assigned to source dimensions.
As my source file having only 3 Dimension so it is taking only 3 dimensions shown below. rest of the dimensions it is not showing in the import screen.
*0.Source-FM-Entity,1.Source-FDM-Account,2.Amount*
If i assign any values(3-9) to next dimensions or if I left blank rs.fields("txtAcctDes") with its showing below error messages:
Error: An error occurred importing the file.
Detail: Item cannot be found in the collection corresponding to the requested name or ordinal.
At line: (39 and 42-46)
So i have assigned Source-FDM-Account Number<font color="Blue">(rs.fields(1) </font>Value to rest of the dimensions in my integration script.
<font color="Blue">rsAppend.Fields("Account") = rs.fields(1).Value</font>
rsAppend.Fields("Desc1") = rs.fields(1).Value
rsAppend.Fields("ICP") = rs.fields(1).Value
rsAppend.Fields("UD1") = rs.fields(1).Value
rsAppend.Fields("UD2") = rs.fields(1).Value
rsAppend.Fields("UD3") = rs.fields(1).Value
rsAppend.Fields("UD4") = rs.fields(1).Value
Now am able to import the data into import screen, And i found all the above member names as Sales as i assigned Account dimension number(1) to these members temporarily to succeed the import process . Then i have mapped to Target dimensions with [None] member combination as these members are not in original source file. Then rest of the process Export and Check is done perfectly.
*<font color="red">1.Am i right?? Please suggest me the correct process?</font>*
*<font color="red">2.Can we use blank values in Integration Script as mentioned below??</font>*
rsAppend.Fields("Desc1") = rs.fields("txtAcctDes").Value
rsAppend.Fields("Account") = rs.fields("txtAcct").Value
rsAppend.Fields("Entity") = rs.fields("txtCenter").Value
*1.Added value*
Example: rsAppend.Fields("Desc1") = rs.fields("1").Value
*2.Blank Value*
rsAppend.Fields("Desc1") = rs.fields("txtAcctDes").Value
*<font color="red">3.As per my observation system is not accepting blank values in integration script. Please correct me??</font>*
Here is my Integration Script
1 Function Integration(strLoc, lngCatKey, dblPerKey, strWorkTableName)
2 '------------------------------------------------------------------
3 'Oracle Hyperion FDM IMPORT Integration Script:
4 Created By: admin
5 Date Created: 2012-11-20-07:55:20
6 'Purpose:
7 '------------------------------------------------------------------
8 Dim objSS 'ADODB.Connection
9 Dim strSQL 'SQL String
10 Dim rs 'Recordset
11 Dim rsAppend 'tTB table append rs Object
12 'Initialize objects
13 Set cnSS = CreateObject("ADODB.Connection")
14 Set rs = CreateObject("ADODB.Recordset")
15 Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)
16 'Connect To SQL Server database
17 cnss.open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=TEST;Data Source=localhost;"
18 strSQL = "Select * "
19 strSQL = strSQL & "FROM ABC"
20 'Get data
21 rs.Open strSQL, cnSS
22 'Check For data
23 If rs.bof And rs.eof Then
24 RES.PlngActionType = 2
25 RES.PstrActionValue = "No Records To load!"
26 FirstImportVB = False ' Assign return value of function
27 Exit Function
28 End If
29 'Loop through records And append To tTB table In location’s DB
30 If Not rs.bof And Not rs.eof Then
31 Do While Not rs.eof
32 rsAppend.AddNew
33 rsAppend.Fields("PartitionKey") = RES.PlngLocKey
34 rsAppend.Fields("catKey") = lngCatKey
35 rsAppend.Fields("PeriodKey") =dblPerKey
36 rsAppend.Fields("DataView") = "YTD"
37 rsAppend.Fields("CalcAcctType") = 9
38 rsAppend.Fields("Amount") = rs.fields(2).Value
39 rsAppend.Fields("Desc1") = rs.fields(1).Value
40 rsAppend.Fields("Account") = rs.fields(1).Value
41 rsAppend.Fields("Entity") = rs.fields(0).Value
42 rsAppend.Fields("ICP") = rs.fields(1).Value
43 rsAppend.Fields("UD1") = rs.fields(1).Value
44 rsAppend.Fields("UD2") = rs.fields(1).Value
45 rsAppend.Fields("UD3") = rs.fields(1).Value
46 rsAppend.Fields("UD4") = rs.fields(1).Value
47 rsAppend.Update
48 rs.movenext
49 Loop
50 End If
51 'Records loaded
52 RES.PlngActionType = 2
53 RES.PstrActionValue = "SQL Import successful!"
54 'Assign Return value
55 Integration = True
56 End Function
Regards
Taruni -
What is CalcAcctType in FDM Integration Script
Hi All
What is CalcAcctType in FDM Integration Script
Why we need to set number 9 ?
Example:
rsAppend.Fields("CalcAcctType") = 9
regards
SarillaThe value "9" indicates it is input data. the folllowing is taken form the API guide, which i think it (from memory) relates to:
enmAcctType
upLogicNoExport = -1
upLogicNoExport = -1
upLogicExport = 5
upLogicExport = 5
upbase = 9
upbase = 9
Edited by: user10757003 on 16-Nov-2012 02:57 -
FDM integration script for multiple locations
Hi,
I have a slight problem with FDM integration script (SQL integration).
From what I've understood and tested within one FDM-application (tablespace) I'm not able to have multiple integration scripts. This because the integration script needs to be named SQLIntegration.uss, otherwise there will be an error.
I have multiple locations within one FDM-application where I would like to use an integration script. Due to the above mentioned naming "bug", I need to include all my locations' integration information in one script. As imagined this is not a solution that easy to maintain or easy to read.
- Is there a workaround for the name-bug?
- Can I call a function within the main function? I tried without any success, but maybe you would have a solution.
Any input would be beneficialuser10757003 wrote:
Not sure what you mean when you say you rename the file and you get the error.
Is this a new integration script you have created and cut / pasted the existing integration script contents? If so, did you remember to change the SQLINTEGRATION = TRUE statement at the end of the script to the new integration script name? this might be the reason why you get the 'Import Successful' popup and the Import error dropdown.What I mean is that scripts are name xxx.uss abc.uss. This should be fairly clear.
Now I have the SQLIntegration.uss, if I change the name of the script to SQLIntegration1.uss or any name. The script will not work. And I receive one error and one success message as stated above.
Note: I'm not changing the content or anything else inside the script. -
Javascript hel - how to limit date selection ?
I use the following javascript to validate a start and end date, and radio buttons on my form. What I need to do is limit the date selection to 30 days only. Anything more should display an error. So if I enter starting date of 1/1/2009 and ending date of 2/28/2009, then I should get a popup error. How can I do this with my exisintg code :
<Script language="JavaScript">
function validateForm()
if(document.indexForm.startDate.value == "" && document.indexForm.endDate.value == "")
alert('Start Date and End Date cannot be blank.');
indexForm.startDate.focus();
return(false);
if(document.indexForm.startDate.value > document.indexForm.endDate.value)
alert('End Date cannot be less than Start Date.');
indexForm.endDate.focus();
return(false);
if(document.indexForm.startDate.value !== "" && document.indexForm.endDate.value == "")
alert('End Date cannot be blank.');
indexForm.endDate.focus();
return(false);
if(document.indexForm.startDate.value == "" && document.indexForm.endDate.value !== "")
alert('Start Date cannot be blank.');
indexForm.startDate.focus();
return(false);
myOption = -1;
for (i=indexForm.region_code.length-1; i > -1; i--) {
if (indexForm.region_code[i].checked) {
myOption = i; i = -1;
if (myOption == -1) {
alert("Please select a region.");
return(false);
myOption = -1;
for (i=indexForm.reportName.length-1; i > -1; i--) {
if (indexForm.reportName[i].checked) {
myOption = i; i = -1;
if (myOption == -1) {
alert("Please select a report.");
return(false);
return(true);
</Script>Step 1. Get rid of anything that can be done with a cfinput tag and the built in js that comes with it.
Step 2 - js is reading strings, not dates from your text boxes. Convert these to dates before you start comparing the values to each other. -
Automating FDM Integration Script in Task Manager
Hi everyone
I have created an Integration Script that copies data from a SQL table to FDM, and is now attempting to automate a daily run in Task Manager.
To do this it seems I need to create a Custom Script to run the following Integration Script:
Function LedgerTrans(strLoc, lngCatKey, dblPerKey, strWorkTableName) I am unable to figure out what to write in the Custom Script to trigger the Integration Script. Can anyone explain or give a sample?
Best regards
FrederikYou don't need a custom script, you can just use the batch process to trigger the import for the POV. You would create a standard batch script using the Batch GUI in the workbench (Tools > Batch processing) and then put empty source files in the OpenBatch folder with the POV for the file name to trigger the import script for the POV.
-
FDM Integration script - Selecting the Period from SQL based on FDM PoV
Hi,
I want query SQL Period Column for the month based on the FDM PoV, can or has anyone a sample script of how this is can be achieved?
My script when run comes back with "No records to load" - msg in my script. Let me know if you can spot anything obvious that's causing this in my script.
SQL table
EVENT YEAR Period Entity Ccy Acc ICP Value Product
Actual
FY14
May
HME_AT
EUR
ws_inp
NULL
39
HRX537C2VKEA
Actual
FY14
May
HME_AT
EUR
ws_inp
NULL
3
HS2411Z1E
Dim objSS 'ADODB.Connection
Dim strSQL 'SQL string
Dim strSelectPer 'FDM Period
Dim strCurFDMYear'FDM Year
Dim rs 'SQL Recordset
Dim rsAppend 'FDM tTB table append rs object
Dim recordCount
Dim sWhere
Dim sSelect
'Initialize objects
Set cnSS = CreateObject("ADODB.Connection")
Set rs = CreateObject("ADODB.Recordset")
Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)
'Get Current POV Period And Year And determine HFM Select Year
strSelectPer = Left((RES.PstrPer), 3)
strCurFDMYear = Right(RES.PstrPer, 4)
Select Case UCase(strSelectPer)
Case "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"
strSelectYear = strCurFDMYear + 1
Case "JAN", "FEB", "MAR"
strSelectYear = strCurFDMYear
End Select
'Watch with this as it can cause looping
On Error Resume Next
Err.clear
'Connect to SQL database
'cnSS.Open "Driver=SQL Server;Server=EHEINTRADCG\EHEINTRADCG;Database=dw_foundation;UID=hypdb"
cnSS.Open "Driver=SQL Server;Server=EHEINTRADCG\EHEINTRADCG;Database=ODI_WORK_MARS;UID=hypdb"
'Connect to SQL Server database
cnSS.CommandTimeout = 1200
'Keep the error message handling in for testing but will probably need to write
'to a log if running in an overnight batch
'Error Handling
If Err.Number <> 0 Then
' An exception occurred
RES.PlngActionType = 2
RES.PstrActionValue = Err.Description & Chr(10) & "Unable to connect to SQL Data Source"
Err.clear
Set cnSS = Nothing
FinAllLocs_Conv = False
Exit Function
End If
'Create query String
strSQL = strSQL & "From ODI_WORK_MARS.dbo.TMP_HFM_DATA_EXTRACT_TIN1 "
strSQL = sWhere & " And YearID = '" & strSelectYear & "' And PeriodID = '" & strSelectPer & "'"
'Get data
rs.Open strSQL, cnSS
' Check For data
If rs.bof And rs.eof Then
RES.PlngActionType = 2
RES.PstrActionValue = "No Records to load!"
Exit Function
End If
' RecordCount = 0
'Loop through records and append to FDM tTB table in location's DB
If Not rs.bof And Not rs.eof Then
Do While Not rs.eof
'Create the record
rsAppend.AddNew
rsAppend.Fields("PartitionKey") = RES.PlngLocKey ' Location ID
rsAppend.Fields("CatKey") = RES.PlngCatKey 'Current Category ID
rsAppend.Fields("PeriodKey") = RES.PdtePerKey 'Current Period ID
rsAppend.Fields("DataView") = "YTD" 'Data View ID
rsAppend.Fields("CalcAcctType") = 9 'Input data indicator
rsAppend.Fields("Entity") = rs.fields("Entity").Value ' Entity/Genpo ID
rsAppend.Fields("Account")= rs.fields("Account").Value 'Account ID
rsAppend.Fields("ICP") = rs.fields("Inter_Company_Entity_HFM").Value ' Inter-Co/Destination
rsAppend.Fields("Amount") = rs.fields("Value").Value ' Data Value ID
rsAppend.Update
RecordCount = Recordcount + 1
rs.movenext
Loop
End If
'Records loaded
RES.PlngActionType = 2
RES.PstrActionValue = "SQL Import successful! " & RecordCount
'Assign Return value
SAP_HFM = True
End FunctionHi,
the easiest way to check it is to redirect your SQL query to text file and then execute in a SQL tool.
You should write the value of strSQL (which actually seems to have missing the SELECT clause)
In any case, your SQL statement seems to be incomplete:
strSQL = strSQL & "From ODI_WORK_MARS.dbo.TMP_HFM_DATA_EXTRACT_TIN1 "
strSQL = sWhere & " And YearID = '" & strSelectYear & "' And PeriodID = '" & strSelectPer & "'"
- You have not initialized strSQL with SELECT clause (maybe sSelect?)
- You have not initialized sWhere with WHERE clause
In addition to this, your source year is in FYYY format while you are taking year from POV as YYYY.
(...And YearID = 2014 while in your table you have FY14)
After you check this, get the SQL statement, review it, and try to launch against your source DB in a SQL tool.
Regards -
Need a single point of view on date selections for Delta and Full load IP's
Hi Experts,
Every year we are facing issues on date selections for data extraction, for example the Delta or Full selections for particular IP is like 2005 to 2008 , in this situation, for the year 2009, this IP is picking 0 records as the selections are upto 2008 only.
My requirement is, I need to check the selections of all the IP's in the system and want to change on need base if the selections are getting expired instead of going and checking manually to each and every IP as the system is having around 3000 IP's, which is a tedious job.
Guys, please let us know if there exits a Table/Program or any other way to check it.
Inputs appreciated.
Regards
NanduHi
Persistent through module RSSM_SHIP_PSEUDO_DVERSION_WRI
Primary table RSLDPIOSH
RSLDPIO Links datasource to infopackages
RSLDPIOT InfoPackage Text Description
RSLDPRULE ABAP source code for InfoPackages
RSLDPSEL Hardcoded selections in InfoPackages
RSMONICDP Contains the request-id number by data target
RSPAKPOS List of InfoPackage Groups / InfoPackages
http://help.sap.com/saphelp_nw70/helpdata/en/2e/20d704d45be7458582cdfcc5487090/frameset.htm
Hope it helps -
Need help in Data selection in Smartforms
Hi All,
this data selection is for displaying data in smartforms.
I have a internal table passed on to the Smartforms where i have the Main item and its batches.
posnr text
10 line text1
90004
90005
20 line text2
90006
90007
And in the coding i have made the posnr for batches as 00000 for someother purpose.
now i need to display a text after an item and its batches.
like :
Item Prodcode description Qty uom Picked Factor
batchNo batch qty reel size to ship qty
10 19501 material description 200 M 0 3
Batch1 200 482448
Batch2 200 482448
Special instructions :
i used the following code in the Smartforms to display the Text.
V_SPL = 'Special Line Instructions:'.
V_INDEX1 = V_INDEX + 1.
CLEAR IT_FINAL.
READ TABLE IT_FINAL INDEX V_INDEX1.
CLEAR V_INDEX1.
IF IT_FINAL-POSNR > 0.
CLEAR IT_FINAL.
READ TABLE IT_FINAL INDEX V_INDEX.
V_INDEX1 = '9999'.
V_ITEMTEXT = IT_FINAL-ITEMTEXT.
V_PACKTEXT = IT_FINAL-PACKTEXT.
ENDIF.
V_INDEX = V_INDEX + 1.
DESCRIBE TABLE IT_FINAL LINES V_LINE.
IF V_INDEX > V_LINE.
V_INDEX1 = '9999'.
its ok now if the data in the internal table is like this without any batches.
10
20
30
if the data in the internal table is like :
posnr text
10 line text1
0000
0000
0000
20 line text2
0000
0000
30 line text3
0000
it is not getting the data for the text.
Actually in the code i have written to read the next record in the internal table and if it is greater than 0, i will write the TEXT before writing the next item.
But if the next record is 0000, how to code it.
and the main this is , the text has to be written only after writing the item and its batches.
please tell me how to do this.
Waiting for your replies.
Vikki.Hi,
Just use the internal table to print the data in main window.
for first line which has not batchspitted(main line item) put condition as POSNR NE INITIAL.
and for batch split items, you already made posnr as '0000',
so put condition as POSNR eq INITIAL.
I think this will solve your problem.
Regards,
S Raju. -
Hi All,
this data selection is for displaying data in smartforms.
I have a internal table passed on to the Smartforms where i have the Main item and its batches.
posnr text
10 line text1
90004
90005
20 line text2
90006
90007
And in the coding i have made the posnr for batches as 00000 for someother purpose.
now i need to display a text after an item and its batches.
like :
Item Prodcode description Qty uom Picked Factor
batchNo batch qty reel size to ship qty
10 19501 material description 200 M 0 3
Batch1 200 482448
Batch2 200 482448
Special instructions :
i used the following code in the Smartforms to display the Text.
V_SPL = 'Special Line Instructions:'.
V_INDEX1 = V_INDEX + 1.
CLEAR IT_FINAL.
READ TABLE IT_FINAL INDEX V_INDEX1.
CLEAR V_INDEX1.
IF IT_FINAL-POSNR > 0.
CLEAR IT_FINAL.
READ TABLE IT_FINAL INDEX V_INDEX.
V_INDEX1 = '9999'.
V_ITEMTEXT = IT_FINAL-ITEMTEXT.
V_PACKTEXT = IT_FINAL-PACKTEXT.
ENDIF.
V_INDEX = V_INDEX + 1.
DESCRIBE TABLE IT_FINAL LINES V_LINE.
IF V_INDEX > V_LINE.
V_INDEX1 = '9999'.
its ok now if the data in the internal table is like this without any batches.
10
20
30
if the data in the internal table is like :
posnr text
10 line text1
0000
0000
0000
20 line text2
0000
0000
30 line text3
0000
it is not getting the data for the text.
Actually in the code i have written to read the next record in the internal table and if it is greater than 0, i will write the TEXT before writing the next item.
But if the next record is 0000, how to code it.
and the main this is , the text has to be written only after writing the item and its batches.
please tell me how to do this.
Waiting for your replies.
Vikki.Hi,
Just use the internal table to print the data in main window.
for first line which has not batchspitted(main line item) put condition as POSNR NE INITIAL.
and for batch split items, you already made posnr as '0000',
so put condition as POSNR eq INITIAL.
I think this will solve your problem.
Regards,
S Raju. -
Date selection in query : logic needed!
Hi,
we have one calendar day depending on which the query result is displayed!
Now the requirement is such that when user enters one date the query has to generate the result for the multiple date ranges including the one which he has entered.
example: if user has entered 15/9/2007 then query should not only display the result of the date 15/9/2007 but also the results of -5 to +2 ( means 10/9,11/9,12/9,13/9 and 14/9 plus 16/9 and 17/9 )
simlarly other ranges like -8 to + 7 and so on
How to define this in query?
Thanks,
RaviHello ,
I need to make a graph conveying the information of the deliveries by comparing the goods issue date and promised date !
report also requires how many deliveries were on time, how many were late and how many were early!
for this requirement, i had thought of making a date selection field which is promised date and make furthur more date ranges selections by query it self so that late deliveries and early deliveries also covered in these date ranges.
-5 to + 2 is that one range which is on time delivery range
if the delivery is more eally than the -5 days then it is early delivery. even in ealry delivery i want to make how early it is.
and suppose the delivery has crossed the promised date 2 days more then it is late delivery.
all has to be acheived by single date selection and there after the logic which takes care of all the date ranges i had explained.
i am looking for that logic which i am not finding
Hope this is clear now
Thanks,
Ravi -
Need to do data selection on a column basis.
Post Author: rconner
CA Forum: Data Connectivity and SQL
I need to do different data selection on a column basis instead of on the whole report. Example, I have 3 General Ledger account numbers.
5100.HOURS
5100.OT
5100.ONCALL
I need to see the units for each of these accounts per customer. My report lists each of the 3 accounts on separate rows and I need them to be side by side in order to do caluculations on the 3 fields.
Th report should look like:
Customer Name Account HOURS Units OT Units ONCALL UNITS Total
XYZ Corp. 5100 Hours 15 OT 3 ONCALL 2 20
At this time the report looks like the example below:
XYZ Corp. 5100 Hours 15
XYZ Corp. 5100 OT 3
XYZ Corp. 5100 ONCALL 2
Does anone know if this is possible and if so, how to do it?
Thanks,
RickPost Author: yangster
CA Forum: Data Connectivity and SQL
A simple way to do this would be to group on customer name\account #.create 3 formulas@hoursif account = hours then units else 0@OTif account = OT then units else 0@OnCallif account = ONCALL then units else 0put these in the details section, sum each formulaand simply put in text fields for hours, ot, and oncall next to each of the sums and you will get the desired layout you are after -
hello ,
i have created an info source . And i don't need all of the data .So i can control this through 'data selection' field of info package . But i do not find any info object here .And i can not add any info object either .
Can anyone teach me what should i do,if i want to set some limit in the data selection field of the info package .
thank you very much .
best regards .
cxs .hi,
To display the info objects in the infopackage selection screen, go to RSA6 select your data source and select the selection check boxes and save the data source and replicate the data source.
create the new info package you can find the info objects in the selection screen of info package.
If u r in BI 7.0, u can manipulate this restriction in DTP using FILTER option in Extraction.
points if helpful
get back to me if u need further
regards
vadlamudi -
Logical solution in data selection
Hi Experts,
I have one problem in in my code. I have a selection sceen for input two dates and a check box in my screen. For Extractind data i m using folloing statement.
SELECTdebit credit profit loss tdate FROM Zpfaccount INTO
(itab-debit, itab-credit, itab- profit , itab-loss,i tab-tdate) WHERE TDATE BETWEEN FDATE AND EDATE.
FDATE and Edate my selection screen dates name.
but i need when i select checkbox and click on ok button the data should be extract on between these date as well as one more month of EDATE.
iternal table hold only between table data of FDATE and EDATE. Whenever i select checkbox the EDATE should be icremented by 1.(Ex. If EDATE is 28.02.2009 it should be 31.03.2009)
I hope u guys r getting my point.
Regards,
SwapnikaHi,
Try the below.
if the check box is not checked
SELECTdebit credit profit loss tdate FROM Zpfaccount INTO
(itab-debit, itab-credit, itab- profit , itab-loss,i tab-tdate) WHERE TDATE BETWEEN FDATE AND EDATE.
if checkbox = 'X'.
now fill the ranges.
like
ranges : r_dates for tdate.
r_dates-sign = 'I'.
r_dates-option = 'BT'.
r_dates-low = fdate.
r_dates-high = edate.
append r_dates. clear r_dates.
now find the begin and end date from your edate for the next month of edate.
keep it in next_begin_date and next_end_date.
r_dates-sign = 'I'.
r_dates-option = 'BT'.
r_dates-low = next_begin_date.
r_dates-high = next_end_date.
append r_dates. clear r_dates.
now use this in ur select.
SELECTdebit credit profit loss tdate FROM Zpfaccount INTO
(itab-debit, itab-credit, itab- profit , itab-loss,i tab-tdate) WHERE TDATE IN r_dates
Hope this helps.
Guru.
Maybe you are looking for
-
Can`t synch IPOD classic after 1.0.2 firmware
I just boguht an Ipod 160 GB 2 days ago. Using the firmware 1.0 I could synch anbd load about 1gb of music. The itunes asked me to update the firmware to 1.0.2 and the problems started from here. After update, the itunes freezes, and ask for not disc
-
My Mac does not stay on for even 5 minutes without being plugged in. Why?
My Mac will not stay on for even 5 minutes without being plugged in. It just completely shuts itself off. It started doing it and I went in and cleaned up some stuff, but it just kept getting worse. Not I'm lucky to get 5 minutes out of it. Why?
-
Can't install game...
Hey people... I have a problem installing the retro game Diablo II on my MacBook with OSX 10.4.10!? I get the information that my system don't support the program?? What to do then? I really want to play the game, so i hope that someone got a solutio
-
Spry Accordion : How to keep the last panel ?
Hi! In the div 'AccordionPanelcontent', i have links which open the same page. The opening index is on 0. If the user is on an other panel than the first, and he click on a link, the page is refreshed nromally, but the accordion come back an opens th
-
I have a requirement to write a report which shows the least occurances of some events. I have found example of Top N type reports, but is it possible to reverse the order to get Bottom N report in lucene? For Top N we have following: GROUP BY $P{Eve