How to retreive and display output list from BAPI
Hello
I am making an applcation using SUP 2.0, and this application make an user to get leave history using a Mobile System from SUP.
I've created the MBO as Attributes using the BAPI: BAPI_LEAVE_HISTORY.
This BAPI has some parameters IN and OUT.
Input parameters are Employee Id and date.
The parameter OUT is a List that retreives the employee leave history.
Anyone has an Idea or example how to retreive the output from BAPI and displaying the output on a screen.
Any tips or blogs that can help me?
Thanks all!
Satish
Hi David Brandow,
I have tried your solution where I just created a MBO for my 'operation' and I'm using sync parameters to execute the RFC.
The problem I'm facing is, for example, if I create a record it gets saved in the MBO table and the record successfully gets created in SAP as well after a sync. But when I create another record and sync, the previously saved record in MBO table also gets executed so I'm getting duplicate entries in SAP.
Have you or anyone faced this problem?
Any response is appreciated. Please let me know if I'm not clear, I realized its a complicated scenario.
Thanks,
Sandeep
Similar Messages
-
How to retreive and display return value from BAPI
Hello,
I am using SUP to create a sales order application. In my MBO I have a create operation which calls a BAPI to create a sales order. How can I retrieve the return value (saled doc number) and display it on a screen and display it as an Alert of BB application.
Regards
Nidhideep BhandariHi David Brandow,
I have tried your solution where I just created a MBO for my 'operation' and I'm using sync parameters to execute the RFC.
The problem I'm facing is, for example, if I create a record it gets saved in the MBO table and the record successfully gets created in SAP as well after a sync. But when I create another record and sync, the previously saved record in MBO table also gets executed so I'm getting duplicate entries in SAP.
Have you or anyone faced this problem?
Any response is appreciated. Please let me know if I'm not clear, I realized its a complicated scenario.
Thanks,
Sandeep -
How do you read and display a signal from my a miccrontroller (MCB1700) onto labview connected via a CAN port on a PXI machine?
I tried using a DAQ Assistant but the CAN port is not included as one of the supported physical channels even though all its drivers are upto date.
Please help..
Thanks.
Solved!
Go to Solution.Attached herewith is a print screen of what is showing on MAX
The CAN ports are on NI PXI-8461
Hopefully that clarrifies something.
Attachments:
Untitled.png 212 KB
Untitled.png 212 KB -
How to read and display a signal from my PIC Microcontr​oller onto Labview?
Hi,
I am doing a project on a Pulse Oximeter and i am trying to read and display the signal from my PIC Microcontroller on Labview? How do i go about doing it? I am using the PIC16F877 and also making use of the USART?
How do i implement and initialise the USART in PIC16? What are the steps to be taken, please guide me through the process? The link provides information regarding the USART connection, initialisting and stuff? Is it correct to use these codes in my program?Link: http://ww1.microchip.com/downloads/en/AppNotes/00774a.pdf
Also, i am using the RS232 serial interface to connect to the PC? The connector i am using is the DB9 Connector. Which template and VI can i use? Am i supposed to use the NI-DAQmx and VISA? Also, for my USART connection, i am using the MAX232 Driver which is applicable for my application as i am working with +5V. So far, i have been reading and trying out on Labview and the steps i have taken are:
1) Open a New VI and used the Instrument I/O(Read & Display) template?
2) How do i configure the Instrument I/O Assistant Express VI to read the info from my device connected to COM1?
3) I was reading the Labview Manual, 'Getting Started with Labview' and i was following the steps under Page 55, Communicating with an Instrument. Am i on the right track?
4) How do i check and make sure that the port settings of the I/O Assistant and my PIC Micro Match
Please help me out and guide me through the process. I am student at a polytechnic and i am very new to Labview and the software is used as a development tool for the project. I have a deadline to meet and i hope i can get a response as fast as possible. Your help will be kindly and greatly appreciated. I hope to hear from you guys soon.You can e-mail me all your answers at [email protected]
Thank You
Best regards,
Ashwin
Ashwin Kumar Mansukhani
Attachments:
Getting Started with Labview.pdf 901 KBHi Ashwin,
It is a good idea to first be able to communicate with the microcontroller using some sort of serial communication software such as "HyperTerminal" or "Procomm", etc. Refer to MicroChip's recommendations on this.
Once that works, then you are ready to use LabView.
Here is a link which covers many aspects of serial communication. Link - click here
You probably received a development kit. They usually have a readily available interface. It's been a long time since I played with the PIC, but I seem to remember that you need to program the serial communication driver (as well as at least a bootloader) to get the serial communication going. The driver contains the necessary protocols so that you PC can have a machine conversation with the target (PIC).
It sounds like a fun & interesting project. Please avoid to have replies to your personal email. By having the answers posted to this thread, you will get much more support and advice.
Have fun,
JLV -
How to read and display a signal from my PIC Microcontroller onto Labview
Hi,
I am doing a project on a Pulse Oximeter and i am trying to read and display the signal from my PIC Microcontroller on Labview? How do i go about doing it? I am using the PIC16F877 and also making use of the USART?
How do i implement and initialise the USART in PIC16? What are the steps to be taken, please guide me through the process? The link provides information regarding the USART connection, initialisting and stuff? Is it correct to use these codes in my program?Link: http://ww1.microchip.com/downloads/en/AppNotes/00774a.pdf
Also, i am using the RS232 serial interface to connect to the PC? The connector i am using is the DB9 Connector. Which template and VI can i use? Am i supposed to use the NI-DAQmx and VISA? Also, for my USART connection, i am using the MAX232 Driver which is applicable for my application as i am working with +5V. So far, i have been reading and trying out on Labview and the steps i have taken are:
1) Open a New VI and used the Instrument I/O(Read & Display) template?
2) How do i configure the Instrument I/O Assistant Express VI to read the info from my device connected to COM1?
3) I was reading the Labview Manual, 'Getting Started with Labview' and i was following the steps under Page 55, Communicating with an Instrument. Am i on the right track?
4) How do i check and make sure that the port settings of the I/O Assistant and my PIC Micro Match
Please help me out and guide me through the process. I am student at a polytechnic and i am very new to Labview and the software is used as a development tool for the project. I have a deadline to meet and i hope i can get a response as fast as possible. Your help will be kindly and greatly appreciated. I hope to hear from you guys soon.You can e-mail me all your answers at [email protected]
Thank You
Best regards,
Ashwin
Ashwin Kumar Mansukhani
Attachments:
Getting Started with Labview.pdf 901 KBHi Ashwin,
I am not familiar with the PIC Microcontrollers, but I am assuming you mean that you have the microcontroller sending out serial data that you want to read on another computer with LabVIEW. Please let me know if this is incorrect.
What type of data is coming out of the serial port? Is it ASCII, or binary? The reason I ask this is that the serial communication in LabVIEW is done through a protocol called VISA, which uses ASCII data to send and receive. You can later convert this data into whatever form you need, but this is what it is designed to read and write.
You can check the settings such as baud rate and data bits in a configuration utility called Measurement and Automation Explorer, or MAX. When you open up the MAX interface, you can expand the Devices and Interfaces entry on the left, and then expand the Ports entry to see your serial port. When you highlight this port, select the Port Settings tab at the bottom of the window, and you can see what the current settings are, and change them if you need to. You can also set these parameters in LabVIEW using the VISA Configure Serial Port VI.
You can also test communication in MAX by right clicking on the correct port and choosing Open VISA Session. Then choose the Basic I/O light blue tab, and then go to the Read tab. When you click execute, it should read in what is coming from the serial port. This will allow you to verify that the correct information is coming in before even trying to acquire the data in the LabVIEW environment.
In LabVIEW, the best resource to use the Basic Serial Write and Read example program that ships with LabVIEW. By examining the block diagram of this program, you will be able to see the basic programming flow of serial communication in LabVIEW.
I hope this information was helpful! Please let us know if there's anything else we can help with.
john
Applications Engineer -
How to import and display an applet from JSP
i m using netbeans 5.0
i have class named myapplet.class
and jsp named myjsp.jsp
now i want to access(import) this myapplet.class from jsp
also i want to display this applet from this jsp
i am able to do either thing but not both
so please help me it is so urgent and important for me bcoz
i have to complete my project as early as possible
Thanks in advancemy jsp source file page path is D:\Reliance
project\WebApplication3\web\
and classes path is D:\Reliance
project\WebApplication3\build\web\WEB-INF\classes\
so problem is that if i want to use myapplet.class
then i have to put my class in D:\Reliance
project\WebApplication3\build\web\WEB-INF\classes\
location
but at that time i am not able to display this applet
on my jsp
if i put my myapplet.class in
D:\Reliance project\WebApplication3\web\ then i m
able to display
applet but not able to access(import) this class
hope you will got the problem!!!
thanks for your reply !!!try to set the path of your applet on jsp something like this
"WEB-INF/classes/myclass.class" -
How to pull and display the document from an external storage medium?
HI,
We are having one external storage medium for SAP documents. In our case it is filenet server.
My concern is .
How can we pull the doc from the filenet server (external storage medium)?. I am in need, how and what an abap development team needs to be done?.
Can anyone help in this regard ....to get the best logic and best technique ....!!!
Note:
I need to post this in ordinary abap not in webdynpro abap. I will do that. If any one get a chance to look into this and if you know .....please let me know the way.
Thanks in advance
Pons.
Edited by: Ponnuchamy on May 31, 2009 1:30 AMin first page for user input :
<form action="second.jsp" method="post">
Are you happy?
<br><input type="radio" name="radio1" value="yes" CHECKED>YES
<br>
<input type="radio" name="radio1" value="no">NO
<input type="submit">
in second.jsp output :
Your answer is:
<%= request.getParameter('radio1') %>
Is it what you want to display?
Hope that helps. -
How to run and displaying output of java file in jsp page ???
Hai,
I am going to develop a website which would have everything about java.
Example code displayed for all methods.Next to every Example i shoud have *"Run"* button.
Click at Run button should compile the example and show the output or even error.
Ex:If the user clicks the vector link then all the examples will be shown..
import java.util.*;
etc...
Run button-onclick it shoud compile the code above and shoud show the output....
I don't know how to get the console error and output..
kindly help me out....Thanks.Check java.lang.Runtime API.
-
Help!!! My husband by accident synced his account under my account and has merged all of our contacts. In the process of fixing the mixup has deleted contacts on both phones. How do I restore the contact list from the original contact list.
I hope that you aren't complaining about dropped calls INSIDE your condo because no amount of switching or upgrading devices will solve that.
VZW will not guarantee service inside of any structure. There are just too many factors. If the problem is inside then you might want to look at one of the following:
1.) Network Extender (may cause issues for others in a condo or apartment style setting)
2.) A Google Voice Number (Free with a Gmail email address), downloading Google Hangouts Dialer and forwarding your calls to the GVN so that you can make and receive calls over Wi-Fi. -
How can we modify alv output list
Hi
this is fazil.
Please tell me any body How can we modify alv output list.
Thanks & Regards
Fazil
[email protected]Fazil,
check the program,
You can find the code in this program 'BCALV_FIELDCAT_TEST'
*& Report BCALV_FIELDCAT_TEST *
This report allows to modify the fieldcatalog of a corresponding
output table and to view the effects of your changes directly.
Note that for some changes you need to newly display the whole
ALV Grid Control, e.g., DDIC-Fields are read only the first time
you call SET_READY_FOR_FIRST_DISPLAY.
Note also that not all scenarios can be tested since the output
table does not comprise all fields to test available features
of the fieldcatalog. Copy this program and extend the output
table accordingly if you want to test such a special feature.
(The field CARRNAME in 'gt_sflight' was added to test field REF_FIELD
and TXT_FIELD of the fieldcatalog - see what happens if you
calculate subtotals by carrier-id).
report bcalvt_fieldcatalog .
data: ok_code type sy-ucomm,
save_ok_code type sy-ucomm,
fieldcatalog for output table
gt_fieldcat type lvc_t_fcat,
fieldcatalog for fieldcatalog itself:
gt_fcatfcat type lvc_t_fcat,
gs_fcatlayo type lvc_s_layo.
Output table
data: begin of gt_sflight occurs 0.
data: carrname type s_carrname.
include structure sflight.
data: end of gt_sflight.
data: g_max type i value 100.
data: g_all type c value SPACE.
Controls to display gt_sflight and corresponding fieldcatalog
data: g_docking type ref to cl_gui_docking_container,
g_alv type ref to cl_gui_alv_grid.
data: g_custom_container type ref to cl_gui_custom_container,
g_editable_alv type ref to cl_gui_alv_grid.
LOCAL CLASS Definition
class lcl_event_receiver definition.
public section.
methods handle_data_changed
for event data_changed of cl_gui_alv_grid
importing er_data_changed.
endclass.
class lcl_event_receiver implementation.
method handle_data_changed.
at the time being, no checks are made...
endmethod.
endclass.
data: event_receiver type ref to lcl_event_receiver.
end-of-selection.
set screen 100.
*& Module STATUS_0100 OUTPUT
text
module status_0100 output.
set pf-status 'BASIC'.
set titlebar 'BASICTITLE'.
create ALV Grid Control in the first run
if g_docking is initial.
perform create_and_init_controls.
endif.
endmodule. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
module user_command_0100 input.
save_ok_code = ok_code.
clear ok_code.
case save_ok_code.
when 'SUBMIT'.
set the frontend fieldcatalog
ATTENTION: DDIC-Fields are not updated using this method!
(see 'RESTART')
call method g_alv->set_frontend_fieldcatalog
exporting
it_fieldcatalog = gt_fieldcat.
call method g_alv->refresh_table_display.
call method cl_gui_cfw=>flush.
when 'RESTART'.
Destroy the control currently visible and display it again
using the changed fieldcatalog.
perform restart_sflight.
when '&ALL'.
perform switch_visibility.
endcase.
endmodule. " USER_COMMAND_0100 INPUT
*& Form CREATE_AND_INIT_CONTROLS
text
--> p1 text
<-- p2 text
form create_and_init_controls.
create object g_docking
exporting
dynnr = '100'
extension = 150
side = cl_gui_docking_container=>dock_at_bottom.
create object g_alv
exporting
i_parent = g_docking.
create object g_custom_container
exporting
container_name = 'CC_0100_FIELDCAT'.
create object g_editable_alv
exporting
i_parent = g_custom_container.
register events
create object event_receiver.
set handler event_receiver->handle_data_changed for g_editable_alv.
call method g_editable_alv->register_edit_event
exporting
i_event_id = cl_gui_alv_grid=>mc_evt_modified.
perform build_fieldcatalogs changing gt_fieldcat gt_fcatfcat.
perform modify_fieldcatalog changing gt_fcatfcat.
perform select_data. "CHANGING gt_sflight
call method g_alv->set_table_for_first_display
changing
it_outtab = gt_sflight[]
it_fieldcatalog = gt_fieldcat[].
optimize column width of grid displaying fieldcatalog
gs_fcatlayo-cwidth_opt = 'X'.
Get fieldcatalog of table sflight - alv might have
modified it after passing.
call method g_alv->get_frontend_fieldcatalog
importing et_fieldcatalog = gt_fieldcat[].
call method cl_gui_cfw=>flush.
Display fieldcatalog of table sflight:
call method g_editable_alv->set_table_for_first_display
exporting
is_layout = gs_fcatlayo
changing
it_outtab = gt_fieldcat[]
it_fieldcatalog = gt_fcatfcat[].
register events
create object event_receiver.
set handler event_receiver->handle_data_changed for g_editable_alv.
endform. " CREATE_AND_INIT_CONTROLS
*& Form restart_sflight
text
--> p1 text
<-- p2 text
form restart_sflight.
data: ls_fieldcat type lvc_s_fcat.
free g_docking and thus g_alv
call method g_docking->free.
clear g_docking.
clear g_alv.
create new instances
create object g_docking
exporting
dynnr = '100'
extension = 150
side = cl_gui_docking_container=>dock_at_bottom.
create object g_alv
exporting
i_parent = g_docking.
This is an internal method to invalidate all fields in the fieldcat
loop at gt_fieldcat into ls_fieldcat.
clear ls_fieldcat-tech_comp.
modify gt_fieldcat from ls_fieldcat.
endloop.
Newly display the list with current fieldcatalog.
call method g_alv->set_table_for_first_display
changing
it_outtab = gt_sflight[]
it_fieldcatalog = gt_fieldcat.
Get fieldcatalog - it might be changed by ALV in the last call
call method g_alv->get_frontend_fieldcatalog
importing
et_fieldcatalog = gt_fieldcat[].
call method g_editable_alv->refresh_table_display.
call method cl_gui_cfw=>flush.
endform. " restart_sflight
*& Form select_data
text
--> p1 text
<-- p2 text
form select_data.
data: lt_sflight type table of sflight with header line,
ls_scarr type scarr.
select data of sflight
select * from sflight into table lt_sflight up to g_max rows.
copy data to gt_sflight and update CARRNAME
loop at lt_sflight.
move-corresponding lt_sflight to gt_sflight.
select single * from scarr into ls_scarr
where carrid = gt_sflight-carrid.
gt_sflight-carrname = ls_scarr-carrname.
append gt_sflight.
endloop.
endform. " select_data
*& Form BUILD_FIELDCATALOGS
text
<--P_GT_FIELDCAT text
<--P_GT_FCATFCAT text
form build_fieldcatalogs changing p_fieldcat type lvc_t_fcat
p_fcatfcat type lvc_t_fcat.
data: ls_fcat type lvc_s_fcat.
Fieldcatalog for table SFLIGHT: p_fieldcat
generate fieldcatalog automatically
call function 'LVC_FIELDCATALOG_MERGE'
exporting
i_structure_name = 'SFLIGHT'
I_CLIENT_NEVER_DISPLAY = 'X'
changing
ct_fieldcat = p_fieldcat[]
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 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.
shift all column positions to the right except for MANDT
loop at p_fieldcat into ls_fcat.
if ls_fcat-fieldname ne 'MANDT'.
add 1 to ls_fcat-col_pos.
if ls_fcat-fieldname = 'CARRID'.
ls_fcat-txt_field = 'CARRNAME'."link CARRNAME to CARRID
endif.
modify p_fieldcat from ls_fcat.
endif.
endloop.
create a new line for CARRNAME in p_fieldcat
clear ls_fcat.
ls_fcat-fieldname = 'CARRNAME'.
ls_fcat-ref_table = 'SCARR'.
ls_fcat-col_pos = 1.
insert new line before CARRID (do not forget MANDT!).
insert ls_fcat into p_fieldcat index 1.
Fieldcatalog for table LVC_T_FCAT:p_fcatfcat
Generate fieldcatalog of fieldcatalog structure.
This fieldcatalog is used to display fieldcatalog 'p_fieldcat'
on the top of the screen.
call function 'LVC_FIELDCATALOG_MERGE'
exporting
i_structure_name = 'LVC_S_FCAT'
I_CLIENT_NEVER_DISPLAY = 'X'
changing
ct_fieldcat = p_fcatfcat[]
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 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.
Hide all fields that are not documented (valid for release 4.6A)
perform hide_fields changing p_fcatfcat.
endform. " BUILD_FIELDCATALOGS
*& Module EXIT_PROGRAM INPUT
text
module exit_program input.
leave program.
endmodule. " EXIT_PROGRAM INPUT
*& Form MODIFY_FIELDCATALOG
text
<--P_GT_FCATFCAT text
form modify_fieldcatalog changing p_fcatfcat type lvc_t_fcat.
data ls_fcat type lvc_s_fcat.
loop at p_fcatfcat into ls_fcat.
ls_fcat-coltext = ls_fcat-fieldname.
ls_fcat-edit = 'X'.
if ls_fcat-fieldname = 'COL_POS' or ls_fcat-fieldname = 'FIELDNAME'.
ls_fcat-key = 'X'.
endif.
modify p_fcatfcat from ls_fcat.
endloop.
endform. " MODIFY_FIELDCATALOG
form hide_fields changing p_fieldcat type lvc_t_fcat.
data: ls_fcat type lvc_s_fcat.
Only show documented fields of fieldcatalog.
For a documentation choose "Help->Application Help" in the menu.
loop at p_fieldcat into ls_fcat.
if not (
ls_fcat-fieldname eq 'CFIELDNAME'
or ls_fcat-fieldname eq 'COL_POS'
or ls_fcat-fieldname eq 'COLDDICTXT'
or ls_fcat-fieldname eq 'COLTEXT'
or ls_fcat-fieldname eq 'CURRENCY'
or ls_fcat-fieldname eq 'DD_OUTLEN'
or ls_fcat-fieldname eq 'DECIMALS_O'
or ls_fcat-fieldname eq 'DECMLFIELD'
or ls_fcat-fieldname eq 'DO_SUM'
or ls_fcat-fieldname eq 'DRAGDROPID'
or ls_fcat-fieldname eq 'EDIT_MASK'
or ls_fcat-fieldname eq 'EMPHASIZE'
or ls_fcat-fieldname eq 'EXPONENT'
or ls_fcat-fieldname eq 'FIELDNAME'
or ls_fcat-fieldname eq 'HOTSPOT'
or ls_fcat-fieldname eq 'ICON'
or ls_fcat-fieldname eq 'INTLEN'
or ls_fcat-fieldname eq 'INTTYPE'
or ls_fcat-fieldname eq 'JUST'
or ls_fcat-fieldname eq 'KEY'
or ls_fcat-fieldname eq 'LOWERCASE'
or ls_fcat-fieldname eq 'LZERO'
or ls_fcat-fieldname eq 'NO_OUT'
or ls_fcat-fieldname eq 'NO_SIGN'
or ls_fcat-fieldname eq 'NO_SUM'
or ls_fcat-fieldname eq 'NO_ZERO'
or ls_fcat-fieldname eq 'OUTPUTLEN'
or ls_fcat-fieldname eq 'QFIELDNAME'
or ls_fcat-fieldname eq 'QUANTITY'
or ls_fcat-fieldname eq 'REF_FIELD'
or ls_fcat-fieldname eq 'REF_TABLE'
or ls_fcat-fieldname eq 'REPREP'
or ls_fcat-fieldname eq 'REPTEXT'
or ls_fcat-fieldname eq 'ROLLNAME'
or ls_fcat-fieldname eq 'ROUND'
or ls_fcat-fieldname eq 'ROUNDFIELD'
or ls_fcat-fieldname eq 'SCRTEXT_L'
or ls_fcat-fieldname eq 'SCRTEXT_M'
or ls_fcat-fieldname eq 'SCRTEXT_S'
or ls_fcat-fieldname eq 'SELDDICTXT'
or ls_fcat-fieldname eq 'SELTEXT'
or ls_fcat-fieldname eq 'SP_GROUP'
or ls_fcat-fieldname eq 'SYMBOL'
or ls_fcat-fieldname eq 'TECH'
or ls_fcat-fieldname eq 'TIPDDICTXT'
or ls_fcat-fieldname eq 'TOOLTIP'
or ls_fcat-fieldname eq 'TXT_FIELD' ).
ls_fcat-tech = 'X'.
endif.
modify p_fieldcat from ls_fcat.
endloop.
endform.
form switch_visibility.
data: lt_fcatfcat type lvc_t_fcat,
ls_fcat type lvc_s_fcat.
call method g_editable_alv->get_frontend_fieldcatalog
importing ET_FIELDCATALOG = lt_fcatfcat.
if not g_all is initial.
perform hide_fields changing lt_fcatfcat.
g_all = SPACE.
else.
loop at lt_fcatfcat into ls_fcat.
if ls_fcat-tech eq 'X'.
ls_fcat-tech = SPACE.
ls_fcat-no_out = 'X'.
modify lt_fcatfcat from ls_fcat.
endif.
endloop.
g_all = 'X'.
endif.
call method g_editable_alv->set_frontend_fieldcatalog
exporting it_fieldcatalog = lt_fcatfcat.
call method g_editable_alv->refresh_table_display.
endform.
Don't forget to rewaard if useful.. -
How to Generate and Display SVG Graphics in ABAP
Hi everybody,
I tried to complete the Tutorial "How to Generate and Display SVG Graphics in ABAP, Part 1" by Siarhei Ulasenka (https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ad83a990-0201-0010-d680-a189f8bc20fa).
Unfortunately when I tried the example to display an SVG Drawing in an ABAP Report I get the error message "Es ist ein Laufzeitfehler aufgetreten, ungültiges Zeichen" (english should be something like "Runtime Error, unkown character"). But it works when I open the svgfile in a new IE Window (parameter in_place from cl_gui_html_viewer->show_url). Also when I open a svg file from the local disc it works fine.
The code:
CALL METHOD html_control->load_data
EXPORTING
url = 'chart.svg'
type = 'image'
subtype = 'svg+xml'
CHANGING
data_table = lt_svg
EXCEPTIONS
OTHERS = 1.
CALL METHOD html_control->show_url
EXPORTING
url = 'chart.svg'
in_place = 'X'
EXCEPTIONS
cntl_error = 1.
Has anyone a solution? Thanks in advance for your help!
Regards
KathrinHello Alex,
The Corel SVG viewer has problems loading and displaying the examples (see the list of limitations at their site). Try to use the Adobe viewer instead.
Regards,
Sergei Ulasenka -
How to acces and display datas storaged in cache for a SUP 2.0 workflow?
HI to all.
I have an application with a item menu which obtains data thought a online request. the result is shown is a listview.
My problem is when my BlackBerry has no conection ( offline scenario). When I select the menu item, I obtain an error.
How to acces and display datas storaged in cache for my MBO? I have read that I can use getMessageValueCollection in custom.js to access to my datas but once I get the datas, How can associate those datas to a Listview like a online request?? Do i have to develop my own screen in html or how?
Thanks.I'm not entirely clear on what you mean by "cache" in this context. I'm going to assume that what you are really referring to is the contents of the workflow message, so correct me if I'm wrong. There is, in later releases, the ability to set an device-side request cache time so that if you issue an online request it'll store the results in an on-device cache and if you subsequently reissue the same online request with the same parameter values within that timeout period it'll get the data from the cache rather than going to the server, but my gut instinct is that this is not what you are referring to.
To access the data in the workflow message, you are correct, you would call getMessageValueCollection(). It will return an object hierarchy with objects defined in WorkflowMessage.js. Note that if your online request fails, the data won't magically appear in your workflow message.
To use the data in the workflow message to update a listview, feel free to examine the code in the listview widgets and in API.js. You can also create a custom listview as follows:
function customBeforeNavigateForward(screenKey, destScreenKey) {
// In this example, we only want to replace the listview on the "My Approvals" screen
if (destScreenKey == 'My_Approvals'){
// First, we get the MessageValueCollection that we are currently operating on
var message = getCurrentMessageValueCollection();
// Next, we'll get the list MessageValue from that MessageValueCollection
var itemList = message.getData("LeaveApprovalItem3");
// Because its a list, the Value of the MessageValue will be an array
var items = itemList.getValue();
// Figure out how many items are in the list
var numOfItems = items.length;
// Iterate through the results and build our list
var i = 0;
var htmlOutput = '<div><ul data-role="listview" data-theme="k" data-filter="true">';
var firstChar = '';
while ( i < numOfItems ){
// Get the current item. This will be a MessageValueCollection.
var currItem= items<i>;
// Get the properties of the current item.
var owner = currItem.getData("LeaveApprovalItem_owner_attribKey").getValue();
var type = currItem.getData("LeaveApprovalItem_itemType_attribKey").getValue();
var status = currItem.getData("LeaveApprovalItem_itemStatus_attribKey").getValue();
var startDate = currItem.getData("LeaveApprovalItem_startDate_attribKey").getValue();
var endDate = currItem.getData("LeaveApprovalItem_endDate_attribKey").getValue();
// Format the data in a specific presentation
var formatStartDate = Date.parse(startDate).toString('MMM/d/yyyy');
var formatEndDate = Date.parse(endDate).toString('MMM/d/yyyy');
// Decide which thumbnail image to use
var imageToUse = ''
if (status == 'Pending'){
imageToUse = 'pending.png';
else if (status == 'Rejected'){
imageToUse = 'rejected.png';
else {
imageToUse = 'approved.png';
// Add a new line to the listview for this item
htmlOutput += '<li><a id ="' + currItem.getKey() + '" class="listClick">';
htmlOutput += '<img src="./images/' + imageToUse + '" class="ui-li-thumb">';
htmlOutput += '<h3 class = "listTitle">' + type;
htmlOutput += ' ( ' + owner + ' ) ';
htmlOutput += '</h3>';
htmlOutput += '<p>' + formatStartDate + ' : ' + formatEndDate + '</p>';
htmlOutput += '</a></li>';
i++;
htmlOutput += '</ul></div>';
// Remove the old listview and add in the new one. Note: this is suboptimal and should be fixed if you want to use it in production.
$('#My_ApprovalsForm').children().eq(2).hide();
$('#My_ApprovalsForm').children().eq(1).after(htmlOutput);
// Add in a handler so that when a line is clicked on, it'll go to the right details screen
$(".listClick").click(function(){
currListDivID = $(this).parent().parent();
$(this).parent().parent().addClass("ui-btn-active");
navigateForward("Request_Details", this.id );
if (isBlackBerry()) {
return;
// All done.
return true; -
I've a new account on iMac. When composing an email the contact list does not show up on the bar, which would allow me to select the persons I want to include on the distribution of the email. When I start keying in a name in the email, it comes up with the person's address, which shows it is synced. How do I engage the contact list from the email like I do on my old account (where a contact list icon shows up, along with the "attach" and other icons) ?
With the New Message window open, go to the View menu and select "Customize Toolbar...".
In the screen that opens, drag the item labelled "Address" into the Toolbar area of the New Message window, then click the "Done" button.
That item should be then added to the Toolbar for the New Message window.
Note that the main Mail window and the New Message window (as well as the separate message window if you open a message that way) use different toolbars - the settings/inclusions for one do not carry over to another. -
How to place an image in database and how to retrieve and display it in the front end
how to place an image in database and how to retrieve and display it in the front end
and to place an image in database and retrieve the image from database using xml
please,help me out.Create a table with a Long RAW Datatype column for storing the Image Column Data.
Create the form based on the table , which by defaults the column with LONG RAW atatype to a Image Item.
You can use Forms Built in function READ_IMAGE_FILE to read a Image file stored on the file system in to the image item.
A save on the form saves the image in the Image item in the long raw column. -
My iPhone was recently stolen and i had all my contact phone number which i need quite urgently on the spare android phone am using in the in, how do i get my contact list from my last back up on iTunes into my android phone in the meantime before i get a new iPhone?
Hi If you have them on your PC, just copy them and you will need to enter, each one on Android phone by typing, them in. Cheers Brian
Maybe you are looking for
-
I've dropped my E90 today :-(
I "managed" to drop my E90 today, from about 1m on a concrete floor. I have one hindge a little bit scratched, but the microphone stopped working ! The other party cannot hear me when I make a call, and the videoa are recorded without sound. I have t
-
I just got my new PC with Windows 8 and iTunes 11.0.0.163.
I just got my new PC with Windows8, and I downloaded the latest iTunes 11.0.0.163. Unfortunately iTunes refuses to pick-up my iTunes library from the external hard disk drive where I keep it (to protetct her from computer crashes or theft). Can anyon
-
Re: "Very Slow Internet On OSX 10.5.5"
Hello all, I am creating my own thread in response to ones like rogerjth's July 2008, the subject of which was "Slow Browsing with safari 3.1.2 - Any issues to watch out for?" and Roippeli's from Sep. 21, 2008, the subject of which was "Very Slow Int
-
Solution for connecting a handheld code scanner to SAP
hello experts, my question is on what technology one can use to connect an existing handheld device to SAP which is used a scanner to scan bar codes on boxes and transport the file from the wireless device of the scanned objects into the SAP. What so
-
When I use safari I keep getting a small coloured circular icon which in turn does not allow me to navigate at all. the only way I can get rid of it is to shut down and reboot. Can anyone help?