Need to include ALV graphics in Std. t-code
Hi Experts,
I am doing modification on standard T-code MCVE and my requirement is to include ALV graphics in it..
Note : In MCVE there is already graph option ( sap business graphics ) where there is no option of
displaying the values at the top of each bar...so the client is referring T-code COOIS (ALV graphics )where there is this option.
Please advice me how to include this alv graphics in T-code MCVE.
Thanks
Karthik
See the following sample program for ALV graphics
REPORT ZGRAPHS_3D.
TYPES: BEGIN OF ttab_data,
dataname(15),
quantity1 TYPE i,
quantity2 TYPE i,
quantity3 TYPE i,
END OF ttab_data.
TYPES: BEGIN OF ttab_options,
option(20),
END OF ttab_options.
DATA: itab_data TYPE TABLE OF ttab_data,
xtab_data LIKE LINE OF itab_data.
DATA: itab_options TYPE TABLE OF ttab_options,
xtab_options LIKE LINE OF itab_options.
xtab_data-dataname = 'Screws'.
xtab_data-quantity1 = 5500.
xtab_data-quantity2 = 6200.
xtab_data-quantity3 = 5900.
APPEND xtab_data TO itab_data.
xtab_data-dataname = 'Nails'.
xtab_data-quantity1 = 3500.
xtab_data-quantity2 = 5200.
xtab_data-quantity3 = 4400.
APPEND xtab_data TO itab_data.
xtab_data-dataname = 'Nuts'.
xtab_data-quantity1 = 1800.
xtab_data-quantity2 = 2200.
xtab_data-quantity3 = 1900.
APPEND xtab_data TO itab_data.
xtab_data-dataname = 'Fastners'.
xtab_data-quantity1 = 5500.
xtab_data-quantity2 = 6200.
xtab_data-quantity3 = 5900.
APPEND xtab_data TO itab_data.
xtab_data-dataname = 'Bolts'.
xtab_data-quantity1 = 3500.
xtab_data-quantity2 = 5200.
xtab_data-quantity3 = 4400.
APPEND xtab_data TO itab_data.
xtab_data-dataname = 'Clamps'.
xtab_data-quantity1 = 1800.
xtab_data-quantity2 = 2200.
xtab_data-quantity3 = 1900.
APPEND xtab_data TO itab_data.
xtab_data-dataname = 'Hand Tools'.
xtab_data-quantity1 = 5500.
xtab_data-quantity2 = 6200.
xtab_data-quantity3 = 5900.
APPEND xtab_data TO itab_data.
xtab_data-dataname = 'Saws'.
xtab_data-quantity1 = 3500.
xtab_data-quantity2 = 5200.
xtab_data-quantity3 = 4400.
APPEND xtab_data TO itab_data.
xtab_data-dataname = 'Jigs'.
xtab_data-quantity1 = 1800.
xtab_data-quantity2 = 2200.
xtab_data-quantity3 = 1900.
APPEND xtab_data TO itab_data.
CALL FUNCTION 'GRAPH_MATRIX_3D'
EXPORTING
titl = 'Usage in $'
col1 = 'Materials'
TABLES
data = itab_data
opts = itab_options.
Edited by: krupa jani on Apr 27, 2009 3:04 PM
Similar Messages
-
Report Layouts: FO : Include external graphics
I am trying to create a PDF report using apache FO. The report needs to include a gif logo file
I have tried using the following tags
<fo:external-graphic>
<xsl:attribute name="src">file://image.gif</xsl:attribute>
</fo:external-graphic>
Where should the image reside
Is it possible to reference the /i/ directory or #APP_IMAGES# or #WORKSPACE_IMAGES#After much browbeating and head scratching, I now know where the problem is - but not yet how to fix it. The apex_fop supplied with apex does not contain the java packages which enable the use of xsl:fox extensions. Either a new fop distribution, with servlet, must be created, or the apex_fop distribution must be updated to include the necessary java packages.
Edited by: Andre Olivier on May 9, 2013 4:02 AM -
Need to include header in csv file while using GUI_DOWNLOAD
Hi,
Iam using GUI_DOWNLOAD for downloading certain texts,its working fine.now i need to include the header(i'e) some text say 'This is a error file'at the top.how can i do this?REPORT ZTEST12347 .
DATA: BEGIN OF ITAB OCCURS 0,
VBELN LIKE VBAK-VBELN,
POSNR LIKE VBAP-POSNR,
END OF ITAB.
SELECT VBELN
POSNR
FROM VBAP
UP TO 20 ROWS
INTO TABLE ITAB.
DATA: IT_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE.
IT_LINE-TDLINE = 'this is error file'.
append it_line.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = 'C:test.txt'
TABLES
DATA_TAB = IT_LINE
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.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = 'C:test.txt'
APPEND = 'X'
TABLES
DATA_TAB = ITAB
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. -
Need guidance in displaying graphics shapes on image
I would like some help drawing a circle over an image which is displayed in JScrollpane through JLabel, The goal is, whe we click over the image, the image apperas with a small circle in the place we have clicked. I have used JLabel for displaying image in JScrollpane by using imageLabel.setIcon(new ImageIcon("default.jpg"));
I need to draw circle/rectangle when i click on image by this i need to select different points in the image by drawing circles/rectangles over the image.
If you understand my problem than please guide me for the same.
Thank youDon't post the same question multiple times. It's rude, as it leads to people wasting their time duplicating each others' answers.
http://forums.oracle.com/forums/message.jspa?messageID=9385315#9385315
http://forums.oracle.com/forums/message.jspa?messageID=9385314#9385314
Need guidance in displaying graphics shapes on image -
File Adapter: need to include filename in content being written
I want to use the file adapter to write a file, using the filename convention to generate part of the name dynamically.
However, I need to include the filename used for the output file in the actual content too.
Any ideas if this can be done?
Thanks
TobyAt a customer we implemented the file adapter to create a file based on a specic name for appending:
<assign name="AssignStaticFilename">
<copy>
<from expression="'Output.csv'"/>
<to variable="gFileAdapterOutboundHeader" part="outboundHeader" query="/ns2:OutboundFileHeaderType/ns2:fileName"/>
</copy>
</assign>
In de FileAdapter WSDL we set:
<jca:operation
LogicalDirectory="OutputDirectory"
InteractionSpec="oracle.tip.adapter.file.outbound.FileInteractionSpec"
FileNamingConvention="%SEQ%"
NumberMessages="1"
OpaqueSchema="false"
Append="true" >
</jca:operation>
Does this help you, based on a given input to set the filename and this variable to put it into the file? -
Need to include the R/3 Business system in SLD.
Now i need to include the R/3 Business system in SLD.
To do that i have to establish an RFC connection, could anyone guid me what type of RFC connection i need to use like HTTP connection or else other..... Get me the details.The distribution, participation in distributing or otherwise sending of this material is against the law. The material you are requesting is copyrighted material and available ONLY to customers of SAP. If you need such documents from the SAP Service Marketplace then you must have "S" user ID and login yourself to retrieve this material. If you do not have a "S" user ID then you should contact your own internal company groups responsible and request one or request them to retrieve the document for you.
By participating and sending such documents you are at risk for legal action and a removal of your account here on SDN and BPX.
DO NOT send material via email such as this! Further actions will result in officials within your company and your SAP Sales Account being notified and could result in legal action against you as an individual. -
Do I need to upgrade my graphics card before installing CS6.....currently have Nvidia quadro FX1800 with CS5.......what card would be recommendation for a one man operation that would like to take advantage of the mercury playback engine?
I agree with the recommendations for the GTX 660+. I also second John's advice to completely uninstall the existing Quadro drivers before you swap cards.
And that Quadro FX 1800 never worked with MPE GPU acceleration even in CS5 because although it has CUDA capability, it has only 768MB total VRAM on the card. MPE GPU acceleration requires a minimum of 765MB of free, unused VRAM - but a 768MB card leaves only 749MB of free, unused RAM because the Windows GUI itself consumes nearly 20MB of VRAM. And even if the FX 1800 had 1GB of VRAM, it would be sluggish-performing by current standards because the FX 1800 is really based on a downclocked GeForce 9600 GT (with only 64 CUDA cores) with a narrower memory bus width (192 bits instead of 256 bits, both DDR3). -
PE51/Form Editor for Payslip - Need to Include a digital signature
Hi,
I have the digital signature of the Manager of HR, and I need to include it in the payslip automatically.
The payslip was made by using de PE51 Form Editor, and I can´t find the way to include it.
I need to Know if there is a posibility to do this, using the PE51, or if I need to re-do the form in Sapscript.
Thanks for your answers.
Susana Quiroz.I believe you do have to put it in a SAPScript form. I do not recall any way to put it directly into your HR Form through PE51. Our rem statement is printed using a combination of a SAPScript and an HR Form, so our electronic signature is just included in the SAPScript.
You might want to check your config to see if you already have a SAPScript assigned to your payment method. It is under: Financial Accounting --> Accounts Receivable and Accounts Payable --> Business Transactions --> Outgoing Payments --> Automatic Outgoing Payments --> Payment Method/Bank Selection for Payment Program --> Set up payment methods per company code for payment transactions. -
How to send a ALV graphic through SBWP
Hi,
I am new to SAP and newly started SAP PP. We are sending a Z report through SBWP to senior team of the organization. But now new requirement generated to send the ALV graphic instead of detail report.
Is it possible to send through standard?.
If possible, can you please explains the steps.
Thanks;
MalkaHi Siraj
I do not have a ready sample with me; however, here can be a logical sequencing of steps which you can follow to achieve this:
1) Define a custom PF STATUS in the ALV with the SEND Button
2) In the User Command routine for ALV, code for SEND
3) See how standard ALV - EXPORT to EXCEL Works - Debug and find the steps to generate an EXCEL - in the SEND Functionality
4) Once Excel is downloaded, create a SOFM document for the same - Check the method CREATE of object SOFM on the coding required to do it
5) Generate the SOFM Object Instance using the document created and calling FM SWO_INVOKE
6) Now you have the run time instance of the report output as a document
7) Define a custom Business object and a custom workflow based on that object
8) Define a custom event with the event parameter of type SOFM
9) From your SEND routine of the report -> trigger the event and pass the SOFM Instance of the excel as event parameter
10) Workflow will have this object via binding from event to workflow container
11) In the decision step to approver, bind this to _ATTACH_OBJECTS
For each of these, you will find some link already on SCN.
Hope this helps.
Once you have the solution, by the above steps or a better one, do remember to create a document on SCN in order to help others - this is a valid requirement and it would be good to have a ready reckoner :-)
regards,
Modak -
Need to create alv report to show pan card number.
Hi,
I need to create alv report to show employee and vendor name , number , Pan card number .This is for hr module.
could any one tell me table and fields for this and how I can relate them with foriegn and primary key.
Regards,
Moderator Message: Do your own work
Edited by: kishan P on Oct 5, 2010 10:38 AMYes, but it only has one generic Date column, no start date and end date. I can't use that twice in the prompt. Although I can specify it to be 'between', but I'm not sure I can pass values to both variables like that.
Currently I have used Campaign Start Date and Campaign End Date to enter values in calender format to the variables. -
Need some sample alvs using merge
I need some sample alvs using merge
Hi!
data w_fieldcat type slis_fieldcat_alv.
type-pools : slis.
tables : sflight.
data : i_fieldcat type slis_T_fieldcat_alv.
data v_repid like sy-repid.
data : begin of i_sflight occurs 0,
carrid like sflight-carrid,
connid like sflight-connid,
fldate like sflight-fldate,
end of i_sflight.
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_program_name = v_repid
i_internal_tabname = 'I_SFLIGHT'
i_inclname = v_repid
changing
ct_fieldcat = I_fieldcatalog_TYPE.
Check this link
http://help.sap.com/saphelp_nw04/helpdata/en/22/a3f5fed2fe11d2b467006094192fe3/frameset.htm
Regards
Tamá -
Do I need to include DSC run time on the host coputer to run an executable
I've build an application and an installer and I've test them on a computer that has labview installed on it and it works well,
but when I installed my application on computer that doesn't has LabView it gives an error messege Says " error 1 can't deploy library"
althgough I'm deploying the libraries programmaticaly and the bath is correct aslo, but I don't know what's the problem I've tried every thing
on the site but nothing works.
I just need to deploy the libraries but i'm not doing or using logging & alarms so do i need to include DSC run time to my installer?
If any one have an idea about this problem just give me the solution!!!!!!
Mahmoud Alshair
Intelligent Systems Integrator ( ISI )
System Developer
Solved!
Go to Solution.Now no more duplicates,
coz I solved the problem and you 'll find it here
http://forums.ni.com/ni/board/message?board.id=170&thread.id=311115
By
Mahmoud Alshair
Intelligent Systems Integrator ( ISI )
System Developer -
Need info about nvidia graphics card supported with premiere pro cs5
Hi
I need information about nvidia graphics card supported with premiere pro cs5
If I have a computer(portable) with this video card or graphics card :
nVIDIA® GeForce™ GTX 285M with 1GB DDR3 Video Memory available in Single or Dual (SLi) Configurations
Microsoft® DirectX® 10 Compatible
is it going to support MPE in premiere pro cs5?
Regards,
VinayTo be clear:
You asked about supported cards. Here is a list of supported cards. Others on this thread are telling you how to make an unsupported card function to some degree using a method that is not advocated by Adobe. -
JDev 10.1.3.4
BIPub 10.1.3.4 Build 129 desktop
I have a series of reports with graphs which work by calling the xdo engine from a JDev designed web app. Worked fine with the previous version 562.
I just upgraded the desktop tool and rebuilt an old graph. The tables work, but the graphs/charts do not. I assume it is a jar / lib compatibility issue.
What jar files do I need to include in the project? What precedence do they need?
Also, what is the difference between setting a library reference and putting the jar files in the Web INF directory?
Thanks.
SteveJust wanted to add to this ... I loaded BIPub Server 10.1.3.4 where I extracted the xdocore.jar from to put in my project. The report previews fine in there, both graphs and tables. Also works in Word.
When I use the following code (which worked fine in previous version) the pdf opens with the table and an empty chart.
Any ideas??
Steve
public String getPDF(java.sql.Connection jdbcConnection, String sqlOrDataXMLpath,
Hashtable parameters,String templateXMLpath,OutputStream streamOut,
String flgType)
// create PDF and save in output path
// flgType SQL or DD for sql or datadef
// return error string if error
try //convert rtf template to xsl
// First store the xsl in a byte array input stream
ByteArrayOutputStream xslOut = new ByteArrayOutputStream();
RTFProcessor rtfProcessor = new RTFProcessor(templateXMLpath);
rtfProcessor.setOutput(xslOut);
rtfProcessor.process();
byte[] b = xslOut.toByteArray();
bais_xsl = new ByteArrayInputStream(b);
// Next store the data in a byte array input stream
ByteArrayOutputStream dataOut = new ByteArrayOutputStream();
DataProcessor dataProcessor = new DataProcessor();
dataProcessor.setConnection(jdbcConnection);
if (flgType.equals("SQL"))
{ dataProcessor.setSql(sqlOrDataXMLpath); }
else
{ dataProcessor.setDataTemplate(sqlOrDataXMLpath); }
dataProcessor.setParameters(parameters);
dataProcessor.setOutput("c:\\\\temp\\\\Test.xml");
dataProcessor.processData(); //data is now in a file for debug
if (flgType.equals("SQL"))
{ dataProcessor.setSql(sqlOrDataXMLpath); }
else
{ dataProcessor.setDataTemplate(sqlOrDataXMLpath); }
dataProcessor.setParameters(parameters);
dataProcessor.setOutput(dataOut);
dataProcessor.processData(); //data is now in dataOut stream
b = dataOut.toByteArray();
bais_data = new ByteArrayInputStream(b);
// now do document merge
FOProcessor processor = new FOProcessor();
processor.setData(bais_data);
processor.setTemplate(bais_xsl);
processor.setOutput(streamOut);
processor.setOutputFormat(FOProcessor.FORMAT_PDF);
processor.generate();
catch (IOException e)
System.out.println("IOException:getPDF " + e.getMessage());
catch (XDOException e)
System.out.println("XDOException:getPDF: " + e.getMessage()) ;
catch (SQLException e)
System.out.println("SQLException:getPDF: " + e.getMessage()) ;
return("Success");
Edited by: user6357416 on Oct 24, 2008 11:55 AM -
Need to include Table Control in Tabstrip (which is present in selection sc
Hi Friends,
I have a tab strip in my selection screen. I need to include a Table control in one of the tab of the tab strip. Is it possible? If yes How to do that?
Note: I cant use a module pool program.
Regards,
SudheerHi ,
We can do that.
You have created the Tab strips in Module Pool program.Select that tab Place the table control in your tabstrips.Assign the Table control name to the table control.
In this program We have a field in selection screen When we submit the screen the tabstrip will come and using with in that we table controls.we filled that table controls.
include zsalesordertop . " global Data
tables: zstr_vbak,zstr_vbap,zstr_vbep.
data:ok_code type sy-ucomm,
ok_cod type sy-ucomm,
l_vbeln type vbak-vbeln,
no_rows1 type i,
no_rows2 type i,
no_rows3 type i.
data: itab1 type table of zstr_vbak,
wa1 type zstr_vbak,
itab2 type table of zstr_vbap,
wa2 type zstr_vbap,
itab3 type table of zstr_vbep,
wa3 type zstr_vbep.
*& Module STATUS_0100 OUTPUT
text
module status_0100 output.
set pf-status 'BACK'.
SET TITLEBAR 'xxx'.
case ok_code.
when 'BACK'.
leave program.
endcase.
endmodule. " STATUS_0100 OUTPUT
*& Module STATUS_0101 OUTPUT
text
module status_0101 output.
set pf-status 'EXIT'.
SET TITLEBAR 'xxx'.
case ok_cod.
when 'EXIT'.
leave program.
when 'TAB1'.
tabstrip-activetab = 'TAB1'.
when 'TAB2'.
tabstrip-activetab = 'TAB2'.
when 'TAB3'.
tabstrip-activetab = 'TAB3'.
endcase.
endmodule. " STATUS_0101 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
module user_command_0100 input.
case ok_code.
when 'SUBMIT'.
if l_vbeln is not initial .
select vbeln erdat erzet ernam angdt bnddt audat vbtyp trvog auart from vbak into table itab1 where vbeln = l_vbeln.
if itab1 is not initial.
select vbeln posnr matnr matwa pmatn charg matkl arktx pstyv posar from vbap into table itab2 for all entries in itab1 where vbeln = itab1-vbeln.
select vbeln posnr etenr ettyp lfrel edatu ezeit vrkme from vbep into table itab3 for all entries in itab1 where vbeln = itab1-vbeln.
else.
message i000(000) with 'no data in item and schedule information table'.
endif.
else.
message i000(000) with 'not allowed'.
endif.
endcase.
endmodule. " USER_COMMAND_0100 INPUT
*& Module STATUS_1101 OUTPUT
text
module status_1101 output.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
describe table itab1 lines no_rows1.
tablecontrol1-lines = no_rows1.
endmodule. " STATUS_1101 OUTPUT
*& Module STATUS_2101 OUTPUT
text
module status_2101 output.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
describe table itab2 lines no_rows2.
tablecontrol2-lines = no_rows2.
endmodule. " STATUS_2101 OUTPUT
*& Module STATUS_3101 OUTPUT
text
module status_3101 output.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
describe table itab3 lines no_rows3.
tablecontrol3-lines = no_rows3.
endmodule. " STATUS_3101 OUTPUT
*& Module FILL_TABLECONTROL1 OUTPUT
text
module fill_tablecontrol1 output.
read table itab1 into zstr_vbak index tablecontrol1-current_line.
endmodule. " FILL_TABLECONTROL1 OUTPUT
*& Module FILL_TABLECONTROL2 OUTPUT
text
module fill_tablecontrol2 output.
read table itab2 into zstr_vbap index tablecontrol2-current_line.
endmodule. " FILL_TABLECONTROL2 OUTPUT
*& Module FILL_TABLECONTROL3 OUTPUT
text
module fill_tablecontrol3 output.
read table itab3 into zstr_vbep index tablecontrol3-current_line.
endmodule. " FILL_TABLECONTROL3 OUTPUT
Include zsalesordertop
program zmodule_pool_salesorder.
controls tabstrip type tabstrip.
controls tablecontrol1 type tableview using screen '1101'.
controls tablecontrol2 type tableview using screen '2101'.
controls tablecontrol3 type tableview using screen '3101'.
Sure this will help you.
Please reward points if it helps to you.
Thanks,
Swapna.
Maybe you are looking for
-
5th generation iPod nano is not being recognized
I have 5th generation iPod. My computer (desktop) suddenly decided not to recognize my iPod as of yesterday.To experiment, I connected my iPod to my brother's computer (laptop) and it worked fine. Suspicious that it was my computer that went haywire,
-
I have some raw video files dumped from a Sony HD camera. The files are in some MPEG format (VLC just reports mpegv, mpega), the resolution is 1440x1088, and they are about 10 GB for 1 hour of video. My Quicktime wont play the video, but VLC plays it
-
I am declaring data as follows V_ICON LIKE ICON, V_ICONCK LIKE ICON VALUE ICON_CHECKED, V_ICONTR LIKE ICON VALUE ICON_TRANSPORT, V_ICONRED LIKE ICON VALUE ICON_INCOMPLETE, V_ICONGREEN LIKE ICON VALUE ICON_CHECKED, Now
-
face time users, plz...
-
Installing Photoshop and Premier Elements 12
I just purchased the CD-ROM for Photoshop and Premier Elements 12. I already have Elements 8 installed. Question do I do an uninstall of 8 and than do a fresh install of 12? If I do the uninstall are there any remnants of files that might not uninsta