How to restrict the record selection for PLPO table .
Hi,
Am selecting 'plnnr' and 'vornr' from PLPO table . For one Plnnr their are multiple Vornr including 0001 & 9999.
I want to select only those entries which have only Vornr 0001 & 9999.
Ex : 1) Plnnr - 5689
Vornr - 0001,2536,8989,9999
2) Plnnr - 8787
vornr - 0001
3) Plnnr - 5936
vornr - 9999
4) Plnnr - 2345
vornr - 0001,9999
Here for this example i want to select only the entry with Plnnr = 2345 as it only contains 0001 & 9999.
Can any one let me know how to get this in a select query.
Your help is much appreciated.
Thanks in advance.
Ravi Kasnale.
Hi
Try with below code
RANGES:r_vornr FOR plpo-vornr.
TYPES:BEGIN OF ty_plpo,
plnnr TYPE plpo-plnnr,
vornr TYPE plpo-vornr,
END OF ty_plpo.
DATA:it_plpo_temp TYPE STANDARD TABLE OF ty_plpo.
DATA:it_plpo TYPE STANDARD TABLE OF ty_plpo.
DATA:it_plpo_temp1 TYPE STANDARD TABLE OF ty_plpo.
DATA:wa_plpo_temp1 TYPE ty_plpo.
DATA:v_line TYPE sy-tabix.
START-OF-SELECTION.
r_vornr-sign = 'I'.
r_vornr-option = 'EQ'.
r_vornr-low = '0000'.
CLEAR:r_vornr-high.
APPEND r_vornr.
r_vornr-sign = 'I'.
r_vornr-option = 'EQ'.
r_vornr-low = '9999'.
CLEAR:r_vornr-high.
APPEND r_vornr.
SELECT plnnr vornr FROM plpo INTO TABLE it_plpo_temp1 WHERE vornr IN r_vornr.
CLEAR:it_plpo[].
LOOP AT it_plpo_temp1 INTO wa_plpo_temp1.
CLEAR:it_plpo_temp[].
it_plpo_temp[] = it_plpo_temp1[].
DELETE it_plpo_temp WHERE plnnr <> wa_plpo_temp1-plnnr.
DESCRIBE TABLE it_plpo_temp LINES v_line.
IF v_line EQ '2'.
APPEND LINES OF it_plpo_temp TO it_plpo.
ENDIF.
ENDLOOP.
SORT it_plpo BY plnnr.
DELETE ADJACENT DUPLICATES FROM it_plpo COMPARING plnnr.
Regards
Srilaxmi
Similar Messages
-
How to check the records in Master Data Table?
Hi,
I am trying to load the Master Data Table using the Flat File.Now how to check the records in Master Data Table?
I done the following way:
Info Provider->Info Object->Right Click->Display Data or Maintain Master Data
But it's not showing the records.It's asking like CID from......To......
CID(SID)from.............To.......
here CID means customer id(characteristic).
and showing some settings.
Please guide me.
Thanks & RegardsHi Sri,
Go to T- code RSD1 and type your info object name and open the P- table in the infoobject then select execute symbol to see the updated data in to master data info object.
regards
sap -
How to check the Statistics generated for a table through DBMS_STATS.
Hi,
How to check the statistics generated for a Table through DBMS_STATS.GATHER_TABLE_STATS procedure ?
Please let me know.
Thanks !
Regards,
RajasekharRajasekhar wrote:
Hi,
How to check the statistics generated for a Table through DBMS_STATS.GATHER_TABLE_STATS procedure ?
Please let me know.
Thanks !
Regards,
Rajasekharquery ALL_TABLES -
HOW to Restrict the input Help for 0MATERIAL in the BPS Layout
Hi,
I have requirement to Restrict the input Help for 0MATERIAL in the BPS Layout.
For Example if the Planning Package is Restricted to SALES ORGANISATION ( 3000 ) then the system shuold check the 0MAT_SALES where SALES ORGANISATION IS "3000" )AND PASS THE Material Numbers to the 0material list.
I have Copied the standard Funtcion group "UPF_VARIABLE_USER_EXIT" to Z fucttion and have attached to Z Variabe as User Exit .
this Variable is Attached to 0material in the Planning Pakage. So tha now the 0MATERIAL is restricted to the variable which is having the User Exit.
But how to acces the Values of Planning Package for which the Layout is bein Executed from this Z User Exit ???
I Know how to restrict the input help, but my only problem is that how to get the values of Planning package through this User Exit.
Please suggest if it is possible.
Regards,
Nilesh LabdeHi Nilesh,
As I understand from your question,you know how to restrict but the issue is to know the value in the package with which you need to restrict.
There are two tables which can help you finding the value used in package for sales organisation:
1. UPC_PACKAGE
2. UPC_OPTIOS
How to use ?
From UPC Package you will get one GUID, Hit the second table UPC_OPTIOS with this GUID.
In field "FIELDNAME" enter the name of the characteristic whose value is req (sales organisation in your case)
Hope this helps you
Mann -
How to restrict the decimal entry on dynamic table in adf 11 .6
Hi All,
JDev version 11.6
I have a usecase based on dynamic VO. How to restrict the decimal numbers on table columns . When user enter the decimal number .I have to show error message.
In order to achieve above requirement .I have added value change listener on table column .its not working as expected
<af:table rows="#{bindings.EmployeeDynamicVO.rangeSize}"
fetchSize="#{bindings.EmployeeDynamicVO.rangeSize}"
emptyText="#{bindings.EmployeeDynamicVO.viewable ? 'No data to display.' : 'Access Denied.'}"
var="row" rowBandingInterval="0"
value="#{bindings.EmployeeDynamicVO.collectionModel}"
selectedRowKeys="#{bindings.EmployeeDynamicVO.collectionModel.selectedRow}"
selectionListener="#{bindings.EmployeeDynamicVO.collectionModel.makeCurrent}"
rowSelection="single" id="t1"
styleClass="AFStretchWidth" autoHeightRows="-1"
columnStretching="last" contentDelivery="immediate" >
<af:forEach items="#{bindings.EmployeeDynamicVO.attributeDefs}"
var="def">
<af:column headerText="#{bindings.EmployeeDynamicVO.labels[def.name]}"
sortProperty="#{def.name}" id="c1">
<af:inputText value="#{row[def.name]}" id="ot1"
valueChangeListener="#{backingBeanScope.EmployeeBean.validateINputs}"
autoSubmit="true">
</af:inputText>
<af:outputText value="#{row[def.name]}" id="ot6"
visible="#{def.name eq 'Dummy'}"/>
</af:column>
</af:forEach>
</af:table>
So appriciate if any alternatives on above usecase. Thanks in advanceHI
Expected :as soon as user enter the decimal values in table column , it should throw the error message in new small new window
Getting the value change listener and validating , but its working only tab out (Because VO is dynamic )
please suggest us any reg expression and Validators to achieve the above scenario ? -
How to find the function module for standard tables.
Hi
Could any one please tell me how to find the standard function module to update the standard tables
Thanks & Regards
SowmyaHi sowmya,
To find the function modules for standard tables you go for a where used list of that particular table and check only function module interfaces checkbox...
and more over you can go for DB_UPDATE_TABLE will be the function module for updating database table..
Hope this information would help you
Regards
Narin Nandivada -
How to restrict the Null Values for Key Figules in the Bex Query
Hi Friends,
I want to restrict the Null values of a perticular key figure in the Bex Query Output.
I will explain in details. i have 3 key figures in my query.. let us assume.. key1 key2key3
key1 key2 key3
4 4 100.00
5 0 200.00
1 0 19.00
0 1 10.00
i don't want to see the the records for which key 2 is 0.
we have a setting in the Bex Query for restricting the Zero values in the query properties. If we enable that setting it will show
4 4 100.00
but i want the report to display..
4 4 100.00
0 1 10.00
can any body guide me. <b>i want to display the values if key2 <> 0.</b>
Regards,
Nagesh.Hi AVR,
nice to see reply.
can you eloborate your view...how can i put the condition.
<b>i want to put the condition key2 <> 0.</b>
Regards,
Nagesh. -
How to caculate the records count for a measurement with a filter?
I have a fact table which add relationship to a datetime dimension. I create a measurement based on the fact table, like [MeasureA]. I want to calculate the record counts of [measureA] of today, how to write the mdx query? Thanks!
Hi Lavandula,
According to your description, you want to calculate the numbers of the record of a measure for a specific day, right? In this case, you can use
Count function which returns the number of cells in a set to achieve you requirement. Here is a sample query on Adventure Works for your reference.
WITH
MEMBER [Measures].[SetCount] AS
COUNT([Product].[Product].[Product].Members)
SELECT
{[Measures].[SetCount]} ON COLUMNS
FROM
[Adventure Works]
Besides, if you want to count the cell numbers with a condition, you can use
Filter funtion inside the Count function.
WITH MEMBER [Measures].[High Volume Products Count] AS
Count(Filter([Product].[Product].[Product], [Measures].[Internet Order Quantity] > 5))
SELECT [Customer].[Customer Geography].[Country] ON 0
, [Date].[Calendar].[Date].MEMBERS ON 1
FROM [Adventure Works]
WHERE [Measures].[High Volume Products Count]
Regards,
Charlie Liao
TechNet Community Support -
How to restrict the records in source qualifier?
What is your source system?If it's Oracle, you could use the following trick:Wrap your original SQL query (which retrieves all the columns which you need plus "ROWNUM AS row_num") into a "common table expression" which returns records based on this "row_num", like this: SELECT a1, a2, a3,... an FROM(select *, rownum as row_num FROM tab1, tab2 WHERE...)WHERE row_num between 11 and 15 Other than that I would recommend you insert an Expression transformation into your mapping right after the Source Qualifier. Within this EXP, define a variable port "v_rownum" of type BigInt with this expression: v_rownum + 1Then define an output port ROWNUM of type BigInt and set it to this expression: v_rownumForward all the data from the SQ plus "ROWNUM" from the EXP into a Filter.Define two mapping parameters $$FIRST_ROW and $$LAST_ROW of type BigInt (if possible, I can't try myself at this moment).Set the Filter expression like this: ROWNUM >= $$FIRST_ROW AND ROWNUM <= $$LAST_ROW This works for all sorts of source systems. Regards,Nico
I Have loading 10 record on first run , inserted in DB,and again load 5 records in second run in this restrict the first 10 records in source qualifier and took only 5 records to the target?
-
How to restrict the news creations for members of the collaboration room
Hi all,
I have created a Project Room in collaboration and assigned members to that
room.I need to restrict the room members from creating the news and folders.
And also only Owner/Admin of the room should be able created the news and
folders and members should be able view the news and folder
One more query,i need to remove the room parts which are by default selected
for that room when select the default templates.
Can anyone please give me the solution on the above queries.
It will be very much helpful for me to create collaboration rooms with the
restricted permissions.
Thanks in advance.
PonnusamyPHi Sascha,
Here I am explaining what is my requirement.
I have created collaboration room and added room admin and members to the
room.
Then in the room maintaince -> I have added the room parts as
News(private) and the role I have assigned to member.
When login into portal with the member login and go to the news in the
collaboration room, member is getting the permissions to add/create news.
At this point I want to restrict the members of the collaboration room to view
the news and only admin of the room should be able to post the news.
how to go ahead for the above senario.
Thanks
Ponnusamy -
How to restrict the cell selection in JTable based on cell contents...
Hi all,
I have some problem related to table cell selection.
I have a table that represets the calendar of some month and year.
I have the restriction that at one time only one cell could be selected.
Now i want the cell seletion like this,
I want only those dates to be selected if that date is after 'today'.
that is I want to restrict the selection of previous dates.
how can i do this.
I have overridden the table methods like this, still no use.
table = new JTable(model) {
setOpaque(false);
setSurrendersFocusOnKeystroke(false);
setRowHeight(20);
JTableHeader header = getTableHeader();
header.setOpaque(false);
getTableHeader().setReorderingAllowed(false);
setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
getTableHeader().setResizingAllowed(false);
setCellSelectionEnabled(true);
setFocusable(true);
setBackground(new Color(247, 251, 255));
setFont(newFont);
public boolean isCellEditable(int row, int col) {
return false;
public boolean isCellSelected(int row, int col) {
int r = getSelectedRow();
int c = getSelectedColumn();
String val = (String)getValueAt(r,c);
Calendar cal = Calendar.getInstance();
cal.set(currentYear+1900, month,Integer.parseInt(val));
Date d = cal.getTime();
Date currentDate = new Date();
if (d.before(currentDate)) {
return false;
} else {
return true;
Someone please help...
-SoniTry overriding the changeSelection(....) method of JTable.
public void changeSelection(int row, int column, boolean toggle, boolean extend)
if (d.after(currentDate)
super.changeSelection(row, column, toggle, extend);
} -
How to get the record selected in ztable based record in the output of alv
Hi All,
I have developed a report, it is displaying the output in ALV format.The list contained some 20 fields along with MATERIAL and BATCH. I have provided menu bar as extras -> ztable(it also contained MATERIAL and BATCH). But I have some issue when I select any record in the output then go to
path extras -> ztable, it has to select the record in ztable based MATERIAL and BATCH which i have selected in the output, then can you please provide solution for the above problem.
Thanks in advanceHi Dolly,
you can do this by,
data: index_rows type lvc_t_row,
index like line of index_rows.
* Get Selected rows from alv grid
clear index_rows. refresh index_rows.
"When you choose extras->ztable
call method alv_grid->get_selected_rows
importing
et_index_rows = index_rows.
* Now delete those rows from the ALV grid
loop at index_rows into index.
read table itab index index-index. "Lets say itab is the table you are displaying
if sy-subrc = 0.
perform bdc_sm30. "do simple bdc for sm30 with tab name and selected values
endif.
endloop.
Regards,
Manoj Kumar P
Edited by: Manoj Kumar on Feb 23, 2009 2:49 PM -
How to restrict the default selection of first row in ALV in Webdynpro
Hi Experts,
In webdynpro i used ALV to display the bulk amount of datas under a view container. While running it ll cme by default selection on first row. how to restrict that.....Hi Vimal,
Whenever we create nodes then by default the Initialization lead selection property of node is always checked. That why in the alv by default the first row is selected.
To restrict this default selection just unchecked the Initialization lead selection property of your node.
Regard
Manoj Kumar -
Restricting the Multiple Selection for the Standard PCH selection Screen.
Hi -
I want to Hide the Extension pushbutton for the OBJID in the PCH LDB Standard Selection Screen. How do I do that ??
Thanks,
MullaiHi,
In the screen layout, open the attributes for push button. there u find four columns of group.
Enter any text in that and write a query like this......
(if text eneterd is GR1).
Loop at screen.
if screen-group1 = 'GR1'.
screen-input = 0.
modify screen.
endif.
endloop. -
How to restrict the attribute values for the user in query designer
Hi All,
I have a requirment where certain user would see certain vailes in the query desiner of the attribute.
The requirment is we have planing material which is attribute of material
When X user want to restrict the values for planning material ,where he is able to see all the planning material.But who is not authorized for all the value.
Ex: X user has authorization for see planning material 100,101,102. of material But when he try to restrict the planning material in query designer where is getting all values of planing material.
Or
is there way to blank the restriction help.so that he can't able to see values while restricting
Please some one can advise me on it..Hi,
Let me sum up:
you have an object ZPLNMAT for the planning material
you have the object 0MATERIAL for material and this object has ZPLNMAT as attribute.
If you can restrict in the query designer, I suppose this attribute is then as navigationnal and also added in the multi-provider.
The object ZPLNMAT is checked as relevant for authorization, and you set up a role with the attached values of ZPLNMAT this user should have access to.
Are you sure the users are restricting on the ZPLNMAT object and not 0MATERIAL, because you should have everything now
PY
Maybe you are looking for
-
My Ipod 4th gen stopped charging after 5.1 Update...HELP?
After the 5.1 update, as soon as my ipod died, it has not started charging again, I have tried different cords, wall chargers, computers, you name it. I was looking at some answers before and it said to restart, hard reset and charge, but mine wont w
-
why are my movies not showing on my Mac Book, which is the computer that I used to purchase the movie, but showing on my IMAC at home...I am currently deployed so this ***** a bit. Also how do I keep this incedent from happending in the future?
-
Pls, help. Activation lock with old ID not my ID when update ios 7.0.4
i bought old iphone 4s with ios 7.0.3, i signed in my ID icloud in setting. i update ios to 7.0.4. I get activation lock with old id not my id. I can't pass activation lock my iphone, pls...help me
-
Hi All, In which case we will be required to set the "Mapping Indicator" to change the structure of message mapping field in a Receiver Agreement in ID... ? Thanks XA
-
Submitting the forms back to GP engine after downloading from email
Hi, I have a process with 2 actions. Action 1 creates an off-line interactive form from a template and sends to the processor by email. Action 2 is a visual approval. After Action 1, the recipient will download the form from email, add some more dat