How to relate a button to "control+c"
Hi:
I am using runtime class to run a java program from within
the original java program.
My question is if I run a endless loop program from within the original program,
is there a way for me to just click a button and let the endless loop
program terminate?
It is like in console environment, by clicking control+c then the program stops.
The original program still runs but the endless loop program terminates.
Thanks
i do not know if this will be happend in button but in menu we can set ctrl+c
use setAccelerator
buttonOne.setAccelerator( /* i forget the parameter */ )
Similar Messages
-
How to relate IDOC generated in sap through ALE from legacy system
Hi all,
can any one tell me how can relate an idoc generated in SAP with the new idoc generated in a legacy system. I mean how could I identify, which idoc is generated for a particular idoc in legacy system and vice versa.
Thanks,
NilanjanaThanks Suhas but when i am getting error message related to partnr profile when pressing this 'TRACE IDOC' button even with idoc in status 53.
Edited by: nilanjana sinha on Nov 11, 2011 8:20 AM -
How to get background color of controls ?
Hello everyone.
How to get background color of controls ?
When we use AWT/Swing,
we can get background color of component by using Component.getBackground()
It is regret that I can not find any method for such a method in JavaFX.
And how do we detect the change of background color of controls ?
Best regards.Hi Tadashi,
try this.
@Override
public void start(final Stage primaryStage) {
primaryStage.setTitle("Test ChangeListener");
Button btn = new Button();
btn.setText("change background");
btn.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
primaryStage.getScene().setFill(Color.rgb(
(int)(Math.random() * 255),
(int)(Math.random() * 255),
(int)(Math.random() * 255)));
StackPane root = new StackPane();
root.getChildren().add(btn);
primaryStage.setScene(new Scene(root, 300, 250));
primaryStage.getScene().fillProperty().addListener(new ChangeListener<Paint>() {
@Override
public void changed(ObservableValue<? extends Paint> arg0, Paint arg1, Paint arg2) {
System.out.println(
"old color: " + arg1.toString()
+ ", new color: " + arg2.toString());
btn.getOnAction().handle(null);
primaryStage.show();
}Peter -
How to find out which data control do the page layout components come from?
hi,
work in Jdev 11.1.2.3
After have drag and drop data control into pages designer, how to find out which data control do the page layout component (such as a field in form layout) come from?
--i cannot find data control related information in the property pallete for the page layout component.
Regards.This information can be found in the page definition file.
Select the field in the page and then click the binding tab. -
How to change the size of control´s prompt?
No matter the size of data to be displayed in the view suface prompt, the controls have the same size.
Does anyone here know how to change the size of control in surface prompt?HI,
In order to change the size of a radio button... one way you may consider is to Customise the Radio Button.
Place a Radio Button (RB) on the FP of a VI, Right-Click the RB > Advanced > Customise...
Click the Mode Button (most Left button) for Edit Mode
Right-click the radio button (the round image) now, you will see a list of actions i.e. Copy to clipboard, import picture ...You will see Four images under the 'Picture Item', those are the images that you will need to replace.
Prepare Four Images of the similar but larger expected size
*** Copy the 1st new image to clipboard. Back to the Picture Item and select 1st image. Then, select Import Picture (to replace the existing image)
Repeat *** for all four images.
Once done, change the mode back to original. Save the *.ctl
You are now ready to use the customised radio button!
Quick sample attached (sorry for the poor images created )
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com
Attachments:
IFK_RButton_Large.ctl 11 KB -
How to transfer data in table control in bdc
hi
how to transfer data in table control in bdc . I need the theory regarding this
byeHi,
just check in the forum , there is many threads available to ur questions.
Table control in BDC
http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
You can even refer to these related threads
bdc table control
Re: table control in bdc
table control in BDC
Reward if helpful.
Thanks
Naveen khan -
How to use radiobutton in table control ?
I have four radio buttons in a row in table control. How to group radio buttons horizontally in a table control ?
Thanks in advance.Hi
I already have radio buttons on table control. However when I run the program I am able to select all 4 radio buttons.
My need is, to select only one at a time. So how to group them??
thanks -
How to relate a report page to a tabular form?
I have a table called PRODUCT
SQL> desc product
Name Null? Type
PRODUCTNUMBER NOT NULL VARCHAR2(15 CHAR)
PRODUCTDESCRIPTION VARCHAR2(30 CHAR)
LOCATION VARCHAR2(10 CHAR)
WARRANTY NUMBER(4)
PRODUCTSN NOT NULL VARCHAR2(25 CHAR)
STATUS VARCHAR2(20 CHAR)Now I create a view, and based on this view I create a report page
CREATE OR REPLACE VIEW V_PRODUCT_OVERVIEW AS
SELECT PRODUCTNUMBER, PRODUCTDESCRIPTION, LOCATION, WARRANTY, COUNT(PRODUCTSN) QUANTITY
FROM PRODUCT
GROUP BY PRODUCTNUMBER, PRODUCTDESCRIPTION, LOCATION, WARRANTY;For each type of product (identified by PRODUCTNUMBER), there may be many instances (identified by PRODUCTSN). I want to put an edit button beside each record on the report page. After clicking the edit button, it will redirect to a detail page, which is based on the specific PRODUCTNUMBER, where I can add or modify products.
SELECT PRODUCTSN, PRODUCTSTATUS
FROM PRODUCT
WHERE PRODUCTNUMBER = #THE_PRODUCTNUMBER_OF_LAST_PAGE#I don't know how to accomplish this, especially how to relate these two pages, and how to pass the PRODUCTNUMBER from the first page to the second. Any idea is appreciated! Thanks!Can't run sample appliation. When I run the appliation, login using "demo/#lower_case_workspace_name#", the browser comes with error message:
ORA-06550: line 2, column 8: PLS-00201: identifier 'CUSTOM_AUTH' must be declared ORA-06550: line 2, column 1: PL/SQL: Statement ignored
Error ERR-10460 Unable to run authentication credential check function. -
Buttons to control video not working
I have tried to make simple buttons to control play, stop, paus and play again of a video. When that did not work I found the below instructions, and made movieclips for the buttons to use with the imported FLVPlayback (with none skin).
In step 2 I choose play (for the first play-button/movieclip).
In step 3, there is no video to choose in the box - only my own movieclips.
In step 4 - what's the difference?
In step 5 - there is no setting field...
Control video playback using behaviors
Select the movie clip to trigger the behavior.
In the Behaviors panel (Window > Behaviors), click the Add (+) button, and select the desired behavior from the Embedded Video submenu.
Select the video to control.
Select a Relative or Absolute path.
If required, select settings for the behavior parameters and click OK.
In the Behaviors panel under Event, click On Release (the default event) and select a mouse event. To use the On Release event, leave the option unchanged.what's the instance name of your component and show the code you used for your play button.
-
How to iterate the webservice Data control result set?
Hi all,
How to iterate the webservice Data control result set? I have an jsff page where I am displaying the single UserDetails by webservice DataContol. As per my design requirement I should iterate the DataControl resultSet to get the user details and push the same in to Managed bean. Please help me how to do this, any sample code please to iterate the resultset and get the data from it.
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<c:set var="uiBundle" value="#{adfBundle['edu.syr.oim.uiBundle']}"/>
<af:pageTemplate viewId="/templates/jsffTemplate.jspx">
<f:facet name="fTop"/>
<f:facet name="fCenter">
<af:panelGroupLayout layout="scroll" inlineStyle="width:100.0%;">
<af:panelTabbed id="pt1">
<af:showDetailItem text="#{uiBundle.PRIVACYFLAGS}" id="sdi4">
<af:panelGroupLayout id="pgl4" layout="scroll">
<af:spacer width="10" height="10" id="s3"/>
<af:panelFormLayout id="pfl6">
<af:panelLabelAndMessage label="#{uiBundle.STUDENTEMAIL}"
id="plam35">
<af:outputText value="#{bindings.stuEmail.inputValue}"
id="ot42"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="#{uiBundle.STUDENTHOMEADDRESS}"
id="plam39">
<af:outputText value="#{bindings.stuPermAddr.inputValue}"
id="ot35"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="#{uiBundle.STUDENTHOMEPHONE}"
id="plam40">
<af:outputText value="#{bindings.stuPermPhn.inputValue}"
id="ot37"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="#{uiBundle.STUDENTCURRENTPHONE}"
id="plam42">
<af:outputText value="#{bindings.stuCurrAddr.inputValue}"
id="ot40"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="#{uiBundle.STUDENTCURRENTPHONE}"
id="plam36">
<af:outputText value="#{bindings.stuCurrPhn.inputValue}"
id="ot38"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="#{uiBundle.STUDENTACAINFO}"
id="plam41">
<af:outputText value="#{bindings.stuAcad.inputValue}"
id="ot36"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="#{uiBundle.EMPHOMEADDRESS}"
id="plam38">
<af:outputText value="#{bindings.empPermAddr.inputValue}"
id="ot39"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="#{uiBundle.EMPHOMEPHONE}"
id="plam37">
<af:outputText value="#{bindings.empPermPhn.inputValue}"
id="ot41"/>
</af:panelLabelAndMessage>
</af:panelFormLayout>
</af:panelGroupLayout>
</af:showDetailItem>
</af:panelTabbed> Above is my jsff code. Here how/where to add the phase listener to paopulate the managed bean while page render. Do I need to iterate the DC to get and push the each parameter in to ManagedBean or is there any easy way to do this by EL mapping directly at jsff. Please clarify.
Thanks
klnThat is what exactly I am trying right now. I am binding each of my page fragment outputText item in to backing bean and by that way trying to populate the values.
But the issue here is, the backing bean method doesn't getting any value until I hit any of the link or the button in the fragment. While loading the page the bean set and get is null. If i hit any link or button it is filled up with the vaule. As per my design, I would like to populate the bean method along with page load before any user action. But cant able to do this!! :(
Below is my sample code what I am trying right now
<af:panelLabelAndMessage label="#{uiBundle.NETID}" id="plam13">
<af:outputText value="#{bindings.netid.inputValue}" id="ot4" binding="#{UserDataBean.netId}"/>
</af:panelLabelAndMessage>
backing bean ex:
private RichOutputText netId;
static String netidVal;
public void setNetId(RichOutputText netId) {
netidVal= netId.getValue() == null? "":netId.getValue().toString();
this.netId = netId;
public RichOutputText getNetId() {
return netId;
public String getNetIdVal() {
return netidVal;
}Thanks
kln -
Need ONE Button That Controls Audio/Caption for Multiple Movies
Captiate Version: 3
Flash Version: 9
We created an online course using Captivate 3. The shell is HTML and the captivate (.swf) is embeded to show the content. Because the content inside the captivate movies were too large we had to break up the course into separate pages for loading purposes.
For example:
HTML Page Captivate File
page001.html page001.swf
page003.html page003.swf
page004.html page004.swf
Now we need a way to use ONE Button to control the Audio/Caption for ALL the movies. The button would be included seperately in the HTML shell along with Captivate movie.
Is this possible? If so please let us know in detail how?
We're open to other ideas. We are somewhat familar with using Captivate variables ect is required.You can control Captivate SWFs via JavaScript using the CaptivateController. It allows you to control all the standard Captivate variables from HTML.
http://pipwerks.com/2010/08/23/captivatecontroller-updated-to-support-adobe-captivate-5/ -
How to deactive a button in application toolbar
how to deactive a button in application toolbar?
Simple example
This example shows how to create a toolbar with a single Exit button, used to exit the program.
Steps:
Create a screen and add a custom container named TOOLBAR_CONTAINER
Code:
REPORT sapmz_hf_toolbar .
TYPE-POOLS: icon.
CLASS cls_event_handler DEFINITION DEFERRED.
G L O B A L D A T A
DATA:
ok_code LIKE sy-ucomm,
Reference for conatiner
go_toolbar_container TYPE REF TO cl_gui_custom_container,
Reference for SAP Toolbar
go_toolbar TYPE REF TO cl_gui_toolbar,
Event handler
go_event_handler TYPE REF TO cls_event_handler.
G L O B A L T A B L E S
DATA:
Table for registration of events. Note that a TYPE REF
to cls_event_handler must be created before you can
reference types cntl_simple_events and cntl_simple_event.
gi_events TYPE cntl_simple_events,
Workspace for table gi_events
g_event TYPE cntl_simple_event.
CLASS cls_event_handler DEFINITION
CLASS cls_event_handler DEFINITION.
PUBLIC SECTION.
METHODS:
on_function_selected
FOR EVENT function_selected OF cl_gui_toolbar
IMPORTING fcode,
on_dropdown_clicked
FOR EVENT dropdown_clicked OF cl_gui_toolbar
IMPORTING fcode posx posy.
ENDCLASS.
CLASS cls_event_handler IMPLEMENTATION
CLASS cls_event_handler IMPLEMENTATION.
METHOD on_function_selected.
CASE fcode.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMETHOD.
METHOD on_dropdown_clicked.
Not implented yet
ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
SET SCREEN '100'.
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
IF go_toolbar_container IS INITIAL.
Create container
CREATE OBJECT go_toolbar_container
EXPORTING
container_name = 'TOOLBAR_CONTAINER'.
Create toolbar
CREATE OBJECT go_toolbar
EXPORTING
parent = go_toolbar_container.
Add a button
CALL METHOD go_toolbar->add_button
EXPORTING fcode = 'EXIT' "Function Code
icon = icon_system_end "ICON name
is_disabled = ' ' "Disabled = X
butn_type = cntb_btype_button "Type of button
text = 'Exit' "Text on button
quickinfo = 'Exit program' "Quick info
is_checked = ' '. "Button selected
Create event table. The event ID must be found in the
documentation of the specific control
CLEAR g_event.
REFRESH gi_events.
g_event-eventid = go_toolbar->m_id_function_selected.
g_event-appl_event = 'X'. "This is an application event
APPEND g_event TO gi_events.
g_event-eventid = go_toolbar->m_id_dropdown_clicked.
g_event-appl_event = 'X'.
APPEND g_event TO gi_events.
Use the events table to register events for the control
CALL METHOD go_toolbar->set_registered_events
EXPORTING
events = gi_events.
Create event handlers
CREATE OBJECT go_event_handler.
SET HANDLER go_event_handler->on_function_selected
FOR go_toolbar.
SET HANDLER go_event_handler->on_dropdown_clicked
FOR go_toolbar.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
http://www.erpgenie.com/abap/controls/toolbar.htm#Simple%20example
http://help.sap.com/saphelp_nw04/helpdata/EN/42/d2ab343e416635e10000000a1553f6/content.htm
help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCITOOLBAR/BCCITOOLBAR.pdf
Regards,
Jagadish -
I'm using Acer 4736 Laptop with Intel GMA 4500 MHD card. I got problem with brightness control.
The default brightness keyboard control is
+Fn + LeftArrow: brightness down
+Fn + RightArrow: brightness up
after installed arch linux, it working opposite
+Fn + LeftArrow: brightness up
+Fn + RightArrow: brightness down
then after turn off the laptop, the brightness screen will be darkest, when I boot it, I got a black screen then I must re-press brightness keyboard control again and again.
How can I swap this?
I use showkey command then I got
keycode 224 #when I press Fn + LeftArrow
keycode 225 #when I press Fn + RightArrow
I've tried make it remap through .Xmodmap but it's not work.
I found /usr/include/X11/XF86keysym.h
/* Backlight controls. */
#define XF86XK_MonBrightnessUp 0x1008FF02 /* Monitor/panel brightness */
#define XF86XK_MonBrightnessDown 0x1008FF03 /* Monitor/panel brightness */
#define XF86XK_KbdLightOnOff 0x1008FF04 /* Keyboards may be lit */
#define XF86XK_KbdBrightnessUp 0x1008FF05 /* Keyboards may be lit */
#define XF86XK_KbdBrightnessDown 0x1008FF06 /* Keyboards may be lit */
I've changed it step by step but it's still not working.
How can I swap these button to control the brightness?Bump. I'd like to know the same.
-
Hi All, How we can handle a table control in bdc - in detail its urgent pls
Hi All, How we can handle a table control in bdc - in detail its urgent. Please send me the explanation in detail.
Thanks®ards.
Bharathi,
Create Table Control
Step 1 (Create new structure for table control)
Type is name of structure (ZTC_EKKO) and press create
Step 2 (Create Program)
Goto transaction SE80(Object Navigator) -> Repository Browser -> Program.
Enter your program name, please ensure that is begins with SAPMZ as this is a module pool (dialog program).
Press enter to create, and press yes!
Ensure that you create a top include, and press Enter.
Accept the name created for the top include.
Press Enter.
Press Save
Step 3 (Create TOP include)
Double click on the top include and enter following ABAP code:
Tables: ZTC_EKKO.
controls: tc100 type tableview using screen 100.
data: ok_code type sy-ucomm.
data: it_ekko type standard
table of ZTC_EKKO initial size 0,
wa_ekko type ZTC_EKKO.
data: ok_code type sy-ucomm.
Press Save and Activate
Step 4 (Create screen)
Right click the program to create a screen 100 for the dialog. Enter Short description, set screen type to Normal and enter 0 or blank into Next screen. Then move to Element List tab and enter the OK code as OK_CODE (i.e. the same as what you declared in the top include with data: ok_code type sy-ucomm).
Step 5 (Create table control)
Press the Layout button to bring up the screen painter editor.
Press table control button and drag it on to the screen, enter the name of table control created in TOP include (TC100). Now press the yellow button for attributes and set the table control as below options
Step 6 (Populate table control )
Press the orange button (Fields). On the next screen enter ZTC_EKKO and press the Get from Dict button. Select the fields you want (all) and press enter. Now drag them onto your Table Control.
Below is the result, there will been syntax errors if we check now! So Save and go back into the flow logic tab.
Step 7 (Create flow control )
Within the flow logic of screen 100 and create two modules, one to select the data from the database and the other to move the selected fields into the table control. Also insert the two loop statements to populate and retrieve the lines of the table control.
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
module data_retrieval.
loop at it_ekko into wa_ekko with control TC100.
module populate_screen.
endloop.
PROCESS AFTER INPUT.
loop at it_ekko.
endloop.
MODULE USER_COMMAND_0100.
Double click the module data_retrieval to create and click yes to get past the popup. Ensure that a new include is created to hold all the PBO modules (default). Press enter.
Select 10 rows of data from the EKKO table and load into the internal table it_ekko. Go back to the flow logic to load this data into the Table Control.
check this one
REPORT ZCALL_TRANS_TAB1 .
TABLES: LFA1,LFBK,lfb1.
data: BEGIN OF it_vendor occurs 0,
LIFNR LIKE LFA1-LIFNR,
bukrs like lfb1-bukrs,
END OF it_vendor.
DATA: BEGIN OF IT_BANK occurs 0,
LIFNR LIKE LFA1-LIFNR,
BANKS LIKE LFBK-BANKS,
BANKL LIKE LFBK-BANKL,
BANKN LIKE LFBK-BANKN,
koinh like lfbk-koinh,
END OF IT_BANK.
data: it_bdcdata like bdcdata occurs 0 with header line.
data: it_messages like bdcmsgcoll occurs 0 with header line.
*selection screen.
selection-screen: begin of block b1 with frame.
parameters: p_file like rlgrap-filename default 'c:/vendor.txt'
obligatory.
parameters: p_file1 like rlgrap-filename default 'c:/xyz.txt'
obligatory.
selection-screen: end of block b1.
*at selection screen.
at selection-screen on value-request for p_file.
perform f4_help using p_file.
at selection-screen on value-request for p_file1.
perform f4_help1 using p_file1.
*start of selection
start-of-selection.
*******uploading file
perform upload_file using p_file P_FILE1.
******open session.
perform populate_data.
*& Form f4_help
form f4_help using p_p_file.
data: l_file type ibipparms-path.
call function 'F4_FILENAME'
importing
file_name = l_file.
p_file = l_file.
endform. " f4_help
*& Form POPULATE_DATA
form populate_data .
DATA: L_STRING TYPE STRing.
DATA: L_COUNTER(2) TYPE n.
loop at it_vendor.
perform bdc_dynpro using 'SAPMF02K' '0106'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-D0130'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02K-LIFNR'
it_vendor-lifnr.
perform bdc_field using 'RF02K-BUKRS'
it_vendor-bukrs.
perform bdc_field using 'RF02K-D0130'
'X'.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-bankn(03)'.
perform bdc_field using 'BDC_OKCODE'
'=UPDA'.
*********bank details
CLEAR l_COUNTER.
LOOP AT IT_BANK WHERE LIFNR = IT_VENDOR-LIFNR.
l_COUNTER = l_COUNTER + 1.
clear l_string.
CONCATENATE 'lfbk-banks(' l_counter ')' into l_string.
perform bdc_field using l_string
it_bank-banks.
clear l_string.
CONCATENATE 'lfbk-bankl(' l_counter ')' into l_string.
perform bdc_field using l_string
it_bank-bankl.
clear l_string.
CONCATENATE 'lfbk-bankn(' l_counter ')' into l_string.
perform bdc_field using l_string
it_bank-bankn.
endloop.
******CALL TRANSACTION.
call transaction 'FK02' using it_bdcdata mode 'A'
messages into it_messages.
write:/ sy-subrc.
perform format_messages.
clear it_bdcdata.
refresh it_bdcdata.
endloop.
endform. " POPULATE_DATA
*& Form FORMAT_MESSAGES
form format_messages .
data: l_msg(100).
loop at it_messages.
call function 'FORMAT_MESSAGE'
exporting
id = it_messages-msgid
lang = sy-langu
no = it_messages-msgnr
v1 = it_messages-msgv1
v2 = it_messages-msgv2
v3 = it_messages-msgv3
v4 = it_messages-msgv4
importing
msg = l_msg
exceptions
not_found = 1
others = 2
write:/ l_msg.
endloop.
endform. " FORMAT_MESSAGES
*& Form bdc_dynpro
form bdc_dynpro using value(p_program)
value(p_screen).
it_bdcdata-program = p_program.
it_bdcdata-dynpro = p_screen.
it_bdcdata-dynbegin = 'X'.
append it_bdcdata.
clear it_bdcdata.
endform. " bdc_dynpro
*& Form bdc_field
form bdc_field using value(p_fnam)
value(p_fval).
it_bdcdata-fnam = p_fnam.
it_bdcdata-fval = p_fval.
append it_bdcdata.
clear it_bdcdata.
endform. " bdc_field
*& Form upload_file
form upload_file using p_p_file
p_p_file1.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
CODEPAGE = ' '
FILENAME = P_P_FILE
FILETYPE = 'DAT'
HEADLEN = ' '
LINE_EXIT = ' '
TRUNCLEN = ' '
USER_FORM = ' '
USER_PROG = ' '
DAT_D_FORMAT = ' '
IMPORTING
FILELENGTH =
TABLES
data_tab = IT_VENDOR
EXCEPTIONS
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
NO_AUTHORITY = 10
OTHERS = 11
IF sy-subrc <> 0.
MESSAGE I000(ZZ) WITH 'UNABLE TO UPLOAD'.
STOP.
ENDIF.
*******UPLOADING BANK DETAILS
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
CODEPAGE = ' '
FILENAME = P_P_FILE1
FILETYPE = 'DAT'
HEADLEN = ' '
LINE_EXIT = ' '
TRUNCLEN = ' '
USER_FORM = ' '
USER_PROG = ' '
DAT_D_FORMAT = ' '
IMPORTING
FILELENGTH =
TABLES
data_tab = IT_BANK
EXCEPTIONS
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
NO_AUTHORITY = 10
OTHERS = 11
IF sy-subrc <> 0.
MESSAGE I000(ZZ) WITH 'UNABLE TO UPLOAD'.
STOP.
ENDIF.
endform. " upload_file
*& Form f4_help1
-->P_P_FILE1 text
form f4_help1 using p_p_file1.
data:l_file1 type ibipparms-path.
CALL FUNCTION 'F4_FILENAME'
IMPORTING
FILE_NAME = l_file1.
p_file1 = l_file1.
endform. " f4_help1
http://sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
Regards,
Sankar -
How to assign standard hirarchy to controlling area?
Hi,
i have created a controlling area and trying to create cost centers but i cannot do this unless i define standard hirarchy to controlling area.. was not sure what is standard hirarchy and how i can assign it to controlling area?
Thanks,
ShilpaHi shilpa,
Where do we assign this relation? even i am also getting same error.
thanks,
Vasu.
Maybe you are looking for
-
Experts, We are in a situation where we might have to move data from cube to DSO. We doing POC and finding that even if DSO is set to overwrite, the data is summing up for same billing document. I would like to know: 1) is there any o
-
HI specialist After run my transaction F110.. I can see my Idocs in transaction WE02. Then I run the BD87.. and it should generate one file with all the Idocs together but it generates one file per Idoc. It increase the cost in our company with the
-
Border and font setting for the same cell
I have writen a label in an excel cell using a font that I created (called "wf" - see code below). I also want to put a left thick border to the same cell. How can I do that? ps: I call this function from "main": private static void writeDataSheet(Wr
-
IPhoto 6 - Editing Mulitple images
Is it possible to edit one photo and then apply those same settings to other photos? Or is this only possible in Aperature? Thanks
-
JNDI,AD,Kerberos Authentication, Windows
Hi all, OS: Server: LDAP Server AD running on win2k server with KDC on the same machine Client: Sun's JNDI application on WinXP Senario: I managed to make the well-known tutorial example (list 1) work well on both jdk1.4.2_05 and jdk1.5.1_02. The mai