Formatting Bex queries output with WAD Script WebItem
Hi All,
We have a requirement of displaying some text for a key figure value in WAD.
Scenario:
We have one input enabled query lets say Q1, in that a KF1 can have either 10 or 0 value. If user input 10, then in other report lets say Q2(which is display report), status should display 'Yes' and if 0 status should display 'No'. Kindly note reports are built in WAD
Doubts:
1. Can we replace keyfigure value with text in WAD using Script?
2. If Yes can you please share a sample code for the same.
Thanks and Regards,
Sparsh
Hi,
try using modification module for analysis item, try with value "string" instead of "image"
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6044cb8e-972c-2e10-a38e-ae1377028e7d?QuickLink=index&overridelayout=true
let us know if it's ok.
hope it helps.
Similar Messages
-
Formatting code and output with Courier font
Hi,
I have several problem in inserting code and output for SQL and PL/SQL.
I.e.:
If I insert the code below formatting usin Syntax highlight as SQL:
SELECT empno, sal
FROM emp
WHERE sal > ALL (2000, 3000, 4000);
Is there a way to have Courier as font to retain the correct indentation?
Another problem. Suppose that I run the query below:
SELECT *
FROM emp
WHERE deptno = 10;
and I want to paste the output as Courier:
If I copy and paste the output from SQL Plus:
EMPNO ENAME
JOB
MGR HIREDATE
SAL
COMM
DEPTNO
7782 CLARK
MANAGER
7839 09-JUN-81
2450
10
7839 KING
PRESIDENT
17-NOV-81
5000
10
7934 MILLER
CLERK
7782 23-JAN-82
1300
10
It is pasted as a table. Even changing the font is not helping to have a good formatted code (note the header not aligned with data columns).
I can use HTML code to paste it. I.e.:
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7782 CLARK MANAGER 7839 09-JUN-81 2450 10
7839 KING PRESIDENT 17-NOV-81 5000 10
7934 MILLER CLERK 7782 23-JAN-82 1300 10
But it is taking quite a lot to paste the code.
Any suggestion?
Regards.
Al
Message was edited by: AlbertoFaenzaBluShadow wrote:
Well, I hope they get around to using fixed space fonts on the Syntax Highlighting options, as I quite like the fact it creates line numbers for the code, as that will be useful when discussing issues.
I agree Blu. The line number is useful. If they only can use a fixed space font would be perfect.
I also have the problem that randomly my output is pasted as a HTML table and still could not understand why it happens.
This one i.e.:
EMPNO ENAME
JOB
MGR HIREDATE
SAL
COMM
DEPTNO
7369 SMITH
CLERK
7902 17-DEC-80
800
20
7566 JONES
MANAGER
7839 02-APR-81
2975
20
7788 SCOTT
ANALYST
7566 19-APR-87
3000
20
7876 ADAMS
CLERK
7788 23-MAY-87
1100
20
7902 FORD
ANALYST
7566 03-DEC-81
3000
20
I notice that just adding a blank line as first line solve the issue.Regards.
Al -
Can we save our BEX queries in tab-delimitted format ?
Hi ALL
Can we save our BEX queries in tab-delimitted format (instead of comma-delimited)?
Please let me know for further clarifications
Regards
Bhageshhi bhagesh:
You mentioned:
For eg. We can save .CSV file of BEx query extracts with the help of reporting agent with the help of background schduling.
Can u tell me procedure for this ? how can i get query output in .csv format using reporting agent and with and without option of schedule it in background.
I will come back and assign the points to the answer.
thank you,
K Smith -
Create a VC Model for BEx queries with Cell Editor
Hello All,
I am trying to create a VC Model for BEx queries with Cell Editor.
BW Development Team has created a BEX query with complex restrictions and calculations using Cell Editor feature of BI-BEX.
The query output in BEx analyzer is correct where all values are being calculated at each Cell level and being displayed.
But, while creating VC model, system is not displaying the Cells.Thus, no VC Model can be created.
I have executed below steps:
1. Created a VC Model for BEx Query - ZQRY_XYZ
2. Create Iview -> Create a dataService -> Provide a Table from the Output
In the Column field system is not showing any of the Cells (present in Cell Editor)
Please help me to solve this issue.
Thanks,
SivaHi
If 'Cell Editor' is been used then that query must have the structure in it. You have to select that 'structure' object in your 'VC Table'.
If you select that then you will get the required result in the output. This structure will be the structure where 'cell reference' is used in BI query, You have to select that structures name.
Regards
Sandeep -
How to replace # or Not assigned with blank in BEx Query Output.
Hi,
While running the query through BEx Query desginer or Anlayser, I am getting # or Not assigned where there are no values.
The requirement is to "Replace # or Not assigned with a blank" in the output.
I want to know, is there any setting in BEx query desginer where we can do this. How to do this.
Please share your inputs on this. Any inputs on this would be appreciated.
Thanks,
NaveenCheck out SDN-thread: "Re: Remove 'Not assigned'" for more details
Ideas from SDN research:
"a solution i have used is to put each RKF column in a CKF colum then in each CKF use RKF + 0, the outcome is that your # should now be 0s, in the query properties you can set the option to display 0s as blank."
"try to enter a text for the blank entry in the master data maintenance of the relevant objects and set the display option for the objects to 'text'."
Threads:
SDN: How to replace # or Not assigned with blank in BEx Query Output.
SDN: Re: Remove 'Not assigned
SDN: How to replace # or (Not assigned) with blank in BEx Query Output.
SDN: Bex Analyzer : Text element system's table ?
SDN: change message in web application designer ["nonavailable" -> 136 of SAPLRRSV]
SDN: Not Assigned ["Not Assigned -> 027 of SAPLRRSV]
SDN: replacing '#'-sign for 'not assigned' in queries
SDN: # in report when null in the cube
SDN: How to replace '#' with blank when there is no value for a date field
Edited by: Thomas Köpp on Sep 13, 2010 5:20 PM -
Broadcast Bex queries in CSV format
Hi,
Is there a way to broadcast Bex queries in "CSV" format? Please do not confuse this with the "Export to CSV" option. I need to be able to set up the job periodically to send the reports in CSV format. Any ideas...
ThanksHi Tanu,
You can do it by using RSCRM_BAPI tcode. Please see below thread for details.
[Broadcasting Bex Query & Web template in CSV format possible???;
Hope it helps you.
Regards,
Nikhil Joy -
Create a View with two BEx Queries in BEx
Hi Experts,
I have got a scenario where in I have to create a single view on two BEx queries. Can any one give me the necessary steps to create the View?
Awaiting for your reply,
Thanks in advance,
With kind regards,
ShreeemHi Shreem,
I think that can be easily done. Check the below thread
WAD - Integration of multiple queries
Also see If you can include the two queries in a workbook and maybe later you can try creating a view on it?
Thanks -
Chart from data with two bex queries in crystal reports 4.0 for enterprise
Hi,
I'm fairly new to crystal reports and I have a requirement to show the data from 2 bex queries in one single cross table. is it possible ?
after getting it i should be able to create chart with that data
Eg: my table would be something like below :
calendar day
Input : 12 34 50 60
Output : 09 23 19 57
Input Data will be coming from one bex query
Out put data comes from another bex query
is it possible to merge the dimensions and then work on ????
any help is much appreciatedHi Tanveer,
The only way you can add two BEx queries in a report is using a Subreport. The First BEx query goes in the Main Report and the second one goes in the Subreport.
You'll not be able to add the dimensions and measures from these two BEx queries in a Crosstab anyway. Perhaps, you could create a mock crosstab and send values (all rows) from the Main Report to the Subreport as a string however, I can see that it's going to get complex.
-Abhilash -
Problem with SAP Script FAX output
Hi Friends,
I have problem with SAP Script Fax output.
After I issued output using the messge type, the print preview format shows me correct alignments and the right data. But when I go to List display using the menu bar functions from the print preview screen, the list is showing me the right data, but all the alignments at the main window went wrong.
How do I rectify this problem? I need correct alignments in both form display and list display.Hi Sasidhar,
Have you tried with different fax machine.
Regards,
Atish -
Is it possible to create a Webservice in BI which takes XML as an input and gives PDF as output with an additional requirement that Siebel expecting the XSD from BI to send data in the BI requested format. Siebel wants to send the data as xml to BI but not sure of the BI capabilities on giving WSDL embedded with XSD (input is a hierarchical)
Hi All,
I am able to fulfil above requirement. Now I am stuck at below point. Need your help!
Is there any way to UPDATE the XML file attached to a Data Definition (XML Publisher > Data Definition) using a standard package or procedure call or may be an API from backend? I am creating an XML dynamically and I want to attach it to its Data Definition programmatically using SQL.
Please let me know if there is any oracle functionality to do this.
If not, please let me know the standard directories on application/database server where the XML files attached to Data Definitions are stored.
For eg, /$APPL_TOP/ar/1.0/sql or something.
Regards,
Swapnil K. -
How to download alv grid output(with field catalog) into excel file format
Hi all,
How to download alv grid output(with field catalogs) into excel file format and same file has to download to application server.
Please help.
Regards,
Satya.Hi,
On list where alv is displayed, select export icon( green color -> ),select spread sheet.
This will display records in Excel sheet. -
Formatted HTML output with Spry regions - is it possible?
I have recently begun using the XML export extension in
conjunction with an Access database to output dynamic data into a
page with a Spry master/detail setup. So far, my simple example is
going great, but I've run into a snag that I need some help with.
To explain what I'm doing - it's a simple article page with
the list of articles on the left with the title and date and the
article title and full contents on the right hand side. So far it's
all working very well, updating in real time when I click an
article title on the left. The problem is the output with this one
field which stores not only text, but also HTML formatting that is
generated by a wysiwyg editor used on the article creation side of
this little app. This HTML formatted content is the article body
and is stored in a field named the same - "body". With traditional
ASP, the HTML formatting displays as expected and all is well, but
with Spry, it doesn't output formatted HTML, but instead shows the
content and HTML code together as text. How can I get this one
field ("body") to be output so all the HTML formatting is shown?
This is my simple page example. Click through and you'll see
what I mean.
http://www.shoestodyefor.com/ajax.asp
Here's the section of code in question regarding the output
on that right hand panel where the body is displayed for each
article:
<div spry:detailregion="ds1">
{title}<br />
{entryDate}<br />
<br />
{body}
/div>
Is it possible to have that {body} section shown so the
dynamically created HTML code from the wysiwyg editor is displayed
correctly?Steve Skinner wrote:
> Is it possible to have that {body} section shown so the
dynamically created
> HTML code from the wysiwyg editor is displayed
correctly?
The version of Spry that ships with Dreamweaver CS3 (Spry
1.4) doesn't
support the type of output created by the XML Export
extension.
This issue has been corrected in Spry 1.5, but no plans have
been made
public for integrating Spry 1.5 into Dreamweaver CS3. You
would need to
download Spry 1.5 from
http://labs.adobe.com/technologies/spry/.
Details
of how to hand-code the fix for output from XML Export are
here:
http://labs.adobe.com/technologies/spry/samples/data_region/HTMLFragsInXMLSample.html
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
PO output with XML and PDF format
Hi All,
I need PO output with XML and PDF format. when I give print it shld go to vendor with xml and pdf format through mail. please kindly guide me on this .
Thanks in advance
JKhi,
try this code to get in pdf form
REPORT zsuresh_test.
Variable declarations
DATA:
w_form_name TYPE tdsfname VALUE 'ZSURESH_TEST',
w_fmodule TYPE rs38l_fnam,
w_cparam TYPE ssfctrlop,
w_outoptions TYPE ssfcompop,
W_bin_filesize TYPE i, " Binary File Size
w_FILE_NAME type string,
w_File_path type string,
w_FULL_PATH type string.
Internal tables declaration
Internal table to hold the OTF data
DATA:
t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
Internal table to hold OTF data recd from the SMARTFORM
t_otf_from_fm TYPE ssfcrescl,
Internal table to hold the data from the FM CONVERT_OTF
T_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
This function module call is used to retrieve the name of the Function
module generated when the SMARTFORM is activated
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = w_form_name
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = w_fmodule
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Calling the SMARTFORM using the function module retrieved above
GET_OTF parameter in the CONTROL_PARAMETERS is set to get the OTF
format of the output
w_cparam-no_dialog = 'X'.
w_cparam-preview = space. " Suppressing the dialog box
" for print preview
w_cparam-getotf = 'X'.
Printer name to be used is provided in the export parameter
OUTPUT_OPTIONS
w_outoptions-tddest = 'LP01'.
CALL FUNCTION w_fmodule
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = w_cparam
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = w_outoptions
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
job_output_info = t_otf_from_fm
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
t_otf[] = t_otf_from_fm-otfdata[].
Function Module CONVERT_OTF is used to convert the OTF format to PDF
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
ARCHIVE_INDEX = ' '
COPYNUMBER = 0
ASCII_BIDI_VIS2LOG = ' '
PDF_DELETE_OTFTAB = ' '
IMPORTING
BIN_FILESIZE = W_bin_filesize
BIN_FILE =
TABLES
otf = T_OTF
lines = T_pdf_tab
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
To display File SAVE dialog window
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
WINDOW_TITLE =
DEFAULT_EXTENSION =
DEFAULT_FILE_NAME =
FILE_FILTER =
INITIAL_DIRECTORY =
WITH_ENCODING =
PROMPT_ON_OVERWRITE = 'X'
CHANGING
filename = w_FILE_NAME
path = w_FILE_PATH
fullpath = w_FULL_PATH
USER_ACTION =
FILE_ENCODING =
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
others = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Use the FM GUI_DOWNLOAD to download the generated PDF file onto the
presentation server
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = W_bin_filesize
filename = w_FULL_PATH
FILETYPE = 'BIN'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
IMPORTING
FILELENGTH =
tables
data_tab = T_pdf_tab
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
reward points if useful,
siri -
Can we Compare PDF Output with CSV format
Team,
Can we Compare PDF Output with CSV format.
In Excel I need to two text boxes asking us to browse the files and compare the files PDF & CSV format.
Please suggest me if we have solution for this.
Thanks!
KiranHi
I'm afraid the Excel Application does not support this function currently, I am suggesting you to take advantage of a third party component to achieve this goal.
Thanks for your understanding.
Best Regards
Lan
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Crystal Report with multiple BEX queries
I have a Crystal Report that uses 6 different BEX queries. The report needs to display the results from each query, there is no need to join these queries. The Crystal Report is using subreports and displaying the data one BEX query after another.
The issue I have is that these BEX queries all have the same mandatory variable. This is causing Crystal to prompt the user to enter the same variable filter once per BEX query.
If we change the BEX queries so only the first BEX query has a variable and use Crystal to filter the other 5, the performance is unacceptable. My guess is the other 5 queries are experiencing client side filtering instead of the filter being passed down to BW.
Is there a way to have multiple BW queries with the same variable and have Crystal only prompt the user to enter input one time?
Thanks,
AndyHi Andy,
My understanding of the issue is :
--You have 6 Bex queries and are displying on after the other becaused you have inserted all these queries as sub report.
--All your Bex queries are having same parameter / prompt / variable which will take user input and filter the data.
--Now the report is prompting the user to enter prompt / variable 6 times. You are looking for an option to proimpt only ones insted of 6 tiems.
If I understood correctly follow the method to link sub reports to grab the parameter value form main report parameter :
Right click on sub report go in Change Subreport Links, select main reort prompt / varieable and then select sub report prompt / parameter / variable.
Do the same for all your sub reports. This will eliminate asking / prompting the same parameter value several times.
Thanks,
Sastry
Maybe you are looking for
-
Movie with special features won't play
My sister sent me a movie that she purchased on her iTunes account and it sent completely to my iTunes. It is a movie with extended features. When I opened it in my iTunes it goes to a page that says "play", "chapters", "features", "more". I am ab
-
Hello Experts, Can I use both index and key addition in READ statment like Read table itab from index i with key id = 'XYZ'. Actually I am using that but the read statement is not following both the addition.Is there any other way out in which I can
-
Phone number not registered in iMessage
Getting the message "this number is not registered on imessage" on my macbook pro. When I'm on my iPhone 5 text are going thru as regular text (Green). How do I fix this?
-
Formatting SQL Output in SQL Developer
I tried to google around a little bit and wasnt able to find an answer really. In 10g and in SQL plus i remember being able to format output as follows Using the generic HR schema and the following query i get the following output BREAK ON REPORT COM
-
every time i open firefox it eat tons of memory in both the VM, and Usages, then my CPU will start getting really high to a point where everything stops working. It only happen since the last two updates I have did with firefox, but getting to a poin