How to convert MIBs to snmpwalk output?
Hi,
I need to develop a monitoring module, but have no access to the actual device I need to develop for.
If I had the device's snmpwalk output - I could simulate the device (e.g., with snmposter) and start the development.
Is there a way to convert the device's MIBs (which I do have) to an snmpwalk output?
Any ideas would be welcome.
Ron.
Hi,
Are you trying to convert the device's MIBs to an snmpwalk output using LabVIEW?
There is a 3rd party toolkit that may be helpful in this case, however it is not supported by National Instruments.
I would appreciate it if you can provide more information on your application so that we can understand the issue better.
Regards
Arham H
Applications Engineer
National Instruments
Similar Messages
-
How to convert the Report Builder output to .xls
Dear All,
Let me please know how to convert the Report Builder output to Excel Format.
As there are having the facility to convert the output in .PDF or .HTML format but i want to convert that into Excel Sheet......
Please Guide me in this regards
Thanks in advance
Regards,
Vishal......Hello,
If your question is about the format spreadsheet, it is not possible from Reports Builder :
http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwwhthow/whatare/output/output_a_simpleexcel.htm
Restrictions
It is not possible to generate spreadsheet output directly from Reports Builder. Instead, on the command line, you can run the report using rwrun or Reports Server clients (rwservlet, rwclient, rwcgi), with DESFORMAT=SPREADSHEET. You cannot store DESFORMAT=SPREADSHEET as a system parameter value in the report definition (.rdf file).
Regards -
How to convert Oracle reports previewer output into delimited file.
How to convert Oracle reports previewer output into delimited file if the report has more than 1000 pages.
I tried with previewer option File --> Generate to file --> Delimited file, but the report engine is crashing.Not generating .TXT file.
I observed that this option is not working for more than 400 pages.
I am using Oracle reports 6i version.
Plz suggest me to generate .TXT file from Report previewer.You can specify a delimiter (a character or string of characters) to separate the data (boilerplate or field objects) in your report output in either of the following ways:
On the command line using the DELIMITER keyword.
In the Delimited Output dialog box or DelimitedData Output dialog box (displayed with File > Generate to File > Delimited or File > Generate to File > DelimitedData) in Reports Builder.
for further information goto this link
http://download.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_concepts2.htm#sthref760 -
How to convert Report Builder output to .XLS
Dear All,
Let me please know how to convert the Report Builder output to Excel Format.
As there are having the facility to convert the output in .PDF or .HTML format but i want to convert that into Excel Sheet......
Please Guide me in this regards
Thanks in advance
Regards,
Vishal......What version of reports are you running?
If it's Reports 10g then have you looked at the help under the topic "About spreadsheet output"? -
How to convert Oracle Report Output to Excel Spread Sheet..
Hello Sir,
How to convert Oracle Report Output to Excel Spread Sheet..
Thanks..Hello,
Please give us more information what kind of report(s). Sample example etc.,
Sri -
How to Convert spool which is for smartform output to PDF?
how to Convert spool which is for smartform output to PDF?
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF' is not working for smartform output,
if i use this there will be error spool not contain list output?
than whats the function module or way to convert spool contain smartform output to pdg?
regards,<b>Procedure</b>
When we activate the Smartform the system generates a Function Module. The function module name we can get from Smartfrom screen from menubar
Environment => Function Module_Name . In a report we can get this Function module name by calling a Function Module standard SSF_FUNCTION_MODULE_NAME. This function module at runtime calls the FM generated by smartform, which in turn is then used to pass data from the report to Smartform. In the report given below the FM generated is /1BCDWB/SF00000152 . In this FM we can see CONTROL_PARAMETERS in import tab. This is of type SSFCTRLOP. We need to set the GETOTF of this to be X. Setting this field will activate the OTF field in smartform.
In export tab of the FM generated by smartform we can see a parameter JOB_OUTPUT_INFO which is of type SSFCRESCL. The SSFCRESCL is a structure of having one of fields as OTFDATA. OTFDATA in turn is a table of type ITCOO. ITCOO has two fields TDPRINTCOM and TDPRINTPAR. TDPRINTCOM represents command line of OTF format data and TDPRINTPAR contains command parameters of OTF format data.
In every Smartform output in OTF format, TDPRINTCOM begins and ends with //. EP represents the end-of-page value for TDPRINTCOM field.
In addition we need to set few fields at the place where we call this FM(generated by smartform) in our program. While calling this FM we should set control_parameters, output_options, user_settings and job_putput_info fields as shown in program.
Once these settings are done we can call Function Module CONVERT_OTF to convert the OTF data of smartfrom output to PDF data format. Once these are done we can call method cl_gui_fronted_services=>file_save_dialog to specify the directory path where we want to save the output PDF file. After this we can call Function Module GUI_DOWNLOAD to download the PDF file on our local system.
<b>Here is a sample code of program to perform the function.</b>
SAMPLE CODE
[code]*&---------------------------------------------------------------------*
*& Report ZAMIT_SMART_FORM_PDF *
REPORT ZAMIT_SMART_FORM_PDF .
data: carr_id type sbook-carrid,
cparam type ssfctrlop,
outop type ssfcompop,
fm_name type rs38l_fnam.
DATA: tab_otf_data TYPE ssfcrescl,
pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE,
tab_otf_final TYPE itcoo OCCURS 0 WITH HEADER LINE,
file_size TYPE i,
bin_filesize TYPE i,
FILE_NAME type string,
File_path type string,
FULL_PATH type string.
parameter: p_custid type scustom-id default 1.
select-options: s_carrid for carr_id default 'LH' to 'LH'.
parameter: p_form type tdsfname default 'ZAMIT_SMART_FORM'.
data: customer type scustom,
bookings type ty_bookings,
connections type ty_connections.
start-of-selection.
***************** suppressing the dialog box for print preview****************************
outop-tddest = 'LP01'.
cparam-no_dialog = 'X'.
cparam-preview = SPACE.
cparam-getotf = 'X'.
select single * from scustom into customer where id = p_custid.
check sy-subrc = 0.
select * from sbook into table bookings
where customid = p_custid
and carrid in s_carrid
order by primary key.
select * from spfli into table connections
for all entries in bookings
where carrid = bookings-carrid
and connid = bookings-connid
order by primary key.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting formname = p_form
* variant = ' '
* direct_call = ' '
importing fm_name = fm_name
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.
exit.
endif.
* calling the generated function module
call function fm_name
exporting
* archive_index =
* archive_parameters =
control_parameters = cparam
* mail_appl_obj =
* mail_recipient =
* mail_sender =
output_options = outop
user_settings = SPACE
bookings = bookings
customer = customer
connections = connections
importing
* document_output_info =
job_output_info = tab_otf_data
* job_output_options =
exceptions formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
if sy-subrc <> 0.
* error handling
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
tab_otf_final[] = tab_otf_data-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
* ARCHIVE_INDEX = ' '
* COPYNUMBER = 0
* ASCII_BIDI_VIS2LOG = ' '
IMPORTING
bin_filesize = bin_filesize
* BIN_FILE =
TABLES
otf = tab_otf_final
lines = 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.
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 = FILE_NAME
path = FILE_PATH
fullpath = 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.
*************downloading the converted PDF data to your local PC********
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = bin_filesize
filename = 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'
IMPORTING
filelength = file_size
TABLES
data_tab = 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.
ENDIF.
[/code]
Thanks and Regards,
Pavankumar -
Does anyone know how to convert the output from the standard report to xml?
Does anyone know how to convert the output from the standard SAP report to xml?
since it a standard report which you cannot modify you can only do the following.
submit report exporting list to memory
then
list from memory and then
use the returned itab along with CALL TRNSFORMATION key word to convert to xml.
but this only going to place the whole list content (including data and formating lines,etc) into a xml element and not the actual data alone in the list . -
How to convert ALV output into XML format.
Hi all,
I just want to know how to convert an ALV output into a XML format, this is really urgent.
regards,
Ruchika sainiThis program exports an internal table to an XML file. *----
Report ZPRUEBA_MML_13 *
Export an internal table to XML document *
NO BORRAR ESTE CODIGO *
REPORT ZPRUEBA_MML_13.
PANTALLA SELECCION *
PARAMETERS: GK_RUTA TYPE RLGRAP-FILENAME.
PANTALLA SELECCION *
TYPE TURNOS *
TYPES: BEGIN OF TURNOS,
LU LIKE T552A-TPR01,
MA LIKE T552A-TPR01,
MI LIKE T552A-TPR01,
JU LIKE T552A-TPR01,
VI LIKE T552A-TPR01,
SA LIKE T552A-TPR01,
DO LIKE T552A-TPR01,
END OF TURNOS.
TYPE TURNOS *
TYPE SOCIO *
TYPES: BEGIN OF SOCIO,
NUMERO LIKE PERNR-PERNR,
REPOSICION LIKE PA0050-ZAUVE,
NOMBRE LIKE PA0002-VORNA,
TURNOS TYPE TURNOS,
END OF SOCIO.
TYPE SOCIO *
ESTRUCTURA ACCESOS *
DATA: BEGIN OF ACCESOS OCCURS 0,
SOCIO TYPE SOCIO,
END OF ACCESOS.
ESTRUCTURA ACCESOS *
START OF SELECTION *
START-OF-SELECTION.
PERFORM LLENA_ACCESOS.
PERFORM DESCARGA_XML.
END-OF-SELECTION.
END OF SELECTION *
FORM LLENA_ACCESOS *
FORM LLENA_ACCESOS.
REFRESH ACCESOS.
CLEAR ACCESOS.
MOVE: '45050' TO ACCESOS-SOCIO-NUMERO,
'MOISES MORENO' TO ACCESOS-SOCIO-NOMBRE,
'0' TO ACCESOS-SOCIO-REPOSICION,
'T1' TO ACCESOS-SOCIO-TURNOS-LU,
'T2' TO ACCESOS-SOCIO-TURNOS-MA,
'T3' TO ACCESOS-SOCIO-TURNOS-MI,
'T4' TO ACCESOS-SOCIO-TURNOS-JU,
'T5' TO ACCESOS-SOCIO-TURNOS-VI,
'T6' TO ACCESOS-SOCIO-TURNOS-SA,
'T7' TO ACCESOS-SOCIO-TURNOS-DO.
APPEND ACCESOS.
CLEAR ACCESOS.
MOVE: '45051' TO ACCESOS-SOCIO-NUMERO,
'RUTH PEÑA' TO ACCESOS-SOCIO-NOMBRE,
'0' TO ACCESOS-SOCIO-REPOSICION,
'T1' TO ACCESOS-SOCIO-TURNOS-LU,
'T2' TO ACCESOS-SOCIO-TURNOS-MA,
'T3' TO ACCESOS-SOCIO-TURNOS-MI,
'T4' TO ACCESOS-SOCIO-TURNOS-JU,
'T5' TO ACCESOS-SOCIO-TURNOS-VI,
'T6' TO ACCESOS-SOCIO-TURNOS-SA,
'T7' TO ACCESOS-SOCIO-TURNOS-DO.
APPEND ACCESOS.
ENDFORM.
FORM LLENA_ACCESOS *
FORM DESCARGA_XML *
FORM DESCARGA_XML.
DATA: L_DOM TYPE REF TO IF_IXML_ELEMENT,
M_DOCUMENT TYPE REF TO IF_IXML_DOCUMENT,
G_IXML TYPE REF TO IF_IXML,
W_STRING TYPE XSTRING,
W_SIZE TYPE I,
W_RESULT TYPE I,
W_LINE TYPE STRING,
IT_XML TYPE DCXMLLINES,
S_XML LIKE LINE OF IT_XML,
W_RC LIKE SY-SUBRC.
DATA: XML TYPE DCXMLLINES.
DATA: RC TYPE SY-SUBRC,
BEGIN OF XML_TAB OCCURS 0,
D LIKE LINE OF XML,
END OF XML_TAB.
CLASS CL_IXML DEFINITION LOAD.
G_IXML = CL_IXML=>CREATE( ).
CHECK NOT G_IXML IS INITIAL.
M_DOCUMENT = G_IXML->CREATE_DOCUMENT( ).
CHECK NOT M_DOCUMENT IS INITIAL.
WRITE: / 'Converting DATA TO DOM 1:'.
CALL FUNCTION 'SDIXML_DATA_TO_DOM'
EXPORTING
NAME = 'ACCESOS'
DATAOBJECT = ACCESOS[]
IMPORTING
DATA_AS_DOM = L_DOM
CHANGING
DOCUMENT = M_DOCUMENT
EXCEPTIONS
ILLEGAL_NAME = 1
OTHERS = 2.
IF SY-SUBRC = 0.
WRITE 'Ok'.
ELSE.
WRITE: 'Err =',
SY-SUBRC.
ENDIF.
CHECK NOT L_DOM IS INITIAL.
W_RC = M_DOCUMENT->APPEND_CHILD( NEW_CHILD = L_DOM ).
IF W_RC IS INITIAL.
WRITE 'Ok'.
ELSE.
WRITE: 'Err =',
W_RC.
ENDIF.
CALL FUNCTION 'SDIXML_DOM_TO_XML'
EXPORTING
DOCUMENT = M_DOCUMENT
IMPORTING
XML_AS_STRING = W_STRING
SIZE = W_SIZE
TABLES
XML_AS_TABLE = IT_XML
EXCEPTIONS
NO_DOCUMENT = 1
OTHERS = 2.
IF SY-SUBRC = 0.
WRITE 'Ok'.
ELSE.
WRITE: 'Err =',
SY-SUBRC.
ENDIF.
LOOP AT IT_XML INTO XML_TAB-D.
APPEND XML_TAB.
ENDLOOP.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = W_SIZE
FILENAME = GK_RUTA
FILETYPE = 'BIN'
TABLES
DATA_TAB = XML_TAB
EXCEPTIONS
OTHERS = 10.
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.
Message was edited by:
Hymavathi Oruganti -
Hi all, I am new in java card development.
This is my environment setting:
@echo off
set JC_HOME=C:\JavaCard\java_card_kit-2_2
set JAVA_HOME=C:\j2sdk14103
set PATH=.;%JC_HOME%\bin;%PATH%
I have created the Wallet applet according to 'Zhiqun Chen" text book and named it WalletApp.java.
I have compiled this file to a class file.
This is where is I saved my file
C:\JavaCard\java_card_kit-2_2\samples\src\com\sun\javacard\samples\WalletApp\WalletApp.java.
But I don't really understand how to convert the class file.
May I know what is this for?
-out EXP JCA CAP
-exportpath
-applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1:0x1
com.sun.javacard.samples.HelloWorld.HelloWorld
com.sun.javacard.samples.HelloWorld
0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1 1.0
must save this in what file?
I tried to type in the command line below (and the result):
C:\JavaCard\java_card_kit-2_2\samples>converter -config scr\com\sun\javacard\sap
les\Wallet\Wallet.opt
error: file scr\com\sun\javacard\saples\Wallet\Wallet.opt could not be found
Usage: converter <options> package_name package_aid major_version.minor_ver
sion
OR
converter -config <filename>
use file for all options and parameters to converter
Where options include:
-classdir <the root directory of the class hierarchy>
set the root directory where the Converter
will look for classes
-i support the 32-bit integer type
-exportpath <list of directories>
list the root directories where the Converter
will look for export files
-exportmap use the token mapping from the pre-defined export
file of the package being converted. The converter
will look for the export file in the exportpath
-applet <AID class_name>
set the applet AID and the class that defines the
install method for the applet
-d <the root directory for output>
-out [CAP] [EXP] [JCA]
tell the Converter to output the CAP file,
and/or the JCA file, and/or the export file
-V, -version print the Converter version string
-v, -verbose enable verbose output
-help print out this message
-nowarn instruct the Converter to not report warning messages
-mask indicate this package is for mask, so restrictions on
native methods are relaxed
-debug enable generation of debugging information
-nobanner suppress all standard output messages
-noverify turn off verification. Verification is default
*********************************************************May I know What is the correct command line to convert the class file and what must I do to before converting the class file?
I saw some article saying we must use JDK1.3, is it a must?
Your solution is highly appreciated.
Thank you!Hi Ricardo,
I saved the file below as WalletApp.opt in the directory of scr\com\sun\javacard\samples\WalletApp
-out EXP JCA CAP
-exportpath c:\javacard\java_card_kit-2_2\api_export_files
-applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x2:0x1 WalletApp.WalletApp
WalletApp 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x2 1.0
But I still have the problem below:
C:\JavaCard\java_card_kit-2_2\samples>converter -config scr\com\sun\javacard\sam
ples\WalletApp\WalletApp.opt
error: file scr\com\sun\javacard\samples\WalletApp\WalletApp.opt could not be fo
und
Usage: converter <options> package_name package_aid major_version.minor_ver
sion
OR
converter -config <filename>
May I know What's wrong with my command or file?
Where can I download JDK because what I can find is J2SDK.
Thank you! -
Video Format Total Solution: How to Convert and Edit Video on Windows/Mac
More and More video formats are coming out with different video encoders and it makes our spare time more and more colorful. However, it is not to say that there is no problems. Actually, different video formats make it difficult to share video with others, even your own camcorder and iPod. Is there an easy way to convert videos effectively. Yes, there is.
In this article, I will show you guys how to convert videos on windows and mac.
Part 1. How to Convert and Edit Videos on Windows
For Windows users, you need a Video Converter(http://www.aiseesoft.com/total-video-converter.html) to do that for you.
Here I use Aiseesoft Total Video Converter(http://www.aiseesoft.com/total-video-converter.html)
Step 1: Download and install Aiseesoft Total Video Converter
After you download it to your computer, double click it and it is really easy to install.
You just need to click “next” and it will complete it in seconds. It will automatically run after installation.
http://www.aiseesoft.com/images/guide/total-video-converter/screen.jpg
Step 2: Load Video
Click “Add File” to find the video that you want to convert and click “open”. It will be loaded automatically.
Step 3: Select the target to decode
In the “Profile” drop download list you can find your target according the usage of your output video, such as if you want to put the video on your iPod touch, you can select the “iPod” in the first list and “iPod touch 2 MPEG-4 640*480(*.mp4)” in the second list.
Step 4: Set Advanced Parameters
After you select the right output profile, you can click “setting” button to set your advanced parameters. You can adjust video and audio settings separately. In video section, you can change “video encoder”, “resolution”, “frame rate”, “video bitrate”In audio section, you can change “audio encoder”, “sample rate”, “channel”, “audio bitrate”If you want to save this profile and settings and use it next time you can click “save as” button to give a name to it. And the next time you want to use it you can find it in the profile list named “user defined”.
Step 5: Choose a Destination
To browse and find a output folder for your output files or just the default one.
Finally, Click “Convert” button to begin your conversion, here in the converting
interface you can choose “shut down the computer when conversion complete” or “open output folder when conversion complete” or you just do not choose neither one.
Tips: How to Edit the Output Video
This video converter is also a video editor, you can use it to edit your output video as follows:
http://www.aiseesoft.com/images/guide/total-video-converter/effect.jpg
1. Effect:
You are allowed to adjust the “Brightness”, “Contrast”, “Saturation” and you can choose the “deinterlacing” to make the video more enjoyable.
2. Trim:
In “Trim” section you can pick up any part of the video to convert.
There are two ways to select the part of the video you want. One is set the start and end time in the box. The other one is to drag the start and end button in the processing bar.
3. Crop:
This function allows you to choose a certain play area to convert. That means you can choose a part of the screen you like to convert. For example, you just like the tv in the middle of the screen, then you can drag the frame around the preview window to select the tv and the output preview will show you the output video.In this section you can also choose the “zoom mode”, such as “keep original”, “full screen”, “16:9”, “4:3”.
4. Watermark
In the section, you can add a watermark on the output video to show people something, such as your name, website, studio name or other things. The watermark could be words and picture. You can adjust the transparent of the watermark easily to make it more beautiful.
Part 2. How to Convert Video on Mac
This time you need a Video Converter for Mac(http://www.aiseesoft.com/video-converter-for-mac.html)
Step 1: Add File
Click “Add File” button to load the video you want to converter
http://www.aiseesoft.com/images/guide/mac-video-converter/steps.jpg
Step 2: Choose profile and adjust settings
You can find your output video format from a drop-list called “Profile”You can also adjust the specific settings of the output video, such as “Resolution”, “Bitrate”, “Encoder” and so on.@ Tamwini
Your only goal is to sell software.
‡Thank you for hitting the Blue/Green Star button‡
N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009 -
Hi,
We have employee photos(JPG Format) stored in Content server. And now we want to print the photos in smartforms. For this I had written the below code to read the photo from content server in binary format as below.
REPORT ZTEST1.
PARAMETERS P_PERNR TYPE PERNR_D.
DATA: PS_CONNECT_INFO TYPE TOAV0,
IT_BINARY TYPE TABLE OF SDOKCNTBIN.
CALL FUNCTION 'HR_IMAGE_EXISTS'
EXPORTING
P_PERNR = P_PERNR
* P_TCLAS = 'A'
* P_BEGDA = '18000101'
* P_ENDDA = '99991231'
IMPORTING
* P_EXISTS =
P_CONNECT_INFO = PS_CONNECT_INFO
* EXCEPTIONS
* ERROR_CONNECTIONTABLE = 1
* OTHERS = 2
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
IF PS_CONNECT_INFO IS NOT INITIAL.
CALL FUNCTION 'SCMS_DOC_READ'
EXPORTING
STOR_CAT = SPACE
CREP_ID = PS_CONNECT_INFO-ARCHIV_ID
DOC_ID = PS_CONNECT_INFO-ARC_DOC_ID
* PHIO_ID =
* SIGNATURE = 'X'
* SECURITY = ' '
* NO_CACHE = ' '
* RAW_MODE = ' '
* IMPORTING
* FROM_CACHE =
* CREA_TIME =
* CREA_DATE =
* CHNG_TIME =
* CHNG_DATE =
* STATUS =
* DOC_PROT =
TABLES
* ACCESS_INFO =
* CONTENT_TXT =
CONTENT_BIN = IT_BINARY
* EXCEPTIONS
* BAD_STORAGE_TYPE = 1
* BAD_REQUEST = 2
* UNAUTHORIZED = 3
* COMP_NOT_FOUND = 4
* NOT_FOUND = 5
* FORBIDDEN = 6
* CONFLICT = 7
* INTERNAL_SERVER_ERROR = 8
* ERROR_HTTP = 9
* ERROR_SIGNATURE = 10
* ERROR_CONFIG = 11
* ERROR_FORMAT = 12
* ERROR_PARAMETER = 13
* ERROR = 14
* OTHERS = 15
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
ENDIF
Now the issue is I want to convert that binary data to bitmap image and upload the same in to SE78. So that I can use that BMP image from SE78 in my smartforms.
I had used the class CL_IGS_IMAGE_CONVERTER to covert the image into bmp but it is giving error that error in IMAGE DATA CORRUPT & Error Code 3. The conversion code used is as below.
******* CONVERT THE JPG IMAGE INTO BMP PHOTO. **********
DATA: L_IGS_IMGCONV TYPE REF TO CL_IGS_IMAGE_CONVERTER,
L_IMG_BLOB TYPE W3MIMETABTYPE,
L_IMG_SIZE TYPE W3PARAM-CONT_LEN,
L_IMG_TYPE TYPE W3PARAM-CONT_TYPE,
L_IMG_SUBTYPE TYPE W3PARAM-CONT_TYPE,
L_IMG_URL TYPE W3URL,
L_ERR_CODE TYPE I,
L_ERR_TEXT TYPE STRING,
P_DEST TYPE CHAR32 VALUE 'IGS_RFC_DEST'.
DATA: G_IMG_BLOB TYPE W3MIMETABTYPE,
G_IMG_TYPE TYPE W3PARAM-CONT_TYPE,
G_IMG_SIZE TYPE W3PARAM-CONT_LEN.
IF NOT IT_BINARY[] IS INITIAL.
G_IMG_BLOB[] = IT_BINARY.
CREATE OBJECT L_IGS_IMGCONV
EXPORTING
DESTINATION = P_DEST.
CALL METHOD L_IGS_IMGCONV->SET_IMAGE
EXPORTING
BLOB = G_IMG_BLOB
BLOB_SIZE = G_IMG_SIZE.
CASE PS_CONNECT_INFO-RESERVE.
WHEN 'TIF'.
G_IMG_TYPE = 'image/tiff'.
WHEN 'JPG'.
G_IMG_TYPE = 'image/jpeg'.
WHEN 'PNG'.
G_IMG_TYPE = 'image/png'.
WHEN 'GIF'.
G_IMG_TYPE = 'image/gif'.
WHEN 'BMP'.
G_IMG_TYPE = 'image/x-ms-bmp'.
WHEN OTHERS.
EXIT.
ENDCASE.
L_IGS_IMGCONV->INPUT = G_IMG_TYPE.
L_IGS_IMGCONV->OUTPUT = 'image/x-ms-bmp'.
* PERFORM GET_SIZE USING PICTURE_CONTAINER
* L_IGS_IMGCONV->WIDTH
* L_IGS_IMGCONV->HEIGHT.
CALL METHOD L_IGS_IMGCONV->EXECUTE
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC IS INITIAL.
CALL METHOD L_IGS_IMGCONV->GET_IMAGE
IMPORTING
BLOB = L_IMG_BLOB
BLOB_SIZE = L_IMG_SIZE
BLOB_TYPE = L_IMG_TYPE.
SPLIT L_IMG_TYPE AT '/' INTO L_IMG_TYPE L_IMG_SUBTYPE.
ELSE.
CALL METHOD L_IGS_IMGCONV->GET_ERROR
IMPORTING
NUMBER = L_ERR_CODE
MESSAGE = L_ERR_TEXT.
BREAK-POINT.
ENDIF.
ENDIF.
ENDIF.
So could you please some one help me how to convert JPEG Photo to BMP programatically.
Regards,
Mayur.johnandersonpalmdesert wrote:
My printer is requesting a vector file.
Jpeg File format does not support vectors. Photoshop has limited vector support and tools. Photoshop can not save vector file formats like SVG. What File type does your printer want?
Adobe Illustrator is Adobe vector application. -
How to convert FLV and F4V files to other media formats
How to convert FLV and F4V files to other media formats
Nowadays, every one can download their favorite videos from video sharing websites like YouTube, Hulu, MySpace, Google Video, metacafe, Yahoo! Video, Reuters.com and so on at will. However, these video files we got are usually in the format of FLV, or F4V, which are not workable by most portable devices, or some video players and video editors on our PC. With the intention of solving these problems, this guide will show you how to convert FLV and F4V files to other video and audio formats in detail.
1. Download, install and run Pavtube FLV Converter
As soon as you run this program, the following wine red interface will show up:
2. Add files, set output format and destination folder
Input FLV and F4V files to this program by clicking on “Add” button, and select a format as the output format in the drop-down list of “Format”, meanwhile, you can press the output folder to specify the destination folder or just use the path set by default. Moreover, “merge into one file” enables you to combine multiple FLV and F4V files to be as a single file, if you have this needs, just tick it.
3. Set advanced settings
Click “Settings” button, the following interface will pop up. You can change the parameters like screen size, bit rate, frame rate, sample rate, etc. on it to optimize the output quality or compress file size.
4. Convert
After all settings are done, you can press “Convert” button to start transferring, and then the following window will show you the conversion info in detail. According to the info you can manage your time and disk space properly.
Pavtube FLV Converter can definitely complete the conversion at a swift speed with excellent quality; also it adopts an advanced audio-video sync technology, so that audio and video match very well in the resulted files. Therefore you need not worry about these issues.
Useful tips:
Free online FLV downloader:
www.convertdirect.com
http://vixy.net/
http://www.videoconverterdownload.com/online-free-flv-converter.html
http://www.flv2mp3.com/
http://www.mediaconverter.org/
http://2conv.com/
http://online.movavi.com/
http://www.youconvertit.com/
http://www.playtube.com/
http://www.convert.net/Flip4Mac
-
How to convert string to an integer in SQL Server 2008
Hi All,
How to convert string to an integer in sql server,
Input : string str="1,2,3,5"
Output would be : 1,2,3,5
Thanks in advance.
Regards,
SunilNo, you cannot convert to INT and get 1,2,3 BUT you can get
1
2
3
Is it ok?
CREATE FUNCTION [dbo].[SplitString]
@str VARCHAR(MAX)
RETURNS @ret TABLE (token VARCHAR(MAX))
AS
BEGIN
DECLARE @x XML
SET @x = '<t>' + REPLACE(@str, ',', '</t><t>') + '</t>'
INSERT INTO @ret
SELECT x.i.value('.', 'VARCHAR(MAX)') AS token
FROM @x.nodes('//t') x(i)
RETURN
END
----Usage
SELECT * FROM SplitString ('1,2,3')
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
How to convert date from "yyyymmdd" to "MM/DD/YYYY" format
1. I have one BLDAT field in my internal table.
its getting updated from input file.
2. The value in the input file is like yyyymmdd.
So the internal table field is filled like this
"YYYYMMDD".
3. After this,I have to compare this internal table
field with BSAD table.
4. The BLDAT field in BSAD table is in the format of
"MM/DD/YYYY".
5. the BLDAT field is having diff format in internal table and BSAD table.So I am unable to check this value.
How to convert it as like the BSAD table format."MM/DD/YYYY" format.
Thanks in advance!!Using the WRITE statement
data: gd_date(10). "field to store output date
* Converts date from 20020901 to 09.01.2002
write sy-datum to gd_date mm/dd/yyyy.
OR u can
CONCATENATE gd_date+4(2) gd_date+6(2) gd_date+0(4)
into gd_date seperated by '/' .
Hope this helps.
Kindly reward points and close the thread for the
answer which helped u OR get back with queries. -
How to convert the alv list data into pdf format
Hi Expersts,
Is it possible to convert the alv list output data into PDF format? if yes, then please help me with this issue.
thanks in advance,
Regards,
Samadhii samad,
you can go through these link.i hope it ll solve your purpose
How to convert list output to PDF
Display ALV list output in PDF format
regards,
Shweta
Maybe you are looking for
-
I have an older 24" iMac (about 4 years old). I was wondering if it has a DVI output. All I see is firewire and USB. Can DVI be sent out of a USB port? I need to get DVI out to feed HD video into a monitor. Matrox has a device for this but it needs t
-
MRP requirements (material = "no dispo", storage location deleted)
Good morning, I have two different problems and hopefully, you can help me. - I see stock information in MMBE for a storage location I deleted - MD04 shows requirements for this storage location after it was deleted and the material was set to "no di
-
IPlanet 4.1 Error log has multiple "Exiting JVM" entries
Anybody ever run into this problem? I just did a clean install of iPlanet Enterprise Server (SP8) on my HP-UX box (PA_RISC2.0). Java servlets run fine in Tomcat on this box, but whenever I try to even turn on the servlet engine in iPlanet, the webser
-
Need help with a field to increment points
There is a business need to add points for some of our accounts. Example is that if an account is a training account, we need to add 5 points. If the same account has a special program tied to it, it gets another 3 points, so on and so forth.. I need
-
Can't access inbox - Please help
Hi, Mail froze up and I had to force quit. When I reopened Mail my inbox was empty. In the Mailboxes folder (library/mail) there is an inbox.mbox with a size of 162 MB. I assume this is my inbox but I don't know how to get it to show up again. I trie