Re-use Emty HU's
Hi all,
Does anyone know if it is possible to re-use empty HU's. The HU was emptied as paert of the pick and pack process or unpack / repack process.
I have been told this is possible but need to know how the system is setup to do this.
Is it partner Locations or HU status setting or setup against the movement types.
Thanks
Stuart
Hi,
Check that the HU ID Unique flag is not set:
Logistics - General>Handling Unit Management>External Identification-->Set Unique Number Assignment for HU Identification
Hope that helps
Thanks
Vinod Madhanu
Similar Messages
-
How to manage empties Deposite Article in IS-Retail
Hi Experts,
I have a requirement as follows for deposit articles :
My client is starting a retail business in which he wants to maintain
deposit article like crates which are returnable to vendor.
At the time of buying main<full> article, vendor will provide it in deposit article.
vendor will charge for main as well as deposit article.
Main article will be sold to customer along with deposit article.
Customer will be charged for both. We are using IS-RETAIL with POS system.
Once that customer returns the deposite article, his deposit money will be returned to him.
Deposit article received from customer will be returned to vendor.
I am trying to use emties concept for the same. But as per my understanding empties are treated as free articles in PO.
Kindly help me to figure out the solution for the same.
An explanation with steps vise process to be followed is appreciated.
Thx.....Hi,
I activated empties managment in SPRO. PO is created sucessfully with main article as well as empties.
Goods receipt is also done. But inventory of empties is updated in tied empties location.
Now i am trying to cancel the goods receipt. but system is not allowing me to do so...
It is goving me following error for empties article :
"Combination of movement type 102 (note 306919) and function selected not possible"
I am not able to figure out the problem.....
Kindly help....
Edited by: sagar chorge on Mar 2, 2011 1:16 PM -
Creating a new report with VS2010 freezes
Hello,
I repost my first issue 'cos Don Asked me to attach to a thread but he closed it and there's no answer:
I've just downloaded the release of CR for VS2010 and installed it correctly.
But when i try to create a new report in a new solution (i use emty project ) and then try to add with the database expert databases it freeze the vs2010 with no timeout and no error message.
I saw in te forums that it's a recuring question so i tried to build a Virtual machine with win7 x64 and VS2010 and install CR on this fresh installation and it works !
I'm wondering if there is any relation with the way my developpement machine was installed:
Installed VS2010
Installed VS2008
Installed CR for VS 2008 sp1
then Installed CR for VS 2010
Also when i try to make a new project with the Crystal Reports Project Template there's a reference missing in the project. Even if i correct the mis-reference the project hangs on the database expert ...
Could you investigate ? i don't want to reinstall my dev computer and i need the CR2008 just time to upgrade the Projects to VS 2010...
And i would like to attach to this Thread the extract of Process Monitor but i don't know how
Kind regardsAn update on SxS, I jumped the gun a little warning about the posts various people are having... We are still looking at all of them and the build team are doing more testing with the info from forums. We are not convinced it is a side by side problem but more of a dependency and possibly a VS project update methodology but at this time we don't know for sure.... We and QA are building various platforms and are trying to duplicate all of the reported issues. So far they have not been able to but continuing to test...
The only known potential issue so far is the GUID ID for crqe.dll but there are ways around it, order of install and unregistering the dll and then regsitering it back in. Various options and ways around it and they are based on the same code so it should not be a problem.
Please be patience while we research the various upgrade issues.
Stay tuned for updates....
Thanks again
Don -
Creating a New Report Project Crashes
Hello,
I've just downloaded the release of CR for VS2010 and installed it correctly.
But when i try to create a new report in a new solution (i use emty project ) and then try to add with the database expert databases it freeze the vs2010 with no timeout and no error message.
I saw in te forums that it's a recuring question so i tried to build a Virtual machine with win7 x64 and VS2010 and install CR on this fresh installation and it works !
I'm wondering if there is any relation with the way my developpement machine was installed:
Installed VS2010
Installed VS2008
Installed CR for VS 2008 sp1
then Installed CR for VS 2010
Also when i try to make a new project with the Crystal Reports Project Template there's a reference missing in the project. Even if i correct the mis-reference the project hangs on the database expert ...
Could you investigate ? i don't want to reinstall my dev computer and i need the CR2008 just time to upgrade the Projects to VS 2010...
Kind regardsHello,
We are still trying to figure out what is causing this. It only happens on a few users PC's.
Can you download debugdiag from Microsoft, if you don't have it already, and run it to capture on devenv.exe. Analyze it and tell me what dll the crash is happening in?
Thank you
Don -
How to empty trash using emtpty securely, it wont empty the trash after i clicked the remove all items? Using iMac 2011
If all else fails use Utilities> Terminal.
If there are several locked files in the Trash, you can unlock them all at the same time at the command line. Follow these steps:
Open Terminal. It's located in /Applications/Utilities.
Type:
chflags -R nouchg
Type one space (not pictured) after nouchg in the line above, so that it ends in "nouchg ". Do not press Return yet.
Type:chflags -R nouchg Type one space (not pictured) after nouchg in the line above, so that it ends in "nouchg ". Do not press Return yet.
Double-click the Trash icon in the Dock to reveal the contents of the Trash. If necessary, arrange the Finder window so that a portion of the Terminal window is still visible.
Press the Command-A key combination to select all files in the Trash.
Drag the files from the Trash to the Terminal window.
Note: This automatically enters the pathname for each file. This eliminates the need to individually empty multiple Trash directories, particularly when multiple disks or volumes are present.
Press Return. No special text message will be shown indicating that the command was successful.
Empty the Trash.
If the Trash does not empty or if you see a message in Terminal that says "usage: chflags [-R [-H | -L | -P]] flags file..." you most likely did not type the text in step 2 as indicated or did not leave a space. Repeat the steps if this happens. -
I use PSE 10 on my Mac pro. I've imported files in my catalog. I've gived them label and key word so I'm able to see them in Organizer. But when I'm tring to visualise and search them by the place of the folders on left, the folders appear to be emty with no files imported. Strange. Can someone help ?
> Hi everybody!
> Just a couple of questions.
>
> 1) Is it possible to write reviews, subscribe, give
> feedback etc. for documents, stored on a remote
> fileserver? I connected our fileserver to portal as
> WebDAV repository, I can see documents and folders.
> But I can't use any collaboration functions.
>
That is what I try to figure out. With CM respository, you can do all you mentioned above. In WebDAV respository, I read some docs that you can do it too, but I am researching on "how to do" now.
> 2) How to enable document versioning in KM? I want
> users to be able track document versions and see, who
> edited particular document last and what was the
> change. Is it possible?
Yes. It is possible on CM respository. For WebDAV, yes, possible, will update you if I got more info.
>
> 3) Where can I find info on taxonomies concepts, best
> approaches etc.?
>
Always try help.sap.com >Netweaver> KMC.
> Thanks in advance!
>
> Regards
> DK -
ALV Tree Report without using ABAP Objects
Hi all,
I want to know the name of a function module to create ALV Tree in SE38 as a report. I am required to create this ALV Tree Report without using ABAP OBJECTS. Can u pls help me as early as possible.Hi
see this link
http://www.sapdev.co.uk/reporting/alv/alvtree.htm
*& Report ZBCALV_TREE
REPORT ZBCALV_TREE.
class cl_gui_column_tree definition load.
class cl_gui_cfw definition load.
data tree1 type ref to cl_gui_alv_tree.
data mr_toolbar type ref to cl_gui_toolbar.
include <icon>.
include bcalv_toolbar_event_receiver.
include bcalv_tree_event_receiver.
data: toolbar_event_receiver type ref to lcl_toolbar_event_receiver.
data: gt_VBAK type VBAK occurs 0, "Output-Table
gt_fieldcatalog type lvc_t_fcat, "Fieldcatalog
ok_code like sy-ucomm. "OK-Code
start-of-selection.
end-of-selection.
call screen 100.
*& Module STATUS_0100 OUTPUT
text
module STATUS_0100 output.
SET PF-STATUS 'MAIN'.
if tree1 is initial.
perform Zinit_tree.
endif.
call method cl_gui_cfw=>flush.
endmodule. " STATUS_0100 OUTPUT
*& Form Zinit_tree
text
--> p1 text
<-- p2 text
form Zinit_tree .
perform Zbuild_fieldcatalog.
create container for alv-tree
data: l_tree_container_name(30) type c,
l_custom_container type ref to cl_gui_custom_container.
l_tree_container_name = 'TREE1'.
if sy-batch is initial.
create object l_custom_container
exporting
container_name = l_tree_container_name
exceptions
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
if sy-subrc <> 0.
message x208(00) with 'ERROR'. "#EC NOTEXT
endif.
endif.
create tree control
create object tree1
exporting
parent = l_custom_container
node_selection_mode = cl_gui_column_tree=>node_sel_mode_single
item_selection = 'X'
no_html_header = ''
no_toolbar = ''
exceptions
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
illegal_node_selection_mode = 5
failed = 6
illegal_column_name = 7.
if sy-subrc <> 0.
message x208(00) with 'ERROR'. "#EC NOTEXT
endif.
create Hierarchy-header
data l_hierarchy_header type treev_hhdr.
perform zbuild_hierarchy_header changing l_hierarchy_header.
create info-table for html-header
data: lt_list_commentary type slis_t_listheader,
l_logo type sdydo_value.
perform Zbuild_comment using
lt_list_commentary
l_logo.
repid for saving variants
data: ls_variant type disvariant.
ls_variant-report = sy-repid.
create emty tree-control
call method tree1->set_table_for_first_display
exporting
is_hierarchy_header = l_hierarchy_header
it_list_commentary = lt_list_commentary
i_logo = l_logo
i_background_id = 'ALV_BACKGROUND'
i_save = 'A'
is_variant = ls_variant
changing
it_outtab = gt_VBAK "table must be emty !!
it_fieldcatalog = gt_fieldcatalog.
create hierarchy
perform Zcreate_hierarchy.
add own functioncodes to the toolbar
perform zchange_toolbar.
register events
perform zregister_events.
endform. " Zinit_tree
*& Form Zbuild_fieldcatalog
text
--> p1 text
<-- p2 text
form Zbuild_fieldcatalog .
get fieldcatalog
call function 'LVC_FIELDCATALOG_MERGE'
exporting
i_structure_name = 'VBAK'
changing
ct_fieldcat = gt_fieldcatalog.
sort gt_fieldcatalog by scrtext_l.
change fieldcatalog
data: ls_fieldcatalog type lvc_s_fcat.
loop at gt_fieldcatalog into ls_fieldcatalog.
case ls_fieldcatalog-fieldname.
when 'AUART' .
ls_fieldcatalog-no_out = 'X'.
ls_fieldcatalog-key = ''.
endcase.
modify gt_fieldcatalog from ls_fieldcatalog.
endloop.
endform. " Zbuild_fieldcatalog
*& Form zbuild_hierarchy_header
text
<--P_L_HIERARCHY_HEADER text
form zbuild_hierarchy_header changing
p_hierarchy_header type treev_hhdr.
p_hierarchy_header-heading = 'Hierarchy Header'. "#EC NOTEXT
p_hierarchy_header-tooltip =
'This is the Hierarchy Header !'. "#EC NOTEXT
p_hierarchy_header-width = 30.
p_hierarchy_header-width_pix = ''.
endform. " zbuild_hierarchy_header
*& Form Zbuild_comment
text
-->P_LT_LIST_COMMENTARY text
-->P_L_LOGO text
form Zbuild_comment using
pt_list_commentary type slis_t_listheader
p_logo type sdydo_value.
data: ls_line type slis_listheader.
LIST HEADING LINE: TYPE H
clear ls_line.
ls_line-typ = 'H'.
LS_LINE-KEY: NOT USED FOR THIS TYPE
ls_line-info = 'ALV-tree-demo: flight-overview'. "#EC NOTEXT
append ls_line to pt_list_commentary.
STATUS LINE: TYPE S
clear ls_line.
ls_line-typ = 'S'.
ls_line-key = 'valid until'. "#EC NOTEXT
ls_line-info = 'January 29 1999'. "#EC NOTEXT
append ls_line to pt_list_commentary.
ls_line-key = 'time'.
ls_line-info = '2.00 pm'. "#EC NOTEXT
append ls_line to pt_list_commentary.
ACTION LINE: TYPE A
clear ls_line.
ls_line-typ = 'A'.
LS_LINE-KEY: NOT USED FOR THIS TYPE
ls_line-info = 'actual data'. "#EC NOTEXT
append ls_line to pt_list_commentary.
p_logo = 'ENJOYSAP_LOGO'.
endform. " Zbuild_comment
*& Form Zcreate_hierarchy
text
--> p1 text
<-- p2 text
form Zcreate_hierarchy .
data: ls_vbak type vbak,
lt_vbak type vbak occurs 0.
get data
select * from vbak into table lt_vbak
up to 200 rows . "#EC CI_NOWHERE
sort lt_vbak by AUART.
add data to tree
data: l_AUART_key type lvc_nkey.
loop at lt_vbak into ls_vbak.
on change of ls_vbak-AUART.
perform Zadd_AUART_line using ls_vbak
changing l_AUART_key.
endon.
endloop.
calculate totals
call method tree1->update_calculations.
this method must be called to send the data to the frontend
call method tree1->frontend_update.
endform. " Zcreate_hierarchy
*& Form Zadd_AUART_line
text
-->P_LS_vbak text
-->P_0379 text
<--P_L_AUART_KEY text
form Zadd_AUART_line using p_ls_vbak type vbak
p_relat_key type lvc_nkey
changing p_node_key type lvc_nkey.
data: l_node_text type lvc_value,
ls_vbak type vbak.
set item-layout
data: lt_item_layout type lvc_t_layi,
ls_item_layout type lvc_s_layi.
ls_item_layout-t_image = '@3P@'.
ls_item_layout-fieldname = tree1->c_hierarchy_column_name.
ls_item_layout-style =
cl_gui_column_tree=>style_intensifd_critical.
append ls_item_layout to lt_item_layout.
add node
l_node_text = p_ls_vbak-AUART.
data: ls_node type lvc_s_layn.
ls_node-n_image = space.
ls_node-exp_image = space.
call method tree1->add_node
exporting
i_relat_node_key = p_relat_key
i_relationship = cl_gui_column_tree=>relat_last_child
i_node_text = l_node_text
is_outtab_line = ls_vbak
is_node_layout = ls_node
it_item_layout = lt_item_layout
importing
e_new_node_key = p_node_key .
endform. " Zadd_AUART_line
*& Form zchange_toolbar
text
--> p1 text
<-- p2 text
form zchange_toolbar .
get toolbar control
call method tree1->get_toolbar_object
importing
er_toolbar = mr_toolbar.
check not mr_toolbar is initial.
add seperator to toolbar
call method mr_toolbar->add_button
exporting
fcode = ''
icon = ''
butn_type = cntb_btype_sep
text = ''
quickinfo = 'This is a Seperator'. "#EC NOTEXT
add Standard Button to toolbar (for Delete Subtree)
call method mr_toolbar->add_button
exporting
fcode = 'DELETE'
icon = '@18@'
butn_type = cntb_btype_button
text = ''
quickinfo = 'Delete subtree'. "#EC NOTEXT
add Dropdown Button to toolbar (for Insert Line)
call method mr_toolbar->add_button
exporting
fcode = 'INSERT_LC'
icon = '@17@'
butn_type = cntb_btype_dropdown
text = ''
quickinfo = 'Insert Line'. "#EC NOTEXT
set event-handler for toolbar-control
create object toolbar_event_receiver.
set handler toolbar_event_receiver->on_function_selected
for mr_toolbar.
set handler toolbar_event_receiver->on_toolbar_dropdown
for mr_toolbar.
endform. " zchange_toolbar
*& Form zregister_events
text
--> p1 text
<-- p2 text
form zregister_events .
define the events which will be passed to the backend
data: lt_events type cntl_simple_events,
l_event type cntl_simple_event.
define the events which will be passed to the backend
l_event-eventid = cl_gui_column_tree=>eventid_expand_no_children.
append l_event to lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_checkbox_change.
append l_event to lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_header_context_men_req.
append l_event to lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_node_context_menu_req.
append l_event to lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_item_context_menu_req.
append l_event to lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_header_click.
append l_event to lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_item_keypress.
append l_event to lt_events.
call method tree1->set_registered_events
exporting
events = lt_events
exceptions
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3.
if sy-subrc <> 0.
message x208(00) with 'ERROR'. "#EC NOTEXT
endif.
set Handler
data: l_event_receiver type ref to lcl_tree_event_receiver.
create object l_event_receiver.
set handler l_event_receiver->handle_node_ctmenu_request
for tree1.
set handler l_event_receiver->handle_node_ctmenu_selected
for tree1.
set handler l_event_receiver->handle_item_ctmenu_request
for tree1.
set handler l_event_receiver->handle_item_ctmenu_selected
for tree1.
endform. " zregister_events
*& Module USER_COMMAND_0100 INPUT
text
module USER_COMMAND_0100 input.
ok_code = sy-ucomm.
clear sy-ucomm.
case ok_code.
when 'EXIT' or 'BACK' or 'CANC'.
perform Zexit_program.
when others.
call method cl_gui_cfw=>dispatch.
endcase.
clear ok_code.
call method cl_gui_cfw=>flush.
endmodule. " USER_COMMAND_0100 INPUT
*& Form Zexit_program
text
--> p1 text
<-- p2 text
form Zexit_program .
call method tree1->free.
leave program.
endform. " Zexit_program
<b>Reward if usefull</b> -
ALV Tree using Function Modules
Hi,
I want a simple example of ALV Tree using Function Modules which can display multiple Columns in the Hierarchically arranged fashion along with nodes & icons.
Also should be able to handle the events.
Thanks in Advance..Hi Ramesh,
Here is a example of alv tree
*& Report BCALV_TREE_DEMO *
report bcalv_tree_demo.
class cl_gui_column_tree definition load.
class cl_gui_cfw definition load.
data tree1 type ref to cl_gui_alv_tree.
data mr_toolbar type ref to cl_gui_toolbar.
include <icon>.
include bcalv_toolbar_event_receiver.
include bcalv_tree_event_receiver.
data: toolbar_event_receiver type ref to lcl_toolbar_event_receiver.
data: gt_sflight type sflight occurs 0, "Output-Table
gt_fieldcatalog type lvc_t_fcat, "Fieldcatalog
ok_code like sy-ucomm. "OK-Code
start-of-selection.
end-of-selection.
call screen 100.
*& Module PBO OUTPUT
* process before output
module pbo output.
set pf-status 'MAIN100'.
if tree1 is initial.
perform init_tree.
endif.
call method cl_gui_cfw=>flush.
endmodule. " PBO OUTPUT
*& Module PAI INPUT
* process after input
module pai input.
case ok_code.
when 'EXIT' or 'BACK' or 'CANC'.
perform exit_program.
when others.
call method cl_gui_cfw=>dispatch.
endcase.
clear ok_code.
call method cl_gui_cfw=>flush.
endmodule. " PAI INPUT
*& Form build_fieldcatalog
* build fieldcatalog for structure sflight
form build_fieldcatalog.
* get fieldcatalog
call function 'LVC_FIELDCATALOG_MERGE'
exporting
i_structure_name = 'SFLIGHT'
changing
ct_fieldcat = gt_fieldcatalog.
* change fieldcatalog
data: ls_fieldcatalog type lvc_s_fcat.
loop at gt_fieldcatalog into ls_fieldcatalog.
case ls_fieldcatalog-fieldname.
when 'CARRID' or 'CONNID' or 'FLDATE'.
ls_fieldcatalog-no_out = 'X'.
ls_fieldcatalog-key = ''.
when 'PRICE' or 'SEATSOCC' or 'SEATSMAX' or 'PAYMENTSUM'.
ls_fieldcatalog-do_sum = 'X'.
endcase.
modify gt_fieldcatalog from ls_fieldcatalog.
endloop.
endform. " build_fieldcatalog
*& Form build_hierarchy_header
* build hierarchy-header-information
* -->P_L_HIERARCHY_HEADER strucxture for hierarchy-header
form build_hierarchy_header changing
p_hierarchy_header type treev_hhdr.
p_hierarchy_header-heading = 'Hierarchy Header'. "#EC NOTEXT
p_hierarchy_header-tooltip =
'This is the Hierarchy Header !'. "#EC NOTEXT
p_hierarchy_header-width = 30.
p_hierarchy_header-width_pix = ''.
endform. " build_hierarchy_header
*& Form exit_program
* free object and leave program
form exit_program.
call method tree1->free.
leave program.
endform. " exit_program
*& Form build_header
* build table for html_header
* --> p1 text
* <-- p2 text
form build_comment using
pt_list_commentary type slis_t_listheader
p_logo type sdydo_value.
data: ls_line type slis_listheader.
* LIST HEADING LINE: TYPE H
clear ls_line.
ls_line-typ = 'H'.
* LS_LINE-KEY: NOT USED FOR THIS TYPE
ls_line-info = 'ALV-tree-demo: flight-overview'. "#EC NOTEXT
append ls_line to pt_list_commentary.
* STATUS LINE: TYPE S
clear ls_line.
ls_line-typ = 'S'.
ls_line-key = 'valid until'. "#EC NOTEXT
ls_line-info = 'January 29 1999'. "#EC NOTEXT
append ls_line to pt_list_commentary.
ls_line-key = 'time'.
ls_line-info = '2.00 pm'. "#EC NOTEXT
append ls_line to pt_list_commentary.
* ACTION LINE: TYPE A
clear ls_line.
ls_line-typ = 'A'.
* LS_LINE-KEY: NOT USED FOR THIS TYPE
ls_line-info = 'actual data'. "#EC NOTEXT
append ls_line to pt_list_commentary.
p_logo = 'ENJOYSAP_LOGO'.
endform.
*& Form create_hierarchy
* text
* --> p1 text
* <-- p2 text
form create_hierarchy.
data: ls_sflight type sflight,
lt_sflight type sflight occurs 0.
* get data
select * from sflight into table lt_sflight
UP TO 200 ROWS .
sort lt_sflight by carrid connid fldate.
* add data to tree
data: l_carrid_key type lvc_nkey,
l_connid_key type lvc_nkey,
l_last_key type lvc_nkey.
loop at lt_sflight into ls_sflight.
on change of ls_sflight-carrid.
perform add_carrid_line using ls_sflight
changing l_carrid_key.
endon.
on change of ls_sflight-connid.
perform add_connid_line using ls_sflight
l_carrid_key
changing l_connid_key.
endon.
perform add_complete_line using ls_sflight
l_connid_key
changing l_last_key.
endloop.
* calculate totals
call method tree1->update_calculations.
* this method must be called to send the data to the frontend
call method tree1->frontend_update.
endform. " create_hierarchy
*& Form add_carrid_line
* add hierarchy-level 1 to tree
* -->P_LS_SFLIGHT sflight
* -->P_RELEATKEY relatkey
* <-->p_node_key new node-key
form add_carrid_line using ps_sflight type sflight
p_relat_key type lvc_nkey
changing p_node_key type lvc_nkey.
data: l_node_text type lvc_value,
ls_sflight type sflight.
* set item-layout
data: lt_item_layout type lvc_t_layi,
ls_item_layout type lvc_s_layi.
ls_item_layout-t_image = '@3P@'.
ls_item_layout-fieldname = tree1->c_hierarchy_column_name.
ls_item_layout-style =
cl_gui_column_tree=>style_intensifd_critical.
append ls_item_layout to lt_item_layout.
* add node
l_node_text = ps_sflight-carrid.
call method tree1->add_node
exporting
i_relat_node_key = p_relat_key
i_relationship = cl_gui_column_tree=>relat_last_child
i_node_text = l_node_text
is_outtab_line = ls_sflight
it_item_layout = lt_item_layout
importing
e_new_node_key = p_node_key.
endform. " add_carrid_line
*& Form add_connid_line
* add hierarchy-level 2 to tree
* -->P_LS_SFLIGHT sflight
* -->P_RELEATKEY relatkey
* <-->p_node_key new node-key
form add_connid_line using ps_sflight type sflight
p_relat_key type lvc_nkey
changing p_node_key type lvc_nkey.
data: l_node_text type lvc_value,
ls_sflight type sflight.
* set item-layout
data: lt_item_layout type lvc_t_layi,
ls_item_layout type lvc_s_layi.
ls_item_layout-t_image = '@3Y@'.
ls_item_layout-style =
cl_gui_column_tree=>style_intensified.
ls_item_layout-fieldname = tree1->c_hierarchy_column_name.
append ls_item_layout to lt_item_layout.
* add node
l_node_text = ps_sflight-connid.
call method tree1->add_node
exporting
i_relat_node_key = p_relat_key
i_relationship = cl_gui_column_tree=>relat_last_child
i_node_text = l_node_text
is_outtab_line = ls_sflight
it_item_layout = lt_item_layout
importing
e_new_node_key = p_node_key.
endform. " add_connid_line
*& Form add_cmplete_line
* add hierarchy-level 3 to tree
* -->P_LS_SFLIGHT sflight
* -->P_RELEATKEY relatkey
* <-->p_node_key new node-key
form add_complete_line using ps_sflight type sflight
p_relat_key type lvc_nkey
changing p_node_key type lvc_nkey.
data: l_node_text type lvc_value.
* set item-layout
data: lt_item_layout type lvc_t_layi,
ls_item_layout type lvc_s_layi.
ls_item_layout-fieldname = tree1->c_hierarchy_column_name.
ls_item_layout-class = cl_gui_column_tree=>item_class_checkbox.
ls_item_layout-editable = 'X'.
append ls_item_layout to lt_item_layout.
l_node_text = ps_sflight-fldate.
call method tree1->add_node
exporting
i_relat_node_key = p_relat_key
i_relationship = cl_gui_column_tree=>relat_last_child
is_outtab_line = ps_sflight
i_node_text = l_node_text
it_item_layout = lt_item_layout
importing
e_new_node_key = p_node_key.
endform. " add_complete_line
*& Form register_events
* text
* --> p1 text
* <-- p2 text
form register_events.
* define the events which will be passed to the backend
data: lt_events type cntl_simple_events,
l_event type cntl_simple_event.
* define the events which will be passed to the backend
l_event-eventid = cl_gui_column_tree=>eventid_expand_no_children.
append l_event to lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_checkbox_change.
append l_event to lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_header_context_men_req.
append l_event to lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_node_context_menu_req.
append l_event to lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_item_context_menu_req.
append l_event to lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_header_click.
append L_EVENT to lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_item_keypress.
append L_EVENT to lt_events.
call method tree1->set_registered_events
exporting
events = lt_events
exceptions
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3.
if sy-subrc <> 0.
message x208(00) with 'ERROR'. "#EC NOTEXT
endif.
* set Handler
data: l_event_receiver type ref to lcl_tree_event_receiver.
create object l_event_receiver.
set handler l_event_receiver->handle_node_ctmenu_request
for tree1.
set handler l_event_receiver->handle_node_ctmenu_selected
for tree1.
set handler l_event_receiver->handle_item_ctmenu_request
for tree1.
set handler l_event_receiver->handle_item_ctmenu_selected
for tree1.
endform. " register_events
*& Form change_toolbar
* text
* --> p1 text
* <-- p2 text
form change_toolbar.
* get toolbar control
call method tree1->get_toolbar_object
importing
er_toolbar = mr_toolbar.
check not mr_toolbar is initial.
* add seperator to toolbar
call method mr_toolbar->add_button
exporting
fcode = ''
icon = ''
butn_type = cntb_btype_sep
text = ''
quickinfo = 'This is a Seperator'. "#EC NOTEXT
* add Standard Button to toolbar (for Delete Subtree)
call method mr_toolbar->add_button
exporting
fcode = 'DELETE'
icon = '@18@'
butn_type = cntb_btype_button
text = ''
quickinfo = 'Delete subtree'. "#EC NOTEXT
* add Dropdown Button to toolbar (for Insert Line)
call method mr_toolbar->add_button
exporting
fcode = 'INSERT_LC'
icon = '@17@'
butn_type = cntb_btype_dropdown
text = ''
quickinfo = 'Insert Line'. "#EC NOTEXT
* set event-handler for toolbar-control
create object toolbar_event_receiver.
set handler toolbar_event_receiver->on_function_selected
for mr_toolbar.
set handler toolbar_event_receiver->on_toolbar_dropdown
for mr_toolbar.
endform. " change_toolbar
*& Form init_tree
* text
* --> p1 text
* <-- p2 text
FORM init_tree.
* create fieldcatalog for structure sflight
perform build_fieldcatalog.
* create container for alv-tree
data: l_tree_container_name(30) type c,
l_custom_container type ref to cl_gui_custom_container.
l_tree_container_name = 'TREE1'.
if sy-batch is initial.
create object l_custom_container
exporting
container_name = l_tree_container_name
exceptions
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
if sy-subrc <> 0.
message x208(00) with 'ERROR'. "#EC NOTEXT
endif.
endif.
* create tree control
create object tree1
exporting
parent = l_custom_container
node_selection_mode = cl_gui_column_tree=>node_sel_mode_single
item_selection = 'X'
no_html_header = ''
no_toolbar = ''
exceptions
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
illegal_node_selection_mode = 5
failed = 6
illegal_column_name = 7.
if sy-subrc <> 0.
message x208(00) with 'ERROR'. "#EC NOTEXT
endif.
* create Hierarchy-header
data l_hierarchy_header type treev_hhdr.
perform build_hierarchy_header changing l_hierarchy_header.
* create info-table for html-header
data: lt_list_commentary type slis_t_listheader,
l_logo type sdydo_value.
perform build_comment using
lt_list_commentary
l_logo.
* repid for saving variants
data: ls_variant type disvariant.
ls_variant-report = sy-repid.
* create emty tree-control
call method tree1->set_table_for_first_display
exporting
is_hierarchy_header = l_hierarchy_header
it_list_commentary = lt_list_commentary
i_logo = l_logo
i_background_id = 'ALV_BACKGROUND'
i_save = 'A'
is_variant = ls_variant
changing
it_outtab = gt_sflight "table must be emty !!
it_fieldcatalog = gt_fieldcatalog.
* create hierarchy
perform create_hierarchy.
* add own functioncodes to the toolbar
perform change_toolbar.
* register events
perform register_events.
* adjust column_width
call method tree1->COLUMN_OPTIMIZE.
ENDFORM. " init_tree
regards,
venu. -
Help! Cannot make font using FDK
I'm trying to make an OTF font using FDK (1.5 for Windows). However, MakeOTF
lists the contents of my PFA file and then stops. No warning, no message, no
OTF created.
The source files for the font are placed at
http://www.twardoch.com/tmp/otf/sans021212f_fdk.zip
Could you please kindly take a look into it? For me, it seems to be a
perfectly valid font.
Best regards,
AdamAdam Twardoch wrote:
>
> I'm trying to make an OTF font using FDK (1.5 for Windows). However, MakeOTF
> lists the contents of my PFA file and then stops. No warning, no message, no
> OTF created.
>
> The source files for the font are placed at
> http://www.twardoch.com/tmp/otf/sans021212f_fdk.zip
>
> Could you please kindly take a look into it? For me, it seems to be a
> perfectly valid font.
>
> Best regards,
> Adam
Hello Adam,
first turn on "Enable Source Font Type1 Warnings" to see all errors.
1 Error: The GlyphOrderAndAliasDB file needs an emty line at the end or
MakeOTF gives an error.
2. Error: Your FontMenuNameDB entrys needs to set the "s=" values.
like:
[Sans021212F]
f=Sans021212F
s=Regular
c=Sans021212F
c=1,Sans021212F
Now you should be able to compile your font.
If you speak German too, you will find also help for OTFs on the forum
of www.typeforum.de. You are welcome!
Andreas -
Feels like I am using a beta version of PE 10
I am using PE10 since about one year but I am not completely satisfied with the software. There are so many bugs in it...
- When starting PE10 on my Dual Core 3.0 GHz PE10 will stay at a 100% CPU usage, even when there is no project loaded. I know it´s the minimum but 100% load for only an emty application...? So I had to change to another computer.
- Lots of graphical issues:
- disappearing key frame buttons (known issue)
- When adjusting the audio level on the timeline the level indicator disappears and jumps back to it´s original position
- When extending a clip the clip "flips" on the timeline
- Graphical artifacts on the point where the time indicator had been.
- Saved text styles have different properties when reopening the project.
- Airbrush effect: when you set the effect to 0% the footage is still "airbrushed" (like you have set it to 10%)
- When switching from another program back to PE it takes 8 seconds before the turning icon changes into an arrow so I can go on working
- When using the crop effect first and after that the Edge Feather effect the Edge Feather starts at the original edges instead of the cropped footage. Changing order does not help.
- Turning audio buttons with the mouse is almost impossible
- Inserting clips when the time indicator is not on the current visible part of your project the project will be messed up.
- You cannot type a long text for a crawling title in the text box. The text won´t shift so you are typing off screen. You have to copy/past it from a text file.
- Some more annoying bugs...
I hoped Adobe would release an update to fix these problems, but they don´t...
Does someone feel the same way about this version of PE?I already updated my video driver and that did not work...
Here are some examples:
Missing buttons
The key frame buttons for track 2 are missing:
http://i84.photobucket.com/albums/k32/dbeuken/Premiere%20Elements/missing_keyframe_buttons _zps8cb2a063.jpg
The airbrush effect problem:
Here you can see the footage is sharp and natural. The airbrush effect is turned off:
http://i84.photobucket.com/albums/k32/dbeuken/Premiere%20Elements/Airbrush-disabled_zps192 a470a.jpg
Here you can see the footage which is fuzzy now. The airbrush effect is turned on but set to 0.00
It should look the same as when the effect is turned off.
http://i84.photobucket.com/albums/k32/dbeuken/Premiere%20Elements/Airbrush-enabled_zps70fc cc24.jpg
Because of this problem I cannot let the footage get more and more airbrushed from zero.
Edge feather problem:
Footage without cropping (= "wegsnijden" in Dutch) and full edge feather (="randdoezelaar" in Dutch):
http://i84.photobucket.com/albums/k32/dbeuken/Premiere%20Elements/Edgefeather_zpsaa9334ca. jpg
Footage which is cropped first and then "edge feathered":
http://i84.photobucket.com/albums/k32/dbeuken/Premiere%20Elements/Edgefeather-cropped_zps3 f9d0697.jpg
Edge feathering is not applied on the cropped footage. It´s feathering the cropped parts.
When I click on the monitor windows once and move the edge feather slider to the left and to the right the cropped image becomes "feathered" but after some second the effect disappears again.
I tried this on a new i7 6 GB machine and it has the same problems. -
Unable to set panel using set method.
Dear friends,
I declared a class called EntryPanel in which I declared and initialized the emty panel which I later want to override with new Panel in Child classes. Now I declared an internal frame where I initialized this Panel and later I extended it by Material internal frame in this class I want to override the panel I created in EntryPanel using set but I am unable to do that I am posting the code below. I hope someone would have faced similar problem
I have created classes as below.
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.GridBagConstraints;
import javax.swing.JPanel;
import javax.swing.border.BevelBorder;
import javax.swing.border.EtchedBorder;
import noptics.client.lens.gui.AddCancelBtnPanel;
public class EntryPanel extends javax.swing.JPanel {
private AddCancelBtnPanel btnPanel;
private JPanel fieldPanel;
public EntryPanel() {
initGUI();
* Initializes the GUI.
public void initGUI(){
try {
fieldPanel = new JPanel();
btnPanel = new AddCancelBtnPanel();
GridBagLayout thisLayout = new GridBagLayout();
this.setLayout(thisLayout);
fieldPanel.setBorder(new EtchedBorder(BevelBorder.LOWERED, null, null));
GridBagConstraints c = new GridBagConstraints();
c.gridx = 0;
c.gridy = 0;
c.gridwidth = 1;
c.gridheight = 1;
c.weightx = 1.0;
c.weighty = 1.0;
c.anchor = GridBagConstraints.NORTH;
c.fill = GridBagConstraints.BOTH;
c.insets = new Insets(5, 5, 5, 5);
c.ipadx = 0;
c.ipady = 0;
this.add(fieldPanel, c);
c.gridy = 1;
c.weightx = 0.0;
c.weighty = 0.0;
c.anchor = GridBagConstraints.NORTH;
c.fill = GridBagConstraints.HORIZONTAL;
c.insets = new Insets(0, 0, 5, 0);
this.add(btnPanel, c);
} catch (Exception e) {
e.printStackTrace();
* @return <code>AddCancelBtnPanel</code> -
* This can be used to get reference to button panel.
public AddCancelBtnPanel getBtnPanel() {
return btnPanel;
* @return <code>JPanel</code> - Reference to fieldPanel;
public JPanel getFieldPanel() {
return fieldPanel;
* @param <code>JPanel</code> - panel Replace with orignal Panel
* with fields.
public void setFieldPanel(JPanel panel) {
fieldPanel = panel;
import javax.swing.JSplitPane;
import noptics.client.lens.gui.EntryPanel;
import noptics.client.lens.gui.ListPanel;
public class ListEntryInternalFrame extends javax.swing.JInternalFrame {
private EntryPanel entryPanel;
private ListPanel listPanel;
private JSplitPane listEntrySplitPane;
* @param string
public ListEntryInternalFrame(String string) {
super(string);
initGUI();
public ListEntryInternalFrame() {
this("");
* Initializes the GUI.
public void initGUI(){
try {
listEntrySplitPane = new JSplitPane();
listPanel = new ListPanel();
entryPanel = new EntryPanel();
this.setResizable(true);
this.setClosable(true);
this.setMaximizable(true);
this.setToolTipText("Default List Entry Screen");
this.setPreferredSize(new java.awt.Dimension(400,200));
this.setAutoscrolls(true);
listEntrySplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
listEntrySplitPane.setOneTouchExpandable(true);
this.getContentPane().add(listEntrySplitPane);
listEntrySplitPane.add(listPanel, JSplitPane.RIGHT);
listEntrySplitPane.add(entryPanel, JSplitPane.LEFT);
} catch (Exception e) {
e.printStackTrace();
* @return
public EntryPanel getEntryPanel() {
return entryPanel;
* @return
public JSplitPane getListEntrySplitPane() {
return listEntrySplitPane;
* @return
public ListPanel getListPanel() {
return listPanel;
public class MaterialInternalFrame extends ListEntryInternalFrame {
MaterialPanel material;
* Default Constructor
public MaterialInternalFrame() {
this("Material Entry Screen");
* @param <code>String</code> - string
public MaterialInternalFrame(String string) {
super(string);
public void postInitGUI() {
material = new MaterialPanel();
super.getEntryPanel().getFieldPanel().add(material);
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.GridBagConstraints;
import javax.swing.JLabel;
import javax.swing.JTextField;
* This panel contains entry field for Material.
public class MaterialPanel extends javax.swing.JPanel {
private JTextField nameTxt;
private JLabel fieldLbl;
private JLabel titleLbl;
public MaterialPanel() {
initGUI();
* Initializes the GUI.
public void initGUI(){
try {
titleLbl = new JLabel();
fieldLbl = new JLabel();
nameTxt = new JTextField();
GridBagLayout thisLayout = new GridBagLayout();
this.setLayout(thisLayout);
thisLayout.columnWidths = new int[] {1,1};
thisLayout.rowHeights = new int[] {1,1};
thisLayout.columnWeights = new double[] {0.1,0.1};
thisLayout.rowWeights = new double[] {0.1,0.1};
// this.setPreferredSize(new java.awt.Dimension(200,100));
titleLbl.setText("Material");
GridBagConstraints c = new GridBagConstraints();
c.gridx = 0;
c.gridy = 0;
c.gridwidth = 2;
c.gridheight = 1;
c.weightx = 0.0;
c.weighty = 0.0;
c.anchor = GridBagConstraints.NORTH;
c.fill = GridBagConstraints.NONE;
c.insets = new Insets(5, 0, 5, 0);
c.ipadx = 0;
c.ipady = 0;
this.add(titleLbl, c);
fieldLbl.setText("Name:");
c.gridy = 1;
c.gridwidth = 1;
c.anchor = GridBagConstraints.NORTHEAST;
c.insets = new Insets(0, 0, 0, Constants.RIGHTGAP);
this.add(fieldLbl, c);
nameTxt.setColumns(20);
nameTxt.setText("Material Name");
nameTxt.setText("Material Name");
nameTxt.setMaximumSize(new java.awt.Dimension(100,40));
nameTxt.setMinimumSize(Constants.txtDimension);
nameTxt.setPreferredSize(Constants.txtDimension);
c.gridx = 1;
c.gridheight = 1;
c.weightx = 1.0;
c.weighty = 1.0;
c.anchor = GridBagConstraints.NORTHWEST;
c.insets = new Insets(0, 0, 0, 0);
this.add(nameTxt, c);
} catch (Exception e) {
e.printStackTrace();
}Sorry, this is just a quick response...i haven't
really read your code too thoroughly.
You could try calling
super.getEntryPanel().validate(); after setting the
field panel
or super.getEntryPanel().updateUI();I have tried both but it doesn't work
when I change my postInitGUI function code as given below I am able to see the Label but the new panel I want to set is not getting set. I can add material panel in old panel but I am unable to reset that panel with new Panel.
// Function postInitGUI in MaterialInternalFrame class
public void postInitGUI() {
super.getEntryPanel().getFieldPanel().add(new JLabel("Hello World"));
material = new MaterialPanel();
super.getEntryPanel().setFieldPanel(material);
} -
Problems printing out of PS CS5 with Epson 4800 using latest epson driver
This is my first post here at the forum.
Has anybody experienced the following:
While printing out of Photoshop CS5 12.0.1 with an epson 4800, using the latest driver (6.65), the following happens:
Around the document, the printable space is filled with a very light colour.
(If I print an emty canvas, the canvas will not be printed - as expected - but around, the paper shows ink.)
I already talked to Epson about the issue.
We went through the whole printer reset, to make shure it´s not a driver issue)
The picture shown is printed several (5-6) times to better see the problem.
I did not select to print a background in the print dialogue.
Does not matter if PS 32bit or 64 bit is used.
OS is Snow Leopard 10.6.4
(Rosetta is installed, but should not be needed)
So, has anybody had similar problems?
Is there a solution?Look at this new driver update.. Will test as soon as my new cartridges arrive..
Drivers & Support: Epson Stylus Pro 3800
Back to all support options for Epson Stylus Pro 3800
DownloadMac OS X Common Updater {v.5.0:} 28-Dec-2010, 35.0MBs
Operating Systems:
Mac OS X - PowerPC, Mac OS X - Intel
Languages:
English, Français, Nederlands, Deutsch, Español, Italiano, Portugues
Products:
Epson Stylus Pro 11880, Epson Stylus Pro 3800, Epson Stylus Pro 3880, Epson Stylus Pro 4000, Epson Stylus Pro 4400, Epson Stylus Pro 4450, Epson Stylus Pro 4800, Epson Stylus Pro 4880, Epson Stylus Pro 4900, Epson Stylus Pro 7400, Epson Stylus Pro 7450, Epson Stylus Pro 7600, Epson Stylus Pro 7700, Epson Stylus Pro 7800, Epson Stylus Pro 7880, Epson Stylus Pro 7890, Epson Stylus Pro 7900, Epson Stylus Pro 9400, Epson Stylus Pro 9450, Epson Stylus Pro 9600, Epson Stylus Pro 9700, Epson Stylus Pro 9800, Epson Stylus Pro 9880, Epson Stylus Pro 9890, Epson Stylus Pro 9900
WHQL Certified:
No
File Format:
DMG
Additional Information:
Improvements:
Improved behaviour when printing on custom media.
Improved printer pool function.
Improved empty cartridge display in the driver utility panel -
Getting the signaling ip of outbound leg using TCL iVR 2.0
Hello all
I am using cisco TCL IVR 2.0 and Free Radius 1.1. I am trying to send signalling ip as an extra attribute to radius from the NAS in the accounting request packet using h323-ivr-out. The problem is I am not able to retrive the signaling ip of the out bound leg( I even tried the same for the inbound leg but still no luck). I am retriving the signaling ip using the info tag infotag get leg_remote_signaling_ip_address leg_outgoing. But I am getting a empty string
This is my code where I retrive the signaling ip
proc act_Cleanup { } {
set signalip [infotag get leg_remote_signaling_ip_address leg_outgoing]
set avsend(h323-ivr-out,0) "billingid:$signalip"
aaa accounting update leg_outgoing -a avsend
call close
This is the procedure that's get called when the call ends. I even tried using this code snippet when the call is established but I am still unable to read the signaling ip. I am accounting at stop only.
In the accounting request there is one attribute h323-remote-address which gives me the signaling ip but how do I retrive it in my tcl ivr script.
Please guys help me out
Thanks
VigneshI dont get why it is not working.
I used the simple tcl (the one that i've sent with your setup, and its gettin the ip addresses.
here is my ipipgw configuration.
dial-peer voice 1 voip
description INCOMING
huntstop
service ipipgw
incoming called-number 4#T
codec transparent
no vad
dial-peer voice 2 voip
description OUTGOING
translation-profile outgoing outgoing
huntstop
destination-pattern 4#T
session target ipv4:x.x.x.x
codec transparent
no vad
and i am using IOS version 124-7.bin.
Its very strange. it is not giving error or sth like that.it is just gettin an emty ip address. -
Creating emty rows in View Object
Hi,
My Application is ADFBC.
My requirement is create empty rows while page loading.I am using three tables one is master and another two are detailed tables.
creation form is: master form
detailed table
detailed table.
when i am pressing create button the form shows two emty rows in detailed table and 7 empty rows in second detailed table.
i wrote code in AMImpl is
public void createcomp() {
SequenceImpl s = new SequenceImpl("ATTRIBUTE_ID_S", getDBTransaction());
Number next = s.getSequenceNumber();
Number n=(Number)s.getData();
Number ssid=next+(new Number(1));
FbCmnEmcStorageSystemsVOImpl fbCmnEmcStorageSystemsVO = (FbCmnEmcStorageSystemsVOImpl) this.getFbCmnEmcStorageSystemsVO1();
FbCmnEmcStorageProcessorsVOImpl fbCmnEmcStorageProcessorsVO = (FbCmnEmcStorageProcessorsVOImpl) this.getFbCmnEmcStorageProcessorsVO2();
FbCmnEmcStorageComponentsVOImpl fbCmnEmcStorageComponentsVO = (FbCmnEmcStorageComponentsVOImpl) this.getFbCmnEmcStorageComponentsVO2();
// FbCmnEmcStorageSystemsVORow fbCmnEmcStorageSystemsVORow = (FbCmnEmcStorageSystemsVORow) fbCmnEmcStorageSystemsVO.createRow();
for(int i=1;i<=2;i++)
FbCmnEmcStorageProcessorsVORow fbCmnEmcStorageProcessorsVORow = (FbCmnEmcStorageProcessorsVORow) fbCmnEmcStorageProcessorsVO.createRow();
fbCmnEmcStorageProcessorsVORow.setStorageSystemId(new Number(ssid));
fbCmnEmcStorageProcessorsVORow.setSpId(new Number(i));
for(int i=0;i<7;i++) {
FbCmnEmcStorageComponentsVORow fbCmnEmcStorageComponentsVORow = (FbCmnEmcStorageComponentsVORow) fbCmnEmcStorageComponentsVO.createRow();
fbCmnEmcStorageComponentsVORow.setStorageSystemId(new Number(ssid));
fbCmnEmcStorageComponentsVORow.setComponentName("sample"+i);
i am calling this method while page loading using these procedure:
expose the method as a client method and create a method binding for it (in pageDef). Then create an invokeAction (also pageDef but Executables section) pointing to the method binding. Set the invokeAction refresh condition (property of it) to
${!adfFacesContext.postback}
but i am not getting emtyrows in display.
what i have to do?please help me.
Thanks,Hi,
see this section in the developer guide for the answer
http://download-uk.oracle.com/docs/html/B25947_01/bcdcpal004.htm#sthref823
Frank -
hello everybody
i am trying to compress a few files to a *.zip package, but my code does not write anything into the file. the file is created and has the size of the files to compress but the file itself is emty.
here you see my code, please focus on the try/catch block:
public static void writeZipPackage(Collection v_packages, ZipOutputStream v_outPutStream, String v_langTwo) throws Exception {
Iterator iter = v_packages.iterator();
byte[] readBuffer = new byte[2156];
int bytesIn = 0;
//XML File erstellen
writeXmlLz(v_packages, v_langTwo);
while(iter.hasNext()) {
TranslationPackage aktPackage = (TranslationPackage)iter.next(); // aktuelles Paket
File aktPackagePath = getDirForPackage(aktPackage.getPackageName()); // hollt die Verzeichnisstruktur f�r das aktuelle Paket
String aktPath = aktPackagePath.toString();
aktPath = aktPath.substring(0, (aktPath.length()-8)); // aktueller Pfad
String aktFilename = "messages_" + v_langTwo + ".properties"; // aktueller messages File
v_outPutStream.setMethod(ZipOutputStream.DEFLATED); // Archivierungsmodus
try {
File file = new File(aktPath, aktFilename);
FileInputStream fileIn = new FileInputStream(file);
v_outPutStream.putNextEntry(new ZipEntry(aktPath));
// now write the content of the file to the ZipOutputStream
while((bytesIn = fileIn.read(readBuffer)) != -1) {
v_outPutStream.write(readBuffer, 0, bytesIn);
} // end of while
v_outPutStream.flush();
v_outPutStream.closeEntry();
// close the Stream
fileIn.close();
} catch (Exception e) {
throw new Exception(e.getMessage(), e);
} // end of try/catch
} // end of while
} // end of writeZipPackage
i have already looked up a few tutorials how to use the zip option in java, but it did not help. So please help me. Thank you in advance.
Greetings, Wolfgangtill now i have made it to add files that are in the
same directory, but if i add a folder structure is
not in the zip file.Wild guess: change the following:
File file = new File(aktPath, aktFilename);
FileInputStream fileIn = new FileInputStream(file);
v_outPutStream.putNextEntry(new ZipEntry(aktPath));to
File file = new File(aktPath, aktFilename);
FileInputStream fileIn = new FileInputStream(file);
v_outPutStream.putNextEntry(new ZipEntry(file.getAbsolutePath()));Probably won't change anything, but it's a bit hard a guess.
Maybe you are looking for
-
Flash Player 10 does not work on certain websites
Hi, Just installed Falsh Player 10 onto my imac G5 (mac os x tiger 10.4.9, power g5). It works fine for you tube and plays certain flash content but, when accessing channel 4OD, E4 and ITV player it does play the videos. Also when i try to adjust t
-
Can't open tabs from previous session (after Firefox regularly closed)?!
Regularly closed firefox 36.0.4. and shot down computer (Windows 7 Pro 64-bit). On next start, Firefox doesn't open tabs from previous session (altought it is configured to do this) !?!?!? I lost about 30 tabs!! Very, very frustrating!!! Think to fin
-
Hi everyone, I am trying to transfer the customers from ECC FI-AR to FSCM-Collections management, actually I'm creating the customer in FI and as BP in FSCM, the system create the customer in FI but no the BP in FSCM-COLL , this is the error message
-
Dear gurus im doing an enhancement in Report RFITEMGL T-Code FBL3N in form pos_table_fill changing p_stop. under that im placing my code. if wa_pos-xblnr eq 'HRPAY00001'. it_pos-u_pernr = wa_pos-SGTXT. wa_pos-u_pernr = wa_pos-SGTXT. end
-
I own a Nokia E71 device since 2 weeks now and i have been very satisfied with it till today. I went for a trip to some cool cities, when i suddenly found myself in need to consult the internet. I searched for and found an unsecured WLAN network. I c