How can I append multiple parts to NetStream with appendBytes
Hi,
I hope someone can help me.
Problem:
I load a flv file with the FileReference class. After that I append a part of the ByteArray to the NetStream with appendBytes.
Later I want a next part append to the NetStream. It doesn't work.
Is that possible?
Code:
public function init():void
myFileRef = new FileReference();
myFileRef.addEventListener(Event.SELECT, selectFile);
myFileRef.addEventListener(Event.COMPLETE, playFile);
myOpenButton.addEventListener(MouseEvent.CLICK,browserForFile);
private function browserForFile(e:MouseEvent):void
myFileRef.browse([new FileFilter("Flash-Videos (*.flv)", "*.flv;")]);
private function selectFile(e:Event):void
myFileRef.load();
private function playFile(e:Event):void
byteArr = myFileRef.data;
var bytes:ByteArray = new ByteArray();
byteArr.readBytes(bytes, 0, 3031964);
_netConnection = new NetConnection();
_netConnection.connect(null);
ns = new NetStream(_netConnection);
ns.addEventListener(NetStatusEvent.NET_STATUS, netStreamStatusHandler);
ns.client = new Object();
display.attachNetStream(ns);
ns.play(null);
ns.appendBytes(bytes);
videoDisplay.addChild(display);
private function loadNext():void
var bytes:ByteArray = new ByteArray();
byteArr.readBytes(bytes, 3031964, byteArr.bytesAvailable);
ns.appendBytes(bytes);
friendly
Daniel
Enable the menu bar with Ctrl+B. Then use File > Add Folder to Library.
tt2
Similar Messages
-
How can I have multiple WINDOWS (NOT tabs) with INDEPENDENT content?
How can I have multiple '''windows''' (''not ''tabs) with '''independent''' content?
I used to be able to open separate windows with Firefox, and the content could be completely different in each window. No matter what I did in any window, no OTHER window open at the time, nor any of the content therein, was affected. This is no longer the case and it is extremely frustrating for me.
I do ''not ''like tabs and do not use them. I prefer multiple windows plus I am so used to using them, for so many years now! But with v9.0.1 I suddenly can no longer do what I've always done with my browser without this aggravating problem constantly reminding me that I can't have what I want in firefox anymore.
Or can I? Does anyone have a solution I don't realize exists?
Thanks,
SoweluAppleScriptObjC can use pretty much everything in the Cocoa API, so yes, it is possible.
Note that a view is not the same as a window, and a window can have multiple views. There are also many ways to implement "tabs"; take a look at some of Apple's applications - they use various mixtures of toolbars, checkboxes, and radio buttons, for example. An application such as this will be a lot more involved than what you have done so far though, using custom classes and subclassing existing ones, so be prepared to do a lot of reading and researching. -
How can I add multiple folders to iTunes with Windows 8?
I have windows 8 and the latest version of iTunes on Windows 8. How can I put multiple folders of music onto iTunes
Enable the menu bar with Ctrl+B. Then use File > Add Folder to Library.
tt2 -
Plz help: how can i index multiple directories including pdfs with oracle text??
problem:
i habe several subdirectories with pdf files which must be indexed by a fulltext index.
.../dir/
sub_dir1/
1.pdf
2.pdf
sub_dir2/
3.pdf
4.pdf
it's possible that other users create new subdirs.
try #1:
i tried to update the FILE_DATASTORE parameter PATH with the concatenated directory list
i.e.: (.../dir/subdir1:.../dir/subdir2:...) and updating the index.
that fails, because the directory string is too long (1637 chars)
try #2:
i set the FILE_DATASTORE PATH parameter to the basedir
i.e.: ('.../dir')
now i generate a list of all pdf's including the subdirectories to store them into
a new table.
i.e.: '12345', 'subdir1/1.pdf'
'23456', 'subdir1/2.pdf'
this one fails, 'cause it seems that the database uses some kind of basename() function to
get the "filename_only" part of the table entry 'subdir1/1.pdf' => '1.pdf'.
so, the db fails to open (and indexing of cause) the file.
how can i solve this prob?
thanks in advance!!!
best regards.
/achimIf you need to use multiple directories, you'll need to put the full directory and filename into the table, and not use the PATH attribute at all. PATH only works where all files are in the same directory (though you MAY find you can use more than one directory on certain OS's).
- Roger -
How can I share multiple calendars in iCal with several different people?
I need to share multiple calendars created in iCal with all our staff. Do I enter their individual email addresses separated by a semi-colon or a "plus" sign or how. I tried entering all the email addresses with the semi-colon and when I go back to look at sharing, it just shows one email address.
I am assuming that you are referring to a responsive layout that has divisions that reposition themselves according to the width of the client browser window.
Rather than go into a teaching mode on this forum, let me point you to a nifty free Dreamweaver extension that will help you to achieve this. Have a look here http://www.dmxzone.com/go/21759/dmxzone-bootstrap?utm_source=Blog&utm_medium=link&utm_cont ent=DMXzone+Bootstrap+Released… -
How can I organize multiple iWorks documents shared with me via iCloud?
Hi,
I'm just exploring iWorks for iCloud beta (i4ib). A friend shared a Numbers spreadsheet with me via iCloud. I can open it and edit it as expected. So far, so good. The two of us plan to work on several spreadsheets like this over the next two months. Going back to an old email to retrieve the link to each file when we need it "just ain't Apple" if you'll allow me to paraphrase a quote from Happy Feet.
We would like to be able to use iCloud to organize the spreadsheets *someone has shared with us* so we could access them using the same Spreadsheet Manager tool in iCloud that we would use for any other spreadsheets *we have created and stored on iCloud*. So far I haven't been able to discern how to do so and cannot tell if this is a supported use or not. Does anyone know how to do this? Have I just managed to miss it in the hints and help available?
In the mean time I've copied the a link for each of the spreadsheets he shared with me to a folder on my Safari favorites bar. That work around is suitable for very small collaboration exercises but far from optimal for anyone who envisions using iCloud for collaboration on a larger scale. I thought I'd ask the question before I tried to submit this as feedback to Apple.
Regards,
Elise
PS - I used *bold* to emphasize the difference between a spreadsheet I "own" because I created it and one created by someone else and shared with me.What you want is not yet possible, so you should use the feedback channel to ask Apple to add it. If Googledocs is better at this (I think it is from what I have read), you should make that point.
-
How can I select multiple cells in tableview with javafx only by mouse?
I have an application with a tableview in javafx and i want to select multiple cells only by mouse (something like the selection which exists in excel).I tried with setOnMouseDragged but i cant'n do something because the selection returns only the cell from where the selection started.Can someone help me?
For mouse drag events to propagate to nodes other than the node in which the drag initiated, you need to activate a "full press-drag-release gesture" by calling startFullDrag(...) on the initial node. (See the Javadocs for MouseEvent and MouseDragEvent for details.) Then you can register for MouseDragEvents on the table cells in order to receive and process those events.
Here's a simple example: the UI is not supposed to be ideal but it will give you the idea.
import java.util.Arrays;
import javafx.application.Application;
import javafx.beans.property.SimpleStringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.SelectionMode;
import javafx.scene.control.TableCell;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.scene.input.MouseDragEvent;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.VBox;
import javafx.scene.text.Font;
import javafx.stage.Stage;
import javafx.util.Callback;
public class DragSelectionTable extends Application {
private TableView<Person> table = new TableView<Person>();
private final ObservableList<Person> data =
FXCollections.observableArrayList(
new Person("Jacob", "Smith", "[email protected]"),
new Person("Isabella", "Johnson", "[email protected]"),
new Person("Ethan", "Williams", "[email protected]"),
new Person("Emma", "Jones", "[email protected]"),
new Person("Michael", "Brown", "[email protected]")
public static void main(String[] args) {
launch(args);
@Override
public void start(Stage stage) {
Scene scene = new Scene(new Group());
stage.setTitle("Table View Sample");
stage.setWidth(450);
stage.setHeight(500);
final Label label = new Label("Address Book");
label.setFont(new Font("Arial", 20));
table.setEditable(true);
TableColumn<Person, String> firstNameCol = new TableColumn<>("First Name");
firstNameCol.setMinWidth(100);
firstNameCol.setCellValueFactory(
new PropertyValueFactory<Person, String>("firstName"));
TableColumn<Person, String> lastNameCol = new TableColumn<>("Last Name");
lastNameCol.setMinWidth(100);
lastNameCol.setCellValueFactory(
new PropertyValueFactory<Person, String>("lastName"));
TableColumn<Person, String> emailCol = new TableColumn<>("Email");
emailCol.setMinWidth(200);
emailCol.setCellValueFactory(
new PropertyValueFactory<Person, String>("email"));
final Callback<TableColumn<Person, String>, TableCell<Person, String>> cellFactory = new DragSelectionCellFactory();
firstNameCol.setCellFactory(cellFactory);
lastNameCol.setCellFactory(cellFactory);
emailCol.setCellFactory(cellFactory);
table.setItems(data);
table.getColumns().addAll(Arrays.asList(firstNameCol, lastNameCol, emailCol));
table.getSelectionModel().setCellSelectionEnabled(true);
table.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
final VBox vbox = new VBox();
vbox.setSpacing(5);
vbox.setPadding(new Insets(10, 0, 0, 10));
vbox.getChildren().addAll(label, table);
((Group) scene.getRoot()).getChildren().addAll(vbox);
stage.setScene(scene);
stage.show();
public static class DragSelectionCell extends TableCell<Person, String> {
public DragSelectionCell() {
setOnDragDetected(new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
startFullDrag();
getTableColumn().getTableView().getSelectionModel().select(getIndex(), getTableColumn());
setOnMouseDragEntered(new EventHandler<MouseDragEvent>() {
@Override
public void handle(MouseDragEvent event) {
getTableColumn().getTableView().getSelectionModel().select(getIndex(), getTableColumn());
@Override
public void updateItem(String item, boolean empty) {
super.updateItem(item, empty);
if (empty) {
setText(null);
} else {
setText(item);
public static class DragSelectionCellFactory implements Callback<TableColumn<Person, String>, TableCell<Person, String>> {
@Override
public TableCell<Person, String> call(final TableColumn<Person, String> col) {
return new DragSelectionCell();
public static class Person {
private final SimpleStringProperty firstName;
private final SimpleStringProperty lastName;
private final SimpleStringProperty email;
private Person(String fName, String lName, String email) {
this.firstName = new SimpleStringProperty(fName);
this.lastName = new SimpleStringProperty(lName);
this.email = new SimpleStringProperty(email);
public String getFirstName() {
return firstName.get();
public void setFirstName(String fName) {
firstName.set(fName);
public String getLastName() {
return lastName.get();
public void setLastName(String fName) {
lastName.set(fName);
public String getEmail() {
return email.get();
public void setEmail(String fName) {
email.set(fName); -
How can i append the variable to filename in import statement?
how can i append variable(substitution variable) to file name in import command for maxL?
example : For suppose there is a file like "dataload.txt" and a variable like cur_month(august).How can i rename the file like daload_august in import statement.
Edited by: 788996 on Aug 22, 2010 11:18 PMAre you saying you want to use an OS level environment variable in a MaxL statement to substitute for an entire file name? I am going to illustrate Windows, but do it your own way in *nix if you want.
YourCallingCode.cmd
REM Note the \\ and then the \\, you had \\ and \
SET curmon=c:\\ABC\\datafile_21_AUG.txt
REM Call MaxL with a paramenter
startMaxL.cmd DoItForTheCurrentMonth.msh %curmon%DoItForTheCurrentMonth.msh
login blah blah for blah ;
import database appname.dbname data from local text data_file $curmon using server rules_file "rulefile"
on error abort ;The trick is to change whatever's in % and % and replace it with a $ in the MaxL script.
I gave a presentation last year on MaxL at ODTUG Kaleidoscope. If you go to http://www.odtug.com, then Tech Resources, then Essbase, then search on my name, you'll find "Master Essbase with MaxL Automation". More than you could ever want to know about MaxL, variables (parameter, environment, and explicitly declared), scripting, etc., etc., are all there for the taking. If you're not already a member, you'll have to join, but an associate membership is free. You can then download my presentation and all of the others. It is a treasure chest of technical tips and knowledge.
Yes, I am a fan a member of the Hyperion SIG, so I am ever so slightly biased. Regardless, it is good information, for free.
Regards,
Cameron Lackpour
Edited by: CL on Aug 24, 2010 5:33 AM
If you want to substitute part of the data file name, you can do that too:
set curmon=21_AUG
Your MaxL statement would look like:
import database appname.dbname data from local text data_file "c:\\ABC\\datafile_$curmon.txt" using server rules_file "rulefile"
on error abort ; -
How can I maintain multiple white spaces in a PDF written from InDesign?
I need to have 2 white spaces maintained (within a part #) in the PDF I write, but when I open in Acrobat it converts it to one space.
I've tried word spaces, set spaces and applying "no color" to a placeholder character and nothing is working!
Any ideas or suggestions?I am talking about normal white space. Multiple fixed widt spaces are not a problem. How the space is handled in a PDF depends on how it is created.
Viele Grüße
Wilhelm Georg Adelberger
Von meinem iPhone gesendet
Am 21.08.2014 um 12:01 schrieb Peter Spier <[email protected]>:
How can I maintain multiple white spaces in a PDF written from InDesign?
created by Peter Spier in InDesign - View the full discussion
It may not be a great idea to use multiple spaces, but it certainly is not prohibited and sometimes is necessary -- you might want a 2em space, or a thin space before and after a tab you underline in a form.
I'm able to select the multiple spaces just fine in Acrobat 9 using the text touch-up tool.
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6661037#6661037
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in InDesign by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0. -
How can I insert multiple page contents in the page layout properly?
I wanted to create 4 columns on the page layout. These 4 columns are of page contents.
After creating new web page based on that page layout, I attempted to enter 4 different inputs on all 4 columns.
Then, the result (from all columns) becomes the same.
Image - edit the web page based on 4 columns page layout:
Image - after edit & save:
How can I insert multiple page contents in the page layout properly?First, I copied the HTML snippet for the Page Content on Sharepoint's Design Manger. The code of Page Content HTML snippet is shown below:
<div data-name="Page Field: Page Content">
<!--CS: Start Page Field: Page Content Snippet-->
<!--SPM:<%@Register Tagprefix="PageFieldRichHtmlField"
Namespace="Microsoft.SharePoint.Publishing.WebControls"
Assembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
<!--MS:<PageFieldRichHtmlField:RichHtmlField
FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server">-->
<!--PS: Start of READ-ONLY PREVIEW (do not modify)-->
<div id="ctl02_label" style="display:none">Page Content</div>
<div id="ctl02__ControlWrapper_RichHtmlField" class="ms-rtestate-field"
style="display:inline" aria-labelledby="ctl02_label"><div align="left"
class="ms-formfieldcontainer"><div class="ms-formfieldlabelcontainer"
nowrap="nowrap"><span class="ms-formfieldlabel"
nowrap="nowrap">Page Content</span></div>
<div class="ms-formfieldvaluecontainer"><div class="ms-rtestate-field">
Page Content field value. Lorem ipsum dolor sit incididuntet dolore.</div>
</div></div></div><!--PE: End of READ-ONLY PREVIEW-->
<!--ME:</PageFieldRichHtmlField:RichHtmlField>-->
<!--CE: End Page Field: Page Content Snippet-->
</div>
After I published the page layout, I found the code for Page Content from its ASPX page. The code is shown below:
<div data-name="Page Field: Page Content">
<PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/></div>
So, I attempted to create 4 columns by using 4 HTML snippets of Page Content on the same page layout. The page layout is generated from HTML file to ASPX file.
Then I edited some parts in ASPX page layout:
<asp:Content runat="server" ContentPlaceHolderID="PlaceHolderMain">
<table>
<tr>
<td style="width:70px;"> </td>
<td style="width:250px; text-align:right;">
<div data-name="Page Field: Page Content">
<PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
</div>
</td>
<td style="width:40px;"> </td>
<td style="width:200px;">
<div data-name="Page Field: Page Content">
<PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
</div>
</td>
<td style="width:25px;"> </td>
<td style="width:200px;">
<div data-name="Page Field: Page Content">
<PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
</div>
</td>
<td style="width:25px;"> </td>
<td style="width:200px;">
<div data-name="Page Field: Page Content">
<PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
</div>
</td>
<td style="width:175px;"> </td>
</tr>
</table>
</asp:Content>
The 4 columns for Page Contents appeared on the web page when I created new page using that page layout. But the problem is that all 4 columns displayed the same result from 4th column. -
How can we handle multiple applications in session method
how can we handle multiple applications in .. session method.
can any body reply me.
thanksHari,
hi Check out this sample code to use session method
REPORT ztest_report
NO STANDARD PAGE HEADING
LINE-SIZE 255
MESSAGE-ID ZRASH.
Internal Table Declarations *
*--Internal Table for Data Uploading.
DATA : BEGIN OF IT_FFCUST OCCURS 0,
KUNNR(10),
BUKRS(4),
KTOKD(4),
ANRED(15),
NAME1(35),
SORTL(10),
STRAS(35),
ORT01(35),
PSTLZ(10),
LAND1(3),
SPRAS(2),
AKONT(10),
END OF IT_FFCUST.
*--Internal Table to Store Error Records.
DATA : BEGIN OF IT_ERRCUST OCCURS 0,
KUNNR(10),
EMSG(255),
END OF IT_ERRCUST.
*--Internal Table to Store Successful Records.
DATA : BEGIN OF IT_SUCCUST OCCURS 0,
KUNNR(10),
SMSG(255),
END OF IT_SUCCUST.
*--Internal Table for Storing the BDC data.
DATA : IT_CUSTBDC LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
*--Internal Table for storing the messages.
DATA : IT_CUSTMSG LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
DATA : V_FLAG1(1) VALUE ' ',
"Flag used for opening session.
V_TLINES LIKE SY-TABIX,
"For storing total records processed.
V_ELINES LIKE SY-TABIX,
"For storing the no of error records.
V_SLINES LIKE SY-TABIX.
"For storing the no of success records.
Selection screen *
SELECTION-SCREEN BEGIN OF BLOCK B1.
PARAMETERS : V_FNAME LIKE RLGRAP-FILENAME,
V_SESNAM LIKE RLGRAP-FILENAME.
SELECTION-SCREEN END OF BLOCK B1.
Start-of-selection *
START-OF-SELECTION.
*-- Form to upload flatfile data into the internal table.
PERFORM FORM_UPLOADFF.
TOP-OF-PAGE *
TOP-OF-PAGE.
WRITE:/ 'Details of the error and success records for the transaction'
ULINE.
SKIP.
End of Selection *
END-OF-SELECTION.
*-- Form to Generate a BDC from the Uploaded Internal table
PERFORM FORM_BDCGENERATE.
*--To write the totals and the session name.
PERFORM FORM_WRITEOP.
*& Form form_uploadff
Form to upload flatfile data into the internal table.
FORM FORM_UPLOADFF .
*--Variable to change the type of the parameter file name.
DATA : LV_FILE TYPE STRING.
LV_FILE = V_FNAME.
*--Function to upload the flat file to the internal table.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = LV_FILE
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = IT_FFCUST
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC = 0.
*--Deleting the headings from the internal table.
DELETE IT_FFCUST INDEX 1.
*--Getting the total number of records uploaded.
DESCRIBE TABLE IT_FFCUST LINES V_TLINES.
ENDIF.
ENDFORM. " form_uploadff
*& Form Form_bdcgenerate
Form to Generate a BDC from the Uploaded Internal table
FORM FORM_BDCGENERATE .
*--Generating the BDC table for the fields of the internal table.
LOOP AT IT_FFCUST.
PERFORM POPULATEBDC USING :
'X' 'SAPMF02D' '0105',
' ' 'BDC_OKCODE' '/00' ,
' ' 'RF02D-KUNNR' IT_FFCUST-KUNNR,
' ' 'RF02D-BUKRS' IT_FFCUST-BUKRS,
' ' 'RF02D-KTOKD' IT_FFCUST-KTOKD,
'X' 'SAPMF02D' '0110' ,
' ' 'BDC_OKCODE' '/00',
' ' 'KNA1-ANRED' IT_FFCUST-ANRED,
' ' 'KNA1-NAME1' IT_FFCUST-NAME1,
' ' 'KNA1-SORTL' IT_FFCUST-SORTL,
' ' 'KNA1-STRAS' IT_FFCUST-STRAS,
' ' 'KNA1-ORT01' IT_FFCUST-ORT01,
' ' 'KNA1-PSTLZ' IT_FFCUST-PSTLZ,
' ' 'KNA1-LAND1' IT_FFCUST-LAND1,
' ' 'KNA1-SPRAS' IT_FFCUST-SPRAS,
'X' 'SAPMFO2D' '0120',
' ' 'BDC_OKCODE' '/00',
'X' 'SAPMF02D' '0125',
' ' 'BDC_OKCODE' '/00',
'X' 'SAPMF02D' '0130',
' ' 'BDC_OKCODE' '=ENTR',
'X' 'SAPMF02D' '0340',
' ' 'BDC_OKCODE' '=ENTR',
'X' 'SAPMF02D' '0360',
' ' 'BDC_OKCODE' '=ENTR',
'X' 'SAPMF02D' '0210',
' ' 'KNB1-AKONT' IT_FFCUST-AKONT,
' ' 'BDC_OKCODE' '/00',
'X' 'SAPMF02D' '0215',
' ' 'BDC_OKCODE' '/00',
'X' 'SAPMF02D' '0220',
' ' 'BDC_OKCODE' '/00',
'X' 'SAPMF02D' '0230',
' ' 'BDC_OKCODE' '=UPDA'.
*--Calling the transaction 'fd01'.
CALL TRANSACTION 'FD01' USING IT_CUSTBDC MODE 'N' UPDATE 'S'
MESSAGES INTO IT_CUSTMSG.
IF SY-SUBRC <> 0.
*--Populating the error records internal table.
IT_ERRCUST-KUNNR = IT_FFCUST-KUNNR.
APPEND IT_ERRCUST.
CLEAR IT_ERRCUST.
*--Opening a session if there is an error record.
IF V_FLAG1 = ' '.
PERFORM FORM_OPENSESSION.
V_FLAG1 = 'X'.
ENDIF.
*--Inserting the error records into already open session.
IF V_FLAG1 = 'X'.
PERFORM FORM_INSERT.
ENDIF.
*--Populating the Success records internal table.
ELSE.
IT_SUCCUST-KUNNR = IT_FFCUST-KUNNR.
APPEND IT_SUCCUST.
CLEAR IT_SUCCUST.
ENDIF.
*--Displaying the messages.
IF NOT IT_CUSTMSG[] IS INITIAL.
PERFORM FORM_FORMATMSG.
ENDIF.
*--Clearing the message and bdc tables.
CLEAR : IT_CUSTBDC[],IT_CUSTMSG[].
ENDLOOP.
*--Getting the total no of error records.
DESCRIBE TABLE IT_ERRCUST LINES V_ELINES.
*--Getting the total no of successful records.
DESCRIBE TABLE IT_SUCCUST LINES V_SLINES.
*--Closing the session only if it is open.
IF V_FLAG1 = 'X'.
PERFORM FORM_CLOSESESS.
ENDIF.
ENDFORM. " Form_bdcgenerate
*& Form populatebdc
FOrm to Populate the BDC table.
FORM POPULATEBDC USING VALUE(P_0178)
VALUE(P_0179)
VALUE(P_0180).
IF P_0178 = 'X'.
IT_CUSTBDC-PROGRAM = P_0179.
IT_CUSTBDC-DYNPRO = P_0180.
IT_CUSTBDC-DYNBEGIN = 'X'.
ELSE.
IT_CUSTBDC-FNAM = P_0179.
IT_CUSTBDC-FVAL = P_0180.
ENDIF.
APPEND IT_CUSTBDC.
CLEAR IT_CUSTBDC.
ENDFORM. " populatebdc
*& Form FORM_OPENSESSION
Form to Open a session.
FORM FORM_OPENSESSION .
*--Variable to convert the given session name into reqd type.
DATA : LV_SESNAM(12).
LV_SESNAM = V_SESNAM.
*--Opening a session.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
GROUP = LV_SESNAM
HOLDDATE = '20040805'
KEEP = 'X'
USER = SY-UNAME
PROG = SY-CPROG
IMPORTING
QID =
EXCEPTIONS
CLIENT_INVALID = 1
DESTINATION_INVALID = 2
GROUP_INVALID = 3
GROUP_IS_LOCKED = 4
HOLDDATE_INVALID = 5
INTERNAL_ERROR = 6
QUEUE_ERROR = 7
RUNNING = 8
SYSTEM_LOCK_ERROR = 9
USER_INVALID = 10
OTHERS = 11
IF SY-SUBRC <> 0.
WRITE :/ 'Session not open'.
ENDIF.
ENDFORM. " FORM_OPENSESSION
*& Form FORM_INSERT
fORM TO INSERT ERROR RECOED INTO A SESSION.
FORM FORM_INSERT .
*--Inserting the record into session.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'FD01'
POST_LOCAL = NOVBLOCAL
PRINTING = NOPRINT
SIMUBATCH = ' '
CTUPARAMS = ' '
TABLES
DYNPROTAB = IT_CUSTBDC
EXCEPTIONS
INTERNAL_ERROR = 1
NOT_OPEN = 2
QUEUE_ERROR = 3
TCODE_INVALID = 4
PRINTING_INVALID = 5
POSTING_INVALID = 6
OTHERS = 7
IF SY-SUBRC <> 0.
WRITE :/ 'Unable to insert the record'.
ENDIF.
ENDFORM. " FORM_INSERT
*& Form FORM_CLOSESESS
Form to Close the Open Session.
FORM FORM_CLOSESESS .
CALL FUNCTION 'BDC_CLOSE_GROUP'
EXCEPTIONS
NOT_OPEN = 1
QUEUE_ERROR = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
ENDIF.
ENDFORM. " FORM_CLOSESESS
*& Form FORM_FORMATMSG
Form to format messages.
FORM FORM_FORMATMSG .
*--Var to store the formatted msg.
DATA : LV_MSG(255).
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = SY-MSGID
LANG = SY-LANGU
NO = SY-MSGNO
V1 = SY-MSGV1
V2 = SY-MSGV2
V3 = SY-MSGV3
V4 = SY-MSGV4
IMPORTING
MSG = LV_MSG
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC = 0.
WRITE :/ LV_MSG.
ENDIF.
ULINE.
ENDFORM. " FORM_FORMATMSG
*& Form form_writeop
To write the totals and the session name.
FORM FORM_WRITEOP .
WRITE :/ 'Total Records Uploaded :',V_TLINES,
/ 'No of Error Records :',V_ELINES,
/ 'No of Success Records :',V_SLINES,
/ 'Name of the Session :',V_SESNAM.
ULINE.
ENDFORM. " form_writeop
Don't forget to reward if useful.. -
How can I have multiple users on iTunes (in order to connect to a shared office iPad)? Currently each of us has our own iTunes account, so I've made an "all office" Apple ID. However, I can't seem to get two different accounts (my personal and the office) to work on my machine. Even when I login as "the office", my personal library is still showing. Additionally, when I try to setup with a first-time use in iTunes, I get an error that I don't meet the minimum age requirement - no matter what birthdate I enter!
The library exists regardless of which user is logged in.
The only way around that is to create different user accounts on the computer.
There is no way to have 20 unique iTunes users access a shared iTunes under a single login on the computer. -
How can I save multiple titles under the same DVD?
I use HandBrake to rip DVD's into iTunes. How can I save multiple titles under the same DVD? For instance, I have a Jimi Hendrix documentary that comes with special features, such as concert performances. I would like to have the main feature and the special features saved in my iTunes under the same title, perhaps as different 'tracks' (kind of like how different songs can be saved under the same album).
Is there a way for me to do this, or am I chasing phantoms?*This response is for iPhoto 11 (v9). If you're using an earlier version, please post back and let us know. Troubleshooting steps are not the same for different versions. To find out which iPhoto you have: iPhoto Menu -> About iPhoto)*
Duplicate the photo first. (Photos -> Duplicate). This means that you will have multiple copies of the master as well as the edited version.
If you use versions like this often and wish to have only one master then you can do this with Aperture.
Regards
TD -
How can we append data in existing flat file
how can we append data to a existing flat file (Text file).
just fill the itab from data which suppose to append to text file.than read text file from GUI_UPLOAD and loop on itab and with the use of read statements you may append the data.
-
HT201317 how can I add multiple photos to camera roll
how can I add multiple photos to camera roll
If you mean from photo stream, open your photo stream album on your phone in the thumbnail view, tap Edit, tap all the photos to select them, tap Share, then tap Save to Camera Roll.
Maybe you are looking for
-
Post Author: Marco Nardelli CA Forum: Deployment hi everyone I'using BO 6.5.1 and I try to export different BO reports (about 200 rows) to excel 2000 SR-1. But when I try to open the xls file it doesn't work. I reduced the number of rows exported fro
-
In ECC 6.0 the report RHXSTR00 display list does not have download option
hi all, i'm running a std report RHXSTR00 which displays org. structure. my problem before upgradation i'e., in 4.6c we have menu list->download ,so we can down load to local file.but current version ECC 6.0 ,we d't have menu list->download. i ha
-
Hello Gurus, How to get all the ECC repots in PDF format? I have tried doing the distiller as default printer, but didn't work out. I am using SAP ECC 6. Thanks and Regards, Rahul
-
Is there a way to save a document,.i.e email msg, as a PDF?
In our email system there are times when we need to save an email message to attach it to a workorder. Is there a way to save an email message in a PDF format?
-
I am using the same datasource to create a query of queries but one of my queries is not being recognized. The code and error message are as follows: