Table maintanence - display more fields
Hi everybody,
I had a TABLE MAINTENANCE GENERATION transaction for my ztable
Now my problem is
I want to display 5 more fields which are already in my ztable in my transaction(table maintenance generated)
these fields must be editable I meant when I change them it must be edited in my ztable also...
can anyone help me with how to do
Thanks in advance.
Hello Hema,
First delete the created Tab. Main and recreate the Tab main.
Then go the screen using SE80 and open through the Fun group.
And change the attribute of the fields to output only. and make other fields of input.
If useful reward,
Vasanth
Similar Messages
-
At run time,ALV table is displaying all fields of database table
Hi all
I done one application using ALv I am displaying the ALV Table.my problem is at run time it was fetching and displaying all the fields in the data base table but i need only the fields which are defined in node.
Please help me.
Thanks and Regards
Tulasi PalnatiHi,
May be you have specified the database table as the Dicitonary structure property of the node.
Check the same and if its there clear the Dictionary structure property of the node.
Hope this solves your isse!
Regards,
Srilatha -
CONVERSION OF 1 TABLE TO ACCOMODATE MORE FIELDS USING TEMP VARIABLE IN STORE PROC
USE [FacetsXR]
GO
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[frdmrpt].[pr_pha_BiometricsSummary]') AND type in (N'P', N'PC'))
DROP PROCEDURE [frdmrpt].[pr_pha_BiometricsSummary]
GO
CREATE PROCEDURE [frdmrpt].[pr_pha_BiometricsSummary]
AS
BEGIN
DECLARE @partcTot int
select @partcTot = [frdmrpt].[fn_pha_total_participants](default);
DECLARE @TEMPTAB TABLE
SortOrder varchar(10),
BIMEASURE VARCHAR(30) NULL,
RC VARCHAR(100) NULL,
N VARCHAR(5) NULL,
PSP VARCHAR(10) NULL,
AVL VARCHAR(10) NULL
-- HEADER ROW
--INSERT @TEMPTAB VALUES('00','Biometric Measure','Risk Citeria','N','Percent Of Screened Population','Average Value')
--BMI
declare @BMI int
select @BMI = count(*)
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
WHERE hra.BMI is not null and hra.BMI != 0.0
declare @BMIavg float
select @BMIavg = cast(isnull(AVG(BMI),0.0) as decimal (5,1))
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
WHERE hra.BMI is not null
INSERT @TEMPTAB VALUES('100','BMI','.',@BMI,'.',@BMIavg)
INSERT @TEMPTAB
SELECT SortOrder,RiskCriteria, BS.Risk_Criteria,COUNT(*) Total,CAST((CAST(([frdmrpt].[fn_pha_percent](COUNT(*), @BMI)) AS VARCHAR(100))) AS VARCHAR(100))+'%'
FROM
SELECT
CASE
WHEN (BMI > 0 AND BMI <= 17.4) THEN '101'
WHEN BMI BETWEEN 17.5 AND 18.4 THEN '102'
WHEN BMI BETWEEN 18.5 AND 24.9 THEN '103'
WHEN BMI BETWEEN 25.0 AND 29.9 THEN '104'
WHEN BMI >=30.0 THEN '105'
END AS SortOrder,
CASE
WHEN (BMI > 0 AND BMI <= 17.4) THEN 'Very Underweight'
WHEN BMI BETWEEN 17.5 AND 18.4 THEN 'Underweight'
WHEN BMI BETWEEN 18.5 AND 24.9 THEN 'Normal'
WHEN BMI BETWEEN 25.0 AND 29.9 THEN 'Overweight'
WHEN BMI >=30.0 THEN 'Obese'
END AS RiskCriteria
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
) bioSumBI
INNER JOIN [frdmrpt].[pw_Biometric_Summary] BS
ON bioSumBI.RiskCriteria = BS.Bimetric_Measure
AND BS.Bimetric_Category ='BMI'
WHERE bioSumBI.RiskCriteria is not null
GROUP BY bioSumBI.SortOrder ,bioSumBI.RiskCriteria,BS.Risk_Criteria,BS.Risk_Higher_Limit
ORDER BY BS.Risk_Higher_Limit
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='101') = 0
INSERT @TEMPTAB VALUES('101','Very Underweight','17.4 and below','0','0%','.')
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='102') = 0
INSERT @TEMPTAB VALUES('102','Underweight','17.5 to 18.4','0','0%','.')
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='103') = 0
INSERT @TEMPTAB VALUES('103','Normal','18.5 to 24.9','0','0%','.')
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='104') = 0
INSERT @TEMPTAB VALUES('104','Overweight','25 to 29.9','0','0%','.')
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='105') = 0
INSERT @TEMPTAB VALUES('105','Obese','30.0 and above','0','0%','.')
--BP
declare @BP INT
select @BP = count(*)
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
WHERE hra.Systolic IS NOT NULL AND hra.Diastolic IS NOT NULL
declare @BPAVG VARCHAR(15)
select @BPAVG = isnull(CONVERT(VARCHAR(15),AVG(Systolic)) + '/' + CONVERT(VARCHAR(5),AVG(Diastolic)),0)
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
WHERE hra.Systolic IS NOT NULL AND hra.Diastolic IS NOT NULL
INSERT @TEMPTAB VALUES('200','Blood Pressure (mmHg)','.',@BP,'.',@BPAVG)
INSERT @TEMPTAB
SELECT SortOrder ,RiskCriteria, BS.Risk_Criteria,COUNT(*) Total,
CAST(([frdmrpt].[fn_pha_percent](COUNT(*), @BP)) AS VARCHAR(100))+'%','.'
FROM
SELECT
CASE
WHEN (Systolic <=119 and Diastolic <=79) THEN 201
WHEN not (Systolic >= 140 OR Diastolic >=90) and not (Systolic <=119 and Diastolic <=79) THEN 202 -- basically not high and not low
WHEN (Systolic >= 140 OR Diastolic >=90) THEN 203
--WHEN hra.Systolic <=119 OR hra.Diastolic <=79 THEN '201'
--WHEN (hra.Systolic between 120 AND 139) OR (hra.Diastolic between 80 AND 89) THEN '202'
--WHEN (hra.Systolic between 140 AND 159) OR (hra.Diastolic between 90 AND 99) THEN '203'
--WHEN hra.Systolic >= 160 OR hra.Diastolic >= 100 THEN '204'
END AS SortOrder,
CASE
WHEN (Systolic <=119 and Diastolic <=79) THEN 'Low Risk'
WHEN not (Systolic >= 140 OR Diastolic >=90) and not (Systolic <=119 and Diastolic <=79) THEN 'Moderate Risk'
WHEN (Systolic >= 140 OR Diastolic >=90) THEN 'High Risk'
--WHEN hra.Systolic <=119 OR hra.Diastolic <=79 THEN 'Low Risk'
--WHEN (hra.Systolic between 120 AND 139) OR (hra.Diastolic between 80 AND 89) THEN 'Prehypertension'
--WHEN (hra.Systolic between 140 AND 159) OR (hra.Diastolic between 90 AND 99) THEN 'Stage I hypertension'
--WHEN hra.Systolic >= 160 OR hra.Diastolic >= 100 THEN 'Stage II hypertension'
END AS RiskCriteria
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
) bioSumBP
INNER JOIN [frdmrpt].[pw_Biometric_Summary] BS
ON bioSumBP.RiskCriteria = BS.Bimetric_Measure
AND BS.Bimetric_Category ='Blood Pressure (mmHg)'
WHERE bioSumBP.RiskCriteria is not null
GROUP BY bioSumBP.SortOrder ,bioSumBP.RiskCriteria,BS.Risk_Criteria,BS.Risk_Higher_Limit
--ORDER BY BS.Risk_Higher_Limit desc
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='201') = 0
INSERT @TEMPTAB VALUES('201','Low Risk','Systolic: 119 and below Diastolic: 79 and below','0','0%','.')
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='202') = 0
INSERT @TEMPTAB VALUES('202','Moderate Risk','Systolic: 120 to 139 Diastolic: 80 to 89','0','0%','.')
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='203') = 0
INSERT @TEMPTAB VALUES('203','High Risk','Systolic: 140 and above Diastolic: 90 and above','0','0%','.')
--Cholestrol
declare @TC int
select @TC = count(*)
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
WHERE hra.TotalCholesterol IS NOT NULL
declare @TCAVG FLOAT
select @TCAVG = isnull(ROUND(AVG(TotalCholesterol),0),0)
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
WHERE hra.TotalCholesterol IS NOT NULL
INSERT @TEMPTAB VALUES('300','Total Cholesterol (mg/dL)','.',@TC,'.',@TCAVG)
INSERT @TEMPTAB
SELECT SortOrder ,RiskCriteria, BS.Risk_Criteria,COUNT(*) Total,
CAST(([frdmrpt].[fn_pha_percent](COUNT(*), @TC)) AS VARCHAR(100))+'%','.'
FROM
SELECT
CASE
WHEN hra.TotalCholesterol <= 199 THEN '301'
WHEN hra.TotalCholesterol between 200 and 239 THEN '302'
WHEN hra.TotalCholesterol >=240 THEN '303'
END AS SortOrder,
CASE
WHEN hra.TotalCholesterol <= 199 THEN 'Low Risk'
WHEN hra.TotalCholesterol between 200 and 239 THEN 'Moderate Risk'
WHEN hra.TotalCholesterol >=240 THEN 'High Risk'
END AS RiskCriteria
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
) bioSumHDL
INNER JOIN [frdmrpt].[pw_Biometric_Summary] BS
ON bioSumHDL.RiskCriteria = BS.Bimetric_Measure
AND BS.Bimetric_Category ='Total Cholesterol (mg/dL)'
WHERE bioSumHDL.RiskCriteria is not null
GROUP BY bioSumHDL.SortOrder ,bioSumHDL.RiskCriteria,BS.Risk_Criteria,BS.Risk_Higher_Limit
ORDER BY BS.Risk_Higher_Limit
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='301') = 0
INSERT @TEMPTAB VALUES('301','Low Risk','199 and below','0','0%','.')
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='302') = 0
INSERT @TEMPTAB VALUES('302','Moderate Risk','200 to 239','0','0%','.')
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='303') = 0
INSERT @TEMPTAB VALUES('303','High Risk','240 and above','0','0%','.')
--HDL
declare @HDL int
select @HDL = count(*)
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
WHERE HDL IS NOT NULL
declare @HDLAVG FLOAT
select @HDLAVG = isnull(ROUND(AVG(HDL),0),0)
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
WHERE HDL IS NOT NULL
INSERT @TEMPTAB VALUES('400','HDL (mg/dL)','.',@HDL,'.',@HDLAVG)
INSERT @TEMPTAB
SELECT SortOrder ,RiskCriteria, BS.Risk_Criteria,COUNT(*) Total,
CAST(([frdmrpt].[fn_pha_percent](COUNT(*), @HDL)) AS VARCHAR(100))+'%','.'
FROM
SELECT
CASE
WHEN hra.HDL >= 60 THEN '401'--'Desirable'
WHEN hra.HDL between 40 and 59 THEN '402' --'Borderline Risk'
WHEN hra.HDL <=39 THEN '403' --'Undesirable Risk'
END AS SortOrder,
CASE
WHEN hra.HDL >= 60 THEN 'Low Risk'--'Desirable'
WHEN hra.HDL between 40 and 59 THEN 'Moderate Risk' --'Borderline Risk'
WHEN hra.HDL <=39 THEN 'High Risk' --'Undesirable Risk'
END AS RiskCriteria
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
) bioSumHDL
INNER JOIN [frdmrpt].[pw_Biometric_Summary] BS
ON bioSumHDL.RiskCriteria = BS.Bimetric_Measure
AND BS.Bimetric_Category ='HDL (mg/dL)'
WHERE bioSumHDL.RiskCriteria is not null
GROUP BY bioSumHDL.SortOrder ,bioSumHDL.RiskCriteria,BS.Risk_Criteria,BS.Risk_Higher_Limit
ORDER BY BS.Risk_Higher_Limit desc
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='401') = 0
INSERT @TEMPTAB VALUES('401','Low Risk','60 and above','0','0%','.')
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='402') = 0
INSERT @TEMPTAB VALUES('402','Moderate Risk','40 to 59','0','0%','.')
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='403') = 0
INSERT @TEMPTAB VALUES('403','High Risk','39 and below','0','0%','.')
--LDL
declare @LDL DECIMAL
select @LDL = count(*)
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
WHERE hra.LDL IS NOT NULL
declare @LDLAVG FLOAT
select @LDLAVG = isnull(ROUND(AVG(LDL),0),0)
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
WHERE hra.LDL IS NOT NULL
INSERT @TEMPTAB VALUES('500','LDL (mg/dL)','.',@LDL,'.',@LDLAVG)
INSERT @TEMPTAB
SELECT SortOrder ,RiskCriteria, BS.Risk_Criteria,COUNT(*) Total,
CAST(([frdmrpt].[fn_pha_percent](COUNT(*), @LDL)) AS VARCHAR(100))+'%','.'
FROM
SELECT
CASE
WHEN hra.LDL <= 129 THEN '501'
WHEN hra.LDL between 130 and 159 THEN '502' --'Borderline Risk'
WHEN hra.LDL >=160 THEN '503' --'Undesirable Risk'
END AS SortOrder,
CASE
WHEN hra.LDL <= 129 THEN 'Low Risk'--'Desirable'
WHEN hra.LDL between 130 and 159 THEN 'Moderate Risk' --'Borderline Risk'
WHEN hra.LDL >=160 THEN 'High Risk' --'Undesirable Risk'
END AS RiskCriteria
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
) bioSumHDL
INNER JOIN [frdmrpt].[pw_Biometric_Summary] BS
ON bioSumHDL.RiskCriteria = BS.Bimetric_Measure
AND BS.Bimetric_Category ='LDL (mg/dL)'
WHERE bioSumHDL.RiskCriteria is not null
GROUP BY bioSumHDL.SortOrder ,bioSumHDL.RiskCriteria,BS.Risk_Criteria,BS.Risk_Higher_Limit
ORDER BY BS.Risk_Higher_Limit
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='501') = 0
INSERT @TEMPTAB VALUES('501','Low Risk','129 and below','0','0%','.')
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='502') = 0
INSERT @TEMPTAB VALUES('502','Moderate Risk','130 to 159','0','0%','.')
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='503') = 0
INSERT @TEMPTAB VALUES('503','High Risk','160 and above','0','0%','.')
--Blood Glucose (mg/dL)
declare @BG int
select @BG = count(*)
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
WHERE hra.BloodGlucose IS NOT NULL
declare @BGAVG FLOAT
select @BGAVG = ROUND(AVG(BloodGlucose),0)
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
WHERE hra.BloodGlucose IS NOT NULL
INSERT @TEMPTAB VALUES('600','Blood Glucose (mg/dL)','.',@BG,'.','NA' )--@BGAVG)
INSERT @TEMPTAB
PRESENT CODE FOR ATTACHED TABLE SELECT SortOrder ,RiskCriteria, BS.Risk_Criteria, Total,
CAST(([frdmrpt].[fn_pha_percent](Total, @BG)) AS VARCHAR(100))+'%','.'
FROM
SELECT
CASE
WHEN (r.RiskLevel='LOW') THEN '601'
WHEN (r.RiskLevel='MODERATE') THEN '602'
WHEN (r.RiskLevel='HIGH') THEN '603'
END AS SortOrder,
CASE
WHEN (r.RiskLevel='LOW') THEN 'Low Risk'
WHEN (r.RiskLevel='MODERATE') THEN 'Moderate Risk'
WHEN (r.RiskLevel='HIGH') THEN 'High Risk'
END AS RiskCriteria,
CASE
WHEN (r.RiskLevel='LOW') THEN cast(COUNT(*)AS VARCHAR(100))
WHEN (r.RiskLevel='MODERATE') THEN cast(COUNT(*)AS VARCHAR(100))
WHEN (r.RiskLevel='HIGH') THEN cast(COUNT(*)AS VARCHAR(100))
END AS Total
From [frdmrpt].[wt_rpt_pha_pw_UserHealthRisks] r
join [frdmrpt].[wt_rpt_pha_pw_Member] m on m.UserID = r.UserID
join [frdmrpt].[wt_rpt_pha_pw_HRADetail2] d on d.UserID = m.UserID
where r.RiskStringID = 'BLOODGLUCOSE'
group by GROUPING sets ( r.RiskLevel, () )
) bioSumHDL
INNER JOIN [frdmrpt].[pw_Biometric_Summary] BS
ON bioSumHDL.RiskCriteria = BS.Bimetric_Measure
AND BS.Bimetric_Category ='Blood Glucose (mg/dL)'
WHERE bioSumHDL.RiskCriteria is not null
GROUP BY bioSumHDL.SortOrder ,bioSumHDL.Total,bioSumHDL.RiskCriteria,BS.Risk_Criteria,BS.Risk_Higher_Limit
ORDER BY BS.Risk_Higher_Limit
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='601') = 0
INSERT @TEMPTAB VALUES('601','Low Risk','Fasting: 70 to 99 Random: 80 to 139','0','0%','.')
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='602') = 0
INSERT @TEMPTAB VALUES('602','Moderate Risk','Fasting: 100 to 125 Random: 140 to 199','0','0%','.')
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='603') = 0
INSERT @TEMPTAB VALUES('603','High Risk','Fasting: 126 and above Random: 200 and above','0','0%','.')
--Triglycerides (mg/dL)
declare @TRG int
select @TRG = count(*)
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
WHERE hra.Triglycerides IS NOT NULL
declare @TRGAVG FLOAT
select @TRGAVG = isnull(ROUND(AVG(Triglycerides),0),0)
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
WHERE hra.Triglycerides IS NOT NULL
INSERT @TEMPTAB VALUES('700','Triglycerides (mg/dL)','.',@TRG,'.',@TRGAVG)
INSERT @TEMPTAB
SELECT SortOrder ,RiskCriteria, BS.Risk_Criteria,COUNT(*) Total,
CAST(([frdmrpt].[fn_pha_percent](COUNT(*), @TRG)) AS VARCHAR(100))+'%','.'
FROM
SELECT
CASE
WHEN hra.Triglycerides <=149 THEN '701'
WHEN hra.Triglycerides between 150 and 199 THEN '702'
WHEN hra.Triglycerides >= 200 THEN '703'
END AS SortOrder,
CASE
WHEN hra.Triglycerides <=149 THEN 'Low Risk'
WHEN hra.Triglycerides between 150 and 199 THEN 'Moderate Risk'
WHEN hra.Triglycerides >= 200 THEN 'High Risk'
END AS RiskCriteria
FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
ON hra.UserID = mems.UserID
) bioSumHDL
INNER JOIN [frdmrpt].[pw_Biometric_Summary] BS
ON bioSumHDL.RiskCriteria = BS.Bimetric_Measure
AND BS.Bimetric_Category ='Triglycerides (mg/dL)'
WHERE bioSumHDL.RiskCriteria is not null
GROUP BY bioSumHDL.SortOrder ,bioSumHDL.RiskCriteria,BS.Risk_Criteria,BS.Risk_Higher_Limit
ORDER BY BS.Risk_Higher_Limit
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='701') = 0
INSERT @TEMPTAB VALUES('701','Low Risk','149 and below','0','0%','.')
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='702') = 0
INSERT @TEMPTAB VALUES('702','Moderate Risk','150 to 199','0','0%','.')
IF (Select COUNT(*) from @TEMPTAB where SortOrder ='703') = 0
INSERT @TEMPTAB VALUES('703','High Risk','200 and above','0','0%','.')
SELECT BIMEASURE,RC ,N ,PSP ,AVL FROM @TEMPTAB order by SortOrder
END
GO
GRANT EXECUTE ON [frdmrpt].[pr_pha_BiometricsSummary] to FRDM_END_USER_ROLE
GOwork done so far(I will aprreciate your input and suggestions to complete this.Thanks
CREATE PROCEDURE [frdmrpt].[pr_pha_T1T2_BiometricsSummaryTest]
AS
BEGIN
DECLARE @partcTot int
select @partcTot = [frdmrpt].[fn_pha_total_participants](default);
DECLARE @TEMPTAB TABLE
SortOrder varchar(10),
BIMEASURE VARCHAR(30) NULL,
RC VARCHAR(100) NULL,
N_T1 VARCHAR(5) NULL,
PSP_T1 VARCHAR(10) NULL,
AVL_T1 VARCHAR(10) NULL,
N_T2 VARCHAR(5) NULL,
PSP_T2 VARCHAR(10) NULL,
AVL_T2 VARCHAR(10) NULL
-- HEADER ROW
--INSERT @TEMPTAB VALUES('00','Biometric Measure','Risk Citeria','N','Percent Of Screened Population','Average Value')
--BMI
--declare @BMI int
--select @BMI = count(*)
---FROM [frdmrpt].[wt_rpt_pha_pw_HRADetail2] hra
---INNER JOIN [frdmrpt].[wt_rpt_pha_pw_Member] mems
---ON hra.UserID = mems.UserID
--WHERE hra.BMI is not null and hra.BMI != 0.0
declare @BMI_T1 int
select @BMI_T1 = count(*)
FROM [frdmrpt].wt_pha_T1T2_HRADetail2 hra
INNER JOIN [frdmrpt].wt_pha_T1T2_Member mems
ON hra.UserID = mems.UserID and hra.T1T2=mems.T1T2
WHERE hra.BMI is not null and hra.BMI <> 0.0 and mems.T1T2 = 'T1'
--SELECT @BMI_T1
declare @BMI_T2 int
select @BMI_T2 = count(*)
FROM [frdmrpt].wt_pha_T1T2_HRADetail2 hra
INNER JOIN [frdmrpt].wt_pha_T1T2_Member mems
ON hra.UserID = mems.UserID and hra.T1T2=mems.T1T2
WHERE hra.BMI is not null and hra.BMI <> 0.0 and mems.T1T2 = 'T2'
---SELECT @BMI_T2
declare @BMIavg_T1 float
select @BMIavg_T1 = cast(isnull(AVG(BMI),0.0) as decimal (5,1))
FROM [frdmrpt].wt_pha_T1T2_HRADetail2 hra
INNER JOIN [frdmrpt].wt_pha_T1T2_Member mems
ON hra.UserID = mems.UserID
WHERE hra.BMI is not null --and hra.BMI <> 0.0
and mems.T1T2 = 'T1'
--SELECT @BMIavg_T1 -
Can OmniPortlet display more than 5 fields?
My OmniPortlet can only display 5 fields. Do I need to develop my own portlet if I want to display more fields?The ias10g I am using was downloaded from oracle.com. Is it because of the version of ias?
Yeah Omni Portlet Can display more than 5 Fields. Edit OmniPortlet's Provider.xml and add the following information. For adding the following information, search for "DataFieldDefinition" in provider.xml. Add the following statements as last one in DataFieldDefinitions. This statment will add the 6th field to OmniPortlet. if you want one more then add the same again, but do change the Field name to Field7.
Thanks,
Seshan K.
<dataField class="oracle.webdb.reformlet.definition.DataFieldDefinition">
<name>Field6</name>
<displayName>Column6</displayName>
<description>Field6</description>
<text>##column##</text>
<alignment>left</alignment>
<displayAs>hidden</displayAs>
<type>linebreak</type>
<font>Arial.3.Plain.None</font>
<color>#000000</color>
<style>none</style>
<styleType>custom</styleType>
</dataField> -
Dynamic display of fields of table in ALV report.
To display the records of a table in ALV report dynamically such that first 10 fields of the table should only be displayed excluding 'mandt' field .
That is field no 2nd to 11th should be displayed.parameters: p_vari type slis_vari.
at selection-screen on value-request for p_vari.
perform alv_variant_f4 changing p_vari.
form alv_variant_f4 changing l_vari type slis_vari.
On F4 for layout selection - Get laouts created to this report.
data: l_variant type disvariant.
l_variant-report = sy-repid.
l_variant-username = sy-uname.
call function 'REUSE_ALV_VARIANT_F4'
exporting
is_variant = l_variant
i_save = 'A'
importing
es_variant = l_variant
exceptions
others = 1.
if sy-subrc = 0.
l_vari = l_variant-variant.
endif.
Create a structure
data: wa_layout type disvariant.
fill up the layout with selected fields.
wa_layout-report = sy-repid.
wa_layout-username = sy-uname " Choose this if you want user specific
wa_layout-variant = p_vari.
Assign the same to the REUSE_ALV_GRID_DISPLAY
it is a import paramter IS_VARIANT = wa_layout.
All you have to do is first execute the report and save layouts what exactly you want
and then next time you run the report you will get a chance to select the layout of your own.
or
You can get rid of MANDT field from fieldcatalog and internal table by creating a new
structure. I mean, if you know you always want to display the field from 2 to 11 then simply
delete the field from fieldcatalog.
You can assign to different field catalog using Field symbols and change your internal
table as well since you have created a dynamic internal table.
Let me know if you need more. -
ALV grid is not displaying few fields of final internal table of type DMBTR
hello frnds,
i am displaying 10 fields in ALV grid using field catalog.
among them five fields are currency fields on which i doing some arithematic operations. but all these fields are not getting displayed in alv grid.
here is my code....
declaring final strucutre to generate report
TYPES:BEGIN OF ty_final,
gjahr TYPE gjahr, " Year
wwert TYPE wwert_d, " Traslation date
bukrs TYPE bukrs, " company code
hkont TYPE hkont, " General ledger account
txt20 TYPE txt20_skat, " Account name
belnr TYPE belnr_d, " Purchase order number
shkzg TYPE shkzg, " Dt/Cr indicator
dmbtr1 TYPE dmbtr, " Ammount in local currency
v_alc TYPE dmbtr, " Ammount in local currency
wrbtr TYPE wrbtr, " Ammount in foreign currency
ebeln TYPE ebeln, " Purchase order number
ebelp TYPE ebelp, " Item number
matnr TYPE matnr, " Material number
menge TYPE menge_d, " Qunatity
meins TYPE meins, " Unit of measure
stprs TYPE stprs, " Std material master
v_iv TYPE dmbtr, " Invoice value
pswsl TYPE pswsl, " Currency
v_erc TYPE dmbtr, " Exchange rate calculated
v_op TYPE dmbtr, " Order price
v_uos TYPE dmbtr, " Unit order to stock
v_io TYPE dmbtr, " Invoice to order
v_uv TYPE dmbtr, " Unit value
v_t TYPE dmbtr, " Total
v_d TYPE dmbtr, " Differecne
netpr TYPE bprei, " Net price in purchasing document
v_total TYPE dmbtr, " Total
v_os TYPE dmbtr, " Order to stock
v_ito TYPE dmbtr, " Invoice to order
saknr TYPE saknr, " G/L account number
END OF ty_final.
FORM move_data.
IF NOT i_bseg[] IS INITIAL.
LOOP AT i_bseg INTO wa_bseg.
wa_final-gjahr = wa_bseg-gjahr.
wa_final-bukrs = wa_bseg-bukrs.
wa_final-hkont = wa_bseg-hkont.
wa_final-belnr = wa_bseg-belnr.
wa_final-shkzg = wa_bseg-shkzg.
wa_final-wrbtr = wa_bseg-wrbtr.
wa_final-ebeln = wa_bseg-ebeln.
wa_final-ebelp = wa_bseg-ebelp.
wa_final-matnr = wa_bseg-matnr.
wa_final-menge = wa_bseg-menge.
wa_final-meins = wa_bseg-meins.
wa_final-pswsl = wa_bseg-pswsl.
wa_final-dmbtr1 = wa_bseg-dmbtr.
wa_final-saknr = wa_bseg-saknr.
wa_final-v_total = wa_bseg-dmbtr.
READ TABLE i_bkpf INTO wa_bkpf WITH KEY bukrs = wa_bseg-bukrs.
IF sy-subrc = 0.
wa_final-wwert = wa_bkpf-wwert.
ENDIF.
CLEAR wa_bkpf.
READ TABLE i_mbew INTO wa_mbew WITH KEY matnr = wa_bseg-matnr.
IF sy-subrc = 0.
wa_final-stprs = wa_mbew-stprs.
ENDIF.
CLEAR wa_mbew.
READ TABLE i_ekpo INTO wa_ekpo WITH KEY ebeln = wa_bseg-ebeln.
IF sy-subrc = 0.
wa_final-netpr = wa_ekpo-netpr.
ENDIF.
CLEAR wa_ekpo.
READ TABLE i_skat INTO wa_skat WITH KEY saknr = wa_bseg-saknr.
IF sy-subrc = 0.
wa_final-txt20 = wa_skat-txt20.
ENDIF.
calculating output values
IF wa_bseg-shkzg = 'H'.
wa_final-v_alc = -1 * wa_bseg-dmbtr.
ELSEIF wa_bseg-shkzg = 'S'.
wa_final-v_alc = 1 * wa_bseg-dmbtr.
ENDIF.
DATA : l_c_v_alc TYPE p DECIMALS 2,
l_c_v_iv TYPE p DECIMALS 2.
l_c_v_alc = wa_final-v_alc.
IF wa_bseg-menge NE 0.
wa_final-v_iv = wa_bseg-dmbtr / wa_bseg-menge.
ENDIF.
IF wa_bseg-dmbtr NE 0.
wa_final-v_erc = wa_bseg-wrbtr / wa_final-dmbtr1.
ENDIF.
IF wa_final-v_erc NE 0.
wa_final-v_op = wa_ekpo-netpr / wa_final-v_erc.
ENDIF.
wa_final-v_uos = wa_mbew-stprs - wa_final-v_op.
wa_final-v_io = wa_final-v_iv + wa_final-v_uos.
wa_final-v_uv = wa_final-v_uos + wa_final-v_io.
wa_final-v_t = wa_final-v_uv + wa_bseg-menge.
wa_final-v_d = wa_final-v_t - wa_final-v_alc.
wa_final-v_os = wa_final-v_uos * wa_bseg-menge.
wa_final-v_ito = wa_final-v_io * wa_bseg-menge.
CLEAR wa_bseg.
APPEND wa_final TO i_final.
CLEAR wa_final.
ENDLOOP.
ENDIF.
ENDFORM. "data_retrieval
*& Form build_fieldcat
text
--> p1 text
<-- p2 text
FORM build_fieldcat.
CLEAR wa_fieldcat.
* TYPES : v_alc TYPE dmbtr. "curr. " decimal 2.
DATA: l_c_v_alc TYPE p DECIMALS 2,
l_c_v_iv TYPE p DECIMALS 2 .
l_c_v_alc = v_alc.
l_c_v_iv = v_iv.
Constant Declarations.
CONSTANTS:
l_c_gjahr(5) TYPE c VALUE 'GJAHR', " Year
l_c_wwert(5) TYPE c VALUE 'WWERT', " Traslation date
l_c_bukrs(5) TYPE c VALUE 'BUKRS', " company code
l_c_hkont(5) TYPE c VALUE 'HKONT', " General ledger account
l_c_txt20(10) TYPE c VALUE 'TXT20', " Account name
l_c_belnr(5) TYPE c VALUE 'BELNR', " Doc number
l_c_shkzg(5) TYPE c VALUE 'SHKZG', " Dt/Cr indicator
l_c_dmbtr(5) TYPE c VALUE 'DMBTR1', " Ammount in local currency
" l_c_v_alc TYPE c VALUE 'V_ALC', " Ammount in local currency
l_c_wrbtr(5) TYPE c VALUE 'WRBTR', " Ammount in foreign currency
l_c_ebeln(5) TYPE c VALUE 'EBELN', " Purchase order number
l_c_ebelp(5) TYPE c VALUE 'EBELP', " Item number
l_c_matnr(5) TYPE c VALUE 'MATNR', " Material number
l_c_menge(7) TYPE c VALUE 'MENGE', " Qunatity
l_c_meins(5) TYPE c VALUE 'MEINS', " Unit of measure
l_c_stprs(5) TYPE c VALUE 'STPRS', " Std material master
" l_c_v_iv(4) TYPE c VALUE 'V_IV', " Invoice value
l_c_pswsl(5) TYPE c VALUE 'PSWSL', " Currency
l_c_v_erc(5) TYPE c VALUE 'V_ERC', " Exchange rate calculated
l_c_v_op(4) TYPE c VALUE 'V_OP', " Order price
l_c_v_uos(5) TYPE c VALUE 'V_UOS', " Unit order to stock
l_c_v_io(4) TYPE c VALUE 'V_IO', " Invoice to order
l_c_v_uv(4) TYPE c VALUE 'V_UV', " Unit value
l_c_v_t(3) TYPE c VALUE 'V_T', " Total
l_c_v_d(3) TYPE c VALUE 'V_D', " Differecne
l_c_netpr(5) TYPE c VALUE 'NETPR', " Net price in purchasing document
l_c_v_total(7) TYPE c VALUE 'V_TOTAL', " Total
l_c_v_os(4) TYPE c VALUE 'V_OS', " Order to stock
l_c_v_ito(5) TYPE c VALUE 'V_ITO', " Invoice to order
l_c_saknr(5) TYPE c VALUE 'SAKNR', " G/L account number
l_c_i_final(7) TYPE c VALUE 'I_FINAL'. " Final internal table
Fieldcat for fiscal year
wa_fieldcat-col_pos = 1.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_gjahr.
wa_fieldcat-seltext_m = text-007.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Translation date
wa_fieldcat-col_pos = 2.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_wwert.
wa_fieldcat-seltext_m = text-008.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Company code
wa_fieldcat-col_pos = 3.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_bukrs.
wa_fieldcat-seltext_m = text-009.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for General ledger account
wa_fieldcat-col_pos = 4.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_hkont.
wa_fieldcat-seltext_m = text-010.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Account name
wa_fieldcat-col_pos = 5.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_txt20.
wa_fieldcat-seltext_m = text-011.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Doc number
wa_fieldcat-col_pos = 6.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_belnr.
wa_fieldcat-seltext_m = text-012.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Dt/Cr indicator
wa_fieldcat-col_pos = 7.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_shkzg.
wa_fieldcat-seltext_m = text-013.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Ammount in local currency
wa_fieldcat-col_pos = 8.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = 'DMBTR1'.
wa_fieldcat-seltext_m = text-014.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Ammount in local currency
wa_fieldcat-col_pos = 9.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = 'V_ALC'.
wa_fieldcat-seltext_m = text-015.
wa_fieldcat-ref_fieldname = 'DMBTR'.
wa_fieldcat-no_sign = 'X'.
wa_fieldcat-do_sum = c_x.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Ammount in foreign currency
wa_fieldcat-col_pos = 10.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_wrbtr.
wa_fieldcat-seltext_m = text-016.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Purchse order number
wa_fieldcat-col_pos = 11.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_ebeln.
wa_fieldcat-seltext_m = text-017.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Item No
wa_fieldcat-col_pos = 12.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_ebelp.
wa_fieldcat-seltext_m = text-018.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Material number
wa_fieldcat-col_pos = 13.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_matnr.
wa_fieldcat-seltext_m = text-019.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Qunatity
wa_fieldcat-col_pos = 14.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_menge.
wa_fieldcat-seltext_m = text-020.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Unit of measure
wa_fieldcat-col_pos = 15.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_meins.
wa_fieldcat-seltext_m = text-021.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Std material master
wa_fieldcat-col_pos = 16.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_stprs.
wa_fieldcat-seltext_m = text-022.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Invoice value,
wa_fieldcat-col_pos = 17.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = 'V_IV'.
wa_fieldcat-seltext_m = text-023.
wa_fieldcat-ref_fieldname = 'DMBTR'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Currency
wa_fieldcat-col_pos = 18.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_pswsl.
wa_fieldcat-seltext_m = text-024.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Exchange rate calculated
wa_fieldcat-col_pos = 19.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = 'V_ERC'.
wa_fieldcat-seltext_m = text-025.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Order price
wa_fieldcat-col_pos = 20.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_v_op.
wa_fieldcat-seltext_m = text-026.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Unit order to stock
wa_fieldcat-col_pos = 21.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_v_uos.
wa_fieldcat-seltext_m = text-027.
wa_fieldcat-do_sum = c_x.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Invoice to order
wa_fieldcat-col_pos = 22.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_v_io.
wa_fieldcat-seltext_m = text-028.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Unit value
wa_fieldcat-col_pos = 23.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_v_uv.
wa_fieldcat-seltext_m = text-029.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Total
wa_fieldcat-col_pos = 24.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_v_t.
wa_fieldcat-seltext_m = text-030.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Difference
wa_fieldcat-col_pos = 25.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_v_d.
wa_fieldcat-seltext_m = text-031.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Net Price in Purchasing Document
wa_fieldcat-col_pos = 26.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_netpr.
wa_fieldcat-seltext_m = text-032.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Total
wa_fieldcat-col_pos = 27.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_v_total.
wa_fieldcat-seltext_m = text-033.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Order to stock
wa_fieldcat-col_pos = 28.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_v_os.
wa_fieldcat-seltext_m = text-034.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Fieldcat for Invoice to order
wa_fieldcat-col_pos = 29.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_v_ito.
wa_fieldcat-seltext_m = text-035.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
fieldcat for invoice to order
wa_fieldcat-col_pos = 30.
wa_fieldcat-tabname = l_c_i_final.
wa_fieldcat-fieldname = l_c_saknr.
wa_fieldcat-seltext_m = text-035.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
ENDFORM. "build_fieldcatHi romanch,
defining the field catalog you must reference all currency fields to the respective currency key field (type CUKY).
<alv_fieldcat>-cfieldname = 'HWAER'.
This is sample for alv output of a currency field. The alv structure has a field HWAER which carries the currency key, e.g. USD or so.
Obviously you do not provide a cutrrency key for your values. If they are initial (zero), ALV will not display them as 0,00 but leave the field empty if the reference too currency key is not established.
If you define a DDIC structure for the ALV output this refernce is enforced. You can pass the DDIC structure name to the ALV and don not have to create the field catalog manually.
Regards,
Clemens -
Display many fields of a lookup table in the main table
Hello Experts,
In MDM, I have a "Suppliers" table which is a lookup table. This table has 4 fields :
- Supplier Name (Display Field)
- Supplier Code
- Email
- Phone number
In the main table, a field "Supplier" uses the "Suppliers" lookup table. This fields displays the "Supplier Name" of the "Suppliers" lookup table.
Now I also want to display the "Email" and the "Phone Number" of the supplier. If I set these fields as Display Fields in the "Suppliers" lookup table, they appear concatenated in the main table, which I don't want.
The only way I found to display those fields is to set 2 new fields in the main table as calculated fields, eg: IF(TRUE, Supplier.Email).
Is there any way to display those fields w/o using calculated fields?
Thanks for your helpHi Christian,
Thanks for your help. Actually I am working on the SRM part of MDM, so I do not use portal to display data but the SRM-MDM UI on which I can not manage iViews.
The need is to have, for each Material displayed, the name and the contact data of the Supplier. If I concatenate those data the display is not very clear for the user. Eg:
Supplier data: TOTO, contact_at_toto.com, 1234567890
I would rather have :
Supplier: TOTO
EMail: contact_at_toto.com
Phone Number: 1234567890
As you said, the non automatic update of calculated fields is an issue in my case. So I am currently looking at assignments, which seems to be schedulable via a workflow but I don't know if it's a good mean?
Best regards,
Patrick -
How to add one more field to an exist internal table
hi abapers
i am a very new abap programmer and just started learning it.
i want to know How to add one more field to an exist internal table.
lemme me put my question in a very simple way.
i have a internal table having fields f1,f2,f3 and which also that internal also contains some data.
now i want to add two more fields (mm & nn) to that internal table now.
how can i do that.
and i wanna know the websites names where i can find some brain teasing questions in abap programming.
eagerly waiting for ur reply
regards,
Maqsood A KhanHi, MAQSOOD.
You can insert more fields in your internal table like this.
refer this code snippet.
DATA : BEGIN OF tbl_itab OCCURS 0.
INCLUDE STRUCTURE zsdtc009.
DATA : vkorg LIKE vbak-vkorg, "inserted one
vtweg LIKE vbak-vtweg, "inserted one
vkbur LIKE vbak-vkbur, "inserted one
vkgrp LIKE vbak-vkgrp, "inserted one
END OF tbl_itab.
you can also read the book "Teach yourself abap in 21 days"
at http://cma.zdnet.com/book/abap/
but that book is just about basic concept of abap and report program.
it doesn't give a lecture for on-line program.
you can get pdf version books(about abap, sap...things) from sap.
http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm
I wish I could help you.
Regards
Kyung Woo. -
Table Maintenance - Add field not in table for display
I have a Z table which has five fields of which one of them is the GL account field. I need to display the description of the account from SKAT-TXT20 also in SM30 so that In SM30 when the user looks at the table, they should be able to see six fields. I can code the PBO / PAI to pull data from the table, but am not sure how to enhance the table control that SAP generates automatically when you generate table maintenance from SE11's Table Maintenance generator so that the sixth field can be displayed.
ThanksHi,
I hope below solution will work for your problem:
to update field based on other fields of the same table follow below path and create a routine.
go to se11 open the Z-table in change mode > utilities> table maintenece generator- and then
environment> modification> events....
then creat routine based on your requirement.
regards,
munvar. -
Search Help on Table Control - Fill more than one field in the table?
Hey everyone,
I have built a screen with a Table Control on it... the fields of the table control are linked to an internal table... The internal table has the line type of a structure I've defined in the data dictionary. Within that structure in the data dictionary, I've linked some fields to search helps (For example, a MATNR and CUSTOMER search help)... I've defined in the structure definition which fields from the search help are to be returned to which fields in the structure.
The problem is, even though I have the search help set to export both the customer number and location when using the search help on the customer field, it still does not fill the location field within the table. Is this a limitation of using search helps within table controls?
I'm also finding that by defining the search help through the structure, instead of directly within the screen, the search help round button does not show up on the field, yet I can still press F4 to bring up the search help. Is there a reason why it's not showing the search help clickable button even though it works fine using F4?
For doing search helps in Table Controls, is it better to just build the search help, attach it directly to the field in the table, and then after the user picks the single field, use the PAI to run a select and fill the rest of the fields required?
Thanks,
DallasHi Dallas,
(1)
What i understood is that you added a search help by defining it in the internal table type for a field customer number..in the search help you have 2 fields customer number and location...user press the search help ..then you need to fill 2 different fields or 1 field?
if you need to fill the customer location or location (only one) then you need to set the "import" in the search help for whichever is required.....
if you need to fill 2 or more different fields..then you can use the technique you have mentioned last , to do a select in PAI and fill the fields....but this you can use if the combination for the fields is unique...eg: u have customer number and location..if customer X can be mapped to location X and location Y..when a select statement is done there are 2 options..so in such cases it is better to leave the option to the user otherwise if there is a clear mapping like customer X can be mapped only to location X then you can use the select..
(2)
usually when you define it as a type in the internal table the icon doesn't show up..but you can do alternative like mentioned..go to the table,find the search help for the required field if present or create a new one if required and place the search help mentioned in the screen itself..so as to see the icon...sometimes users are adamant that they need the search help icon to be seen..so it depends on if your user
(3)
as in the example of customer number and location mentioned we can provide them different search helps and do the needful processing in PAI to fill the fields
Table controls may be used for different purposes and requirements....even a checkbox,push button can be placed as a field in table control and used,but yes most of the time requirements are like what is mentioned in your case...
Regards
Byju -
How to display more than 200 rows in the table?
Hi Experts,
Is that possible to display more than 200 rows in a Table.
when i query from table, it has 1000 rows, i want to display all the 1000 rows in the Table.
when i query, the values are displaying up to 201 rows only,
when i click next on 200 - 201 it throws Exception says
*"Query has exceeded 200 rows. Potentially more rows exist, please restrict your query."*
let me know how to display all the 1000 rows in a table without Exception.
Any idea will be highly appreciated.
Thanks
AswathThe number of rows retrieved is controlled by profile option "FND: View Object Max Fetch Size". I believe 200 is the default value. Pl see these MOS Docs
386402.1- Query Has Exceeded 200 Rows
275876.1 - Oracle Application Framework Profile Options Release 11i (11.5.10)
HTH
Srini -
How to display Quantity fields in Table control
Hi,
I need to display quantity fields in my table control based on the resb-meins field. i.e. I need a feature similar to qname of ALV Grid Control in Table control.
Can any body help me.
Regards,
Srinivashi,
use the charecter filed and convert u field in to charecter
check this link
Re: character to decimal conversion
~linganna -
How to join fields from different internal tables and display into one int
hai i have one doubt...
how to join fields from different internal tables and display into one internal table..
if anybody know the ans for this qus tell me......hii
you can read data as per condition and then can join in one internal table using READ and APPEND statement..refer to following code.
SELECT bwkey " Valuation Area
bukrs " Company Code
FROM t001k
INTO TABLE i_t001k
WHERE bukrs IN s_bukrs.
IF sy-subrc EQ 0.
SELECT bwkey " Valuation Area
werks " Plant
FROM t001w
INTO TABLE i_t001w
FOR ALL ENTRIES IN i_t001k
WHERE bwkey = i_t001k-bwkey
AND werks IN s_werks.
IF sy-subrc EQ 0.
LOOP AT i_output INTO wa_output.
READ TABLE i_t001w INTO wa_t001w WITH KEY werks = wa_output-werks.
READ TABLE i_t001k INTO wa_t001k WITH KEY bwkey = wa_t001w-bwkey.
wa_output-bukrs = wa_t001k-bukrs.
MODIFY i_output FROM wa_output.
CLEAR wa_output.
ENDLOOP. " LOOP AT i_output
ENDIF. " IF sy-subrc EQ 0
regards
twinkal -
QA: Designer's operation to Add one more Field to display in Query Result Web Part
QUESTION ABOUT Query Result Web Part presentation +1 Field
I'd be looking at a property of Web Part to look up Discussion Board through Query Result Web Part. Currently it displays 'Title' column of Discussion Board, and my caring requirement is presentation customization to hold double
columns of 'Title'+'Updated Date'. How could I add one more field 'Updated Date' to display in addition to that preexisting 'Title' field?
Any procedural steps to realize how to add Filed to display in Query Result Web Part?Hi Yoshihiro,
As I understand, you want to add the field to display in Query Result Web Part in SharePoint 2013.
Which web part does you use? Content query web part or search results web part?
If you use search results web part, you could edit the discussion board result template and add the updated field in the template.
You could go to Design Manager: Edit Display Templates (site setting-> look and feel->design manager->edit display template), download the Discussion Item.htm file, and edit the file.
After editing, upload the file.
The articles below are about how to modify an existing Display Template in SharePoint 2013.
http://www.learningsharepoint.com/2012/09/17/sharepoint-2013-the-new-display-templates-for-styling-your-content/
http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/01/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-1.aspx
If you use content query web part, you could edit the content query web part, in the Property Mappings section select the “Change the mapping of managed”, and add the “modifiedOWSDATE” (it means the last modified date) in the line, after
that you could see the update date under the title.
Best regards,
Sara Fan
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Power view display more than 500 values in a field
From my research, it looks like the limit of values in a Power View filter is 500. does anyone if this is configurable to increase (which
I am doubting based on Microsoft’s website as I’ve copied below). If it is not configurable and we cannot display more than 500 values when filtering, then what should be done
https://technet.microsoft.com/en-us/library/hh231514%28v=sql.110%29.aspxYou could always do the concatenation on the client. ie: "select action1, action2 from tableX" and then create a boilerplate object with text that references both of these columns. (eg: "&<action1> &<action2>"). This should give you the concatenation you're after.
Another alternative is to return a "long" column instead. The 4000 is probably down to the varchar datatype restriction.
Maybe you are looking for
-
Hi, I have a weblogic 9.2 running one application. I what that application to post messages on a internal JMS queue. That message gets fw to a Weblogic 8 JMS queue. To achieve this I created a JMS Bridge with the Weblogic 8 destination, and the Weblo
-
Just bought new imac, should i update things b4 i install Logic ?
Just bought a new iMac 27'' i7. Ran software update and a bunch of stuff showed up in the list: Currently i'm on 10.6.2 Software update list shows 10.6.3 Java 10.6 update 1 iTunes Airport Base Station update Remote desktop client iLife Support Safari
-
Finding clearing documnet that was deleted
I want to check for a specific line item if it was clearded before and to find the clearing documents that cleared it. is there any table that present all the clearing document including those who were deleted (with FBRA) ? and of coures what line it
-
Error number: 10500 E_fatalError
Hi I have installed Oracle service registry as a Standalone Configuration, but I'm getting the following error when I try to access the Business control. In also checked the error log but there is nothing regarding this. Error number: 10500 Erro
-
Unable to install maverick update
HI, I am using a 13" macbook pro 2.3 Ghz intel core i5 which is about 3 yrs old and am currently using 10.9.3. Today it said that maverick software updates are available for my machine but when i try to install, I get a message which reads "Can't loa