Fixed length co-ordinates for business graphics
Hi,
We are using business graphics UI element with (chart type : Bars, Columns). The graphics output is working fine but the co-ordinates value of series is automatically getting adjusted to the maximum value of series values obtained.
But i want the co-ordinates values to be of fixed length. I tried changing the customizing values for value axis (Minimum value - 0 and Maximum value - 100) but doesnt seem to work.
Can someone help me on how to achieve this?
Regards,
Vijay
Hello Vijay Raj,
the MinimumCalculation / MaximumCalculation needs to be set to UserDefined.
Kind regards,
Silke
<ChartAxes>
<ValueAxis id="ValueAxis1">
<Minimum>0</Minimum>
<MinimumCalculation>UserDefined</MinimumCalculation>
<Maximum>100</Maximum>
<MaximumCalculation>UserDefined</MaximumCalculation>
</TimeAxis>
</ChartAxes>
Similar Messages
-
Port for business graphics server
Hello,
I need to know on which port my business graphics server is running. I have administrator access to the web as but cannot use visual administrator due to security constraints.How do I see on which port business graphics server is installed or even see the listing of all services running on different ports using browser access to the Web AS?
ThanksHi Vijay,
The default port for IGS is 8030.
It can be called via URL as http://loacalhost:8030
Refer these links.
http://help.sap.com/saphelp_nw04/helpdata/en/69/a6d43ac66e1f08e10000000a114084/frameset.htm
How to customize a business graphic ?
Regards,
Guru -
NW 7.1 CE problems triggering onAction event for Business Graphics?
I have ported an application that was running on NWDS 7.0 to CE 7.1. No problems with code compilation and on the web page everything is working fine in 7.1 except that I am unable to trigger the onAction event on Business Graphics (e.g., bar chart). In 7.1 the cursor is not even changing from pointer to hand when I mouseover on the bar legend as it does when I run the app in 7.0. Is this a server setting with CE7.1 or am I missing something else?
I figured it out after some more poking around. In NW7.1 CE, the additional required step is to map the eventID of the Chart (Business Graphics) Category also to the same attribute as Category description.
-
Hi,
What are the java API supported for Business Graphics? I find a few on java but on [ABAP|http://help.sap.com/saphelp_nw04/helpdata/en/45/644c3e873e2f95e10000000a155369/content.htm] the support is richer.
- NikhilHi,
What do you mean by "java API supported for Business Graphics? "
Web Dynpro for JAVA has following graphic UI elements:
http://help.sap.com/saphelp_nw04/helpdata/en/9b/d9883672d57c73e10000009b38f889/frameset.htm
regards,
ganga -
Business Graphics API in WEBAS J2EE
Hi,
i have a business graphic integrated into my webdynpro application. I checked the api documentation for business graphics and found out, how to change the type of the business graphic and the number of dimensions programmatically.
On the API, i cannot find out any further possibilities of modifing the chart programmatically. I wonder about this, because the business graphic UI - element in NetWeaver Developer studio provides much more configuration possibilities on charts.
For example, i would like to use the averagre functions or adapt the number of labels on the chart axis. But all dynamically.
Has anyone experience, with such advanced business graphics features and nows if it is somehow possible to get to theses features by using the NetWeaver API?
Thank you very much in advance.
Regards
ChristophAs I understand, your user management is through database, so when a user is created in your application, the parameters pass through the Action Handler -> service class-> DAO. So a better way would be write an additional class with the user management implementation of BO with a constructor or a method which would take the required user creation parameters and call it in the service class just under the user creation method of your DAO.
As the user in your system passes some information from the front end, the same can be used to create user in BO. -
How to map xml to a fixed length string?
Hi All,
I have a requirement to map request xml to a string of fixed length and format:
For eg,
Source:
<Person>
<Name>George</Name>
<Age>21</Age>
</Person>
Target:
String of format
Name : 8 chars
Age : 2chars.
so the required mapping should result in
"George 21".
Note: 2 blanks after "George" to allow for 8 characters. Is this kind of mapping possible using ALSB xquery? I have tried to create a MFL representation for the string , and used it in the xquery as the targer but it is generating
"George21".Only data present in source is getting mapped :(My advice would be to use MFL transformation for that.
Documentation about MFL can be found at edocs: http://edocs.bea.com/alsb/docs26/fbhelp/index.html
Find tips and tricks about ALSB at my blog: http://dev2dev.bea.com/blog/jordinho/ -
Business graphics need more than one category
Dear All,
We have a issue for business graphics need more than one category about web dynpro abap.
Our data:
plant month qty
1000 201101 10
1000 201102 30
2000 201101 30
2000 201103 40
Now we need one category for "plant" and other category for "month", Data is qty.Hello Bill,
could you explain bit more about your requirement? How would you like the graph to be renderded with two categories. Can't you club Plant and Month into one single category (1000-201101) and display it?
BR, Saravanan -
Convert decimal to binary with a fixed length
Hi, I need to write a program that converts a decimal number to binary with a fixed length (say 5), for example, decimal digit "0" -> binary number "00000". I try Integer.toBinaryString(), but it will just cut off the leading bits, so I wonder how to let the conversion happen, anyone can help me with that, thanks in advance.
mckieDaiyue_Weng wrote:
Hi, I need to write a program that converts a decimal number to binary with a fixed length (say 5), for example, decimal digit "0" -> binary number "00000". I try Integer.toBinaryString(), but it will just cut off the leading bits, so I wonder how to let the conversion happen, anyone can help me with that, thanks in advance.
mckieWhat do you expect it to do? When you limit yourself to 5 digits binary you can only represent 0 to 63 and you will loose anything not in those 5 digits. -
Parameters for Ingesting wide fixed-length files?
I created an SSIS process to ingest fixed-length text files into this table.
CREATE TABLE [dbo].[Temp_Source_Fixed](
[Column 0] [text] NULL,
[ID] [int] IDENTITY(1,1) NOT NULL,
CONSTRAINT [Temp_Source_Fixed_ID] PRIMARY KEY CLUSTERED
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
It works fine with most of the files, but one file has almost 26000 characters per row and the process halts with a truncation error.
I suspect that if I change a parameter on the connection manager it will work, since I can manually use
the SSMS wizard to import manually if I specify Text Stream (DT_Text) for the data type of Column 0 versus String (DT_STR).
For the connection manager I have
In the connection string I have Provider=SQLNCLI10.1 and Auto Translate=False.
In Misc parameters, DelayValidation=False.
For the Data Flow Task I have
DefaultBufferSize is 10485760
Any ideas on what I need to change?
Thanks,
Jnana
Jnana SivanandaYou need the column in question defined in SSIS as DT_Text.
You need to either drop the flat file connector and re-do it with this datatype, or access the Advanced Editor input and output column and alter its datatype there
Arthur
MyBlog
Twitter -
Issue with Mapping Spaces for Receiver Flat File Fixed Length
Hi Mapping experts,
my scenario is receiver FILE (fixed length)
so if a validation applied on a target field returns false then I need to pass the spaces having the number of characters defined for that field
example
targetField length = 8
using "IF" function to perform validation, if validation is true THEN = FIELD
if validation is false ELSE = "________" (underscore to represent 8 spaces)
the problem is the validation is of multiple occurences in one queue and if the "true" statement is on the 6th row, I get _________ which is the value of the 1st row (which is correct because rows 1 to 5 are all false therefore having the value of ELSE which is _______ mapped to it)
How can I get the value of the TRUE row regardless of what row it is located?
e.g. IF = input is 5 rows of validation, TRUE is in the 3rd row, i will get the 3rd row value
IF = input is 5 rows of validation, NO TRUE Value, return 8 spaces
right now when i Display Queue values are
iF:in0 iF:in1 iF:in2 iF:out
1111 false [_________] [_________]
2222 false [_________]
3333 true 3333
4444 false [_________]
5555 false [_________]
In above Queue i only get the value of the 1st row which is ________ --> because my target field occurrences definition in Data Type is 0....1
if I change Data Type occurrences to 1...unbounded I get 5 target fields generated --> WRONG because target file is fixed field, so only one occurence of that target field is requiredCan you give me the idea of what validation are you using so that anyone can help you with the UDF straightaway
because you need to have a UDf in place which will iterate the number of times the field occurs and then it will check the entire queue first ,where validation is true and only at the instant it will return the value
if the entire queue is value it will return the 8 underscores
I hope this is what you wanted
regards
ninad -
Gui_download issue - trailing spaces getting truncated for fixed length fil
Hi All,
I have a requirement where I need to download an internal table as a fixed length file.
The code is as follows:
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = L_FILE
FILETYPE = 'ASC'
APPEND = 'X'
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = ' '
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = IT_TEXT
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
Each row in the internal table IT_TEXT is 242 chars long.
The FM is truncatinf the trailing blanks on the file. How do I get the FM to not truncate the trailing blanks in each row?
My internal table has multiple rows and the number of rows on the table should be same as the number of rows on the downloaded file.
I tried setting the WRITE_LF parameter to space.
In this case, the trailing spaces are not truncated(which is as per my requirement), BUT all the rows in the internal table appear in a single line on the downloaded file instead of multiple rows.
I also tried setting the TRUNC_TRAILING_BLANKS field to space but that does not work either. Spaces at the end of the row are still truncated.
so the requirement is: the spaces at the end of each row should not be truncated and
each row on the internal table should have a corresponding row on the downloaded file.
(it is a fixed length file)
I also tried using the following code
class cl_abap_char_utilities definition load.
DATA: BEGIN OF IT_TEXT OCCURS 0,
TEXT(242) TYPE C,
cr_lf TYPE c VALUE cl_abap_char_utilities=>cr_lf,
END OF IT_TEXT.
when i compile, i get the following error
The type "CL_ABAP_CHAR_UTILITIES" is unknown.
Im using R/3 4.6C. Could this be a problem?
Please suggest a solution for this problem.
Thanks!
Sandeep
Edited by: sandeep reddy on Jul 25, 2008 7:16 PMHi,
Try this..This worked..Add a dummy character at the end of the internal table...Then pass trunc_trailing_blanks = ' '...
PARAMETERS: p_file TYPE rlgrap-filename
DEFAULT 'c:\test_download.txt'.
DATA: BEGIN OF s_data,
data TYPE char10,
dummy, " Added this.
END OF s_data.
DATA: t_data LIKE TABLE OF s_data.
s_data-data = 'Test'.
APPEND s_data TO t_data.
s_data-data = 'Test2'.
APPEND s_data TO t_data.
s_data-data = 'Test3'.
APPEND s_data TO t_data.
s_data-data = 'Test4'.
APPEND s_data TO t_data.
* Download.
DATA: v_file TYPE string.
v_file = p_file.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = v_file
trunc_trailing_blanks = ' '
TABLES
data_tab = t_data
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.
Thanks
Naren -
Legend not appearing for Chart Type columns/bars in business graphics
Hi Experts,
I'm not able to make the legend appear in web dynpro screen.As such graphs is coming but the legends are not appearing at runtime. When i customize the graph using t-code 'BS_ANLY_CD' or right-click on business graphics, the legends are appearing in customizing preview but not in runtime.
Could anybody help me out in this issue?
Below is the screenshot of the same.
Thanks in advance.
Regards,
Bob.Its solved .Solution is below.
You just need to add the label description for both the series then the legend will automatically come as shown below. -
How can i do different colors for the category in business graphics
Hi everybody,
i have a business graphics and i need different colors for the category. my business graphics is a gantt.
for example
category1
category2
category2
and so on.
Is there a solution for this? How can i do it?
Best regards,
MarkusSorry.
In my opinion, this requirement can not be resolved.
Generally, we use Business Graphic with Category, we just follow:
DATA:lr_graph TYPE REF TO cl_wd_business_graphics.
lr_graph = cl_wd_business_graphics=>new_business_graphics(
bind_series_source = 'NODE_DYN'
chart_type = cl_wd_business_graphics=>e_chart_type-BARS
height = 340
width = 750
* BIND_TOOLTIP = 'GRAPH.TT'
id = 'GRAPH' ).
DATA: lr_bgr_cs TYPE REF TO cl_wd_category.
lr_bgr_cs = cl_wd_category=>new_category(
view = wd_this->mr_view
bind_description = 'NODE_DYN.CATEGORY').
lr_graph->set_category( lr_bgr_cs ).
If we go to SE24, to check the class "CL_WD_CATEGORY", we cannot find any method or attribute about how to manipulate the "Category Font Color"...
Maybe,any other expert can give you fantastic solution, hope. Best wishes. -
FILE model support for CSV and fixed-length format!!
Hi all,
As I'm working on a data conversation project, we are in the middel to design whether the extraction for the data source should be in CSV or fixed-length. Here is the pros and cons:
CSV:
1. There are a lot of remarks field in the data which are all free text. It's really hard to define the record delimiter.
2. Extracted file size for CSV is relatively small compare with fixed-length.
fixed-length:
Even for fixed length, we can either
1. Extract the file without an separator/delimiter (1 row) with fixed column length
2. Extract the file with fixed column length per record and define the record delimiter to separarter the record.
I'd try all the above formats and it seems ODI is more prefer on CSV or combined mode (fixed column length) as:
1. The LKM (file to external table) need to be customzised to handle the file format which without any separator/delimiter
2. It is very hard to reverse the column definition for fixed-length (no delimiter)
Any suggestion?
TaoYou can transform your files to an xml format using respective tags:
eg:
<?xml version="1.0" encoding="UTF-8"?>
<MONEY>
<MoneyID>MoneyID0</MoneyID>
<ContractID>ContractID0</ContractID>
<EffectiveDate>2006-05-04T18:13:51.0Z</EffectiveDate>
<MessageDate>2006-05-04T18:13:51.0Z</MessageDate>
<ReversalIndicator>false</ReversalIndicator>
<PriorMoneyID>PriorMoney, something "ID0" for life;</PriorMoneyID>
<Amount>0</Amount>
<MoneyType>0</MoneyType>
<ExchangeDetails>
<CostBasis>0</CostBasis>
<ExchangeType>0</ExchangeType>
<MEC>false</MEC>
<LoanAmount>0</LoanAmount>
</ExchangeDetails>
</MONEY>
So, as you see, you can embed any symbol in a tag.
After creating this xml file, you can use XML technology in Topology Manager to map to this file and then create a data store based on this technology.
And you will be able to retrieve the data in this file under respective column headers without worrying about delimiters existing in the actual data. -
how to define a schema for fixed length consisting of multiple records of different types having header detail and footer at positions 22 and 23 namely having 10 for header ,20 for detail and 30 for footer.
here is the sample file
DDWTYBILL13092502572 1000000112\\NHLSFS\ORACLE\ORACLE\BILLING\VERIFY\ 2013/09/25 01:19:08 BILLEND
DDWTYBILL13092502572 2000000212PRIVATE PRIVATE STY5572142 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA,CN,CELESTE NERINA 09-JAN-1964 TYG A2 DR DU PREEZ 5602181 63301345 TB731543 Suspect TB ?CA, (L) EMPIEEM Ward A2 TYGERBERG HOSPITAL Z03.0 Z03.9 05-AUG-201305-AUG-201324-SEP-2013FEND 113.60
DDWTYBILL13092502572 2000000312PRIVATE PRIVATE STY5572149 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA,CN,CELESTE NERINA 09-JAN-1964 TYG A2 DR DU PREEZ 5602181 63301345 TB731548 Empyema BPF Ward A2 TYGERBERG HOSPITAL Z03.9 Z03.9 05-AUG-201305-AUG-201324-SEP-2013FEND 113.60
DDWTYBILL13092502572 2000000412PRIVATE PRIVATE STY5572351 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA,CN,CELESTE NERINA 09-JAN-1964 TYG A2 DR DU PREEZ 5602181 63301345 TB731584 Suspect TB ?EMPIEEM, ?CA Ward A2 TYGERBERG HOSPITAL Z03.0 Z03.9 05-AUG-201305-AUG-201324-SEP-2013FEND 113.60
DDWTYBILL13092502572 2000000512PRIVATE PRIVATE STY5572352 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA,CN,CELESTE NERINA 09-JAN-1964 TYG A2 DR DU PREEZ 5602181 63301345 TB731585 Suspect TB ?EMPIEEM, ?CA Ward A2 TYGERBERG HOSPITAL Z03.0 Z03.9 05-AUG-201305-AUG-201324-SEP-2013FEND 113.60
DDWTYBILL13092502572 2000000612MAJOR MAJOR STY5577530 010700 INV 12ZTYG000009 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNS ZOZI,S,SIYAMBONGA 27-MAR-2010 TYG D3 DR MAHOMED 5602181 113799662 TB731663 Lymphadenitis Ward D3 TYGERBERG HOSPITAL I88.9 Z03.9 H1 07-AUG-201307-AUG-201324-SEP-2013MEND 58.52
DDWTYBILL13092502572 2000000712MAJOR MAJOR STY5577537 010700 INV 12ZTYG000009 06-AUG-20130000010472 STY STY 1100611006MGIT 91 NNS DLAMINI,N,NTLANTLA 09-OCT-1976 TYG F1 DR WZESE 5602181 135524676 TB731666 Suspect TB Ward F1 TYGERBERG HOSPITAL Z03.0 Z03.9 H1 07-AUG-201314-AUG-201324-SEP-2013MEND 58.52
DDWTYBILL13092502572 30003034120000003032ENDYou can create an nXSD using Native Format Builder and use lookAhead attribute to read values at specific position and use that as the choice. You can find an example here
http://docs.oracle.com/cd/E11036_01/integrate.1013/b28994/nfb.htm#BGBBAJFD
Maybe you are looking for
-
Uploading a Specific file rather than browsing
My app allows users to create a user-named jpg like so:- var enteredimagename:String = imagenameentry.text; var file:File = File.applicationDirectory.resolvePath(('assets/images/')+enteredimagename+('.jpg')); However I now want to allow a user to up
-
Windows Support Software via Boot Camp: "keyagent failed to start"
I am installing Windows 64-bit on a Macbook Pro 13" via Boot Camp. In the Windows support software stage, I get a pop-up msg "Service 'KeyAgent' (KeyAgent) failed to start. Verify that you hae sufficient privileges to start system services. I do have
-
Apple, iTunes used to be intuitive, unique and beautiful. Why can I not change the size of my artworks anymore, to see all of my covers if I want to? And how can you offer artwork on white background? So awful. It makes the user stop feeling like usi
-
Any chance of a *CD* release?
I have an IBM E-server x342 that I would like to install the x86 version of Solaris Express Developer Ed. on, but it doesn't seem to to be able to boot from a DVDROM I set up temporarily to install. I'd really like to get Solaris on this machine for
-
Most useful SAP courses in SAP NetWeaerv Administrator area
Hi! I am certified SAP Basis consultant (SAP NetWeaver´04 - SAP Web AS for ORACLE). Now I have the possibility to extend my knowledge and to visit one or two SAP courses. What are the other most useful SAP courses (from practical point of view) in SA