cancel
Showing results for 
Search instead for 
Did you mean: 

merge cell in smartforms

nayanlad
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

titus_thomas2
Explorer
0 Kudos

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

dhinesh_thirugnanam
Active Participant
0 Kudos

hi you have given the option of removing the line...where is this start type option in smart forms....

Answers (1)

Answers (1)

Former Member
0 Kudos

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