User selected records
Hi,
I tried to select the user selected records from a table by useing check box, I am always getting the 2nd next record from the selected record. Suppose if user selcts record no 1 then I am getting record no 3 in to my itab. Can some one please guide me where I am doing wrong.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'CMEMO'.
DATA: lv_cnt TYPE i.
DESCRIBE TABLE gt_zprice LINES lv_cnt.
lv_cnt = lv_cnt + 2.
DO lv_cnt TIMES.
READ LINE sy-index FIELD VALUE chbox.
IF sy-index > 0 AND chbox = 'X'.
READ TABLE gt_zprice INTO gs_zprice INDEX sy-index.
IF sy-subrc EQ 0.
APPEND gs_zprice TO gt2_zprice.
CLEAR gs_zprice.
ENDIF.
ENDIF.
ENDDO.
Thanks,
Neelu.
would be issue at HIDE Command.
Use HIDE Command after write statement within loop.
see the example code :
*& Report ZHK_INTER1
REPORT ZHK_INTER1 no standard page heading
message-id ztest_msg
line-size 130
line-count 50(4).
tables: kna1.
data: begin of i_kna1 occurs 0,
kunnr like kna1-kunnr,
name1 like kna1-name1,
land1 like kna1-land1,
end of i_kna1.
select-options s_kunnr for kna1-kunnr.
start-of-selection.
select kunnr
name1
land1
from kna1 into table i_kna1
where kunnr in s_kunnr.
loop at i_kna1.
write:/ i_kna1-kunnr,25 i_kna1-name1.
hide: i_kna1-name1."kunnr.
endloop.
end-of-selection.
at line-selection.
break sy-uname.
case sy-ucomm.
when 'PICK'.
write:/ i_kna1-name1, 'list # =',sy-lsind.
endcase.
Thanks
Seshu
Similar Messages
-
Hi experts,
I have a requiement to fulfill, I have a tabular (multiple record) form where i want the user to pick the selected record using check box (property database item--> No) and only selected records will be shown on the report upon pressing a button,
e.g employees table where user want to print only the selected employees data on the report.
All ideas will be very much appreciated, (as i am trying to make a for loop for this on the button)
(unfortunately i am using form 6i).
RegardsHi guys,
sorry for adding new comment i know problem has been resolved. But i want to add something.
Problem can also bhi solved by creating the LEXICAL PARAMETER. So, in this solution no need to create table.
for example.
DECLARE
vParameter VARCHAR2(1024);
BEGIN
GO_BLOCK('BLOCK_NAME');
FIRST_RECORD;
vParameter:='AND report_field_name IN (';
LOOP
IF CHECK_BOX = 'Y' THEN
-- If the value in number
vParameter:=vParameter||:BLOCK.RECORD_ID||','; -- or any id you are using in form
-- If the value in characters
vParameter:=vParameter||'''||:BLOCK.RECORD_ID||'''','; -- or any id you are using in form
END IF;
EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
END LOOP;
vParameter:=SUBSTR(vParameter,1,LENGTH(vParameter)-1)||')';
END;
and pass this variable as parameter in report and use in report's query like this
report_query
¶meter_name
Regards,
Edited by: Ammad10786 on Mar 9, 2010 12:41 PM -
How to update records in a table based on user selection..
Hi all,
This time the above doubt is totally based on the logic of coding which I tried a lot but didn't get any solution. so atlast I come to sdn site.
please help..
The requirement is like that I have a table with 6 fields (1 primary key and other are nonkeys). If the user inputs some values in the fields on the screen, then a row will be added in the table. Upto this i have done well. but when the user want to change some value in the existing row of the table my program unable to do so. Because I couldn't get any logic to do that as there are 5 nonkey fields, so if any one field is modified then the respective row should be selected first based on the user selection and then it should be updated.
At this point I could not get any idea as it may take a lots of if conditions (I guess) to reach to that particular row.
Please help..
thanks ,
sekharHi Sekhar,
I am afraid, the whole design of your program is wrong, let me explain
Let us say you have two rows(5 non key fields) that the user wants to update and the data in these five non key fields are identical and in your program you are getting a number(which is the key) using a number range object. So you will have two entries in the table for the same data.
And on the update page when the user enters the non key fields, how will the program know(or for that matter any one of us) which record to pick, if you have two identical books and if asked for a book wouldn't you ask which one among these two do you want?
Possible Solution: Identify a possible key maintaining the integrity of the data, that is a combination of the non key fields which will help you identify a unique row and make these fields as key fields in the table.
A more costly solution(if you do not want to change the non key field keys to key fields) would be to, adding a check(using select statement) to see if the non key fields combination already exists in the Z table before inserting a record into the table.
If yes, throw a message to the user and just update the values in the table, else insert the record.
Another solution would be to, use the non key fields to generate a key(using some logic) and using this instead of the number range object.
regards,
Chen -
Is that possible to display the user selection data in the printable page?
Hi All,
I'm going to add a printablepage button on my page.
Here comes a questions.
Is that possible to display the user selection data in the printable page?
For example,
I have a table in the page,with 10 records.User select 5 of them.Can I display these 5 records in the printable page?
Please help.Hi Yannick,
Thanks a lot for the information. It worked.
The portlet data can be accessible using bindings, but parameter name can be different.
Meanwhile I have got one more scenario, where the Portlet and Task Flow placed in different pages of WCP Application. On change of data in the Portlet the application should navigate to another page where the Task Flow placed and displays selected data.
Basically I can not use any button for navigation. The navigation should happen once I do some action in Portlet.
Is this possible? If yes can you please let me know the steps?
Thanks in advance!
Somnath
Edited by: Somnath Basak on Dec 20, 2011 9:41 AM -
How to edit the selected record through a popup page
Hi, can anyone help me to handle the case ?
1) In main page, there is a datatable showing the record list. Click a commandLink in the selected record to popup a screen for user edit.
2) The data is validated and then saved into database after clicking the submit button in the popup.
3) Finally, the main page is refreshed with the latest record list.
ThanksJust like any other servlet or form-processing script. What would a mere HTML page know about "systems"? Put the URL into the form destination attribute and be done.
-
Deleting selected record in Dynamic Internal table
Hi Friends,
I want to delete selected row from a dynamic internal table. The selected entry should be deleted from Adobe and as well as Webdynpro abap.
Kindly help me how to solve this problem.
Thanks in advance.
Regards,
Phani.Hi Matthias,
Thanks a lot for responding.
In my adobe i kept a check box to delete the record. It should delete the selected ones. But right now, its deleting one by one.
I have coded following script for delete button:
IT_TIME_SHEET --> is my internal table
G_ROW_STATUS is the field to track the action performed.
var tlength = xfa.resolveNodes("IT_TIME_SHEET.DATA[*]").length;
for ( var i=0; i<tlength; i++
if(xfa.resolveNode("IT_TIME_SHEET.DATA["i"].FLAG").rawValue ==
1 )
IT_TIME_SHEET.DATA.instanceManager.removeInstance(i);
G_ROW_STATUS.rawValue = "DELETE";
In the Webdynpro abap following code I wrote:
row_count = 1.
FIELD-SYMBOLS <wa> TYPE zshr_time_sheet_time.
LOOP AT it_time_sheet ASSIGNING <wa>.
<wa>-srl_no = row_count.
row_count = row_count + 1.
ENDLOOP.
last_row = <wa>-srl_no.
DELETE it_time_sheet WHERE srl_no EQ last_row.
Suppose if two records checkboxes are selected I can loop at the internal table IT_TIME_SHEET in webdynpro and delete where checkbox is selected.
But problem is once user deletes records, adobe is deleting only one record and if i delete two records from webdynpro it looks like something wrong for the user.
Please help me how to solve this problem.
Regards,
Phani. -
User Master Records/Tables - Exporting User tables for Recovery
Hi there,
Work in the Security area ....Outside of the client export of SCC8 for user master records/roles. Is there another recommended method for saving user tables that can be re-imported on the chance of deletion of users and roles and can be selectively re-imported if needed. For instance if a particular User Grouip was deleted with X number of users, could that be re-imported by a selective means ? SU10 is handled delicately in prod when used but unwanted results still occur. Approaches appreciated ..Hi,
Try the following..
BAPI_USER_CREATE Create a User
BAPI_USER_CREATE1 Create a User
Hope that helps!
Regards,
Tanveer
<b>Please mark helpful answers</b> -
Download only selected record from ALV
Hi
I want to download only selected records from ALV output with button.
i hav to fix the button on ALV screen using &ZDL whenever user presses the button record should be downloaded.
Pl with coding
its very very urgent.Hi ,
i dont have the exact code which suits to your requirement
but declare the internal table
like
data: begin of itab occurs 0,
check type c,
fields
end of itab.
while filling the field catalog
fieldcatalog-checkbox = 'X'
for this check field.
and display the grid
now write this subroutine
*& Form USER_COMMAND
Called from within the ALV processes. Currently, '&IC1' is used
to process the hotspot and display the document 'picked' by the
user.
PV_UCOMM contains the sy-ucomm from ALV
SELFIELD is a structure that contains all the data required to
process a user selection. The following is an example
of the SELFIELD structure and sample values:
FORM USER_COMMAND USING PV_UCOMM LIKE SY-UCOMM
SELFIELD TYPE SLIS_SELFIELD.
CASE PV_UCOMM.
WHEN '&IC1'.
loop at itab where check = 'X'.
append all these records to another internal table itab1
endloop.
call function gui_download.
pass the internal table itab1 in the tables statement
and also you have to give the file path that may be static or dynamic
if dynamic you have to call the function module
f4_filename
and get the filename and pass the same value to gui_download
that will be download to the above said path
endcase.
end form.
reward points if helpful,
thanks & regards,
venkatesh -
SELECT records larger than date specified in sub query
Dear All
Thank you for your attention.
I would like to select records larger than date specified in sub query
query should be something like the following
SELECT my_order_number, my_date, my_task
FROM MYTB
WHERE my_order_number IN order_no AND my_date > date (SELECT order_no, date FROM MySubQueryResult)
(it is incorrect)
Sub query result:
order_no | date
A1 | 2014-12-21 09:06:00
A2 | 2014-12-20 09:07:00
A3 | 2014-12-20 08:53:00
A4 | 2014-12-20 08:57:00
MYTB:
my_order_number | my_task | my_date
A1 | T1 | 2014-12-21 09:06:00
A1 | T2 | 2014-12-22 10:01:00
A2 | T1 | 2014-12-20 09:07:00
A3 | T2 | 2014-12-20 08:53:00
A3 | T4 | 2014-12-21 09:30:00
A3 | T8 | 2014-12-23 20:32:00
A4 | T6 | 2014-12-20 08:57:00
expected result:
my_order_number | my_task | my_date
A1 | T2 | 2014-12-22 10:01:00
A3 | T4 | 2014-12-21 09:30:00
A3 | T8 | 2014-12-23 20:32:00
Any ideas? Thanks.
swivanHi,
try this
SELECT my_order_number, my_date, my_task
FROM MYTB
WHERE my_order_number IN (SELECT order_no FROM MySubQueryResult)
AND my_date > (SELECT date FROM MySubQueryResult)
Alternatively, you can also make use of joins to achieve the same.
Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
Praveen Dsa | MCITP - Database Administrator 2008 |
My Blog | My Page
Dear Praveen Dsa
Thanks for your reply, but order_no and date are paired and related, cannot separate.
each order have its own date, so it is not working
Best Regards
swivan -
User Master Record : Which table the Email Id stored?
Hi All,
Which table and what is the field the Email id stored in.
I checked the USR02 and some other tables and I did't find it.
Thanks.
Rgds,
Raj.>
John Navarro wrote:
> I run into to this problem many moons ago and the solution is to run tcode SQVI.
>
> Create a query and join the following tables (USR21 & ADR6) and use the relevant fields. I have the complete steps documented in a procedure if you need it posted on this thread.
>
> Let me know and good luck!
OK - Here it is! I forgot I got the step by step procedure on this forum
You can get the information through one more option also. In case of function module you need to execute the module again and again for each user or may be need to write a report. I would like to suggest you an alternative. That is making use of queries.
1. Go to transaction SQVI.
2. In the input field Quick View give the any name for query for example Z_EMAIL_ADD.
3. Choose create option. In the resulting pop up give description in Title field. In data source choose TABLE JOIN. Select Basis mode.
4. In the next screen choose INSERT TABLE pushbutton and in the pop up give USR21. Then again choose INSERT TABLE pushbutton and this time give ADR6.
5. Now go back using back arrow or F3.
6. Now in the new screen you will be under the tab strip List fld select.. From that entries under available filed (on right hand side) select User name in user master record and the first entry for Internet mail (SMTP) address. Now using single arrow pushbutton pointing towards left move these fields to tabstrip List fld select.
7. Now go to tabstrip selection filed. As done in step 6 move User name in user master record under it.
8. Save the changes and go back. A pop up will come asking you to save quick view Z_EMAIL_ADD. Choose yes.
9. Now execute the query. In the input field you can give one user or multiple users at a given time.
This approach is easier and time saving in my opinion and gives output in desirable format.
Regards,
-John N. -
Select records from one database and insert it into another database
Hi
I need to write a statement to select records from one database which is on machine 1 and insert these records on a table in another database which is on machine 2. Following is what I did:
1. I created the following script on machine 2
sqlplus remedy_intf/test@sptd @load_hrdata.sql
2. I created the following sql statements in file called load_hrdata.sql:
rem This script will perform the following steps
rem 1. Delete previous HR data/table to start w/ clean import tables
rem 2. Create database link to HR database, and
rem 3. Create User Data import table taking info from HR
rem 4. Drop HRP link before exiting
SET COPYCOMMIT 100
delete from remedy.remedy_feed;
commit;
COPY FROM nav/donnelley@hrp -
INSERT INTO remedy.remedy_feed -
(EMPLID, FIRST_NAME, MI, LAST_NAME, BUSINESS_TITLE, WORK_PHONE, -
RRD_INTRNT_EMAIL, LOCATION, RRD_OFFICE_MAIL, RRD_BUS_UNIT_DESCR) -
USING SELECT EMPLID, FIRST_NAME, MI, LAST_NAME, BUSINESS_TITLE, WORK_PHONE, -
RRD_INTRNT_EMAIL, LOCATION, RRD_OFFICE_MAIL, RRD_BUS_UNIT_DESCR -
FROM ps_rrd_intf_medium -
where empl_status IN ('A', 'L', 'P', 'S', 'X')
COMMIT;
EXIT;
However, whenever I run the statement I keep getting the following error:
SP2-0498: missing parenthetical column list or USING keyword
Do you have any suggestions on how I can fix this or what am I doing wrong?
Thanks
AliThis doesn't seem to relate to Adobe Reader. Please let us know the product you are using so we may redirect you or refer to the list of forums at http://forums.adobe.com/
-
Select records across multiple pages
i have a resultset of 100 records. 10 records are displayed and pagination is displayed for the users to navigate to other pages. All this is accomplished using jstl.
if the user selects 2 records on page 1, navigates to page 2 and selects 2 more records, only the records from page 2 get selected. how can the records from page 1 and page 2 get selected? how can i retain selected records between pages?
can anybody please point me to some code snippets?
Thanks,
Jayashree.u have to store some where the index of the selected records..
Shanu -
RSCCUSND (CUA: Distribution of User Master Records)
Hello Techi!
Good Day!
I have successfully configured CUA in SAP Production landscape. All
functions are working fine, except RSCCUSND (CUA: Distribution of User
Master Records).
I have created the test user in Central system and for child systems as
well with different roles, now I want to synchronize user master record
and Roles from Central system to child systems.
I executed the report RSCCUSND from the central system, selected the
required receiving System, Selected the user "test", select all the
options from Distribution list and execute it.
In SCUL I am getting "Distribution Unconfirmed" status for the said
user, as well as the user status is as it is in SU01 (both in child and
Central system)
I am using ECC6 SR3, SAP_Basis release 7.
Pls. advice how to resolve it .
Regards
Saqib AyubI think you missed the concept a bid:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bf/b0b13bb3acd607e10000000a11402f/frameset.htm
Normally with CUA you can only assign profiles in the maser.
Can you check this page again?
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/b1b13bb3acd607e10000000a11402f/frameset.htm
then
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/cc/50b43be7492354e10000000a114084/frameset.htm
In the child there should be a X un table USBAPILINK ( this will avoid creating users in the child system)
RSCCUSND you normally don't have to use: this is if you by accident loose you master and you have to send some data again
Also read this: http://www.sdn.sap.com/irj/sdn/crphelp#section17
Good luck
Edited by: Nico Bresseleers on Nov 19, 2009 7:22 AM -
How to write jsp select record from Oracle divide per page , about 50 reco
Dear Expert,
How to write jsp select record from Oracle divide per page , about 50 record per page.
Thank you very much.I wish I could, but there is no single sign on module available for Fusion, also, so called Fusion is yet another Word With Big Letters, behind it there is yet another OC4J ( now Oracle switched to Weblogic though) container with bunsh of Oracle apps residing in it.
Generally speaking, neither Fusion nor Oracle Apps user database does not have any single authentication module available out of the box to integrate user database.
It's a long sad story running straight from Oracle Apps 11.0.5.
That's why I've created JAAS single sign on login module and used it ever since at OC4J 10.2 and onwards at OC4J 10.3
Back to the topic: to develop Apps and test them externally using the session bean I've isted above, one need to copy certain libraries from Oracle Apps server, then add them as libraries for JDeveloper project.
Here is the complete list:
oracle.apps.fnd.cache
oracle.apps.fnd.cache
oracle.apps.fnd.common
oracle.apps.fnd.functionSecurity
oracle.apps.fnd.metadata
oracle.apps.fnd.security
oracle.apps.fnd.util
oracle.apps.jtf.cache
oracle.apps.jtf.security
Edited by: Faceless on Nov 26, 2009 3:04 AM -
Disabling a Filter on user selection
HI,
I have two columns of which one is a flag (y/n) and another is a date . i want the user to see the report containing both these columns filtered on the basis of Flag .i.e. when a user opens that report he should see all the values corresponding only to 'flag='y' . I also want the user to view reports on the basis of a date which he chooses from the calendar . I have implemented the same using a calendar prompt on the 'date ' column. The challenge is that whenever a user chooses any date , he shud also be able to view records for flag=N' . i/e. the flag filter should get disabled on his selectioN.
Can anybody help me out if its possible ?Hi,
If I am understanding you right, you can try the below option:
In your report, currently there would be a static filter on flag='Y', but you need to include both 'Y' and 'N' flag values in filter when user selects a particular date on dashboard. If this is what you are looking for then, assign a presentation variable to the date column in the dashboard prompt (say varDate). Next in your report, add another filter. This filter would apply flag='N' clause in case if date is selected in the prompt. Hence in your report you should have filters like one given below :
FlagColumn = 'Y'
OR
FlagColumn = case when '@{varDate}{1900-01-01}' <> '1900-01-01' then 'N' end
Thanks
Maybe you are looking for
-
Static PAT problem on ASA 7.2
Here are the relevant parts of my config: interface Vlan1 nameif inside security-level 100 ip address 172.18.67.1 255.255.255.0 interface Vlan2 nameif outside security-level 0 ip address 71.x.x.x 255.255.255.0 interface Ethernet0/0 switchport access
-
I have the iPhone 5 and iPad 3. I will travel to Europe and would like to know if I need a current covertidor 220-110 for my equipments. I have an adapter, but that did not change the flow and do not want to risk it. Thank you.
-
CCMS - alert notifications through mail
HI All, We have configured CCMS in our Landscape . Everything is working fine. But now we have a new requirement to add some receiptents in CC list of alert mails. I have included all the receioptents list in alert category. But my question is how d
-
Af:inputDate Customization
hi there, i'm using ADF with JDeveloper 11.1.1.3 and WebLogic 10.3 (Oracle 11g), can i remove seconds from af:inputDate here is my code : <af:inputDate id="fromDate1" label="#{screenLabels.START_DATE_TIME}" shortDesc="#{screenLabels.START_DATE_TIME}"
-
Suggestion: Clearly warning presented in Software Update
After having had two nightmare experiences of my own in 10.4 using the "Software Update" facility to update my system, and given the apparently large corpus of users out there having similar (and worse) problems, I would very politely suggest to Appl