Map Qualifications in iRecruitment to per_qualifications table fields
Hi friends,
CAn ne1 suggest a way on how to map the details a applicant enters in the qualification region ( My Account or Job Apply Page - iRecruitment) to specific fields in the per_qualifications table.
Thanks
mairaj
take joiner from the pallete
and create two groups
1.warehouse_time_dim_table
2.source_sales_table
then in join condition write
warehouse_time_dim_table.day_date = source_sales_table.date
That will solve the purpose.
Cheers
Nawneet
Similar Messages
-
Looking for a value in a list stored in a database table field
Hello,
I have a field in a database table that contains a comma
separated list on numbers. In my CFQUERY I am attempting to extract
records from the database table where a parsed number is present in
the comma separated list. I have tried the code below, but it is
throwing an error.
variables.publicationID is the number that I am looking for
in the database table field.
publicationList is the name of the database table field
containing the comma separated list of numbers.
where <cfqueryparam value="#variables.publicationID#"
cfsqltype="cf_sql_integer"> in publicationList
Can anybody help?
Many thanks,
smnbinThe only way to do it with the data model you currently have
is as follows:
WHERE publicationList LIKE '#variables.publicationID#' OR
publicationList LIKE '#variables.publicationID#,%' OR
publicationList LIKE '%,#variables.publicationID#,%' OR
publicationList LIKE '%,#variables.publicationID#'
You need to check for 4 cases:
it's the only ID in the list
it's the first ID in the list
it's in the middle of the list
it's the last ID in the list.
The better solution would be to replace this comma-delimited
list with a mapping table, where each row in this mapping table
contains a reference to the main table as well as a single
publicationID. -
How to know the corresponding Table-fields in R/3 for fields in BW
Hi,
We need to enhance the extractor for 0CUSTOMER_ATTR. We have added some new attributes in 0CUSTOMER in BW and we want to know the corresponding Table-Fields in R/3 from where we can populate the values.
The list of fields in BW is as follws. All are 0CUSTOMER attributes.
I am searching on the internet. If you know any link/place where I can find the corresponding fields, please let me know.
0AF_CUSTDC
0AF_CUSTID
0CITY_2
0DB87SIC1
0DBANSALES
0DBAREACOD
0DBCTRYCOD
0DBCTYNAM
0DBCUSTAT
0DBDISTRCOD
0DBEMPBND
0DBEMPTOT
0DBGUDUNS
0DBHQDUNS
0DBBLGLSTAT
0DBLOCACOD
0DBREGCOD
0DBSALBND
0DBSECTCOD
0DBYRSBND
0DBYRSTD
0DB_MAKTCOD
0DB_MATCDS
0FAX_NUM
0ID_TXNUMB3
0ID_XCPD
0LANGU
0POBOX_LOC
0SORTL
0TAX_NUMB2
0DBTRDSTYL
0DBADDRES1
0DBADDRES2
0DBCTRYNA
0DBSTPRCOD
0DBPOSTCOD
0DBNATID
0DBNATIDCO
0DBTELPHON
0DBCEONAME
0DBLNOFBUS
0DBANSLUS
0DBCURNCCO
0DBEMPHERE
0DBSUBCODE
0DBHQNAME
0DBHQCTYNM
0DBHQSTPR
0DBHQCTRYN
0DBULDUNS
0DBULNAME
0DBULCTYNM
0DBGUCTRYN
0DBGUCTRYC
0DBGUNAME
0DBNUMFAM
0DBHIERCO
0DBFAMUPDT
0DBBUSNAME
0DB_MATCH
Thanks,
Naveen ChoudharyNaveen,
Check http://help.sap.com/search/highlightContent.jsp
Also see Re: 0customer_attr enhancement
If the source fields in R/3 are standard, you should be able to find the mapping in the help documentation. If its extension field, then you got to see which extractor (based on the base table extension) suits the best and extend it accordingly else create a new generic extractor.
Hope it helps -
New table / field in SAP MDM not being reflected in SAP EP
Hi,
I have added a lookup- flat table in MDM and added a field corresponding to this table in my main Products table.
I have maintained data in both the main table and the look up table thru Data manager
Problem:
I want to populate this field through the SAP EP. I am using std MDM iView Details template. When I check the drop down to select the table, I see only the ones which had come with the MDM std business content. The added tables/ fields are not visible on the portal to select :(.
Can you help me out Please? Are there some settings that need to be done?
Regards,
AlpanaAs a mandatory requirement after completing the deployment process, the Web Application Server should be restarted for the changes made by the deployment to take effect and appear in the Portal.
Have you restarted Web Application Server after deployment?
Also check, User Mapping for the Connected MDM System
Search for the User (Portal User) which needs to be mapped to the appropriate MDM User.
It is quite interesting that you are getting all other tables in std i-view template except newly added.
It could be also because you have already there connection of EP with MDM before that table and new field exists in MDM.
And it is showing same existing table and fields, I mean not reflected now newly added table and field. I would suggest you to create the MDM connection with EP from scratch. Just give MDM System Name and ID, MDM Server, Repository, Language, Creating an Alias for the connected MDM System, User Mapping and connection Test for the Connected MDM System.
May be it result in reflecting newly added Table and field which is not visible in EP as of now. Just give it a try.
Hope it helps...
Thanks and Regards,
Mandeep Saini -
Table fields(R/3) move to sap bw
Table fields are avaialble in R/3 side.i have to use those fields in BW SIDE.
can any one tell me How to use those felds in bw side. and which extractors will I use?
Please explain me whole way.Hi,
Table fields are avaialble in R/3 side.i have to use those fields in BW SIDE. can any one tell me How to use those felds in bw side. and which extractors will I use?
Steps:
1. Create a DataSource in ECC using RSO2 and select table and give the table.
2. Save and Activate the DataSource.
3. Then Replicate the DataSurce in BW.
4. Create mapping susing Transformations in BW i.e InfoObejct and Fields mapping.
5. Create Cube/DSO and tyhen connect it to DataSource Via InfoSource.
6. Create InfoPackage and Extarct the Data till PSA using InfoPackage
7. Create DTP and then exeucte it to load data from PSA to Cube/DSO.
Thanks
Reddy -
Save whole XML file in SQL table field
Hi All,
I want to save whole XML message in sql table field which is with datatype XML(.).. how can i achieve this.
Thanks in advance.
2Venture2I did a prototype to do what you are asking. I actually haven't inserted into the xml data type in SQL Server before, so I was curious if that added any complexity. I'll just go through the mapping pieces and assume that you can easily find documentation
on how to insert data into SQL Server using the Add Generated Items --> Consume Adapter Service function.
The interesting piece was writing the map. I used a simple PO schema. My sample table was XmlRepository with a ID column, RepositoryID, and the RawXml field.
The script is an inline XSLT script that is as follows:
<xsl:element name="ns3:RawXml">
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
<xsl:copy-of select="/" />
<xsl:text disable-output-escaping="yes">]]></xsl:text>
</xsl:element>
The questoin right off is why the CDATA? Well, since the value of the RawXml element that needs to be inserted into SQL Server is XML data, it has to be wrapped in a CDATA tag. Otherwise, the XML data gets validated and will not properly make it to the SQL
Server. You can try it and see what I mean. Don't worry, the CDATA gets stripped before the XML gets written to the table.
The interesting piece are the xsl:text elements, which manually create a CDATA wrapper for the XML that ends up in the RawXml field. Apparently, the normal Grid Property for creating CDATA output doesn't work in conjunction with the xsl:copy-of function.
That tripped me up for a while!
What the map outputs is a document that looks like the following:
<ns0:Insert xmlns:array="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns3="http://schemas.microsoft.com/Sql/2008/05/Types/Tables/dbo" xmlns:ns0="http://schemas.microsoft.com/Sql/2008/05/TableOp/dbo/XmlRepository">
<ns0:Rows>
<ns3:XmlRepository>
<ns3:RawXml>
<![CDATA[<ns0:PurchaseOrder xmlns:ns0="http://XmlRepositoryDemo.PurchaseOrder">
<PONumber>PONumber_0</PONumber>
<CustomerNumber>CustomerNumber_0</CustomerNumber>
<PODate>PODate_0</PODate>
<Items>
<Item>
<ProductID>ProductID_0</ProductID>
<Quantity>Quantity_0</Quantity>
<Price>Price_0</Price>
</Item>
</Items>
</ns0:PurchaseOrder>]]>
</ns3:RawXml>
</ns3:XmlRepository>
</ns0:Rows>
</ns0:Insert>
The map can be called from a simple Orchestration, or even a messaging-only scenario, and sent across the wire in a request/reply as you would for normally sending data to SQL Server.
I hope this helps. It ended up being more interesting than I expected! -
Hi all
Can we able to enter the data in Qualified table field while creating the record in portal thru iView??
if posssible please let me know how to do the same in portal, i mean which type of iview we need to use to achieve the same??
Regards
SunilHi Sunil,
As mentioned above you need to use Item details iView and select the desired Qualified table fields which are part of your main table. Now select the Relationship and Qualifed Display Fields radio button. Here a seperate entry will be made for each lookup Qualified field (which is part of main table) which you have selected in the item details view.
Now select a particular Qualified field radio button and select the EDIT button.
Now you will be able to select all the desired Qualifiers and Non-qualifiers from the Available Columns.
I have tried this scenerio at my end and its working fine.
Regards,
Kaushik Koli. -
DI API Object.Property = SQL.TABLE.FIELD
Hi,
I'm facing a real challenge everytime I'm trying to find the SQL table field associated with a DI API
object property. Any documentation on it ?
For now I would need to know these : in the form of OBJECT.PROPERTY = TABLE.FIELD
InventoryItem.MinInventory = ?
InventoryItem.WhsInfo.MinimalStock = ?
InventoryItem.QuantityOnStock = ?
InventoryItem.QuantityOrderedByCustomers = ?
Thank you very muchHi Marc,
You can try to search for this document in SDN : API DataBase Field Mapping D 6.7 52-3.pdf
I found it somewhere several months ago. Sorry, I dont remember where it is.
Or if you wish I can send it to your email. its about 1.6MB. in the format of Acrobat reader.
For your query :
InventoryItem.MinInventory = OITM.MinLevel
InventoryItem.WhsInfo.MinimalStock = OITW.MinStock
InventoryItem.QuantityOnStock = OITM.OnHand
InventoryItem.QuantityOrderedByCustomers = OITM.IsCommited
Regards
edy -
Unable to access the data and table fields from handheld
Hi,
I've created a Testing.sdf file on the local pc using SQL Server Management Studio, creating table, fields and insert some data. in local pc i can access the the data as normal. the problem is after i moved the file to handheld device i
cannot access the data within the table, it shown error 'Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)' . I tried to google it, but still got no solution.
Thanks,'Name Space
Imports System.Data.SqlServerCe
'String Connection
'Data Source = D:\SKUDWN3 .sdf'
Public Sub CreateDB(ByVal StrConn As String)
'Declaration
Dim cn As SqlCeConnection = Nothing
Dim cm As SqlCeCommand = Nothing
Dim SQLEngine As SqlCeEngine = Nothing
Dim rs As SqlCeResultSet = Nothing
Dim rec As SqlServerCe.SqlCeUpdatableRecord = Nothing
'Tables -
Const TB_SKUDWN3 As String = "SKUDWN3"
'Fields TB_SKUDWN3
Const FL_SKUDWN3_UPC As String = "UPC"
Const FL_SKUDWN3_SKU As String = "SKU"
Const FL_SKUDWN3_LD As String = "LD"
Const FL_SKUDWN3_SD As String = "SD"
Const FL_SKUDWN3_AN As String = "AN"
Const FL_SKUDWN3_Price As String = "Price"
Const FL_SKUDWN3_GST_FLAG As String = "GSTFLAG"
'Create Database
SQLEngine = New SqlCeEngine(StrConn)
SQLEngine.CreateDatabase()
SQLEngine.Dispose()
'Open Connection
If IsNothing(cn) Then cn = New SqlCeConnection(StrConn)
If cn.State = Data.ConnectionState.Closed Then cn.Open()
cm = cn.CreateCommand
'Create Table, Fields
cm.CommandText = "CREATE TABLE " & TB_SKUDWN3 & " (" & FL_SKUDWN3_UPC & " NVARCHAR (13)," & _
" " & FL_SKUDWN3_SKU & " NVARCHAR (9), " & FL_SKUDWN3_LD & " NVARCHAR(30)," & _
" " & FL_SKUDWN3_SD & " NVARCHAR (18), " & FL_SKUDWN3_AN & " NVARCHAR(15), " & _
" " & FL_SKUDWN3_Price & " NVARCHAR (10), " & FL_SKUDWN3_GST_FLAG & " BIT)"
cm.ExecuteNonQuery()
'Close Connection
cm = Nothing
If Not IsNothing(cn) Then
If cn.State = ConnectionState.Open Then cn.Close()
cn.Close()
cn.Dispose()
End If
End Sub
'The DB was successfully created, but after moving to Handheld the fields of table can't be accessed -
How do I write a select statement to see if table field is in variable list
I was wondering if someone knew the best way to write a query to pull back rows where a table field is found in a a variable string. I'm using Cold Fusion 10 on Microsoft SQL Server.
The table has a series of fields such as
carcode carname
G Garage
C Carport
A Attached
D Detached
And another query pulls back a field that stores as text all the abbreviations that apply
I want to pull back all the carnames that would match the abbreviations stored in that field. I thought I could use a contains line but that does not work. How do I pull back matches against a variable string... I tried an IN statment but that didn't work.
CFQUERY...
Select carname from CarTable WHERE CONTAINS (carcode, '#query.carlist#') does not work.
select carname from CarTable WHERE CONTAINS(carcode, 'G,A')
I'm stumped. The list of abbreviations could be very LOOOONG or short and I just need to translate those abbreviations into the full names by grabbing it from another table. It isn't just one abbreviation so I can't use LIKE in the one to one sense.
Thank you so much.If you have records with these values,
G,A
0
then your first mistake is that you designed your database poorly. Storing lists in a single field is essentially stroring unuseable data. A one to many relationship is better. If you don't know what that is, I've heard good things about the book, Database Design for Mere Mortals.
Next, this syntax, #queryname.car_storage#, only returns the first record. To get all the records, use the valuelist function.
Next, in sql, if you have a list of strings, each one has to be quoted. Something like this.
where myfield in ('a', 'b', 'c')
The best way to achieve this in ColdFusion is to use the cfqueryparam tag with the list attribute set to yes. -
Which table field I can confirm if the PO has done invoice receipt
Hi,
From which table field, I can confirm the PO has done invoice receipt. and in case of that with reference a PO, I have done the IR, but it was reversed, which means PO has not done invoice receipt.
For this case, I don't want to read table EKBE to retrieve the invoice number, the read table RBKP to judge if there is a reverse IR for it.
If there any status table field which indicate if the PO has done invoice receipt.
Many thanks,
AriesHi Raj,
For invoice receipt and credit memo, EKBE-BEWTP is all set with 'Q', so if there is reversed invoice. Also you can retrieve data from EKBE. But actually the PO also needs a invoice receipt. So it can not meets the requirement.
Regards,
Aries -
How to Track the changes made to the custom table field value
I want to track the changes made to the custom table field value in table maintenance generator.please help me it is very urgent
Thanks & Regards,
KrantiHi Satya,
These are the steps you've to do.
1. Enable the change document flag in the data element level for the fields of the tables you want to monitor.
2. Go to transaction SCDO. Create a new change object, and add your table to this object. After generation, you'll get a function module.
3. Call this function module in the table maintainence generator screen, after the data is saved to the database table. This function module automaticallly writes the changes, with the old and new values, and the fields that were changed to the tables CDHDR and CDPOS.
4. You can keep track of the changes made to the table by monitoring these tables.
Regards
Anil Madhavan -
F110 - Grouping the vendor invoices by BSEG table fields
Hi,
I want to group the vendor invoices while making the payment through F110, based on a BSEG table field. The settings in Grouping Key configuration (OBAP) only allows me to choose the fileds from BSIK table and not possible to select the fields from BSEG table. Is there any other way to group the vendor invoices based on BSEG fileds? How can we achieve this requirement in SAP?
Thanks and Regards
Koteswararao padartiHi,
I created the substitution and also grouping key based on the BSIK-KIDNO filed. But the system is not able to group the vendor invoices by payment reference. I already tried the following options
Seperate Payments for each Ref in FBZP settings
Can anyone let me know what is missing in the configuration to group the invoices for payment by payment reference.
Regards
Koteswararao Padarti -
How to show all table fields in correct alv disply
Hi all,
This is my report that disply in ALV . but this is only displying the join table (t_p0001_p0002) fields.i want to disply the other two table fields i.e t_pa0315 and t_pa0007.what is the logic to ALV disply the other two table fields like the table t_pa0001_pa0002.pls help me regarding this.
send me the code its urgent.
thanks!
Vipin
pls find the code below:->
REPORT Y_WP03 .
DEFINE m_fieldcat.
add 1 to ls_fieldcat-col_pos.
ls_fieldcat-fieldname = &1.
ls_fieldcat-ref_tabname = &2.
append ls_fieldcat to lt_fieldcat.
END-OF-DEFINITION.
TYPE-POOLS: slis. " ALV Global types
tables:pa0001,
pa0315,
pa0007,
disvariant.
Selection-Screen
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
*SELECTION-SCREEN SKIP 1.
SELECT-OPTIONS: s_pernr FOR pa0001-pernr. " Personnel No
SELECT-OPTIONS: s_orgeh FOR pa0001-orgeh . " Organization unit
SELECT-OPTIONS: s_werks FOR pa0001-werks. " Personnel Area
SELECT-OPTIONS: s_plans FOR pa0001-plans. " Position
SELECT-OPTIONS: s_ebeln FOR pa0315-ebeln. " Purchase order
SELECTION-SCREEN END OF BLOCK blk1.
SELECTION-SCREEN BEGIN OF BLOCK b2k2 WITH FRAME TITLE text-002.
*SELECT-OPTIONS: s_var FOR disvariant-variant.
PARAMETERS: p_disva1 LIKE disvariant-variant.
SELECTION-SCREEN END OF BLOCK b2k2.
Type Definition *
TYPES :
BEGIN OF ty_pa0001_pa0002,
pernr TYPE pa0001-pernr , " Personnel no.
endda TYPE pa0001-endda , " end date
begda TYPE pa0001-begda , " start date
bukrs TYPE pa0001-bukrs , " company code
werks TYPE pa0001-werks , " Personnnel area
persg TYPE pa0001-persg , " Employee group
persk TYPE pa0001-persk , " Employee subgroup
btrtl TYPE pa0001-btrtl , " Personnnel subarea
abkrs TYPE pa0001-abkrs , " Payroll area
kostl TYPE pa0001-kostl , " cost center
orgeh TYPE pa0001-orgeh , " Organizational Unit
plans TYPE pa0001-plans , " Position
nachn TYPE pa0002-nachn , " Last name
vorna TYPE pa0002-vorna , " First name
midnm TYPE pa0002-midnm , " Middle name
END OF ty_pa0001_pa0002 ,
BEGIN OF ty_pa0315,
pernr TYPE pa0315-pernr , " Personnel no.
kostl TYPE pa0315-kostl , " Sending cost center
lstar TYPE pa0315-lstar , " Activity type
werks TYPE pa0315-werks , " Plant
lifnr TYPE pa0315-lifnr , " Vendor number
ebeln TYPE pa0315-ebeln , " Sending pruchase ord
ebelp TYPE pa0315-ebelp , " Sending PO item
lstnr TYPE pa0315-lstnr , " Activity number
END OF ty_pa0315,
BEGIN OF ty_pa0007,
pernr TYPE pa0007-pernr,
schkz TYPE pa0007-schkz,
END OF ty_pa0007.
*BEGIN OF ty_pa0002,
pernr TYPE pa0002-pernr,
nachn TYPE pa0002-nachn,
vorna TYPE pa0002-vorna,
midnm TYPE pa0002-midnm,
*END OF ty_pa0002.
Data Declaration *
DATA :
t_pa0001_pa0002 TYPE STANDARD TABLE OF ty_pa0001_pa0002 ,
w_pa0001_pa0002 TYPE ty_pa0001_pa0002 ,
t_pa0315 TYPE STANDARD TABLE OF ty_pa0315 ,
w_pa0315 TYPE ty_pa0315 ,
t_pa0007 TYPE STANDARD TABLE OF ty_pa0007 ,
w_pa0007 TYPE ty_pa0007 .
t_pa0002 TYPE STANDARD TABLE OF ty_pa0002 ,
w_pa0002 TYPE ty_pa0002 .
START-OF-SELECTION .
SELECT a~pernr
a~endda
a~begda
a~bukrs
a~werks
a~persg
a~persk
a~btrtl
a~abkrs
a~kostl
a~orgeh
a~plans
b~nachn
b~vorna
b~midnm
INTO TABLE t_pa0001_pa0002
FROM pa0001 AS a INNER JOIN pa0002 AS b
ON apernr = bpernr
WHERE a~pernr IN s_pernr
AND a~werks IN s_werks
AND a~orgeh IN s_orgeh
AND a~plans IN s_plans.
SORT t_pa0001_pa0002 BY pernr .
IF NOT t_pa0001_pa0002[] IS INITIAL .
SELECT pernr
kostl
lstar
werks
lifnr
ebeln
ebelp
lstnr
FROM pa0315
INTO TABLE t_pa0315
FOR ALL ENTRIES IN t_pa0001_pa0002
WHERE pernr = t_pa0001_pa0002-pernr
AND kostl = t_pa0001_pa0002-kostl
AND ebeln IN s_ebeln.
SELECT pernr
schkz
FROM pa0007
INTO TABLE t_pa0007
FOR ALL ENTRIES IN t_pa0001_pa0002
WHERE pernr = t_pa0001_pa0002-pernr.
SELECT pernr
nachn
vorna
midnm
FROM pa0002
INTO TABLE t_pa0002
FOR ALL ENTRIES IN t_pa0001
WHERE pernr = t_pa0001-pernr .
ENDIF.
PERFORM f_display_data.
FORM f_display_data.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv.
Build the field catalog
m_fieldcat 'PERNR' 'PA0001'.
m_fieldcat 'NACHN' 'PA0002'.
m_fieldcat 'VORNA' 'PA0002'.
m_fieldcat 'MIDNM' 'PA0002'.
m_fieldcat 'BUKRS' 'PA0001'.
m_fieldcat 'WERKS' 'PA0001'.
m_fieldcat 'PERSG' 'PA0001'.
m_fieldcat 'PERSK' 'PA0001'.
m_fieldcat 'BTRTL' 'PA0001'.
m_fieldcat 'ABKRS' 'PA0001'.
m_fieldcat 'ORGEH' 'PA0001'.
m_fieldcat 'PLANS' 'PA0001'.
m_fieldcat 'SCHKZ' 'PA0007'.
m_fieldcat 'KOSTL' 'PA0315'.
m_fieldcat 'LSTAR' 'PA0315'.
m_fieldcat 'WERKS' 'PA0315'.
m_fieldcat 'LIFNR' 'PA0315'.
m_fieldcat 'EBELN' 'PA0315'.
m_fieldcat 'EBELP' 'PA0315'.
m_fieldcat 'LSTNR' 'PA0315'.
m_fieldcat 'BEGDA' 'PA0001'.
m_fieldcat 'ENDDA' 'PA0001'.
Display the list
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = lt_fieldcat
TABLES
t_outtab = t_pa0001_pa0002.
ENDFORM. " F_DISPLAY_DATA_VBAK
FORM USER_COMMAND *
FORM user_command USING u_ucomm TYPE syucomm
us_selfield TYPE slis_selfield. "#EC CALLED
CASE u_ucomm.
WHEN '&IC1'.
READ TABLE t_pa0001_pa0002 INDEX us_selfield-tabindex INTO
w_pa0001_pa0002.
CHECK sy-subrc EQ 0.
ENDCASE.
ENDFORM. " USER_COMMANDHey,
Look at ur code.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = lt_fieldcat
TABLES
t_outtab = <b>t_pa0001_pa0002</b>.
Here you're passing only the join table t_pa0001_pa0002. If you want to display the other tables as well, then u must have an internal table that has the columns of all the 3 tables. Then u need to buil;d the fieldcatalog accordingly and then display that table,
Cheers,
Sam -
Passing a table-field value in Crystal to a Store Procedure in SQL Server
I have been checking all over the interenet via searches and although some seem to come close to this, its still not what I want.
Essentially I need to pass value from Table-Field record (for each record read/selected) via a paramete to a Stored Procedure(SP) in SQL Server 2205/2008. I do NOT want to be prompted for a value for this parameter each time the report is run, simple pass the value in which will be used along with other select criteria to bring back one value for the report to use in a calcuation per record.
The value of the parameter is a date, but I understand it would be better to pass it in as a varchar(8) - 'YYYYMMDD' - and then reconvert it inside the SP, as follows:
In Crystal Reports 2008 SP3, I have a formula defined as,
trans_date = ToText ({F1ARS_STMT_WS_TRAN.TRANS_DATEI}, 'YYYYMMDD')
and essential just want to pass this to the SP below ... i.e. trans_date ---> @strTransDate
I then link the key fields [EXCH_RATE_TABLE_NAME] and [TRANS_CCY_CODE] to other tables in the Database Expert, and put [EXCH_RATE_AMT] on the report and use it to calculate what I want.
This works fine when the prompt comes up and I put in a proper date, but I don't what it to prompt, but simple pass the F1ARS_STMT_WS_TRAN.TRANS_DATEI in via the fornula/parameter and let teh SQL do the rest for each record selected..
CREATE PROCEDURE [dbo].sp_GET_EXCH_RATE_AMT (@strTransDate varchar(8)) --use format 'YYYYMMDD' to represent the date as a string.
-- Add the parameters for the stored procedure here
-- @TransDate datetime = now
AS
declare @TransDate datetime
set @TransDate = CONVERT(DATETIME, @strTransDate, 112)
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
SELECT [EXCH_RATE_TABLE_NAME], [TRANS_CCY_CODE], [EXCH_RATE_AMT]
FROM [F1CCY_EXCH_RATE]
WHERE [MAJOR_CCY_CODE] = 'BBD'
AND [START_DATEI] =
SELECT MAX([START_DATEI])
FROM [F1CCY_EXCH_RATE]
WHERE [MAJOR_CCY_CODE] = 'BBD'
AND [START_DATEI] <= @TransDate
END
GO
GRANT EXECUTE ON sp_GET_EXCH_RATE_AMT TO PUBLIC
GO
Thanks for any help. Can't tell the headache this has caused my both literally and figuratively.Hello,
I moved your post to the Report Design forum. Lots of SQL help in here...
I believe the problem is due to you using a Parameterized Stored Procedure. The first thing CR has to do is connect to your DB source which requires the date parameter before it can run the query to add the date filter, it's the SP that is prompting for the parameter. Therefore the report has not run so it can't get the field value from the report until you fill in the info for the SP. Catch 22 problem.... Which came first, the Chicken or the Parameter....
The report will work as you have noted but I don't know of anyway to refresh unless parameter is filled in again....
Jason has a lot of great solutions when it comes to these dilemmas, Possibly using a Command Object may help but I believe you will still run into the same issue....
Only way I can think of is to not use a parameter in the SP and let CR do the filtering client side. Of course this means all data is coming back to the client PC as you are likely trying to find a work around for.
Thank you
Don
Maybe you are looking for
-
Apple dvd player / external dvd drive issue
i recently bought a LaCie d2 external dvd drive, since my desktop g4 only has an internal cdr drive. I am running osx 10.4.3, which i installed through this dvd drive. yet now, when i put a DVD movie into the drive and try to open Apple DVD Player, i
-
Hi SAP Gurus, Please help with the following issues: In Bill Back agreement, does the actual payments, Accruals Reversed and Accruals should be equal with each other? If yes, How? If not, what are the instances that makes them not equal with each oth
-
Dear Sir/Madam, Currently, i am working on a cross company STO and Third Party process. This involves in the following: 1. Company (CN001) needs to purchase some materials from Company (SIN001). Note: Both Company (SIN001) and Company (CN001) under
-
Spotify profile gives an error
when i try to see my spotify profile, my ios app gives me "there is an error, try again later". i aiways have a problem about my profile. for example when i go to my following page there are accounts but it looks like i dont follow them. there is a
-
Search for recordsgreater than 45 days and between user input fields
Hi, How can I query where the Status id '3' greater than 45 days from the setup_date. (which is the sysdate) select ppcontract from proj_track where status_id = '3' and SETUP_DATE >= ADD_months (sysdate, +1.5) Also, How can I put a search criteria to