on 01-04-2011 7:48 AM
Dear Experts,
Please look following details.
I have smartform layout like these.
material | data1
-
material | data2
-
Now i want layout like these
material | data1
-
| data2
-
How do i merge one multiple rows data.
Now i had done but problem is as follows.
material | data1
-
| data2
-
so how do i remove line bellow material?
regards,
Nayan Lad
Hi Nayan,
Could you explain how you have this data stored ? Is it in an internal table.
If so, you can make use of the sort functionality available for Tables and Loop.
You can sort by material and make use of the 2 events which will be automatically generated if u check them.
Event OnSortBegin and Event OnSortEnd for material.
To avoid the line, you can probably think of giving the Start type as "Append Directly". By default, "New Paragraph" is always selected.
Thus, as the text is looped, the new text appears appended to the previous text.
Regards,
Titus
Edited by: Titus_Thomas on Jan 4, 2011 1:38 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
After getting the data in to the internal table, you can do like this:
data: begin of itab OCCURS 0,
ebeln like ekpo-ebeln,
ebelp like ekpo-ebelp,
end of itab.
data: lv_ebeln like ekpo-ebeln.
select ebeln
ebelp
from ekpo
into table itab up to 10 rows.
LOOP AT itab .
if lv_ebeln <> itab-ebeln.
WRITE: / itab-ebeln, itab-ebelp.
else.
WRITE: /12 itab-ebelp.
endif.
lv_ebeln = itab-ebeln.
ENDLOOP.
Regards,
Bhaskar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.