Using WRITE statement to get --- Page : 1 of 10
I rcv some answer yesterday about the page no,
Re: Using WRITE statement to get --- Page : 1 of 10
but actually I wanted to write the page no on top-of page in a ALV report....
how can i achieve that, that anyone with more concrete answer..more examples....
Thanks..
Hi,
Did you check this:
printing page numbers in report
Eddy
Similar Messages
-
WRITE STATEMENT IS GETTING EXECUTED BUT NOT GETTING DISPLAYED
HII All,
i hv created a selection screen with push button. Now when i m clicking that pushbutton, output is not getting displayed..when i debug program ,control enters in switch case and also executes write statement but write statement is not getting displayed.. below is the code ..
SELECTION-SCREEN BEGIN OF BLOCK INPUT WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN PUSHBUTTON 10(20) TEXT-002 USER-COMMAND FIR.
SELECTION-SCREEN PUSHBUTTON 35(20) TEXT-003 USER-COMMAND SECOND.
SELECTION-SCREEN END OF BLOCK INPUT.
WA-EMP_NO = 123.
WA-EMP_CO = 'A'.
WA-EMP_N = 'APOORV'.
APPEND WA TO IT_TAB.
AT SELECTION-SCREEN.
CASE SY-UCOMM.
WHEN 'FIR'.
PERFORM SUB1.
WHEN 'SECOND'.
APPEND LINES OF IT_TAB FROM 2 TO 3 TO IT_TAB1.
WRITE:/ 'SECOND INTERNAL TABLE CONTENTS'.
LOOP AT IT_TAB1 INTO WA1.
WRITE:/15 SY-TABIX, WA1-EMP_NO NO-ZERO, WA1-EMP_CO, WA1-EMP_N.
ENDLOOP.
ENDCASE.
FORM SUB1.
LOOP AT IT_TAB INTO WA.
WRITE:/ SY-TABIX, WA-EMP_NO NO-ZERO, WA-EMP_CO, WA-EMP_N.
ENDLOOP.
ENDFORM.
Plz help me..
Edited by: Julius Bussche on Jan 29, 2009 1:40 PM
Code tags added and please dont use Caps-Lock.HI,
SELECTION-SCREEN BEGIN OF BLOCK INPUT WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN PUSHBUTTON 10(20) TEXT-002 USER-COMMAND FIR.
SELECTION-SCREEN PUSHBUTTON 35(20) TEXT-003 USER-COMMAND SECOND.
SELECTION-SCREEN END OF BLOCK INPUT.
WA-EMP_NO = 123.
WA-EMP_CO = 'A'.
WA-EMP_N = 'APOORV'.
APPEND WA TO IT_TAB.
* AT SELECTION-SCREEN. "Comment this
START-OF_SELECTION. " Add this
CASE SY-UCOMM.
WHEN 'FIR'.
PERFORM SUB1.
WHEN 'SECOND'.
APPEND LINES OF IT_TAB FROM 2 TO 3 TO IT_TAB1.
WRITE:/ 'SECOND INTERNAL TABLE CONTENTS'.
LOOP AT IT_TAB1 INTO WA1.
WRITE:/15 SY-TABIX, WA1-EMP_NO NO-ZERO, WA1-EMP_CO, WA1-EMP_N.
ENDLOOP.
ENDCASE.
FORM SUB1.
LOOP AT IT_TAB INTO WA.
WRITE:/ SY-TABIX, WA-EMP_NO NO-ZERO, WA-EMP_CO, WA-EMP_N.
ENDLOOP.
ENDFORM. -
How to use Write statement along with ALV output
Hi expert,
currently i have a requirement where i am first displaying message with write statement and after that ALV should be displayed ...something like below:
vendor number is wrong.
material number is wrong.
plant is wrong.
and then here ALV output -list of records updated in the database.
but as of now the ALV is shown first and when going back then the write message information is dispayed.
can anyone help how we can get this in only one screen?
Thanks!!!
RajeshMay below example give you some idea.
TYPE-POOLS: slis.
DATA: BEGIN OF it_kna1 OCCURS 0,
kunnr TYPE kna1-kunnr,
name1 TYPE kna1-name1,
ort01 TYPE kna1-ort01,
END OF it_kna1.
DATA: it_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
START-OF-SELECTION.
SELECT kunnr name1 ort01
FROM kna1 INTO TABLE it_kna1 UP TO 10 ROWS.
END-OF-SELECTION.
WRITE:/ 'Write Statement Display' HOTSPOT ON.
AT LINE-SELECTION.
CLEAR it_fcat.
it_fcat-fieldname = 'KUNNR'.
it_fcat-tabname = 'IT_KNA1'.
it_fcat-seltext_l = 'Customer'.
APPEND it_fcat.
CLEAR it_fcat.
it_fcat-fieldname = 'NAME1'.
it_fcat-tabname = 'IT_KNA1'.
it_fcat-seltext_l = 'Customer Name'.
APPEND it_fcat.
CLEAR it_fcat.
it_fcat-fieldname = 'ORT01'.
it_fcat-tabname = 'IT_KNA1'.
it_fcat-seltext_l = 'City'.
APPEND it_fcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_fieldcat = it_fcat[]
TABLES
t_outtab = it_kna1[]. -
Hi,
I need help ,my problem is
i am taking 2 inputs(co-ordinates in the screen) from the user like (5,10) and (10,20)
and now i want to draw a straight line between these two co-ordinates.HI
PLEASE GO THROUGH THE LINKS
<a href="http://72.14.203.104/search?q=cache:Hjt7oMkDiecJ:help.sap.com/saphelp_nw04/helpdata/en/9f/db9e5735c111d1829f0000e829fbfe/content.htmDRAWALINEIN+ABAP&hl=en&gl=in&ct=clnk&cd=2">Blank Lines and Drawing Lines</a>
<a href="http://cma.zdnet.com/book/abap/ch15/ch15.htm#DisplayingtheAvailableSymbolsIconsandlinedrawCharacters">Line-draw Characters</a>
IF THIS FINDS USEFUL PLEASE REWARD POINTS
REGARDS
ANOOP -
Write a statement in perticular row using "WRITE"..
Hi All,
I want to write a perticular column in a perticular row using write statement... Is it possible?
Or any alternative way is available.?
Any body can help me...
Ranjith KHi Ranjith,
1. What u are asking for is something like this :
write (5,10) 'hello'.
where 5 = row number
10 = column number.
2. But in ABAP
there is no such facility.
3. THE REASON IS :
All such write sattements,
work like PRINTER :
Just as in Printer,
We FIRST HAVE TO REACH TO THE 5TH LINE,
ONE BY ONE,
(WE CANNOT DIRECTLY PRINT ON A PARTICUALR ROW,COL)
4. Simillarly in ABAP write,
we have to FIRST REACH THAT LINE
EITHER USING WRITE,SKIP
ONLY THEN WE CAN WRITE SOMETHING.
5. WE CANNOT DIRECTLY JUMP TO THAT LINE
(SOME THING HAS TO BE PRINTED/SKIPPED/WRITTEN)
6. See below code (just copy paste in new program)
7. report abc.
write :/ 'Line 1'.
write :/ 'Line 2'.
write :/ 'Line 3'.
write : 15 '15'.
write : 30 '30'.
write :/ 'Line 4'.
write :/ 'Line 5'.
write :/ 'Line 6'.
write : 15 '15'.
write : 30 '30'.
regards,
amit m. -
To bold a Statement using Write Option
Hi,
Hi I have a simple requirement i want to bold a statement using Write Statement in a simple report.
Hope this describes the problem.
Thanks
SandipanHi,
REPORT demo_list_format_color_1.
DATA i TYPE i VALUE 0.
DATA col(15) TYPE c.
WHILE i < 8.
CASE i.
WHEN 0. col = 'COL_BACKGROUND '.
WHEN 1. col = 'COL_HEADING '.
WHEN 2. col = 'COL_NORMAL '.
WHEN 3. col = 'COL_TOTAL '.
WHEN 4. col = 'COL_KEY '.
WHEN 5. col = 'COL_POSITIVE '.
WHEN 6. col = 'COL_NEGATIVE '.
WHEN 7. col = 'COL_GROUP '.
ENDCASE.
FORMAT INTENSIFIED COLOR = i.
WRITE: /(4) i, AT 7 sy-vline,
col, sy-vline,
col INTENSIFIED OFF, sy-vline,
col INVERSE.
i = i + 1.
ENDWHILE. -
How to display output without fieldnames in write statements
hi,
can any one tell how to get output with all fields values of a table without writing fieldnames in write statement.
giv proper code for this task.Thaks in advance.hiii
if you want to write just values then you can use write statement only ..no need to do anything else.simply write as follows
LOOP AT t_customer INTO fs_customer.
WRITE:/ fs_customer-customer_no,
fs_customer-customer_name,
fs_customer-customer_amount.
ENDLOOP
reward if useful
thx
twinkal -
hi everybody,
how to use collect statement to get the total amount paid to different vendor payments
data : begin of wa occurs 0,
bukrs type bsak-bukrs,
lifnr type bsak-lifnr,
land1 type lfa1-land1,
name1 like lfa1-name1,
dmbtr like bsak-dmbtr,
count type i value 0,
tot_vend type i,
vend type i.
data :end of wa.
data : itab like table of wa.
select distinct bukrs lifnr waers from bsak into
corresponding fields of wa
where bukrs in s_bukrs
and lifnr in s_lifnr
and bschl in s_bschl.
i want the total amount paid according to vendor i am using this way but i am not getting
loop at itab into wa.
wa-dmbtr = bsak-dmbtr.
collect wa-dmbtr into itab.
modify itab from wa transporting dmbtr.
i am unalbe to get it
can anybody help me regarding this if possible with example.
thanks in advance,
regards,
venu.Hi Venu,
types: BEGIN OF ty,
NAME(20),
SALES TYPE I,
END OF ty.
data : itab type standard table of ty,
itab1 type standard table of ty,
wa type ty,
wa1 type ty.
wa-NAME = 'Duck'. wa-SALES = 10.
append wa to itab.
wa-NAME = 'Tiger'. wa-SALES = 20.
append wa to itab.
wa-NAME = 'Duck'. wa-SALES = 30.
append wa to itab.
loop at itab into wa.
wa1 = wa.
collect wa1 into itab1.
endloop.
loop at itab1 into wa1.
write : / wa1-name , wa1-sales.
endloop.
COLLECT is used to create unique or compressed datsets. The key fields are the default key fields of the internal table itab .
If you use only COLLECT to fill an internal table, COLLECT makes sure that the internal table does not contain two entries with the same default key fields.
<b>If, besides its default key fields, the internal table contains number fields (see also ABAP/4 number types ), the contents of these number fields are added together if the internal table already contains an entry with the same key fields.</b>
If the default key of an internal table processed with COLLECT is blank, all the values are added up in the first table line.
In the program you mentioned yesterday,I am not able to get the logic since many lines are commented. -
Hi all,
I am using return statement in JSP page after a redirect to stop executing that page. If the data bean is not present then it must go to previous page. When this return statement is executed the previous page is displayed but url in browser remains same. Why it is so ?. Is there any other way to tell a JSP page to stop executing and redirect to another page.
rgds
Antony PaulHi Antony,
do you use the "forward()" method or the "redirect()" method???
rgds
Howy -
Hi Guys,
I have a internal table with data like below.
PALNO TKNUM
0000001144-01-1 /5 |0000001144|
0000001144-01-1 /5 |0000001144|
0000001144-01-1 /5 |0000001144|
0000001144-01-1 /5 |0000001144|
0000001144-01-2 /5 |0000001144
0000001144-01-2 /5 |0000001144|
0000001144-01-3 /5 |0000001144|
I want to use write statement for displaying these values seperatly to identity palet(PALNO) wise..
when palno is same I want write statement to display as follows
PALNO TKNUM
0000001144-01-1 /5 |0000001144|
0000001144-01-1 /5 |0000001144|
0000001144-01-1 /5 |0000001144| For same PALNO
0000001144-01-1 /5 |0000001144|
SKIP 2 Lines.
PALNO TKNUM
0000001144-01-2 /5 |0000001144| For same PALNO
0000001144-01-2 /5 |0000001144|
SKIP 2 Lines
PALNO TKNUM
0000001144-01-3 /5 |0000001144| For same PALNO
If this possible by write statements.
Plz let me know.
Thanks,
Prasad.Data:w_tknum like itab-tknum.
Loop at itab.
If w_tknum ne Itab-knum and sy-tabix > 1.
Skip 2.
Endif.
w_tknum ne Itab-knum.
Endloop.
Regards,
Gurpreet -
Deleting line on output screen that is written by Write statement....
Hello Gurus,
In my case there is data written on output screen. When I double click on line on ABAP report execution output screen, I want that line to be deleted from output screen.
I know I will have to write the logic at line-selection but how can I delete line that is written on screen using write statement ?
Regards,
Jainam.
Edited by: Jainam Shah on Nov 12, 2009 4:47 PMHi Jainam,
When you say AT LINE-SELECTION. It is an intercative list only.
This is not possible to delete when you double click on a record.
However I have created a small code snippet for you. But to display something on the secondary list, you have to write a WRITE statement...The code as below :-
TABLES MARA.
DATA: BEGIN OF itab OCCURS 1,
MATNR like MARA-MATNR,
MEINS LIKE MARA-MEINS,
END OF itab.
SELECT MATNR MEINS FROM MARA INTO TABLE itab.
sort itab by MATNR.
LOOP AT itab.
WRITE:/ itab-MATNR.
HIDE itab-MATNR.
ENDLOOP.
AT LINE-SELECTION.
IF sy-lsind = 1.
CLEAR itab-MATNR.
write : sy-lilli.
ENDIF.
Kindly set to resolved, if this clears you question.
Regards
Abhii... -
Using perf stat on command with ssh piping?
Does anyone familiar with perf tools in kernel?
https://perf.wiki.kernel.org/index.php/Tutorial
I want to use perf stat to get hardware events data from a command that sends data from home to a remote device.
For example:
cat file > ssh user@ipaddress "cat > newlocation/file"
perf stat cat file > ssh user@ipaddress "cat > newlocation/file"
Do you know how can I ensure that perf tools will record hardware event data during delays (over networks)... What I am worried is that perf will only measure upto pipe symbol and ignore anything else (I had this esperiance with /usr/bin/time (after which I switched to use shell time).
I could not find any information on how perf stat is working when there is a pipe in the middle of that command it will measure.
Would it be better to put command below into a sh file and then call perf stat command.sh?
cat file > ssh user@ipaddress "cat > newlocation/file"
Last edited by kdar (2012-06-26 03:22:05)The other command that I trying to use is actually using compression over network..
like gzip -fc file | ssh user@host "cat > /dev/null"
I guess its a better example that what I posted on the first post.... using cat
@falconindy
I could convert gzip -fc file | ssh user@host "cat > /dev/null" similar to your example without using a pipe too?
ssh user@host 'cat > /dev/null' < gzip -fc file ? or it would not work?
====
Would putting a command into cmd.sh file create overhead? (of reading a file.. etc)
Last edited by kdar (2012-06-26 15:20:59) -
If the program has a write statement at the top & the TOP-OF-PAGE
Q] We know that START-OF-SELECTION is triggered by the 1st writr statement. Now if the program has a write statement at the top & the TOP-OF-PAGE too is written explicitly which also contains write statements-----what will be the effect?
Hi,
i will order of events
see first of all initialization event gets triggred and then at selection screen triggres and then it goes to start of selection and if it found any list processing statement then it goes to top-of -page event and after executing all the statements it returns back to the start of selection event
just i will give one test case to u execute it u will know one thing
give one write statement in the initialization event and in the start of selection of give one write statement see what happns u can find different different things just try i will expalin u the concept..
plzz reward if it is useful...
plzz dont forget to reward..
if u want any concepts u can contact me on [email protected]
plzz reward -
Write Statements are not getting Displayed
Hi All,
We are going for Upgrade from 4.7 to ECC. So, in my program we have few write statements which are not getting displayed in the output. Those write statments are seen as errors in the extended check as Char. strings w/o text elements will not be translated: 'Income Tax Worksheet'.
Could any one please help me to over come this errors and Display the wite statements.
Thanks
ShashikanthHave you mapped the checked and unchecked glyphs to be used?
Check the doc and blog for check boxes.
Regards
tim -
Print write stat at end of all pages in report
Hi,
I want to print write stat at end of all pages in report.
Thanks,
Ashahi ,
u can use End-of-Page event to print write statement at ever end of the page.
for Ex:
Report ztest line-count 8(3).
start-of selection.
loop at itab...
write:/ .........
endloop.
end-of-page.
write:/ "end of page'.
revert back if any issues.
reward with points if helpful.
regards,
naveen.
Maybe you are looking for
-
I tried user: support but clicking didn't start anything. Firefox is there as is my list of bookmarks, but it is dead. Safari and even Netscape are fine. Would resetting work? I ask this because no clicking anywhere does anything at all.
-
How do I transfer my data from Palm desktop to iPhone?
How do I transfer my data from Palm desktop to iPhone? I just gave up my Treo 755p in favor of an iPhone. How do I transfer my Treo data (contacts, calendars)
-
Hi Experts I configure smb.conf file and i ran test parm and started my smbd and nmb service also i am getting given below error message when i used to connect from my XP box to solaris 10 i checked the firewall it is disabled. Error: The network con
-
Configuration of FP-Modules. In the catalog is something written about sending data on data change. There is a checkbox in the FP-Explorer but I can�t find a configuration menu in FP-Explorer to set the threshold value at which the data will be send.
-
Trouble with Firefox - Embedded .flv screws up layout
The following site was created as a photoshop .html. I created a blank box in the middle of the page that I later used Dreamweaver CS4 to remove the dummy 380x286 .jpeg and insert my 380x286 .flv in the empty table. Renders great in Safari and IE, bu