Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

issue with event on sort end in smartforms

Former Member
0 Kudos

my requirement is to display purchase order.if i give purchase number in range then header and item is display on first page on next page next po number's header and item is display and so on.for that i use two internal table in driver program and passed that table through function module. in smartforms after main area i use ebeln event sort on event and after i use command node.

but it give me dump.it show me item table unknown.can anybody pls hepl me....

Edited by: sonalgawde on Apr 16, 2010 8:09 AM

4 REPLIES 4

vinod_vemuru2
Active Contributor
0 Kudos

Hi,

Is this dump or syntax error? Is your form active?

I feel simple way could be

LOOP AT heder

LOOP AT item WHERE ebeln EQ header-ebeln.

ENDLOOP.

At LAST.

EXIT.

ENDAT.

Trigger new page.

ENDLOOP.

Convert above logic to smartform logic.

Thanks,

Vinod.

0 Kudos

hi,

form is activated. i use select query.but i dont know what wrong with item table.i send u query which i use in driver program.

data:it_ekko like zit1_dbv occurs 0 with header line.

data: wa_ekko like zit1_dbv.

data: it_ekpo like zit2_dbv occurs 0 with header line.

data: wa_ekpo like zit2_dbv.

select ebeln lifnr name1 bedat stras from zit1_dbv

into corresponding fields of wa_ekko where ebeln in pur_no.

move-corresponding wa_ekko to it_ekko.

append wa_ekko to it_ekko.

select netwr menge mblnr from zit2_dbv into corresponding fields of

wa_ekpo where ebeln eq it_ekko-ebeln.

move-corresponding wa_ekpo to it_ekpo.

append wa_ekpo to it_ekpo.

endselect.

endselect.

these header and item table are passed into tables of FM and dump is IM_EKPO is unkown.IM_EKPO is table of form interface in smarforms.

0 Kudos

Hi Sonal,

Refer the Link:

[Form Interface Unknown|;

Former Member
0 Kudos

problem solved