2006 Feb 05 1:43 PM
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 K
2006 Feb 05 2:22 PM
You can combine POSITION and SKIP TO LINE statements:
DATA LINEPOS TYPE P VALUE 5.
DATA: ROW TYPE I VALUE 3.
POSITION LINEPOS.
SKIP TO LINE ROW.
WRITE 'X'.
You can combine POSITION and SKIP TO LINE statements:
DATA LINEPOS TYPE P VALUE 5.
DATA: ROW TYPE I VALUE 3.
POSITION LINEPOS.
SKIP TO LINE ROW.
WRITE 'X'.
2006 Feb 05 2:22 PM
2006 Feb 05 2:22 PM
You can combine POSITION and SKIP TO LINE statements:
DATA LINEPOS TYPE P VALUE 5.
DATA: ROW TYPE I VALUE 3.
POSITION LINEPOS.
SKIP TO LINE ROW.
WRITE 'X'.
2006 Feb 05 3:22 PM
hi Ranjith Karuvadiyil
below is the link which has the sample code for complete formatting options of write.
http://help.sap.com/saphelp_erp2005/helpdata/en/9f/db9f8c35c111d1829f0000e829fbfe/content.htm
But most of the times people are expecting the output in
ALV's .
Reward me points if this of help to you.
Regards,
Kishore Kumar Yerra.
2006 Feb 05 4:11 PM
Hi Ranjith,
you can use this combination.
<b>SKIP TO LINE 3.
WRITE: AT /OFF COL1, /OFF1 COL2.</b>
where OFF and OFF1 are offset i.e the column position.
2006 Feb 06 4:22 AM
2006 Feb 06 4:30 AM
Hi 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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |