Second page main window not triggered
hi
i have two pages, a main window in each page.
the data in the main window of the first page is diaplaying.
But the data in the main window of the second page is not displayed.
However the other secondary windows of the second page is
getting displayed.
any reason y???????
pls reply
Generally if we copy the first page as is to second page there wont be any problem. U can just specify the next page as second page. U can not have two main windows in smart form. It should be copied from the first page or the next page for page should be first page.
If there is any other page u have, then u have to call it dynamically.
Change your form like this, and it may solve ur problem
Please check that.
Venkat.
Similar Messages
-
Smartforms : Second Page Main Window not being called
Hi All,
The smartform has 2 different pages, with totally different layout.
This also include that the Main window of both pages are different, having 2 different tables to fetch data.
The main window width sizes are the same on both the pages.
I have already used the Command node to call the second page, which it does.
The problem I am facing now is that the Secondary windows on page2 gets displayed, but the main window does not get displayed.
I have put a break-point in the code of main window of Page2. When executing this, it does not get triggered at all.
Now if I change the attribute of this main main window to secondary window and then I execute it then it gets triggered and gets displayed.
I have to keep this window as the main window as there might be chances of data overflow which should then continue printing on the next pages, therefore I cannot make it as the secondary window.
Please tell why the Main Window is not being called? (Note: Size of Main Windowin Page2 is same as main window in Page1)
I have searched the SDN already and did not find a solution to resolve this problem.
Thanks in Advance.
Regards,
Darpana.AHi All,
I have got the solution to this probelm.
In Page1 Main Window I have Table1 and a command node to Goto Page2.
Just after this command node I have added Table2 which earlier was the table in Main window of Page2.
So currently the Main window in Page2 has nothing included in it.
Anything after Command gets printed into the next page. Table2 is a part of Main Window in Page1 which gets printed into Main window of Page2.
Thanks for all your replies.
Regards,
Darpana.A
Edited by: Darpana Ahire on Aug 21, 2009 9:59 AM -
Smartform problem how to make second page main window dynamic?
Hi SAP Community,
I am facing a problem with designing a smartform. I have taken a table in the main window of the first page, and the main window length varies according to the number of entries in the table. If the records are more than that can be adjusted in the first page then the ramaining records move to the second page main window. After the second page main window i have defined a window which i have marked to get displayed after the main window, but the problem i am facing is that that the second page main window is geting overlapped with the window defined to come after it. Can any one help me with how to control the length of second page main window dynamically.
Regards,
TusharHi,
Normally, to trigger next page the main window is mandatory.
However, if the contents of main window are not sufficient enough to move over to next page then the next page would not get trigerred.
Moreover, please check whether the table of contents in the first page are also existing in the next page otherwise you need to trigger a new page by using a command.
Also please direct the next page of SECOND page to SECOND itself and check.
Regards,
Ram -
Printing text in last page main window of a script
Hi All,
I want to print some text at the bottom of last page main window.But how can we find that it is last page.I mean which condition we have to put for that.
I think the below condition like
If last-page NE ' 0'.
write : '----
'.......... will be used for printing at last page footer window.
what about main window........how to find that it is the main window of last page............
Thanks in advance ....
Regards,
Rakesh.Hi,
you can use this
IF NEXT_PAGE EQ ' 0 '.
write the text here.
ENDIF.
in the main window itself. Once all the records got printed, it will check that there is no next page. at that time, that was the end of the internal table in the mainwindow and the text will be printed.
If you want a seperate window, then also the same logic will work.
If you want a seperate window, then the output look and feel will not be so good.
I mean where ever the last record got completed, it will print the text if you put it in Main window. other wise statically it will print at a particular position where your window was placed.
Regards,
Venkatesh -
Top-of-page event is not triggered
Hi,
I have a problem with top-of-page event. I have a report that shows the results in ALV grid display. But I use "REUSE_ALV_GRID_DISPLAY" not OO alv and there is only one screen with number 1000. On the menu toolbar there is a button that prints the data of ALV in a list using "write" statement. While writing , "top of page" event is not triggered. I expect that it is triggered at the first "write" statement but isn't. Is there anyone who knows the cause of this problem?
The code is below.
Thanks.
Tables ...
TABLES : mara , makt , ekko , ekpo , zzith_yukh , lfa1 , t001w , lips ,
eket .
global variables
DATA : BEGIN OF list OCCURS 1,
zztahsk LIKE ekko-zztahsk ,
zterm LIKE ekko-zterm ,
txz01 LIKE ekpo-txz01 ,
name1 LIKE lfa1-name1 ,
menge LIKE ekpo-menge ,
meins LIKE ekpo-meins ,
fyukl LIKE zzith_yukh-zzdel_flag ,
" Yüklenmiş miktar var göstergesi ...
inco1 LIKE ekko-inco1 ,
netwr LIKE ekpo-netwr ,
waers LIKE ekko-waers ,
bedat LIKE ekko-bedat ,
zzontar LIKE ekko-zzontar ,
slfdt LIKE eket-slfdt ,
tname1 LIKE t001w-name1 ,
banfn LIKE ekpo-banfn ,
ebeln LIKE ekko-ebeln ,
ebelp LIKE ekpo-ebelp ,
lifnr LIKE ekko-lifnr ,
mtart LIKE mara-mtart ,
matkl LIKE mara-matkl ,
ekgrp LIKE ekko-ekgrp ,
matnr LIKE mara-matnr ,
eknam LIKE t024-eknam,
bukrs LIKE ekko-bukrs,
zzbltur LIKE ekko-zzbltur,
END OF list .
DATA temp LIKE list OCCURS 1 WITH HEADER LINE .
DATA total LIKE list OCCURS 1 WITH HEADER LINE .
ALV fields
TYPE-POOLS : slis.
DATA : gt_fields TYPE slis_fieldcat_alv OCCURS 1 WITH HEADER LINE .
DATA : gt_events TYPE slis_t_event.
DATA : gs_layout TYPE slis_layout_alv.
DATA : gv_title TYPE lvc_title VALUE 'Günlük Depo Sayım Miktarları'.
DATA : gt_top_of_page TYPE slis_t_listheader.
selection screen
SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001 .
*Satınalma organizasyonu
*Satınalma grubu
*Satıcı
*Tarih
*SAS no
*Dosya no
SELECT-OPTIONS:
s_bukrs FOR ekko-bukrs .
SELECTION-SCREEN SKIP .
SELECT-OPTIONS:
s_ekorg FOR ekko-ekorg OBLIGATORY MEMORY ID eko ,
s_ekgrp FOR ekko-ekgrp ,
s_lifnr FOR ekko-lifnr ,
s_ebeln FOR ekko-ebeln .
SELECTION-SCREEN END OF BLOCK a .
Define Katalog
DEFINE fill_catalog .
gt_fields-fieldname = &1.
gt_fields-tabname = &2.
gt_fields-seltext_l = &3.
gt_fields-seltext_m = &3.
gt_fields-seltext_s = &3.
gt_fields-checkbox = &4.
gt_fields-cfieldname = &5.
gt_fields-ref_tabname = &6.
gt_fields-ref_fieldname = &7.
gt_fields-edit = &8.
append gt_fields .
clear gt_fields .
END-OF-DEFINITION.
Modify Catalog
DEFINE modify_catalog .
gt_fields-seltext_m = &1 .
modify gt_fields transporting seltext_m where fieldname = &2 .
END-OF-DEFINITION .
TOP-OF-PAGE.
write 'top of page'.
PERFORM top-of-page.
start-of-selection
START-OF-SELECTION .
PERFORM get_data.
PERFORM listele .
*& Form listele .
FORM listele .
PERFORM get_events .
PERFORM alv_list_header.
PERFORM get_field_catalog USING 'LIST' .
PERFORM display_alv .
ENDFORM. " listele.
*& Form getfield_Catalog
FORM get_field_catalog USING p_tabname .
fill_catalog :
'EBELN' 'LIST' '' '' '' 'EKPO' 'EBELN' '' ,
'ZZTAHSK' 'LIST' '' '' '' 'EKKO' 'ZZTAHSK' '' ,
'ZZBLTUR' 'LIST' '' '' '' 'EKKO' 'ZZBLTUR' '' ,
'MATNR' 'LIST' '' '' '' 'MARA' 'MATNR' '' ,
'MATKL' 'LIST' '' '' '' 'MARA' 'MATKL' '' ,
'TXZ01' 'LIST' '' '' '' 'EKPO' 'TXZ01' '' ,
'NAME1' 'LIST' '' '' '' 'LFA1' 'NAME1' '' ,
'MENGE' 'LIST' '' '' '' 'EKPO' 'MENGE' '' ,
'MEINS' 'LIST' '' '' '' 'EKPO' 'MENGE' '' ,
'FYUKL' 'LIST' '' '' '' 'ZZITH_YUKH' 'ZZDEL_FLAG' '' ,
'INCO1' 'LIST' '' '' '' 'EKKO' 'INCO1' '' ,
'NETWR' 'LIST' '' '' '' 'EKPO' 'NETWR' '' ,
'WAERS' 'LIST' '' '' '' 'EKKO' 'WAERS' '' ,
'BEDAT' 'LIST' '' '' '' 'EKKO' 'BEDAT' '' ,
'ZZONTAR' 'LIST' '' '' '' 'EKKO' 'ZZONTAR' '' ,
'SLFDT' 'LIST' '' '' '' 'EKET' 'SLFDT' '' ,
'TNAME1' 'LIST' '' '' '' 'T001W' 'NAME1' '' ,
'BANFN' 'LIST' '' '' '' 'EKPO' 'BANFN' '' ,
'EKNAM' 'LIST' '' '' '' 'T024' 'EKNAM' '' .
gt_fields-ddictxt = 'M' .
MODIFY gt_fields TRANSPORTING ddictxt WHERE fieldname NE space.
modify_catalog 'Yükleme No' 'VBELN' .
modify_catalog 'Malzeme Türü' 'ZZBLTUR' .
modify_catalog 'Malzeme Tanımı' 'TXZ01' .
modify_catalog 'Satıcı' 'NAME1' .
modify_catalog 'Teslim Şekli' 'INCO1' .
modify_catalog 'Döviz Tutarı' 'ZZTOPLAM'.
modify_catalog 'Döviz Kodu' 'WAERS' .
modify_catalog 'Siparişi Veren' 'TNAME1' .
modify_catalog 'Tahmini İthalat Trh.' 'SLFDT' .
modify_catalog 'İthalata İntikal Trh.' 'BEDAT' .
modify_catalog 'Dosya Onay Tarihi' 'ZZONTAR' .
modify_catalog 'Talep No' 'BANFN' .
modify_catalog 'Dosya Sorumlusu' 'EKNAM' .
modify_catalog 'Yük.Göstergesi' 'FYUKL' .
ENDFORM. " getfield_Catalog
*& Form display_alv
text
--> p1 text
<-- p2 text
FORM display_alv .
DATA lv_repid LIKE sy-repid .
lv_repid = sy-repid .
CLEAR gs_layout.
gs_layout-zebra = 'X'.
gs_layout-colwidth_optimize = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = lv_repid
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
is_layout = gs_layout
it_fieldcat = gt_fields[]
it_events = gt_events[]
TABLES
t_outtab = list[].
ENDFORM. " display_alv
FORM set_pf_status USING iv_nodisplay TYPE slis_t_extab.
SET PF-STATUS 'STANDARD' ."excluding iv_nodisplay.
ENDFORM. " SET_PF_STATUS
FORM user_command USING iv_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE iv_ucomm .
WHEN 'PRINT' . PERFORM print_data .
ENDCASE .
ENDFORM. "USER_COMMAND
FORM get_events .
DATA: ls_event TYPE slis_alv_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = gt_events.
READ TABLE gt_events WITH KEY name = slis_ev_top_of_page
INTO ls_event.
IF sy-subrc = 0.
MOVE 'ALV_TOP_OF_PAGE' TO ls_event-form.
APPEND ls_event TO gt_events.
ENDIF.
ENDFORM. " getevents
FORM alv_list_header .
DATA: ls_line TYPE slis_listheader.
CLEAR ls_line.
ls_line-typ = 'S'.
ls_line-key = 'Satınalma Org.:'.
CONCATENATE s_ekorg-low s_ekorg-high
INTO ls_line-info SEPARATED BY '/'.
APPEND ls_line TO gt_top_of_page.
ls_line-key = 'Satınalma Grubu.:'.
CONCATENATE s_ekgrp-low s_ekgrp-high
INTO ls_line-info SEPARATED BY '/'.
APPEND ls_line TO gt_top_of_page.
ls_line-key = 'Satıcı.:'.
CONCATENATE s_lifnr-low s_lifnr-high
INTO ls_line-info SEPARATED BY '/'.
APPEND ls_line TO gt_top_of_page.
ls_line-key = 'SAS No.:'.
CONCATENATE s_ebeln-low s_ebeln-high
INTO ls_line-info SEPARATED BY '/'.
APPEND ls_line TO gt_top_of_page.
ENDFORM. " alv_list_header
FORM alv_top_of_page.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = gt_top_of_page.
ENDFORM. "TOP_OF_PAGE
FORM get_data .
DATA : BEGIN OF tr ,
menge LIKE eket-menge ,
dabmg LIKE eket-dabmg ,
END OF tr ,
zzfiilytar LIKE zzith_yukh-zzfiilytar .
*- Get data ...
SELECT *
INTO CORRESPONDING FIELDS OF TABLE list
FROM ekpo AS a
INNER JOIN ekko AS b ON bebeln = aebeln
WHERE b~ebeln IN s_ebeln AND
b~bukrs IN s_bukrs AND
b~loekz EQ space AND
b~lifnr IN s_lifnr AND
b~ekorg IN s_ekorg AND
b~ekgrp IN s_ekgrp AND
a~loekz EQ space AND
a~elikz EQ space .
LOOP AT list .
CLEAR tr .
SELECT menge dabmg
INTO tr
FROM eket
WHERE ebeln = list-ebeln AND
ebelp = list-ebelp.
tr-menge = tr-menge - tr-dabmg .
ENDSELECT.
IF tr-menge LE 0 .
DELETE list .
ELSE .
list-menge = tr-menge .
IF tr-dabmg GT 0 .
list-fyukl = '*' .
ENDIF .
SELECT SINGLE butxt INTO list-tname1 FROM t001
WHERE bukrs = list-bukrs .
SELECT SINGLE slfdt INTO list-slfdt FROM eket
WHERE ebeln = list-ebeln AND
ebelp = list-ebelp .
SELECT SINGLE name1 INTO list-name1 FROM lfa1 WHERE lifnr = list-lifnr.
SELECT SINGLE mtart matkl INTO (list-mtart,list-matkl)
FROM mara WHERE matnr = list-matnr .
SELECT SINGLE eknam INTO list-eknam FROM t024 WHERE ekgrp = list-ekgrp .
MODIFY list .
ENDIF .
ENDLOOP .
ENDFORM. " get_data
FORM print_data .
LEAVE TO LIST-PROCESSING .
NEW-PAGE NO-HEADING NO-TITLE LINE-SIZE 229 .
SET PF-STATUS SPACE .
PERFORM top-of-page .
malzeme türü 1005 ler yazdırılır
PERFORM yazdir_1005 .
malzeme türü 1005 olmayanlar yazdırılır
PERFORM yazdir_ne_1005 .
Satınalama grupları bilgisi yazdırılır
PERFORM yazdir_ekgrp .
ENDFORM. " print_data
FORM top-of-page .
WRITE : 'ÜLKER GRUBU KONSOLİDE' .
WRITE AT 40 'Sevkiyat Bekleyen Malzemeler' COLOR COL_HEADING .
WRITE : 180 sy-uname , sy-datum , sy-uzeit.
NEW-LINE .
ULINE 0(229) .
WRITE :/2 'Rapor Kodu..............:' , (10) sy-tcode .
WRITE :/2 'Satınalma Organizasyonu.:' , (10) s_ekorg-low, '/', (10) s_ekorg-high .
WRITE :/2 'Satınalma Grubu.........:' , (10) s_ekgrp-low, '/', (10) s_ekgrp-high .
WRITE :/2 'Satıcı..................:' , (10) s_lifnr-low, '/', (10) s_lifnr-high .
WRITE :/2 'Satınalma Sipariş No....:' , (10) s_ebeln-low, '/', (10) s_ebeln-high .
NEW-LINE .
ULINE 0(229) .
Başlıklar yazılır
FORMAT COLOR COL_HEADING .
WRITE :
/(10) 'SAS NO.' CENTERED,
(6) 'TAHSİS' CENTERED,
(5) 'ÖDEME' CENTERED,
(5) 'Bel.T' CENTERED,
(25) 'MALZEME' CENTERED,
(25) 'SATICI' CENTERED,
(12) 'MİKTAR' CENTERED,
(3) 'BRM' CENTERED,
(3) 'G' ,
(7) 'TES.ŞK.' CENTERED,
(16) 'DÖVİZ TUTARI' CENTERED,
(3) 'DB.' CENTERED,
(13) 'İTH.İNTK.TRH.' CENTERED,
(13) 'DOSYA ON.TRH.' CENTERED,
(10) 'TAHMİN.İTH.TRH.' CENTERED,
(20) 'SİPARİŞ VEREN' CENTERED,
(10) 'TALEP NO.' CENTERED,
(18) 'DOSYA SORUMLUSU' CENTERED.
ULINE 0(229) .
FORMAT RESET .
ENDFORM. " top-of-page
FORM yazdir_1005 .
DATA ebeln LIKE list-ebeln .
SORT list BY zzbltur matnr .
temp[] = list[] .
DELETE temp WHERE mtart <> '1005' .
LOOP AT list WHERE mtart = '1005' .
CLEAR list-netwr .
IF ebeln NE list-ebeln OR ebeln EQ space .
REFRESH total . CLEAR total .
ebeln = list-ebeln .
LOOP AT temp WHERE ebeln = list-ebeln .
list-netwr = list-netwr + temp-netwr .
CLEAR total .
total-txz01 = '*** TKNK.MLZ. TOPLAMI ****' .
total-meins = temp-meins .
total-menge = temp-menge .
COLLECT total .
ENDLOOP .
PERFORM write_list USING '1' .
LOOP AT total .
PERFORM write_list USING '2' .
ENDLOOP .
AT END OF zzbltur .
ULINE 0(229) .
ENDAT .
ENDIF .
ENDLOOP .
ENDFORM. " yazdir_1005
FORM write_list USING flag .
flag 1 1005 için yazdırma
flag 2 ise ara toplam
IF flag = '1' .
FORMAT COLOR COL_NORMAL .
WRITE :
/(10) list-ebeln ,
(6) list-zztahsk,
(5) list-zterm,
(5) list-zzbltur ,
(25) list-txz01,
(25) list-name1,
(12) list-menge,
(3) list-meins,
(3) list-fyukl,
(7) list-inco1,
(16) list-netwr,
(3) list-waers,
(13) list-bedat,
(13) list-zzontar,
(10) list-slfdt ,
(20) list-tname1,
(10) list-banfn ,
(18) list-eknam .
FORMAT RESET .
ELSEIF flag = '2' .
FORMAT COLOR COL_TOTAL .
WRITE :
/(10) '' ,
(6) '' ,
(5) '' ,
(5) '' ,
(25) total-txz01,
(25) '' ,
(12) total-menge,
(3) total-meins,
(3) '' ,
(7) '' ,
(16) '' ,
(3) '' ,
(13) '' ,
(13) '' ,
(10) '' ,
(20) '' ,
(10) '' ,
(18) '' .
FORMAT RESET .
ELSEIF flag = '3' .
FORMAT COLOR COL_TOTAL .
WRITE :
/(10) '' ,
(6) '' ,
(5) '' ,
(5) '' ,
(25) total-txz01,
(25) '' ,
(12) total-menge,
(3) '' ,
(3) '' ,
(7) '' ,
(16) total-netwr ,
(3) '' ,
(13) '' ,
(13) '' ,
(10) '' ,
(20) '' ,
(10) '' ,
(18) '' .
FORMAT RESET .
ENDIF .
ENDFORM. " write_list
FORM yazdir_ne_1005 .
DATA matnr LIKE list-matnr .
SORT list BY zzbltur matkl matnr .
temp[] = list[] .
DELETE temp WHERE mtart = '1005' .
LOOP AT list WHERE mtart <> '1005' .
Her yeni Malzeme için ara toplam yazılır
IF matnr NE list-matnr AND matnr NE space .
REFRESH total . CLEAR total .
Toplamlar alınır
LOOP AT temp WHERE matnr = matnr .
CLEAR total .
total-netwr = temp-netwr .
total-menge = temp-menge .
total-txz01 = '*** TOPLAM ****' .
COLLECT total .
ENDLOOP .
LOOP AT total . .
PERFORM write_list USING '3' .
ENDLOOP .
ULINE 0(229) .
ENDIF .
PERFORM write_list USING '1' .
matnr = list-matnr .
ENDLOOP .
Toplamlar alınır
LOOP AT temp WHERE matnr = matnr .
REFRESH total . CLEAR total .
total-netwr = temp-netwr .
total-menge = temp-menge .
total-txz01 = '*** TOPLAM ****' .
COLLECT total .
ENDLOOP .
LOOP AT total .
PERFORM write_list USING '3' .
ENDLOOP .
ULINE 0(229) .
ENDFORM. " yazdir_ne_1005
FORM yazdir_ekgrp .
DATA: BEGIN OF total OCCURS 1 ,
eknam LIKE list-eknam ,
zzbltur LIKE list-zzbltur ,
sayi TYPE i ,
END OF total .
DATA: BEGIN OF gtotal OCCURS 1 ,
eknam LIKE list-eknam ,
zzbltur LIKE list-zzbltur ,
sayi TYPE i ,
END OF gtotal .
DATA: bltur LIKE zzith_bltur OCCURS 1 WITH HEADER LINE .
DATA: len TYPE i .
DATA: wa LIKE total.
REFRESH temp .
SELECT * INTO TABLE bltur FROM zzith_bltur .
CLEAR bltur .
MOVE : 'ZZZZ' TO bltur-zzbltur , " Satır toplamı için ...
text-002 TO bltur-zztanim .
APPEND bltur .
CLEAR list .
SORT list BY eknam ebeln .
DELETE ADJACENT DUPLICATES FROM list COMPARING eknam ebeln .
LOOP AT list .
CLEAR : total, gtotal .
total-eknam = list-eknam .
total-zzbltur = list-zzbltur .
total-sayi = 1 .
COLLECT total .
total-eknam = list-eknam .
total-zzbltur = 'ZZZZ' .
total-sayi = 1 .
COLLECT total .
gtotal-eknam = text-001 .
gtotal-zzbltur = list-zzbltur .
gtotal-sayi = 1 .
COLLECT gtotal .
gtotal-eknam = text-001 .
gtotal-zzbltur = 'ZZZZ' .
gtotal-sayi = 1 .
COLLECT gtotal .
ENDLOOP .
FORMAT COLOR COL_HEADING.
ULINE AT /1(145).
WRITE :/
sy-vline , (15) 'Dosya Sorumlusu' , sy-vline .
LOOP AT bltur .
WRITE :(15) bltur-zztanim , sy-vline .
ENDLOOP .
ULINE AT /1(145).
FORMAT RESET .
total-zzbltur = '0001' .
MODIFY total TRANSPORTING zzbltur WHERE zzbltur = space .
gtotal-zzbltur = '0001' .
MODIFY gtotal TRANSPORTING zzbltur WHERE zzbltur = space .
SORT total BY eknam .
LOOP AT total .
AT NEW eknam .
WRITE :/
sy-vline , (15) total-eknam COLOR COL_HEADING ,
sy-vline .
LOOP AT bltur .
len = sy-tabix * 18 .
len = len + 3 .
CLEAR wa .
READ TABLE total INTO wa WITH KEY zzbltur = bltur-zzbltur
eknam = total-eknam .
WRITE AT len(15) wa-sayi NO-ZERO.
WRITE sy-vline .
ENDLOOP .
ENDAT .
ENDLOOP .
LOOP AT gtotal .
AT NEW eknam .
FORMAT COLOR COL_TOTAL .
WRITE :/
sy-vline , (15) gtotal-eknam ,
sy-vline .
LOOP AT bltur .
len = sy-tabix * 18 .
len = len + 3 .
CLEAR wa .
READ TABLE gtotal INTO wa WITH KEY zzbltur = bltur-zzbltur
eknam = text-001 .
WRITE AT len(15) wa-sayi NO-ZERO.
WRITE sy-vline .
ENDLOOP .
ENDAT .
ENDLOOP .
ULINE AT /1(145).
FORMAT RESET .
ENDFORM. " yazdir_ekgrpHi,
In the function use the top-of-page event as follows:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
I_INTERFACE_CHECK = ' '
I_CALLBACK_PROGRAM = 'ZRPMSLM'
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
<b> I_CALLBACK_TOP_OF_PAGE = 'TOP'</b>
Define whatever to appear in top-of page in a subroutine named TOP.
Hope this helps.
Reward if helpful.
Regards,
Sipra -
Main window of triggered page ( thr' COMMAND ) is not getting triggered.
Hi,
My requirement is as below -
I have 3 pages in smartform
FIRST page - next page of it is SECOND page
SECOND page - next page of it is SECOND page
and I have last page ( LAST_PAGE ), which is getting triggered for 1 of the condition.
Here, my main window in LAST_PAGE is not getting triggered; Can anyonw please advice on it.Hi,
If u have used Main Windows only then u can place the Command Node in First Page Itself after the command node 1to First ---> Second Page Trigger your Text nodes etc and again The Command Node 2 Second to Third based on condition else the same second page. Mainwindows will be accessed as specified in first page only .
IF secondary or other windows have been specified
Place the Command Node in the Second page and also add the Condition to the Command node the condition to get to last page.
Regards,
Vijaya Lakshmi.T -
Jumped to next page eventhough first page's main window not full
Dear All expert,
I meet a problem that my script form sheet jumped into next page even though the first page is not full.
I checked in script there is not any new-page command.
Do you have any suggestion?
appriciate your help.Hi,
There could be many reason for this.
Please check the followings.
1. Page protection command is not used.
2. size of main window
try to debug the script and find the exact reason.
Hope this will help you.
Regards,
Raj Gupta -
Safari main window not showing up in my user account when launched
Safari main window is not showing up when launched in my user account.
For some unknown reason, there must be a bug with Space and Safari as when I switch from Space 1 to Space 2 (and vice versa) I can see the Safari main window for less than 1 sec but could not fix it to show up and stay in the foreground in any of the 4 Spaces areas.
I have tried to desactivate Space or change some settings in Space but could not fix the issue.
Last but not least, Safari is working well for all other user accounts on my Mac.
I have updgraded my OS to 10.5.7 and Safari v4 last patch but I have the same issue for 1 monthHI and Welcome to Apple Discussions...
Try deleting this file. com.apple.safari.plist
/Users/YourName/Libary/Preferences. Drag that file from the Preferences folder to the Trash, empty the Trash and restart your Mac. See if that helps...
Carolyn -
Lines in the Main window not printing
Hi ,
i have created form for the Quotation .In printpreview it is showing all vertical and horizontal lines.But while printing it is not printing vertical lines and horizaontal lines in the window.Box also comming.
i am using device type : zarswin.Verify the page that u have assigned in the smartforms/scripts is the same page that ur taking ur printout on.
If the page is diff, this wud indeed happen.
Let me know.
Thanks
Nayan
Reward points if useful -
Pages/pages/pages/main.html not found
Hi all
Please accept my apologies if this is a totally daft problem.
I have a site that will have 3 main pages (for 3 different parts of
our company) all of which will have a load of sub pages. I had
thought to have the 3 main pages in the root directory, then have
all the links in a /pages directory so that the root wasn't all
clogged up. In dreamweaver, i have my links set up as:
pages/example.html - but if (after uploading to test) i am on that
page and attempt to navigate to another page within the pages
directory eg. a file which in dreamweaver has the link
pages/example2.html, i get a message saying the file
pages/pages/example2.html is not found. So I know that it's looking
for the pages directory relevant to the folder it's in, rather than
the root folder. Is there any easy way to sort this out? I am
totally new to web design, so any help would be appreciated.
Thanks
Jonjonnyozz posted in macromedia.dreamweaver
> Hi all
Howdy.
> dreamweaver, i have my links set up as:
pages/example.html - but
> if (after uploading to test) i am on that page and
attempt to
> navigate to another page within the pages directory eg.
a file
> which in dreamweaver has the link pages/example2.html, i
get a
> message saying the file pages/pages/example2.html is not
found. So
> I know that it's looking for the pages directory
relevant to the
> folder it's in, rather than the root folder. Is there
any easy way
> to sort this out?
If the links are in each file, create your links as document
relative.
If the links are in an included file, you may want to use
site root
relative.
> I am totally new to web design, so any help would be
appreciated.
Do take some time to learn the basics of HTML and CSS.
Understanding
paths is one of the required basics to Web design.
Mark A. Boyd
Keep-On-Learnin' :) -
Frame line not display in next page of main window
hi Xpert,
I am creating layout in SAP SCRIpt,it working fine only the main window of next page frame line is not display.
i m define next page as a FIRST page and writing main window of first page following coding
/: POSITION XORIGIN '0.50' CM YORIGIN '7.75' CM
/: SIZE HEIGHT '17' CM WIDTH '19.25' CM
/: BOX FRAME 10 TW
when i run the program first page are coming properly and only when i go in second page of output then main window lines not displaying.
please guide me how to solve this problem.
Regards,
pravinHi Praveen,
In that case why you have to make the main window in the first page and secondry window.
You can use it as manin window itself. Print the total amount in the main window itself in the first page. and copy that main window to the second page.
In the first page under the main window create a text. and there u print the total value and text.
Now copy the main window to the second page..only COPY DONT CREATE NEW.
In the second page now under the main window create the table to print the line items. What every u add in the second page main window it will come in the first age also in the smartforms. But it will nto get printed in the first page.After the text to print the totals call the COMMAND option and call next page in that.
Hope you got me..
Regards
Ansari -
**To branch to a new page in Smart forms after main window**
I have three pages where on second pages main window so my data many be carry on next 3, 4, pages and my requirement is to display data(like notes ) on last page after all contain of main window .that last third page is different formatting on basis of company code lets 10 different pages. On second page in main window I write u2018commandu2019 and General Attributes, Tick Go to new page in. On the Determine the new page using the list box next to the checkbox. The output of the main window will continues on the new page of third pages. I did this for my all company like (command for 10 , command for 11u2026.).BUT also on second page option of next page in General Attributes. Where in can maintain next pages entry is single...if I put blank the error comesu2026thingu2019s 1) what should I have to maintain in second page for next page.
2) how I get data from multiple page design (I design 10 pages from that I want one should display):- I used condition option in command for company still getting error .
So kindly help me for such scenario.
Edited by: nshahare on Aug 5, 2011 4:07 PMHi nshahare ,
Format the way you have asked the question, It is highly unclear what issue you are facing.
Be clear, be cool and then post(edit) the question again. we are here to help you.
BR
Dep -
Smart forms--In different pages i require two different main windows
In one smartform, I am having two pages. and two pages are having different formats
First page will print repeatedly till the completion of main window1.
Now i want to add another main window(2) to second page, it will also should print repeatedly till the completeion of main window(2).
But in first page main window contains 5 coloumns with subtotal
in second page main window contains 3 columns without subtotal
Both main windows are using same internal table.
can anybody help me in this issue.
If i copy first page main window into second page as main window with diferrent name, then it is showing blank window with out any text why?
pls hepl me
Madhavi TTry to do it like this, separate the data in internal table to two different tables, since data should be printed on two different formats...
Design two page in your smartform according to the requirment. now goto first page and set the next page as FIRST
now goto second page that you have created and set the next page as SECOND.
loop the first internal table in first page and once all the entries are finished, try to goto second page for doing this place command and tick the check box in command, goto next page and select the page as Second...
I guess this will solve your issue.
close the thread once your question is answered.
Regards,
SaiRam -
Problem in printing boxes in second page
Hi all,
I have created a form to display item information.i have designed a table with box command in main window of the first page. In this table it has to print the item data.upto this thing its ok. Now suppose if the item data extends to second page main window, then there also it has to print the item data along with the table.But in second page the table is not coming. Anybody pls help me out regarding this....
Thanks & Regards.
Laxman.P
B'lorehi laxman,
plz check that u have copied the main page in to the secound page.
if u does'nt do this thing then
place u'r mouse pointer on the first page and copy it and then past it it will create a new poge,
then u can remove the contents u dont want to print on the next page , or u can also add any thing new on the next page
i hope this will solve your problem.
buy
aashi... -
Problem in printing multiple main window in smartforms
Hi Experts,
I have requirement form client to print PO which consists of 4 page.
First page is cosists of header and some text.
In second page different header and line item.
Thirs page different header and line item.
4th page different header and line item.
I have printed tex in main window of first page and called command to trigger
second page main window, but i am getting dump.
How to print the line item in the multiple page of smartforms.
Regards,
UdupiHello ,
To print the text below are following steps which you can follow for your requirement :
1. Create the Four pages having the Main Window, but take care that Logic should be in First Page Main window only , other pages main window will be blank.
2. Create the Secondary Window in second, third & fourth page which will be same size as the main window having the text which need to be print in respective pages.
3. Logic Part - in the main window of first page fill all the data which you need to print in 1st to 4th page in different internal table. Now for example you need to print text in first page then in Main window create table having the data of 1st page.
To print data in Second page create one more table having data of secondpage and put the Command there (follow the same for next pages,)
I hope this will help you
Thanks
Romit Raina
Maybe you are looking for
-
M. DisplayPort to DVI + Generic DVI to VGA Adapter???
Does anyone know if hooking up the Apple Mini DisplayPort adapter up to a generic DVI to VGA will produce usable output? I primarily use VGA monitors, but there are a few scenarios where I do need the DVI output. Could I save $30 with this setup?
-
How to add more PDF file in to a designed form
Hi, I have already designed a form and now want to add 2 more pdf file in to the form, how can I do that. Rgds Anver
-
Need to create tree-view page.
I'm trying to create a tree-view display using Oracle JDeveloper 10g Release 3, ADF and JSF. I need to show a tree (folder names) and on a click of the last level folder to show table with File names that are related to the selected folder. Data is s
-
Hyperion 9.3.1 Installation Issue
Hi Admins, I have successfully installed and configured system 9.3.1. Everything seems to be good but with some issues. 1. I am not able to access planning through Workspace. 2. How can I create Planning application through performance management arc
-
Report to pull next call date for all equipment
Hello, Is there a report in SAP to get all the next call date for all of our equipment within our company? Thanks