Using Extract in MDX
Hi Team,
I have a requirement to
Get all the Prescriptions of the Doctors (Including other Products) who prescribed My Product.
Scenario
1. Below is prescription details, One Doctor Prescribed 3 products
PRESCRIPTION_KEY DOCTOR_CODE PRODUCT_CODE PRODUCT_DESCRIPTION
80548777 111010503607 111140 LEVOPAN
80548740 111010503607 112395 PROTERA-L
80548430 111010503607 142495 PAN-L
34352343 111010726343 142495 PAN-L
63442543 345787748749 894845 TEMPO
My Query (Get the potential Market for my Product LEVOPAN)
Steps to get the Data
1. Get the All the doctors who prescribed my product (e.g. LEVOPAN)
a. In this example it should be Doctor Code - 111010503607
2. Get all the Prescriptions by that doctor,
a. It should bring No. of Prescriptions = 3 (80548777, 80548740, 80548430)
Dimensions
Product (Product Description)
Doctors (Doctor Code)
Measures Group
No. of Prescriptions
Input to MDX(CurrentMember of Product)
My Product LEVOPAN
My Queries are:
----This is to extract the doctors and their total prescriptions who prescribed my product.
WITH
SET [GHI] AS
EXTRACT((NONEMPTY(([DOCTORS].[Doctor CODE].[Doctor CODE].MEMBERS,[PRODUCT].[Product Description].&[PAN-L]),
[Measures].[Prescriptions])),[DOCTORS].[Doctor CODE])
MEMBER [MEASURES].[A] AS SUM([GHI],[Measures].[Prescriptions])
SELECT
{[Measures].[Prescriptions]} ON COLUMNS,
{[GHI]} ON ROWS
FROM
[MyCube]
----This is to extract Doctors who prescribed my product
SELECT
{[Measures].[Prescriptions] } ON COLUMNS,
{NONEMPTY([PRODUCT].[Product Description].&[PAN-L]*{[DOCTORS].[Doctor CODE].[Doctor CODE].MEMBERS})} ON ROWS
FROM
[MyCube]
Please help me on this scenario.
I want to have this in a Calculated member in a cube which will give me result like this
Product | Prescriptions
Pan-L | 5824
To get the expect results, you can create a product dimension and product attributes. In the Aggregation design time, include this attribute.
How can aggregation design help in this scenario,..please explain me as my understanding on Aggregations was that they will create aggregations and save in database to make retreiving faster.
Similar Messages
-
When using TODATE function MDX query is not correctly generated
Essbase 9.3.1.2 and OBIEE 10.1.3.4.1.
When using TODATE function MDX query is not correctly generated.
This leads to unexpected values not only on cumulative columns in report (generated with TODATE), but also other columns (calculated with AGO function or directly read from cube) have incorrect values.
The problem occurs when you filter on a column that is not in the select list. If you filter on just one level of dimension, results are fine. You can filter on multiple dimensions as long as you filter on just one level of each dimension.
If you filter on two or more levels of one dimension, than results are not correct. In some cases results for TODATE column are all zeros, in some cases it is a random value returned by Essbase (same random value for all rows of that column), and in some cases BI Server returns an error:
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. Essbase Error: Network error [10054]: Cannot Send Data (HY000).
Here is generated MDX code:
With
set [Grupe proizvoda2] as '{[Grupe proizvoda].[N4]}'
set [Grupe proizvoda4] as 'Generate([Grupe proizvoda2], Descendants([Grupe proizvoda].currentmember, [Grupe proizvoda].Generations(4), leaves))'
set [Segmentacija2] as '{[Segmentacija].[RETAIL]}'
set [Segmentacija4] as 'Filter(Generate({[Segmentacija2]}, Descendants([Segmentacija].currentmember, [Segmentacija].Generations(4),SELF), ALL), ([Segmentacija].CurrentMember IS [Segmentacija].[AFFLUENT]))'
set [Vrijeme3] as '{[Vrijeme].[MJESEC_4_2009]}'
member [Segmentacija].[SegmentacijaCustomGroup]as 'Sum([Segmentacija4])', SOLVE_ORDER = AGGREGATION_SOLVEORDER
member [Accounts].[MS1] as '(ParallelPeriod([Vrijeme].[Gen3,Vrijeme],2,[Vrijeme].currentmember), [Accounts].[Trosak kapitala])'
member [Accounts].[MS2] as '(ParallelPeriod([Vrijeme].[Gen3,Vrijeme],1,[Vrijeme].currentmember), [Accounts].[Trosak kapitala])'
member [Accounts].[MS3] as 'AGGREGATE({PeriodsToDate([Vrijeme].[Gen2,Vrijeme],[Vrijeme].currentmember)}, [Accounts].[Trosak kapitala])'
select
{ [Accounts].[Trosak kapitala],
[Accounts].[MS1],
[Accounts].[MS2],
[Accounts].[MS3]
} on columns,
NON EMPTY {crossjoin ({[Grupe proizvoda4]},{[Vrijeme3]})} properties ANCESTOR_NAMES, GEN_NUMBER on rows
from [NISE.NISE]
where ([Segmentacija].[SegmentacijaCustomGroup])
If you remove part with TODATE function, the results are fine. If you leave TODATE function, OBIEE returns an error mentioned above. If you manually modify variable SOLVE_ORDER and set value to, for example, 100 instead of AGGREGATION_SOLVEORDER, results are OK.
In all cases when this variable was modified in generated MDX, and query manually executed on Essabse, results were OK. This variable seems to be the possible problem.Hi,
Version is
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for 64-bit Windows: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production
Sorry, in my last post i forgot to mention that i already created a function based index but still it is not using because, there is a UNIQUE constraint on that column.
Thanks -
Hi,
I am using VSTS 2010 for performance testing and have a question about Extraction Rules functionality. Requirement below.
Example :
Server Response
<a>1</a>
<a>2</a>
<a>3</a>
<a>...</a>
we need to capture all the values with same left and right boundary. Along with the number of occurrence from the response. We need pass a random value in the
index where the index value will be between 0 - count of values with same left and right boundary.
How to find out the count of values with same left and right boundary.Thanks for Adrian's help.
Hi PChav,
Based on your issue, I think that the Adrian's suggestion is useful for you, so I suggest you could refer the Adrian's suggestion to check your issue.
In addition, I suggest you could also try the rogeorge's suggestion to create a custom extraction rule to do this.
Reference:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/ccff9f7a-d5bc-45d5-80eb-c83f9fc0e103/how-to-capture-all-the-valuesoccurrence-using-extraction-rulescorrelation-in-web-test?forum=vstswebtest
Hope it help you!
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
A doubt in xml ..should i use extract or make my own plsql function..
I am using apex.. and fetchiNG data in xml format..
Now in plsql ..There are functions ..like extract which can be used to extract the values..
But i find it difficult to understand
since i find making a function which shall use substring and instr to find the value .. .
Wait let me show you the example of xml..data
<?xml version="1.0" encoding="WINDOWS-1252"?>
<CraftyResponse>
<address_data_paf_compact>
<thoroughfare_count>1</thoroughfare_count>
<thoroughfare>
<delivery_point_count>5</delivery_point_count>
<delivery_point>
<organisation_name>THE BAKERY</organisation_name>
<department_name/>
<po_box_number/>
<building_number>1</building_number>
<sub_building_name/>
<building_name/>
<udprn>12345678</udprn>
</delivery_point>
<delivery_point>
<organisation_name>FILMS R US</organisation_name>
<department_name/>
<po_box_number/>
<building_number>3</building_number>
<sub_building_name/>
<building_name/>
<udprn>12345679</udprn>
</delivery_point>
<delivery_point>
<organisation_name>FAMILY BUTCHER</organisation_name>
<department_name/>
<po_box_number/>
<building_number>7</building_number>
<sub_building_name/>
<building_name/>
<udprn>12345680</udprn>
</delivery_point>
<delivery_point>
<organisation_name/>
<department_name/>
<po_box_number/>
<building_number/>
<sub_building_name/>
<building_name>BIG HOUSE</building_name>
<udprn>12345681</udprn>
</delivery_point>
<delivery_point>
<organisation_name/>
<department_name/>
<po_box_number/>
<building_number>17</building_number>
<sub_building_name/>
<building_name>LITTLE COTTAGE</building_name>
<udprn>12345682</udprn>
</delivery_point>
<dependent_thoroughfare_name/>
<dependent_thoroughfare_descriptor/>
<thoroughfare_name>HIGH</thoroughfare_name>
<thoroughfare_descriptor>STREET</thoroughfare_descriptor>
</thoroughfare>
<double_dependent_locality/>
<dependent_locality>CRAFTY VALLEY</dependent_locality>
<town>BIG CITY</town>
<postal_county>POSTAL COUNTY</postal_county>
<traditional_county>TRADITIONAL COUNTY</traditional_county>
<postcode>AA1 1AA</postcode>
</address_data_paf_compact>
</CraftyResponse>
Now how do i extract values of town, postal_country building_name,
I know we can use extract to get the result ..But how exactly to use extract here I dotn know..
The other method is a easier method.. which involves creating your own function which uses substr ..and instr
It shal lsearch for <organisation_name> and find the orgonizatio..
I dont know which approch is betTER .. I find making my own customised function a easier and better way..
But any one has idea on extract function ..please let me know..
Db version is 11g
Any information shall be appreciated
ThanksHi Thanks Marco, and odie
Tried it.. some synatx issues..
Was trying to understand about these functions..
This is the structure of my table ..
desc xml_data_tab
Name Null Type
XML_DATA XMLTYPE()
This is the xml data
<?xml version = '1.0' encoding = 'UTF-8'?><CraftyResponse>
<address_data_paf_compact>
<thoroughfare_count>1</thoroughfare_count>
<thoroughfare>
<delivery_point_count>5</delivery_point_count>
<delivery_point>
<organisation_name>THE BAKERY</organisation_name>
<department_name></department_name>
<po_box_number></po_box_number>
<building_number>1</building_number>
<sub_building_name></sub_building_name>
<building_name></building_name>
<udprn>12345678</udprn>
</delivery_point>
<delivery_point>
<organisation_name>FILMS R US</organisation_name>
<department_name></department_name>
<po_box_number></po_box_number>
<building_number>3</building_number>
<sub_building_name></sub_building_name>
<building_name></building_name>
<udprn>12345679</udprn>
</delivery_point>
<delivery_point>
<organisation_name>FAMILY BUTCHER</organisation_name>
<department_name></department_name>
<po_box_number></po_box_number>
<building_number>7</building_number>
<sub_building_name></sub_building_name>
<building_name></building_name>
<udprn>12345680</udprn>
</delivery_point>
<delivery_point>
<organisation_name></organisation_name>
<department_name></department_name>
<po_box_number></po_box_number>
<building_number></building_number>
<sub_building_name></sub_building_name>
<building_name>BIG HOUSE</building_name>
<udprn>12345681</udprn>
</delivery_point>
<delivery_point>
<organisation_name></organisation_name>
<department_name></department_name>
<po_box_number></po_box_number>
<building_number>17</building_number>
<sub_building_name></sub_building_name>
<building_name>LITTLE COTTAGE</building_name>
<udprn>12345682</udprn>
</delivery_point>
<dependent_thoroughfare_name></dependent_thoroughfare_name>
<dependent_thoroughfare_descriptor></dependent_thoroughfare_descriptor>
<thoroughfare_name>HIGH</thoroughfare_name>
<thoroughfare_descriptor>STREET</thoroughfare_descriptor>
</thoroughfare>
<double_dependent_locality></double_dependent_locality>
<dependent_locality>CRAFTY VALLEY</dependent_locality>
<town>BIG CITY</town>
<postal_county>POSTAL COUNTY</postal_county>
<traditional_county>TRADITIONAL COUNTY</traditional_county>
<postcode>AA1 1AA</postcode>
</address_data_paf_compact>
</CraftyResponse>
Edited by: susf on Aug 29, 2012 7:00 PM -
Problem using extract function (PL/SQL) with "&#34"
Hi,
When I use extract function (PL/SQL), it does not transform well """. Insted of returning ' " ' , it returns ' " '.
I know this works changing the code replacing xml.extract for SELECT extractvalue(xml,'//A/text()') into v from dual;
But Is there another way to do this using PL/SQL? any patch, option..?
RegardsHad to use my website to demonstrate the code...
As said, whatever I try here the code gets automatically converted...
See for answer on your question: http://www.liberidu.com/blog/?p=635 -
How to do data source ehancement by using "Extraction by function module"
I have one customized datasource "ZSOURCE" in R/3, this datasource use Extraction by function module, namely one functiona
module "ZBI_FM_EX"and Extract. struct "ZBI_EX".
Now I want to add one field "ZNEW" from standard SAP table LIKP into extractor "ZBI_EX" and write coding in ZXRSAU01.
Question, could I add new field "ZNEW" into Structure:"ZBI_EX"? Do I need to change anything in functional module "ZBI_FM_EX" itself?
Many Thanks!
rajatina.Hi Dear,
It is good to write the code in your function module i.e. ZBI_FM_EX. becuase writing the code in ZXRSAU01 include program will affect the loading performance. instead of looping the data two time (one in your FM and again in ZXRSAU01 ), you can get the same will only loop.
Thanks
Obaid
Edited by: obaid shaikh on Jan 21, 2011 11:53 AM -
Possible to use parameters in MDX Studio?
Is it possible to use parameters in MDX Studio? I've tried using SSRS2008 for query design but...
SSRS2008 query designer complains that parameters do not exist when they quite obviously do ( in the report)
LaCie drives. Failing when you need them most."La" meaning "Terrible", "Cie" meaning "customer service"You can declare parameters in XMLA format after the MDX query - see examples in this post:
Bug v2.9.1: Parametric queries parsing and debugging errors
WITH MEMBER [Measures].[Profit] AS '[Measures].[Sales Amount]-[Measures].[Standard Product Cost]' SELECT NON EMPTY { [Measures].[Internet Sales Amount], [Measures].[Internet Total Product Cost], [Measures].[Internet Order Quantity] } ON COLUMNS, NON
EMPTY { ([Sales Reason].[Sales Reason].[Sales Reason].ALLMEMBERS * [Sales Territory].[Sales Territory Group].[Sales Territory Group].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME, [Sales Reason].[Sales Reason].[Sales Reason].KEY, [Sales
Territory].[Sales Territory Group].[Sales Territory Group].KEY ON ROWS FROM ( SELECT ( STRTOSET(@ProductCategory, CONSTRAINED) ) ON COLUMNS FROM [Adventure Works]) WHERE ( IIF( STRTOSET(@ProductCategory, CONSTRAINED).Count = 1, STRTOSET(@ProductCategory, CONSTRAINED),
[Product].[Category].currentmember ) ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
<Parameters xmlns:xsi="www.w3.org/2001/XMLSchema-instance" xmlns:xsd="www.w3.org/2001/XMLSchema"
xmlns="urn:schemas-microsoft-com:xml-analysis">
<Parameter>
<Name>ProductCategory</Name>
<Value xsi:type="xsd:string">{ [Product].[Category].&[1],[Product].[Category].&[2] }</Value>
</Parameter>
</Parameters>
<PropertyList xmlns="urn:schemas-microsoft-com:xml-analysis">
<Catalog>Adventure Works DW</Catalog>
<LocaleIdentifier>1033</LocaleIdentifier>
<Format>Tabular</Format>
<Content>SchemaData</Content>
<Timeout>0</Timeout>
<ReturnCellProperties>true</ReturnCellProperties>
<DbpropMsmdFlattened2>true</DbpropMsmdFlattened2>
</PropertyList>
- Deepak -
How to use 'Extract Values' transformation?
Hi,
I am new to EDQ. I have the following requirement - source system sends me partyname+address details. I need to check in the oracle database and if there is a match then send back the ID along with the input details. I am using Lookup check audit process to check if the data is present in the database. If the data is present then I need to send back the ID. To extract the ID I am using 'Extract Values' transformation. I am not able define the Reference Data for this . Can provide a example how to use the same.
Thanks
PrabhaJust use Lookup and Return.
Though it sounds like you really should be using a match process. -
Using Extract Single Tone Information to detect phase
Dear all,
I have problem using Extract Single Tone Information vi to detect phase angle of a sine wave.
I posted similar question a few days ago regarding using the same vi to determine phase angle of a square wave and realised it couldn't be done because square wave is not single tone. I modified my program slightly and use it to examine a sine wave but I still couldn't get reliable results.
Please find the attached for the program code. When I set frequency to 5 Hz, everything worked fine but when I set it to 5.17 Hz with 20 degree phase, the detected phase value keeps changing. Appreciate if you could help me on this matter. Thank you very much!
Best regards
Attachments:
SineWavePhaseAngleTest.vi 28 KBHi looloo,
Sorry for slow response! Here's the VI back-saved to LV8.2
(in case It's not too late to help...)
The "phase" output reflects the "angle" associated with the beginning value in the Y-array (when Y = amplitude, Phase is 90deg.)
Phase is changing because sine-wave (Y-input) is shifting each time single-tone is called...
Cheers!
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Attachments:
SineWavePhaseAngleTest[1,LV8.21].vi 38 KB -
How to use extracts in report Programming?
Writes all fields of the field group fg (see FIELD-GROUPS) as one record to a sequential dataset (paging). If a field group HEADER has been defined, its fields prefix each record to form a sort key. You can then sort this dataset using SORT and process it with LOOP ... ENDLOOP. After this, EXTRACT cannot be executed again.
As soon as the first dataset for a field group has been extracted with EXTRACT, the field group cannot be expanded using INSERT. The field group HEADER, in particular, cannot be expanded after the first EXTRACT (regardless of field group).
Large extract datasets are not kept in main memory; instead, they are written to an external help file. You can specify the directory in which this file is to be stored using the SAP profile parameter DIR_EXTRACT. By default, the system uses the SAP file directory SAP profile parameter DIR_DATA).
Filling an Extract with Data
Once you have declared the possible record types as field groups and defined their structure, you can fill the extract dataset using the following statements:
EXTRACT <fg>.
When the first EXTRACT statement occurs in a program, the system creates the extract dataset and adds the first extract record to it. In each subsequent EXTRACT statement, the new extract record is added to the dataset.
Each extract record contains exactly those fields that are contained in the field group <fg>, plus the fields of the field group HEADER (if one exists). The fields from HEADER occur as a sort key at the beginning of the record. If you do not explicitly specify a field group <fg>, the
EXTRACT
statement is a shortened form of the statement
EXTRACT HEADER.
When you extract the data, the record is filled with the current values of the corresponding fields.
As soon as the system has processed the first EXTRACT statement for a field group <fg>, the structure of the corresponding extract record in the extract dataset is fixed. You can no longer insert new fields into the field groups <fg> and HEADER. If you try to modify one of the field groups afterwards and use it in another EXTRACT statement, a runtime error occurs.
By processing EXTRACT statements several times using different field groups, you fill the extract dataset with records of different length and structure. Since you can modify field groups dynamically up to their first usage in an EXTRACT statement, extract datasets provide the advantage that you need not determine the structure at the beginning of the program.
Assume the following program is linked to the logical database F1S.
REPORT demo_extract_extract.
NODES: spfli, sflight.
FIELD-GROUPS: header, flight_info, flight_date.
INSERT: spfli-carrid spfli-connid sflight-fldate
INTO header,
spfli-cityfrom spfli-cityto
INTO flight_info.
START-OF-SELECTION.
GET spfli.
EXTRACT flight_info.
GET sflight.
EXTRACT flight_date.
There are three field groups. The INSERT statement assigns fields to two of the field groups. During the GET events, the system fills the extract dataset with two different record types. The records of the field group FLIGHT_INFO consist of five fields: SPFLI-CARRID, SPFLI-CONNID, SFLIGHT-FLDATE, SPFLI-CITYFROM, and SPFLI-CITYTO. The first three fields belong to the prefixed field group HEADER. The records of the field group FLIGHT_DATE consist only of the three fields of field group HEADER. The following figure shows the structure of the extract dataset: -
how to get the Benefits Rate multiplier value in HCM extract ? used Extract rule type Fastfomula, but returns null.
Formula:
DEFAULT FOR BEN_ABR_NAME IS 'NA'
DEFAULT FOR l_rate_multiplier IS 'X'
L_BG_ID = GET_CONTEXT(BUSINESS_GROUP_ID, 1)
L_EFF_DATE = GET_CONTEXT(EFFECTIVE_DATE, to_date('1951/01/01 00:00:00'))
L_ABRT_ID = GET_CONTEXT(ACTY_BASE_RT_ID, 9999)
CHANGE_CONTEXTS(EFFECTIVE_DATE = L_EFF_DATE, BUSINESS_GROUP_ID = L_BG_ID, ACTY_BASE_RT_ID = L_ABRT_ID )
l_rate_multiplier = BEN_ABR_NAME
RETURN l_rate_multiplierI used DBI - BEN_ABR_NAME.
What is back end query ? can we use query to extract the value in Extracts ? -
Adding data in internal table using extracted data
Hi Experts,
Good day!
I have a requirements in our historical data of material price which adding data that are not existing based on data extracted from standard tables such as A004 and KONP.
Now, i need to use the VALIDFROM (DATAB) value as basis for the latest price.
To make it more clear, see the example below:
Extracted data:
Material Number Valid From Valid to Price
100101 01/01/2008 02/01/2008 100.00
100101 02/02/2008 04/02/2008 100.00
100101 04/03/2008 08/01/2008 200.00
100101 08/02/2008 01/31/2009 300.00
100102 05/02/2008 07/01/2008 10.00
100102 07/02/2008 10/31/2008 15.00
100102 11/01/2008 01/31/2009 20.00
Output:
Material Number Calmonth Price
100101 01/2008 100.00
100101 02/2008 100.00
100101 03/2008 100.00
100101 04/2008 200.00
100101 05/2008 200.00
100101 06/2008 200.00
100101 07/2008 200.00
100101 08/2008 300.00
100101 09/2008 300.00
100101 10/2008 300.00
100101 11/2008 300.00
100101 12/2008 300.00
100101 01/2009 300.00
100102 05/2008 10.00
100102 06/2008 10.00
100102 07/2008 15.00
100102 08/2008 15.00
100102 09/2008 15.00
100102 10/2008 15.00
100102 11/2008 20.00
100102 12/2008 20.00
100102 01/2009 20.00
Text that are in bold are the added data. What is the best code to do with this?
How can i come up with this output? Help me please
Thanks and Godbless,
nipsHi Nips,
Logic shud b sumthing on similar lines
lv_count = 1.
Loop at itab into watab.
if lv_count > 12.
lv_count = 1.
endif.
if watab-date+0(2) = lv_count.
append watab to gt_output.
continue.
else.
concatenate lv_count sy-datum+4(4) into watab-date.
append watab to gt_output.
endif.
endloop.
Best regards,
Prashant -
My problem,
declare
v_clob clob;
begin
select extract(xml_details,'/ROWSET/ROW/CTRY_CODE').getStringVal() into v_clob from xml_tab where xml_name='GRN.XML';
end;
xml_tab description
column
xml_details clob
xml_name VARCHAR2(2000)
This block works fine for smaller xmls...but not working for large xmls.Clob can store a very large xml but using getStringVal() it cannot return large string size,how could i get large xml values from a xml.
Error shown: ORA-06502-String size too smallHi,
you can use .getClobVal()
Ants -
How to determine if in real time that the Cube is still processing by using DMV or MDX ?
Hi All,
I know that ther is no direct way of finding whether the cube is proceesing at the current instance with the help of MDX ot T-SQL(DMV).
Could any body please suggest alternatives for it for it.Well, I put a measure in each measure group which is just getdate() on the sql side. This allows me to tell when a particular record was processed into the cube. I have aggregation set to max on this column as well. Not precisely
what you asked.
Are you processing using SSIS? You could always use the SSIS log tables. -
How to extract in the ALV output the old data using EXTRACT
Dear Friends,
I have requiremnt where the user executes the report -
using REUSE_ALV_GRID_DISPLAY FM. On the output
i have given an option to user to edit values on the output. So user will edit the values and updating to the data base this
the functionality which we have given to the custom report till now . Now the user came back and asking to provide a SAVE
option on the ALv output so that before updating the total records to the database he can re edit the values which he
has entered previous day . To do this functionality i have read in ALV documentation using the EXTRACT- INCLUDE vex01top.
I have added this but iam not getting exactly how to do this option when the user saves on the ALV output how can he retrive back the saved data on to the output again( i.e on the ouput screen) using the Extract functionality . If any body has done this
do help me . I would like to know should we maintain any custom table for this,for saving the records when user press
save button? .
Thanks & Regards
Madhuri.> i have read in ALV documentation using the EXTRACT- INCLUDE vex01top.
I don't know where you got that. You have to define your own GUI status (first, copy it from standard status STANDARD_FULLSCREEN of function group SLVC_FULLSCREEN) with your button, and define as follows:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = l_repid
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'USER_STATUS' EXCLUDING rt_extab.
ENDFORM. "set_pf_status
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
IF r_ucomm = 'SAVE'.
ENDIF.
ENDFORM.
> I would like to know should we maintain any custom table
Of course. Create your own custom table. Where else do you want to store data?
Maybe you are looking for
-
My laptop keeps crashing. This seems to happen only when it's streaming from sites such as Netflix, YouTube or Spotify. Also, it stopped being able to run iTunes, and can't download Yosemite. I want to wipe it and reinstall everything - I've already
-
Can any one help me to solve my prblem
exception java.io.IOException is never thrown in body of corresponding try statement import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.text.*; import java.util.Date; import java.io.*; public class SampleIO2 int[] u=
-
How can i buy videos from a diffrent country
i am from the us and i want to buy videos from france in itunes how do i go about that ?
-
What happened to the armature in ActionScript 3? Did Adobe just get rid of it?
I was trying to animate a stick figure when I realized that there was an easier way to do it, which was an armature. I looked through the tools and didn't see one. I looked online, nothing was helpful. Can someone help me out with my problem?
-
I want count "space" token in my table field and separate them
I want count "space" token in my table one field column and separate the word between them. word are store in another table. possibly give solution in[b] Postgres DB and Oracle DB for example table name search column name is keyword keyword " chinese