Question regarding the default web template for queries
Hello,
I am trying to learn the default web template that is using for queries:
0QUERY_TEMPLATE_BROADCASTING70
I see that it's <bi:QUERY value="" /> is empty which is logic since the query will be inserted on runtime. My question is, where in the web template does it say that? I can't see any parameter it expects to get with the query's technical name not at the webtemplate code nor at the URL...
Roy
Roy,
I think you are mixing things. The template you are mentioning is used for queries that are executed from the query designer. It's not a web template as any other one you create for your users. So, this web template has some parts in it's code that works with the query execution. When you run a query, the system takes the query definition (made in QD) and executes it with the web template indicated for the query. This determination is made by the program that is used to run queries. You can try using RSRT transaction to debug and check how this it's done. If you want to change the default web template used by query designer to run the queries, you should do it copying any standard template, like the one you mentioned. If you don't do it, you won't get the information correct.
Hope this helps.
Regards,
Diego
Similar Messages
-
How to set the default web site for WGM users
Hi,
In Tiger server there was a place to input the URL of the default web page for all browsers when users logged into network home folders. This was really helpful and saved a bunch of bandwidth and class time. Is there any way to do this in Leopard server? If so, please point me in the right direction.
Thanks,
..TomAntonio, Thanks! That seems to have worked for Safari. However, we like Firefox too, and I tried to set that up the same way, but was told "can't find a manifest for that app". I wonder if I can copy the Safari list then alter and rename it?
...Tom -
Setting up Default web template for BeX 7.0 queries.
Hi Experts,
I am running a web-report based on a query created using Query Designer 7.0. I have a default web-template that I have been using for BeX 3.x queries [which has been created using WAD 3.X] and I tried to set the same template as default for the BeX 7.0 in SPRO>SAP Netweaver>Business Intelligence>Settings for Reporting and Analysis>BeX Web>Set Standard Web Templates>Ad Hoc Analysis.
But I can't see the changes being reflected in the web report after I made the change.I still see that the default template 0ANALYSIS_PATTERN is being used. Can we set a web template created using WAD 3.x as the default template for 7.0 Queries?If yes, do I need to do something else apart from the changes I did in SPRO?
Thanks
Arvind
Edited by: Arvind Pattabiraman on Apr 29, 2009 8:51 PMArvind,
Have you migrated your template to 7.0 ? you cannot use a 3.x template as the default for a 7.0 template... unless you are using the EP6.0 iView / ABAP stack for running your queries on the web...
Edited by: Arun Varadarajan on Apr 30, 2009 12:29 AM -
How to set default Web Template for BEx Query iViews in Portal?
Hi,
1) In SPRO you can set the Standard Web Template used, e.g. ZANALYSIS_PATTERN1.
2) I published a query to Portal and when it runs within Portal, I want it to use a different web template, say ZANALYSIS_PATTERN2.
I don't want to change the BEx Web Application Query String property for each iView to hardcode the template e.g. to "QUERY=TestQuery1&TEMPLATE=ZANALYSIS_PATTERN2"
I only want the query name in the iView
Can I set this somewhere in Portal? I tried changing the standard "BEx Web Analyzer" iView as mentioned in
http://help.sap.com/saphelp_nw70/helpdata/en/33/39fa40ee14f26fe10000000a1550b0/frameset.htm (BEx Web Application or Query as iView in the Portal)
but it still seems to take the template from SPRO even after restarting J2EEHi,
I don't think anyone is holding back knowledge, I think it's sometimes difficult to filter out "good" questions as opposed to "bad" questions...
In any case, I don't think it's possible to have different default templates, eg one for the portal and one for the "rest". I'm afraid you'll have to either change each one on the portal or use one for all.
Cheers,
Dion -
How to set default Web Template for BEx Query iViews in BI Portal?
Hi,
1) In SPRO you can set the Standard Web Template used, e.g. ZANALYSIS_PATTERN1.
2) I published a query to Portal and when it runs within Portal, I want it to use a different web template, say ZANALYSIS_PATTERN2.
I don't want to change the BEx Web Application Query String property for each iView to hardcode the template e.g. to "QUERY=TestQuery1&TEMPLATE=ZANALYSIS_PATTERN2"
I only want the query name in the iView
Can I set this somewhere in Portal? I tried changing the standard "BEx Web Analyzer" iView as mentioned in
http://help.sap.com/saphelp_nw70/helpdata/en/33/39fa40ee14f26fe10000000a1550b0/frameset.htm (BEx Web Application or Query as iView in the Portal)
but it still seems to take the template from SPRO even after restarting J2EE
(I just published this question in Portal forum but I think it belongs here instead since it is BI Portal - apologies for the double-post..)D Nore did you found the way to do it ?
I still have the issue, whatever the place where I force the template, the queries on the portal does not use my specific template.
I tried :
pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bexwebanalyzer
(this one was working before upgrade to netweaver stack 17).
as well as
pcd:portal_content/templates/iviews/sap_bw_report_iview
and
pcd:portal_content/templates/iviews/sap_bi7x_report_iview
none works !
If you have the tricks share it with us. -
How to change the default print template for broadcast PDF Export
Hi,
I have currently designed a print template for printing purposes and use this as the template for the print button(Export to PDF),if i were to click on this button the output pdf is the desired PDF. But if i were to broadcast the template with output format as PDF it picks the layout of the current template, how do i set broadcast to pick up the print template also???
Further how to insert a page break in a PDF print template.Hi Nagesh,
These setting are for
1.Adhoc Template for Queries
2. Adhoc Template for reports designed through report designer
3. Template for query precalculation
4. Template for displaying broadcasting wizard.
When we use broadcasting from query designer to email PDF's the system uses 0QUERY_TEMPLATE_BROADCAST_PDF.
From WAD the system uses the current template layout as PDF Layout.
P.S: OSS note 1054460 -<b>Depending on the BI object type and possibly other criteria, different Web templates are used in BI broadcasting to generate PDF (and PS or PCL) formats:</b>
<i>For Web templates: the Web template itself is used</i> -
Question regarding the date in MARC for a daily movement report
Hi,
I have a requirement, where i need to create a report, based on the selection screen parameters for <u>purchasing group</u> and <u>date</u> (the default is 1 minus the current date.)
The report is used to view the daily movement, relating to the selected purchasing group and date.
Where and how do i find entries for that specific date? What tables and field or fields do i use?
Points will be rewarded and all help will be greatly appreciated.
Thank You,
JohnSee the below example code :
REPORT ZQA_MOVEMENT_ANALYSIS no standard page heading.
*>>> ELEMENTS COPIED FROM REPORT BALVHT01 .
ALV
TYPE-POOLS: SLIS.
Includes
INCLUDE .
tables: mkpf, mseg, marc, mara, makt, mard.
DATA =============================================================== *
DATA: G_BOXNAM TYPE SLIS_FIELDNAME VALUE 'BOX',
G_EXPANDNAME TYPE SLIS_FIELDNAME VALUE 'EXPAND',
P_F2CODE LIKE SY-UCOMM VALUE '&ETA',
P_LIGNAM TYPE SLIS_FIELDNAME VALUE 'LIGHTS',
G_SAVE(1) TYPE C,
G_TABNAME_HEADER TYPE SLIS_TABNAME,
G_TABNAME_ITEM TYPE SLIS_TABNAME,
g_default(1) type c,
G_EXIT(1) TYPE C,
GX_VARIANT LIKE DISVARIANT,
G_VARIANT LIKE DISVARIANT.
CONSTANTS:
GC_FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
GC_FORMNAME_ITEM_EXPAND TYPE SLIS_FORMNAME VALUE 'ITEM_EXPAND',
GC_FORMNAME_user_command type slis_formname value slis_ev_user_command.
DATA: GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
GS_LAYOUT TYPE SLIS_LAYOUT_ALV,
GS_KEYINFO TYPE SLIS_KEYINFO_ALV,
GT_SORT TYPE SLIS_T_SORTINFO_ALV,
GT_SP_GROUP TYPE SLIS_T_SP_GROUP_ALV,
GT_EVENTS TYPE SLIS_T_EVENT.
DATA: G_REPID LIKE SY-REPID.
DATA: GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
data: begin of i_movement occurs 0,
matnr like mseg-matnr,
bwart like mseg-bwart,
budat like mkpf-budat,
mblnr like mseg-mblnr,
gjahr like mseg-gjahr,
shkzg like mseg-shkzg,
menge like mseg-menge,
meins like mseg-meins,
end of i_movement.
data: begin of i_mat occurs 0,
matnr like mara-matnr,
maktx like makt-maktx,
labst like mard-labst,
meins like mara-meins,
end of i_mat.
data: begin of i_output occurs 0.
include structure ZFD_MOVEMENT_ANALYSIS.
data: end of i_output.
data i_popuptext like popuptext occurs 2 with header line.
data: v_matnr like mara-matnr.
data: x_movement like i_movement.
SELECTION-SCREEN --------------------------------------------------- *
SELECTION-SCREEN BEGIN OF BLOCK period WITH FRAME TITLE text-001.
select-options: so_budat for mkpf-budat obligatory no-extension.
SELECTION-SCREEN END OF BLOCK period.
SELECTION-SCREEN BEGIN OF BLOCK org WITH FRAME TITLE text-002.
parameters: p_werks like marc-werks obligatory default '1000',
p_lgort like mard-lgort obligatory default '1000'.
select-options: so_matnr for mseg-matnr,
so_dept for marc-zzdept,
so_kostl for mseg-kostl,
so_ekgrp for marc-ekgrp.
SELECTION-SCREEN END OF BLOCK org.
SELECTION-SCREEN SKIP 1.
Variant
SELECTION-SCREEN BEGIN OF BLOCK 0 WITH FRAME TITLE TEXT-P01.
PARAMETERS: P_VARI LIKE DISVARIANT-VARIANT.
SELECTION-SCREEN END OF BLOCK 0.
INITITALIZATION ==================================================== *
INITIALIZATION.
G_REPID = SY-REPID.
G_TABNAME_ITEM = 'I_OUTPUT'.
define keyinfo
CLEAR GS_KEYINFO.
GS_KEYINFO-ITEM01 = 'MATNR'.
PERFORM E01_FIELDCAT_INIT USING GT_FIELDCAT[].
PERFORM E03_EVENTTAB_BUILD USING GT_EVENTS[].
PERFORM E04_COMMENT_BUILD USING GT_LIST_TOP_OF_PAGE[].
PERFORM E06_T_SORT_BUILD USING GT_SORT[].
PERFORM E07_SP_GROUP_BUILD USING GT_SP_GROUP[].
Set Options: save variants userspecific or general
G_SAVE = 'A'.
PERFORM VARIANT_INIT.
Get default variant
GX_VARIANT = G_VARIANT.
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
I_SAVE = G_SAVE
CHANGING
CS_VARIANT = GX_VARIANT
EXCEPTIONS
NOT_FOUND = 2.
IF SY-SUBRC = 0.
P_VARI = GX_VARIANT-VARIANT.
ENDIF.
AT SELECTION-SCREEN ================================================ *
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARI.
PERFORM F4_FOR_VARIANT.
PAI
AT SELECTION-SCREEN.
PERFORM PAI_OF_SELECTION_SCREEN.
START-OF-SELECTION ================================================= *
start-of-selection.
perform check_background_processing.
PERFORM E05_LAYOUT_BUILD USING GS_LAYOUT. "wg. Parameters
perform get_data.
perform build_report.
perform write_report.
AT LINE SELECTION ================================================== *
at line-selection.
if sy-lsind = 1.
format intensified off.
if not i_output-matnr is initial.
v_matnr = i_output-matnr.
loop at i_movement where matnr = i_output-matnr.
write: / i_movement-mblnr hotspot on,
i_movement-bwart,
i_movement-budat,
i_movement-shkzg.
if i_movement-shkzg = 'H'.
format color col_negative.
else.
format color col_positive.
endif.
write: i_movement-menge,
i_movement-meins.
format color off.
hide: i_movement-mblnr, i_movement-gjahr.
endloop.
clear i_movement.
endif.
elseif sy-lsind = 2.
set parameter id 'MBN' field i_movement-mblnr.
set parameter id 'MJA' field i_movement-gjahr.
call transaction 'MB03' and skip first screen.
endif.
==================================================================== *
top-of-page.
perform top_of_page.
top-of-page during line-selection.
read table i_mat with key matnr = i_output-matnr.
write: i_output-matnr,
i_mat-maktx,
so_budat-low, ' to ', so_budat-high.
uline.
clear: i_mat, i_output.
*& Form write_report
text
--> p1 text
<-- p2 text
FORM write_report.
Call ABAP/4 List Viewer
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = g_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_STRUCTURE_NAME =
IS_LAYOUT = gs_layout
IT_FIELDCAT = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS = gt_sp_group[]
IT_SORT = gt_sort[]
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = g_save
IS_VARIANT = g_variant
IT_EVENTS = gt_events[]
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = i_output
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " write_report
*& Form get_data
text
--> p1 text
<-- p2 text
FORM get_data.
if so_dept[] is initial and
so_matnr[] is initial and
so_kostl[] is initial and
so_ekgrp[] is initial.
i_popuptext-text = 'Please choose a department, material number,'.
append i_popuptext.
i_popuptext-text = 'cost center or purchasing group'.
append i_popuptext.
CALL FUNCTION 'DD_POPUP_WITH_INFOTEXT'
EXPORTING
TITEL = 'Please Note'
START_COLUMN = 1
START_ROW = 1
END_COLUMN = 5
END_ROW = 3
INFOFLAG = ' '
IMPORTING
ANSWER =
TABLES
LINES = i_popuptext.
Stop execution until user enters a purch group or dept.
stop.
endif.
get all materials matching selection criteria - exclude finished
materials
select kmatnr kmaktx labst meins
from ( ( ( marc as c inner join makt as k
on cmatnr = kmatnr ) INNER JOIN mard as d
on cmatnr = dmatnr ) INNER JOIN mara as a
on cmatnr = amatnr )
into table i_mat
where c~matnr in so_matnr and
c~ekgrp in so_ekgrp and
c~zzdept in so_dept and
c~werks = p_werks and
d~werks = p_werks and
k~spras = 'E' and
d~lgort = p_lgort
order by k~matnr.
if sy-subrc = 0.
read table so_budat index 1.
loop at i_mat.
get all material movements for all materials identified since
start date on date interval selected by user
select matnr bwart budat bmblnr bgjahr shkzg menge meins
appending table i_movement
from ( mseg as b INNER JOIN mkpf as a
ON bmblnr = amblnr AND
bmjahr = amjahr )
where b~matnr = i_mat-matnr and
a~budat >= so_budat-low.
endloop.
endif.
ENDFORM. " get_data
*& Form build_report
text
--> p1 text
<-- p2 text
FORM build_report.
data: x_movement like i_movement,
v_processed_inv like mseg-menge.
sort i_movement by matnr ascending
budat descending.
loop at i_movement.
if movement after end of period specified, use movement to work
backwards to inventory at end of selected period end date
if i_movement-budat > so_budat-high.
if i_movement-shkzg = 'H'.
add i_movement-menge to i_output-ending_inv.
else.
subtract i_movement-menge from i_output-ending_inv.
endif.
endif.
compute inventory at beginning of period
if i_movement-shkzg = 'H'.
add i_movement-menge to i_output-begin_inv.
else.
subtract i_movement-menge from i_output-begin_inv.
endif.
if movement in the time period specified, summarize movements by
type
if i_movement-budat >= so_budat-low and
i_movement-budat <= so_budat-high.
if i_movement-bwart+0(1) = '1'.
if i_movement-shkzg = 'S'.
add i_movement-menge to i_output-purchased_inv.
else.
subtract i_movement-menge from i_output-purchased_inv.
endif.
elseif i_movement-bwart+0(1) = '2'.
if i_movement-shkzg = 'S'.
add i_movement-menge to i_output-transferred_inv.
else.
subtract i_movement-menge from i_output-transferred_inv.
endif.
elseif i_movement-bwart+0(1) = '4'.
if i_movement-shkzg = 'S'.
add i_movement-menge to i_output-transferred_inv.
else.
subtract i_movement-menge from i_output-transferred_inv.
endif.
elseif i_movement-bwart+0(2) = '55'.
if i_movement-shkzg = 'S'.
add i_movement-menge to i_output-scrapped_inv.
else.
subtract i_movement-menge from i_output-scrapped_inv.
endif.
elseif i_movement-bwart+0(1) = '6'.
if i_movement-shkzg = 'S'.
add i_movement-menge to i_output-sold_inv.
else.
subtract i_movement-menge from i_output-sold_inv.
endif.
elseif i_movement-bwart+0(1) = '7'.
if i_movement-shkzg = 'S'.
add i_movement-menge to i_output-cycled_inv.
else.
subtract i_movement-menge from i_output-cycled_inv.
endif.
elseif i_movement-bwart+0(2) = '96'.
if i_movement-shkzg = 'S'.
add i_movement-menge to i_output-recovered_inv.
else.
subtract i_movement-menge from i_output-recovered_inv.
endif.
else.
if i_movement-shkzg = 'S'.
add i_movement-menge to i_output-other.
else.
subtract i_movement-menge from i_output-other.
endif.
endif.
endif.
Summarize data for material number and add to output list
x_movement = i_movement.
at end of matnr.
clear i_mat.
read table i_mat with key matnr = i_movement-matnr.
i_output-maktx = i_mat-maktx.
inventory at end of period = current inventory + changes since end
of period
add i_mat-labst to i_output-ending_inv.
inventory at begin of period = ending inventory + changes in
interval
add i_mat-labst to i_output-begin_inv.
build percentages for types of movements in period - the only
reason this data needs to be stored rather than computed on the
fly is for sorting of data
v_processed_inv = ( i_output-begin_inv - i_output-ending_inv )
+ i_output-purchased_inv.
if v_processed_inv <> 0.
i_output-percent_sold =
( i_output-sold_inv / v_processed_inv ) * 100 * -1.
i_output-percent_scrapped =
( i_output-scrapped_inv / v_processed_inv ) * 100 * -1.
i_output-percent_transferred =
( i_output-transferred_inv / v_processed_inv ) * 100 * -1.
i_output-percent_cycled =
( i_output-cycled_inv / v_processed_inv ) * 100 * -1.
i_output-percent_recov =
( i_output-recovered_inv / v_processed_inv ) * 100 * -1.
i_output-other =
( i_output-other / v_processed_inv ) * 100 * -1.
endif.
record material number
move i_movement-matnr to i_output-matnr.
i_output-meins = x_movement-meins.
append i_output.
clear i_output.
endat.
endloop.
clear i_movement.
ENDFORM. " build_report
FORM E01_FIELDCAT_INIT *
--> E01_LT_FIELDCAT *
FORM E01_FIELDCAT_INIT USING E01_LT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME =
I_INTERNAL_TABNAME = G_TABNAME_ITEM
I_STRUCTURE_NAME = 'ZFD_MOVEMENT_ANALYSIS'
I_CLIENT_NEVER_DISPLAY = 'X'
I_BYPASSING_BUFFER = 'X'
CHANGING
CT_FIELDCAT = E01_LT_FIELDCAT[].
ENDFORM.
FORM E03_EVENTTAB_BUILD *
--> E03_LT_EVENTS *
FORM E03_EVENTTAB_BUILD USING E03_LT_EVENTS TYPE SLIS_T_EVENT.
DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 1
IMPORTING
ET_EVENTS = E03_LT_EVENTS.
tell program which form to call for top of page event
READ TABLE E03_LT_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE
INTO LS_EVENT.
IF SY-SUBRC = 0.
MOVE GC_FORMNAME_TOP_OF_PAGE TO LS_EVENT-FORM.
APPEND LS_EVENT TO E03_LT_EVENTS.
ENDIF.
tell program which form to call for item expand event
READ TABLE E03_LT_EVENTS WITH KEY NAME = slis_ev_item_data_expand
INTO LS_EVENT.
IF SY-SUBRC = 0.
MOVE GC_FORMNAME_ITEM_EXPAND TO LS_EVENT-FORM.
APPEND LS_EVENT TO E03_LT_EVENTS.
ENDIF.
ENDFORM.
FORM E04_COMMENT_BUILD *
--> E04_LT_TOP_OF_PAGE *
FORM E04_COMMENT_BUILD USING E04_LT_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
DATA: LS_LINE TYPE SLIS_LISTHEADER.
Listenüberschrift: Typ H
CLEAR LS_LINE.
LS_LINE-TYP = 'H'.
LS_LINE-KEY: not used for this type
write sy-datum to LS_LINE-INFO.
APPEND LS_LINE TO E04_LT_TOP_OF_PAGE.
CLEAR LS_LINE.
LS_LINE-TYP = 'H'.
LS_LINE-KEY: not used for this type
LS_LINE-INFO = 'FreshDirect Product Reorder Report'.
APPEND LS_LINE TO E04_LT_TOP_OF_PAGE.
Kopfinfo: Typ S
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = TEXT-050.
LS_LINE-INFO = TEXT-010.
APPEND LS_LINE TO E04_LT_TOP_OF_PAGE.
LS_LINE-KEY = TEXT-051.
APPEND LS_LINE TO E04_LT_TOP_OF_PAGE.
Aktionsinfo: Typ A
CLEAR LS_LINE.
LS_LINE-TYP = 'A'.
LS_LINE-KEY: not used for this type
LS_LINE-INFO = TEXT-002.
APPEND LS_LINE TO E04_LT_TOP_OF_PAGE.
ENDFORM.
FORM E05_LAYOUT_BUILD *
<-> E05_LS_LAYOUT *
FORM E05_LAYOUT_BUILD USING E05_LS_LAYOUT TYPE SLIS_LAYOUT_ALV.
E05_LS_LAYOUT-F2CODE = P_F2CODE.
E05_LS_LAYOUT-ZEBRA = 'X'.
E05_LS_LAYOUT-colwidth_optimize = 'X'.
ENDFORM.
FORM E06_T_SORT_BUILD *
--> E06_LT_SORT *
FORM E06_T_SORT_BUILD USING E06_LT_SORT TYPE SLIS_T_SORTINFO_ALV.
DATA: LS_SORT TYPE SLIS_SORTINFO_ALV.
CLEAR LS_SORT.
LS_SORT-FIELDNAME = 'MATNR'.
LS_SORT-TABNAME = G_TABNAME_ITEM.
LS_SORT-SPOS = 1.
LS_SORT-UP = 'X'.
APPEND LS_SORT TO E06_LT_SORT.
ENDFORM.
FORM E07_SP_GROUP_BUILD *
--> E07_LT_SP_GROUP *
FORM E07_SP_GROUP_BUILD USING E07_LT_SP_GROUP TYPE SLIS_T_SP_GROUP_ALV.
DATA: LS_SP_GROUP TYPE SLIS_SP_GROUP_ALV.
CLEAR LS_SP_GROUP.
LS_SP_GROUP-SP_GROUP = 'A'.
LS_SP_GROUP-TEXT = TEXT-005.
APPEND LS_SP_GROUP TO E07_LT_SP_GROUP.
ENDFORM.
FORM TOP_OF_PAGE *
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
data v_repid like sy-repid.
write: / sy-datum, sy-uzeit,
100 'FreshDirect Material Movement Type Analysis Report'.
show parameters chosen on selection screen in header
v_repid = sy-repid.
CALL FUNCTION 'Z_WRITE_SELECTION_SCREEN'
EXPORTING
REPID = v_repid
EXCEPTIONS
REPORT_NOT_FOUND = 1
OTHERS = 2.
write column headings
format color col_heading.
write: /(18) 'Material #',
(40) 'Description',
(16) ' Beginning Inv.',
(16) ' Purchased',
(16) ' Available Inv.',
(16) ' Ending Inv.',
(16) ' Processed Inv.',
(25) ' Sold',
(25) ' Scrapped',
(25) ' Transferred',
(25) ' Cycle Counted',
(25) ' Other'.
format color off.
uline /1(278).
ENDFORM.
FORM F4_FOR_VARIANT *
FORM F4_FOR_VARIANT.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
IS_VARIANT = G_VARIANT
I_SAVE = G_SAVE
I_TABNAME_HEADER = G_TABNAME_HEADER
I_TABNAME_ITEM = G_TABNAME_ITEM
it_default_fieldcat =
IMPORTING
E_EXIT = G_EXIT
ES_VARIANT = GX_VARIANT
EXCEPTIONS
NOT_FOUND = 2.
IF SY-SUBRC = 2.
MESSAGE ID SY-MSGID TYPE 'S' NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
IF G_EXIT = SPACE.
P_VARI = GX_VARIANT-VARIANT.
ENDIF.
ENDIF.
ENDFORM.
*& Form PAI_OF_SELECTION_SCREEN
text
FORM PAI_OF_SELECTION_SCREEN.
IF NOT P_VARI IS INITIAL.
MOVE G_VARIANT TO GX_VARIANT.
MOVE P_VARI TO GX_VARIANT-VARIANT.
CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
EXPORTING
I_SAVE = G_SAVE
CHANGING
CS_VARIANT = GX_VARIANT.
G_VARIANT = GX_VARIANT.
ELSE.
PERFORM VARIANT_INIT.
ENDIF.
ENDFORM. " PAI_OF_SELECTION_SCREEN
*& Form VARIANT_INIT
text
--> p1 text
<-- p2 text
FORM VARIANT_INIT.
CLEAR G_VARIANT.
G_VARIANT-REPORT = G_REPID.
ENDFORM. " VARIANT_INIT
INCLUDE ZQA_UTILITY_INCLUDE.
***INCLUDE ZQA_UTILITY_INCLUDE .
*& Form display_popup_message
text
--> p1 text
<-- p2 text
form display_popup_message using x_text1
x_text2.
data: int_popuptext like popuptext occurs 2 with header line.
int_popuptext-text = x_text1.
append int_popuptext.
int_popuptext-text = x_text2.
append int_popuptext.
call function 'DD_POPUP_WITH_INFOTEXT'
exporting
titel = 'Please Note'
start_column = 1
start_row = 1
end_column = 5
end_row = 3
tables
lines = int_popuptext.
endform. " display_popup_message
*& Form upload_data_file
text
-->P_int_INPUTDATA text
form upload_data_file tables x_inputdata
using x_filename like rlgrap-filename.
clear x_inputdata.
refresh x_inputdata.
file on UNIX app server
if x_filename+0(1) = '/'.
open dataset x_filename for input.
if sy-subrc <> 0.
perform display_popup_message using 'Error opening file'
x_filename.
stop.
else.
do.
read dataset x_filename into x_inputdata.
if sy-subrc <> 0.
exit.
endif.
append x_inputdata.
clear x_inputdata.
enddo.
endif.
close dataset x_filename.
else.
file on local PC of GUI
call function 'UPLOAD'
exporting
filename = x_filename
filetype = 'ASC'
tables
data_tab = x_inputdata
exceptions
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
guint_refuse_filetransfer = 6
others = 7
if sy-subrc <> 0.
perform display_popup_message using 'Error opening file'
x_filename.
stop.
endif.
endif.
endform. " upload_data_file
*& Form check_background_processing
text
--> p1 text
<-- p2 text
form check_background_processing.
endform. " check_background_processing
Reward Points if it is helpful
Thanks
Seshu -
Default Web Template for port 8001
Hi,
We are using single sign on with EP and BI. When I execute my queries port 8001 is used. I really like the standard template that is shown but need to add a couple of buttons. What template is this and how do i hook it up to use my modified version as the standard? It doesn't look like 0Analsys_Pattern.
http://erppbi01.erp.co.marin.ca.us:8001/sap/bw/BEx?sap-language=EN&bsplanguage=EN&cmd=ldoc&QUERY=ZMOMVACT01&VARIABLE_SCREEN=X
thanks
heatherHi Aleksi,
Pls. see if this helps you...
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/help/sdn_nw04/saphelp_nw04/helpdata/en/f9/7f12403dbedd5fe10000000a155106/content.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/library/biw/2.0/2.0bReportingAgentincl.PrecalculatingWebTemplates.pdf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/help/sdn_nw04/saphelp_nw04/helpdata/en/fe/1f813b310c4a0ee10000000a114084/content.htm
Thanks,
Raj -
How to define a standard web template for a specific group of queries?
Hello experts,
I had to enhance the standard web template 0ADHOC and saved it as ZADHOC.
Then in SPRO t-code I defined it as the standard web template. The problem is: it started to be the standard web template for all the company queries.
Is there a way to define it as standard only for the queries of my project? Like adding some parameter in the web link only for my project queries?
Thanks in advance,
HelderI have figured out how to slice it up myself, however it appears as though I have to do it all manually, drawing each box myself.
Yes, that's how it will have to be. There is no pertinent slicing in the PSD.
This will result in either ALLOT of work making sure that each box is perfectly aligned with the one before it, or uneven slices.
I am obviously doing something wrong.
Yes, you are not using guides. You know, those cute turqoise lines of which the document already has a few when opening it...
As for everything else - the template is simply rubbish. It's poorly organized and mostly unsuitable for building a website template right off the bat. Your work needs to start there by properly grouping items to mimic button states and then exporting them in two passes. And then there's things like this large dummy text etc. that simply don't make sense. Anyway, even if it sounds liek the same record over again: The biggest failure of any such work is to assume that PS could even spit out a working web page. All a web designer would use it for is to extract the graphical elements, but teh rest would stil lbe designed properly with standards compliance in mind in a web design app...
Mylenium -
Fix table header line of Query in default web template WAD 7.0
Dear all,
I would appreciate if somebody could help me to set parameters to fix the header line of a Web-Item DataProvider (Query) in the default web template 0ANALYSIS_PATTERN for the BEx Web Analyser. I mean I want to see the header line with the characteristics and key figures description even if I scroll down in the query.
My idea was to create a second frame in the template and to fill it with the same DataProvider just with the header of the Query. The problem is that the performance of the query would be badder if we load two Dataprovider/Query instead of one.
Many thanks in advance for your answer and help!!!
Best regards
AbdelHi Dion,
Thank you very much for your answer! I have tried to find a paramter in the web application designer to do that, but without success. Now I have included a new container with the same Analysis Web Item, but it does not function! May you have a better idea??
Thank you very much in advance for your help. I'll also post my question in a BI-Forum as you suggested.
Best Regards
Abdel -
What is the STANDARD Web Template in BI 7.0?
Hello guys,
Do you know what is the Standard Web Template in BI 7.0?
Today we only use Workbooks and the java is already installed.
Do we have to do some configuration in this Web template for our first execution?
Thank you,
Carlos EdaurdoHi,
0ANALYSIS_PATTERN is the standard Web template for the BI Queries when executed through Web.
We can copy this template to a Ztemplate and make the changes necessory based on project need and can be assigned
as default in Configuration settings .
Thanks,
Prakash -
Using default web interface for users
I wish to use the default web interface for my users, I do not have the time to develop a custom app. I wish to get rid of the group and and mount point folders.
Please Help,
JeffCM SDK 9.0.4 (released very shortly) includes the "Web Starter Application". This is a J2EE Web Application with full MVC architecture and completely open source!
You may be able to obtain this application sooner from Oracle Consulting - it will work on the current CM SDK 9.0.3.
JSP and Tag Libraries make up the UI. The controller framework is similar to Jakarta Struts. It offers localization support, ADA compliance etc.
You can easily develop the application from JDeveloper and deploy to 9iAS.
Matt. -
Configuring default web apps for virtual hosts
Hi,
This posting is meant save time for anyone trying to specify a default web app
for each of their virtual hosts (as opposed to specifying a default web app for
each of their wl servers). This applies to weblogic 6.1, on NT. (I haven't tried
this on other platforms).
If you are trying to use the admin console to do this, give up. It's not possible.
The "Virtual Host/Configuration" window lets you specify everything about that
vhost configuration EXCEPT a default web app. (The "Default Web Application" drop
down menu will always have only one option to choose from: "none").
Instead, shutdown your server, and edit your domain's config.xml file manually.
Attached is an example config file that specifies that the web app "kz" should
be the default web app for the vhost "wl.kz.com", and that the web app "kahuna"
should be the default web app for the vhost "www.kahuna.com".
Hope this helps,
Brian O'Donnell
Lead Developer, Learning Network
[config.xml]Hi,
Is it possible to configure default web appls for virtual hosts
with Weblogic 6.0 on NT platform? I tried to configure the configure.xml as Brian
did, it doesnot work. I am just wondering if there's any other possible way to
do this.
Thanks.
Mei
"Brian O'Donnell" <[email protected]> wrote:
>
>
>
Hi,
This posting is meant save time for anyone trying to specify a default
web app
for each of their virtual hosts (as opposed to specifying a default web
app for
each of their wl servers). This applies to weblogic 6.1, on NT. (I haven't
tried
this on other platforms).
If you are trying to use the admin console to do this, give up. It's
not possible.
The "Virtual Host/Configuration" window lets you specify everything about
that
vhost configuration EXCEPT a default web app. (The "Default Web Application"
drop
down menu will always have only one option to choose from: "none").
Instead, shutdown your server, and edit your domain's config.xml file
manually.
Attached is an example config file that specifies that the web app "kz"
should
be the default web app for the vhost "wl.kz.com", and that the web app
"kahuna"
should be the default web app for the vhost "www.kahuna.com".
Hope this helps,
Brian O'Donnell
Lead Developer, Learning Network -
Change the Default Page Size for WebI Rich Client 4.0
Hi:
I am trying to change the default paper size for Webi Rich Client 4.0.
In 3.x you made the changes to the defaultconfig.xml located in the path C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\classes\AppletConfig.
In 4.0 I canu2019t seem to locate the file, can you advise if the file is the same name and where the file located.
Thanks
BradHi,
Please check out the User Guide - see section Web Intelligence Cascading Style Sheets (CSS)
http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_ia_en.pdf
Regards
H -
Very simple question, how do you configure windows 8.1 to use a SD card / external drive as the default install location for software applications? Primarily interested in apps installed from the windows store. This should be available in the settings
charm within the windows store. This must have been overlooked in the development of windows 8.1 or is a bug.
Regards, Bill
* update
I've tried modifying this key and the path:
“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx”
http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_store/how-do-you-install-apps-in-windows-8-from-the/c4fbe2a8-fd3d-41c1-b9a6-6f881eed374f
Also tried using symlinks as detailed here:
http://social.technet.microsoft.com/Forums/windows/en-US/8eee52c2-db0f-4032-8c72-7cd999e8b41a/windows-8-apps-installing-to-secondary-drive?forum=w8itprogeneralHere's some links I've used to try to figure this out:
http://social.technet.microsoft.com/Forums/windows/en-US/2dfc0cd9-7d1b-41de-abce-e03fb6a5a383/metro-apps-not-working-in-windows-8-pro-x64-after-moving-users-and-programdata-folders?forum=w8itproinstall
http://social.technet.microsoft.com/Forums/windows/en-US/8eee52c2-db0f-4032-8c72-7cd999e8b41a/windows-8-apps-installing-to-secondary-drive?forum=w8itprogeneral
http://social.technet.microsoft.com/Forums/windows/de-DE/f5e33ac9-beab-4b99-b3ca-7cb5e6f415e4/how-do-you-change-metro-apps-default-install-location?forum=w8itprogeneral
Regards, Bill
The registry method does not work with 8.1. I found this out the hard way. Doing it on 8.1 will leave you reinstalling the OS if you didn't do a SRP beforehand.
Maybe you are looking for
-
I've lately been having this issue with my iPhone. When I go to transfer a newly purchased album or song from my iTunes library on my Macbook Pro to my iPhone 5 my ENTIRE LIBRARY is transferred to my iPhone. I have it checked so I can manually manage
-
How to open the file in PDF format
Hello, There is a requirement on our page that , on click of a button a procedure will be called. If that procedure returns "S" i.e success , then I need to open a new browser window and also set the url for the window (all programmatically). That ur
-
I have a 2008 24" iMac (model 8,1) I bought it new in 2010 from MacConnection. This machine has been wonderful, however in the last week or so the screen seems to "flicker" upon waking from sleep (I rarely shut the iMac down.) The flickering lasts fo
-
I can't seem to get my macbook pro to shut down, one or another Mac application, Mail, Safari, iCal (pick one) won't shut down and I get the Logout error, forcing me to force quit at least one application. Huge pain to shut down each day.
-
Hai all, I've prepared some disco reports and with exception, am signalling some records in the report with some colors.. but when am trying to transfer the records to excel, the colors are not preserved in the excel sheet.. anyway to acheive this ?