Output the record in list
■ Create a work area with the following fields
o EMPNO
o EMPNA
o EMPID
o EMPDA (Joining Date)
o EMPSA (Salary)
■ Initialize the EMPDA to 30/01/2008 and EMPSA to 1000
■ Populate 10 records in a DO LOOP
■ Everytime you fill up the record increment the Month and Year by one for the field EMPDA and EMPSA by 1000
■ Output the record
I don't know what is your exact requirement ..
data : begin of itab occurs 0,
EMPNO(10),
EMPNA(40),
EMPID(10),
EMPDA like sy-datum,
EMPSA type ANSAL_15,
end of itab.
itab-EMPDA = '20080130'.
itab-EMPSA = 1000.
do 10 times.
itab-pernr = <value>.
*populate all other values ...
append itab.
clear itab.
itab-EMPDA0(4) = itab-EMPDA0(4) + 1.
itab-EMPDA4(2) = itab-EMPDA4(2) + 1.
itab-EMPDA+6(2) = '30'.
(write logic for FEB ... )
itab-EMPSA = itab-EMPSA + 1000.
enddo.
loop at itab.
write :/ itab-empno , itab-empna ...
endloop.
Similar Messages
-
hi this is ravi
please help me how to code for the folling
Create a work area with the following fields
o EMPNO
o EMPNA
o EMPID
o EMPDA (Joining Date)
o EMPSA (Salary)
1. Initialize the EMPDA to 30/01/2008 and EMPSA to 1000
2. Populate 10 records in a ?DO LOOP?
3. Everytime you fill up the record increment the Month and
Year by one for the field EMPDA and EMPSA by 1000
4. Output the recordhere you go
DATA:
BEGIN OF wa,
empno TYPE i,
empna(20) TYPE c,
empid TYPE i,
empda TYPE d,
empsa TYPE i,
END OF wa.
START-OF-SELECTION.
wa-empno = 1.
wa-empna = 'My Name'.
wa-empid = 1.
wa-empda = '20080130'.
wa-empsa = 1000.
DO 10 TIMES.
WRITE:/ wa-empno,
wa-empna,
wa-empid,
wa-empda,
wa-empsa.
wa-empsa = wa-empsa + 1000.
CALL FUNCTION 'ADD_TIME_TO_DATE'
EXPORTING
i_idate = wa-empda
i_time = '13.0'
i_iprkz = '2'
* I_RDMHD =
IMPORTING
O_IDATE = wa-empda
* EXCEPTIONS
* INVALID_PERIOD = 1
* INVALID_ROUND_UP_RULE = 2
* INTERNAL_ERROR = 3
* OTHERS = 4
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Here's the output
1 My Name 1 01302008 1,000
1 My Name 1 02282009 2,000
1 My Name 1 03282010 3,000
1 My Name 1 04282011 4,000
1 My Name 1 05282012 5,000
1 My Name 1 06282013 6,000
1 My Name 1 07282014 7,000
1 My Name 1 08282015 8,000
1 My Name 1 09282016 9,000
1 My Name 1 10282017 10,000 -
I can't extracts the records in list (grid)
DECLARE
CURSOR CUR_FET IS SELECT * FROM item_reservation_temp;
t_var item_reservation_temp.t%type;
BEGIN
GO_BLOCK('item_reservation');
FIRST_RECORD;
OPEN CUR_FET;
LOOP
FETCH CUR_FET INTO T_VAR;
EXIT WHEN CUR_FET%NOTFOUND;
:item_reservation.ITEM_CODE:=SUBSTR(T_VAR,1,10);
:item_reservation.CCN:=SUBSTR(T_VAR,12,3);
:item_reservation.RESERV_QUANTITY:=SUBSTR(T_VAR,16);
NEXT_RECORD;
END LOOP;
EXCEPTION
WHEN no_data_found THEN
RAISE FORM_TRIGGER_FAILURE;
close cur_fet;
END;Declare
Cursor cur_fet
Is
Select Substr (T, 1, 10) col1, Substr (T, 12, 3) col2,
Substr (T, 16) col3
From item_reservation_temp;
cur_data cur_fet%Rowtype;
Begin
GO_BLOCK ('item_reservation');
FIRST_RECORD;
Open cur_fet;
Loop
Fetch cur_fet
Into cur_data;
Exit When cur_fet%Notfound;
:item_reservation.item_code := cur_data.col1;
:item_reservation.ccn := cur_data.col2;
:item_reservation.reserv_quantity := cur_data.col3;
NEXT_RECORD;
End Loop;
Close cur_fet;
Exception
When Others
Then
Raise form_trigger_failure;
End;Edited by: user291283 on Aug 31, 2009 9:54 PM -
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 the language is used on output condition records
What language is used on a form, if you leave the language on the output condition record blank?
Hi Mike,
Go to NACE t Code. Select V3- Billing . click on output types---select the output which your using and click on Mail title and text on left side.. ther you will find List of languages.
Regards,
Seegal -
Validate whether all the records are present in the list before writing
Hi,
I have the below code:-
List<CustomerVO> custlist = new ArrayList<CustomerVO>();
for (CustomerVO customerVO : custlist) {
try {
saveRecord(customerVO);
} catch (Exception e) {
custlist.add(customerVO);
if(){ // Here i need to compare whether all the records in the list are processed and there is no more records
// if so i wrire the all the error details at once by calling the writeErrorDetails
writeErrorDetails(frbVOlist);
Here in the if block I need compare whether all the records in the list are processed and there is no more records to process ,
if so write all the error details at once by calling the writeErrorDetails in the .TXT file.
The problem here is, how i will know whether the all the records are processed from the custList, so that I can write all of then atonce.
If the If conditional block is not there, then for each record failure a separate .txt file will be created. Hence if there are 4 failed records
then 4 .txt error file will be generated. Which should be avoided and i want to write all the 4 failed records in a single .txt file.
Hence, what may be the If condition i need to check from the list whether all the records are processed. Please , let me know your opinion.
Thanks.797836 wrote:
List<CustomerVO> custlist = new ArrayList<CustomerVO>();
for (CustomerVO customerVO : custlist) {
try {
saveRecord(customerVO);
} catch (Exception e) {Look at the following statement in the catch block.
custlist.add(customerVO);Is this correct? Why are you adding the faild record to the custlist again? I think, it should be like,
frbVOlist.add(customerVO);
if(){ // Here i need to compare whether all the records in the list are processed and there is no more records
// if so i wrire the all the error details at once by calling the writeErrorDetails
writeErrorDetails(frbVOlist);
}Call the writeErrorDetails(frbVOlist) after the end of the for loop by checking the size of the frbVOlist > 0. -
Output devices list not appearing completely in the drop down list
Hi,
I have a query where I am not able to see all the 583 output devices in the drop down list of output device for a transaction code whereas I can see all the output devices in SPAD. Can anyone tell me the reason for this?
Thanks.
BrijeshDear Brijesh,
You can show all the value, click on the restriction button, then change the max numbers of hits to 10000,then you can list all the data in drop down, as per i know in standard it will only give you 500.
Regards -
Reading text file and output (to stdout) a list of the unique words in the
Hi,
I have a main method as
main.java
package se.tmp;
public class Main
public static void main( String[] args )
WordAnalyzer.parse( args[0] );
and text file as
words.txt
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the requirement is like
I need create this WordAnalyzer class, implement the parse method, and then commit the file. This method takes a single parameter, the filename of the file to parse. The method should read this file and output (to stdout) a list of the unique words in the file along with the number of times each appears in the file.
Can anyone please help me on this?
Thanks.Where are you having problems?
-
Rows to columns/Transpose the records Query and Display output
hi ,
can anyone help me query this and transpose it to this format?
i am still a beginner in sql.
thanks for help!
Rows to columns/Transpose the records Query and Display output
id startdate endate
1111 1/2/2001 11/3/2001
1111 2/5/2002 4/3/2002
1111 2/6/2000 2/5/2001
3333 5/2/2003 11/3/2003
3333 6/2/2003 12/3/2003
3333 2/6/2005 2/5/2005
desired output
id startdate1 endate1 startdate2 endate2 startdate3 endate3
1111 1/2/2001 11/3/2001 2/5/2002 4/3/2002 2/6/2000 2/5/2001
3333 5/2/2003 11/3/2003 6/2/2003 12/3/2003 2/6/2005 2/5/2005Have you only 3 dates for each id ?
So, try :
SQL> l
1 with tbl as
2 (select 1111 as id, to_date('01/02/2001','DD/MM/YYYY') startdate, to_date('11/03/2001','DD/MM/YYYY') enddate from dual union all
3 select 1111 as id, to_date('02/05/2002','DD/MM/YYYY') startdate, to_date('04/03/2002','DD/MM/YYYY') enddate from dual union all
4 select 1111 as id, to_date('02/06/2000','DD/MM/YYYY') startdate, to_date('02/05/2001','DD/MM/YYYY') enddate from dual union all
5 select 3333 as id, to_date('05/02/2003','DD/MM/YYYY') startdate, to_date('11/03/2003','DD/MM/YYYY') enddate from dual union all
6 select 3333 as id, to_date('06/02/2003','DD/MM/YYYY') startdate, to_date('12/03/2003','DD/MM/YYYY') enddate from dual union all
7 select 3333 as id, to_date('02/06/2005','DD/MM/YYYY') startdate, to_date('02/05/2005','DD/MM/YYYY') enddate from dual )
8 select id, max(decode(dr,1,startdate)) start1,
9 max(decode(dr,1,enddate)) end1,
10 max(decode(dr,2,startdate)) start2,
11 max(decode(dr,2,enddate)) end2,
12 max(decode(dr,3,startdate)) start3,
13 max(decode(dr,3,enddate)) end3
14 from (select id, startdate,enddate, dense_rank() over (partition by id order by startdate) dr from tbl)
15* group by id
SQL> /
ID START1 END1 START2 END2 START3 END3
1111 02/06/00 02/05/01 01/02/01 11/03/01 02/05/02 04/03/02
3333 05/02/03 11/03/03 06/02/03 12/03/03 02/06/05 02/05/05
SQL> HTH,
Nicolas. -
As i am fresher Please share the doc of ECMA script using java script in SharePoint 2013 step by step also how we can insert,update,delete records in list using ECMA script.
Thanks and Regards, Rangnath MaliHi,
According to your post, my understanding is that you want to use JavaScript to work with SharePoint list.
To create list items, we can create a ListItemCreationInformation object, set its properties, and pass it as parameter to the addItem(parameters) function
of the List object.
To set list item properties, we can use a column indexer to make an assignment, and call the update() function so that changes will take effect when you callexecuteQueryAsync(succeededCallback,
failedCallback).
And to delete a list item, call the deleteObject() function on the object.
There is an MSDN article about the details steps of this topic, you can have a look at it.
How to: Create, Update, and Delete List Items Using JavaScript
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
OO4O output cursor just ruturn part of the records
Hi,
I use VB and OO4O to call an oracle stored procedure, but the output ref cursor just return part of the records, for example, I supposed to get 300 records, but it just return first 100 records.
If anyone know what is wrong and how to fix it?
Thanks for any help.
WilliamTo use an external decoder connection, your setting in the DVD player software should be to use SPDIF output, and your speaker setting should be 2 speakers. If you use the multichannel analog inputs also common on receivers, you can actually use more than 2 of your soundcard's channels.
But that's just an attempt to give you some raw material for some insight....
The digital outputs should always be acti've unless you're playing high-resolution DVD-Audio. That does tell us there's some sort of capability for forcing the digital
output off. It may be that it is being turned off when it shouldn't be. It's also
possible that something's changing AC3 bits when this shouldn't happen. All this points to some sort of corruption (a poison pill has found it's way into your registry, perhaps), or to some other misbehaving software (likely a driver if so). Did you install any new devices when you did the XP upgrade? If so, try getting updated drivers for those, first.
Then if that seems to have no effect, try removing and reinstalling the CL software, using "cleansweep" procedures for a more thorough reinstall. Otherwise, I'd start seriously considering starting over with a clean OS reinstall.
-Dave
[email protected] -
Having some issues tweaking the Blog Post List Layout to output to adobe Muse
Please see my question progression here from Muse side:
http://forums.adobe.com/message/5109260
So basically, I have watched the videos on BC Gurus and have posed the question on modifying the blog module in muse to get output I want. when I use module {module_blogsitepost} it does not show all the information I want, but when I click a url to a blog post, it jumps to another page that shows the "BLOG TITLE", "BLOG DESCRIPTION", "RECENT POST", TAGS, and "ARCHIVE" which I think would be helpful on the main {module_blogsitepost} module.
So, i took the tags from the "OVERALL BLOG LIST MODULE" which does have that information and pasted into the module {module_blogsitepost} which in BC under modules is Blog Post List Layout. However the output just turns to the image below:
I really do not know what I am doing wrong, if anything at all. Is this a limit of the cooperation between adobe MUSE and BC? Should not make a difference if I am copying all the HTML and passing it into the HTML view of the Module I want. Why is there not a bracket { } module for "OVERALL BLOG LIST MODULE" on the http://kb.worldsecuresystems.com/134/bc_1345.html ?
It is strange that there are modules in BC that do not show code strings to generate the output shown on this list? Is it because this capability is limited? It is strange. Please jump over to my site ( http://furnitureassemblyservice.com/blog.html ) to see what I mean. BTW, I added the Tags Module to the site so that at least shows.
One other question.. And maybe this is a Muse question, I try to add text or objects to the side of the blog entry but they are pushed to the bottom? Not sure if I need to add this into an object with the Module and mark it up in html with a table to make that work? I ask because I am trying to monitize the blog and add banners to the side or top.
Thank you for the time.The recommended practice is to call preventDefault on the dragStart event.
-
How do I update all the records in a table from the contents of another table?
Ok some situation information, I have a pervasive database that runs our accounting software that I am pulling a product list from. I have that list stored in a table in SQL. From time to time we update the records in the pervasive database and
I want to be able to pull those changes into the SQL table. I don't want to drop the table and recreate it because if a product is no longer active in the pervasive database it will not be returned by the query (if I return all the products even the
inactive ones I will get thousands of records rather than just a few hundred) and I do not want to loose the products from the table that are now inactive.
So what I want to be able to do is pull the list from pervasive, compare it to the list that exists in SQL and update any changed records, add any new records, and leave any now missing records alone(missing from the pervasive list but present in the SQL
list). I have no trouble pulling the records from pervasive (now) but I am a little stumped on how to do the rest. I am not sure if this is a situation to use MERGE or not. I also do not really need this to be done on a regular basis as the
changes do not happen often enough for that, the ability to manually trigger it would be enough.
Any help would be appreciated.
DavidHi David,
lets say you want to go with the lookup transformation.
lets say u want to move the data from server A table A1 to Server B table B1
What you need to do is the following:
Cofigure the Lookup options as follows:
- In general -> Specify how to handle rows with no macthing entries -> "Redirect Rows to no Match Output"
- In Connection -> Set the ole db connection to the Server B and select the table B you want to lookup the values in your case the table where you want to input the changes
- In columns -> link the product column from table A to product column in table B. And do not select any rows to output.
- now your component is ready next you need to input. so when u connect your lookup to the destination component You will get an option to select which output you want to use - use "Lookup No Match Output".
this will actually just allow you to add only new items only to the table B.
Teddy Bejjani - BI Specialist @ Netways -
Change the recording level for recording with Thunderbolt-Firewire-Mixer
Hey,
I just bought a PHONIC Helix Board 24 Universal for recording some music via Firewire.
Because my IMac has no Firewire-slot, I am using a Thunderbolt-Firewire-Adapter and a Firewire 400-800 cable.
If I try to record some music it sounds really horrible.
It seems that the reason is the recording level which can be changed while using the internal micro but not with firewire-Thunderbolt.
The recording level is set on max, resulting in overmodulation and noise.
Is there any way to adujust the recording level?
Thank you in advance!
KayHello Jshen6,
Have you tried looking at the examples in LabVIEW under Hardware Input and Output>>Synchronization? The Analog Input-Synchronization.vi example shows you how to synchronize AI across multiple devices in various configurations and for various types of hardware. Would you mind listing what hardware you are using? Are all three devices taking the same data (voltage, strain, acceleration, etc)?
Jonathan L.
Applications Engineer
National Instruments -
Periodic Alert-How to send all the records returned from the SQL in a mail?
Hello all,
I have defined a Periodic Alert, my SQL query returns more than one record whenever I run it. I also defined an action to send an email with the message consisting of the output variables from the SQL. Whenever i run this alert, a mail is being sent for every single record returned from the query. But i want to send a single mail containing all the records information that my SQL query returns.
For Example: My SQL query lists all the users created on current date.
Select User_Id, User_Name into &OUTPUT1, &OUTPUT2
from fnd_users where trunc(creation_date) = trunc(sysdate)
Now i want to send a mail with all the users information from the above query, to SYSADMIN. How can this be achieved?
Thanks & Regards
chakooHi Chakoo,
If the Periodic Alert is not working as requried. You can write a simple package with 3 procedures to implement the writing output to a out file and simultaneuosly send email to multiple receiptents.
Example:
Create Package xx_pac
Create public Procedure P1
begin
Select User_Id, User_Name into &OUTPUT1, &OUTPUT2
from fnd_users where trunc(creation_date) = trunc(sysdate)
fnd_file.put_line (fnd_file.output, &OUTPUT1, &OUTPUT2);
end;
(Create private Procedure P2
begin
---Write the email package using the UTL_SMTP approch. Using this approch you can send the procedure P1 output file as an attachment to the desiginated receiptents.
end;
(Create public Procedure P3
begin
---call the procedure P1 using the "g_request_id = fnd_request.submit_request"
---Wait for the above procedure to complete using "l_conc_status := fnd_concurrent.wait_for_request" procedure.
---call the procedure P2. (When called you must provide the correct to, from address)
end;
end;
Register the Package xx_pac as a concurrent program and schedule when submit it from the request.
Regards
Arun Rathod
Maybe you are looking for
-
User had just run a payment run when it was cancelled
Hi We ran a payment run on F110, but the job cancelled because the user was set to locked by accident. No payments have processed, but the payment run icon shows the payment run is complete The log in F110 shows the payment run job was cancelle
-
Trying to understand the details of converting an int to a byte[] and back
I found the following code to convert ints into bytes and wanted to understand it better: public static final byte[] intToByteArray(int value) { return new byte[]{ (byte)(value >>> 24), (byte)(value >> 16 & 0xff), (byte)(value >> 8 & 0xff), (byte)(va
-
Satellite L755-S5368 - PrintService Error Event ID 372
I got a Toshiba Satellite L755-S5368 laptop with Windows 7 64b. I have an HP 1020 LaserJet printer with the latest HP software installed lj1020-HB-pnp-win64-en.exe that I can find from HP. The printer works fine, but everytime I print something an er
-
What is AirPort Extreme?
Hey guys, i was just wondering what AirPort Extreme actually is. Looking around, i think it's just a good router that provides 802.11ac wifi and is really fast.... 1. Is the Extreme just a normal router from Apple that supports 802.11ac wifi? Nothing
-
Error TT12080: No subscriber found to swap with
Hi all, I set up active/standby replication and face with problems when duplicating data to the standby db. - I have DSN tt_twin1 on host 192.168.208.189 (active), and DSN tt_twin2 on host 192.168.208.86 (standby). - At active server: create active s