PO with 2 options layout
HI Experts,
Currently we are printing only one PO using NEU in me9f.
But the user wants a different layout based to their reqiurment.
Is there are option i can define 2 PO where there user can choose according to the requirment.
Something like invoice in va03 the user can choose according to the requirment.
Thank you very much.
regards,
s.saravannan
Yes this can be handled through output type determine through condition records. This will done by the function consultant, pls contact your functional consultant
Regards
MD
Similar Messages
-
Tool bar dock problem with grid layout
I have a tool bar with grid layout. When i dock it to vertical location(west or east) the buttons inside tool bar keep one row. I want to know how do i do to make the buttons arraged vertically like the tool bar with default layout when dock it at west or east position.
I had started a custom layout manager for toolbars a few months ago that I found a little easier to use than the default BoxLayout. I just modified it to allow optionally matching the button sizes (width, height, or both), so you can get the same effect as GridLayout. Note that this one doesn't collapse the toolbar like the one in the other thread. Here's the source code as well as a simple test app to demonstrate how to use it. Hope it helps.
// TestApp.java
// Test application for ToolBarLayout
// package ***;
import java.awt.*;
import javax.swing.*;
public class TestApp extends JFrame
/////////////////////// Main Method ///////////////////////
public static void main(String[] args)
try { UIManager.setLookAndFeel(
UIManager.getSystemLookAndFeelClassName()); }
catch(Exception ex) { }
new TestApp();
public TestApp()
setTitle("ToolBarLayout Test");
setDefaultCloseOperation(EXIT_ON_CLOSE);
setSize(400, 300);
setLocationRelativeTo(null);
JToolBar tbar = new JToolBar();
ToolBarLayout layout = new ToolBarLayout(tbar);
// Comment these two lines out one at a time to see
// how they affect the toolbar's layout...
layout.setMatchesComponentDepths(true);
layout.setMatchesComponentLengths(true);
tbar.setLayout(layout);
tbar.add(new JButton("One"));
tbar.add(new JButton("Two"));
tbar.add(new JButton("Three"));
tbar.addSeparator();
tbar.add(new JButton("Musketeers"));
Container c = getContentPane();
c.setLayout(new BorderLayout());
c.add(tbar, BorderLayout.NORTH);
setVisible(true);
// ToolBarLayout.java
// A simple layout manager for JToolBars. Optionally resizes buttons to
// equal width or height based on the maximum preferred width or height
// of all components.
// package ***;
import java.awt.*;
import javax.swing.*;
public class ToolBarLayout implements LayoutManager, SwingConstants
private JToolBar oToolBar = null;
private boolean oMatchDepth = false;
private boolean oMatchLength = false;
private int oGap = 0;
public ToolBarLayout(JToolBar toolBar)
oToolBar = toolBar;
public ToolBarLayout(JToolBar toolBar, boolean matchDepths)
oToolBar = toolBar;
oMatchDepth = matchDepths;
public ToolBarLayout(JToolBar toolBar,
boolean matchDepths,
boolean matchLengths)
oToolBar = toolBar;
oMatchDepth = matchDepths;
oMatchLength = matchLengths;
// If true, all buttons in the row will be sized to
// the same height (assuming horizontal orientation)
public void setMatchesComponentDepths(boolean match)
oMatchDepth = match;
// If true, all buttons in the row will be sized to
// the same width (assuming horizontal orientation)
public void setMatchesComponentLengths(boolean match)
oMatchLength = match;
public void setSpacing(int spacing)
oGap = Math.max(0, spacing);
public int getSpacing()
return oGap;
////// LayoutManager implementation //////
public void addLayoutComponent(String name, Component comp) { }
public void removeLayoutComponent(Component comp) { }
public Dimension minimumLayoutSize(Container parent)
return preferredLayoutSize(parent);
public Dimension preferredLayoutSize(Container parent)
synchronized (parent.getTreeLock())
int orientation = getOrientation();
Component[] components = parent.getComponents();
int w = 0, h = 0;
int totalWidth = 0, totalHeight = 0;
int maxW = getMaxPrefWidth(components);
int maxH = getMaxPrefHeight(components);
Dimension ps = null;
if (orientation == HORIZONTAL)
for (int i=0; i < components.length; i++)
ps = components.getPreferredSize();
if (oMatchLength) w = maxW;
else w = ps.width;
if (oMatchDepth) h = maxH;
else h = ps.height;
if (components[i] instanceof JSeparator)
w = ps.width;
h = 0;
totalWidth += w;
if (i < components.length - 1)
totalWidth += oGap;
totalHeight = Math.max(totalHeight, h);
else
for (int i=0; i < components.length; i++)
ps = components[i].getPreferredSize();
if (oMatchDepth) w = maxW;
else w = ps.width;
if (oMatchLength) h = maxH;
else h = ps.height;
if (components[i] instanceof JSeparator)
w = 0;
h = ps.height;
totalHeight += h;
if (i < components.length - 1)
totalHeight += oGap;
totalWidth = Math.max(totalWidth, w);
Insets in = parent.getInsets();
totalWidth += in.left + in.right;
totalHeight += in.top + in.bottom;
return new Dimension(totalWidth, totalHeight);
public void layoutContainer(Container parent)
synchronized (parent.getTreeLock())
int orientation = getOrientation();
Component[] components = parent.getComponents();
Insets in = parent.getInsets();
int x = in.left, y = in.top;
int w = 0, h = 0, maxW = 0, maxH = 0;
Dimension ps = null;
if (orientation == HORIZONTAL)
maxW = getMaxPrefWidth(components);
maxH = Math.max( getMaxPrefHeight(components),
parent.getHeight() - in.top - in.bottom );
for (int i=0; i < components.length; i++)
ps = components[i].getPreferredSize();
if (oMatchLength) w = maxW;
else w = ps.width;
if (oMatchDepth) h = maxH;
else h = ps.height;
if (components[i] instanceof JSeparator)
w = ps.width;
h = maxH;
components[i].setBounds(
x, y + (maxH-h)/2, w, h);
x += w + oGap;
else
maxH = getMaxPrefHeight(components);
maxW = Math.max( getMaxPrefWidth(components),
parent.getWidth() - in.left - in.right );
for (int i=0; i < components.length; i++)
ps = components[i].getPreferredSize();
if (oMatchDepth) w = maxW;
else w = ps.width;
if (oMatchLength) h = maxH;
else h = ps.height;
if (components[i] instanceof JSeparator)
w = maxW;
h = ps.height;
components[i].setBounds(
x + (maxW-w)/2, y, w, h);
y += h + oGap;
//// private methods ////
private int getOrientation()
if (oToolBar != null) return oToolBar.getOrientation();
else return HORIZONTAL;
private int getMaxPrefWidth(Component[] components)
int maxWidth = 0;
int componentWidth = 0;
Dimension d = null;
for (int i=0; i < components.length; i++)
d = components[i].getPreferredSize();
componentWidth = d.width;
if (components[i] instanceof JSeparator)
componentWidth = Math.min(d.width, d.height);
maxWidth = Math.max(maxWidth, componentWidth);
return maxWidth;
private int getMaxPrefHeight(Component[] components)
int maxHeight = 0;
int componentHeight = 0;
Dimension d = null;
for (int i=0; i < components.length; i++)
d = components[i].getPreferredSize();
componentHeight = d.height;
if (components[i] instanceof JSeparator)
componentHeight = Math.min(d.width, d.height);
else maxHeight = Math.max(maxHeight, componentHeight);
return maxHeight; -
How to get ALV Output with selected Layout
I have a program which displays the output in ALV list format and i changed the layout and saved
In the selection-screen i have a field to select the layout after selecting the layout it output is not coming with that layout
can anyone tell me what is the problem
or give me a sample code
Thank youHi,
Check this code.
Hope it helps.
*& Report zSALES_ORDER
report z_sales_order.
type-pools: slis.
*DATA DECLARATION.
types: begin of i_vbak,
vbeln type vbeln_va,
augru type augru,
erdat type erdat,
end of i_vbak.
types: begin of i_vbap,
vbeln type vbeln_va,
augru type augru,
posnr type posnr_va,
matnr type matnr,
zmeng type dzmeng,
end of i_vbap.
types: begin of i_makt,
matnr type matnr,
maktx type maktx,
end of i_makt.
types: begin of i_lips,
posnr type posnr_vl,
matnr type matnr,
lfimg type lfimg,
end of i_lips.
types: begin of i_reason,
spras type spras,
augru type augru,
bezei type bezei40,
end of i_reason.
types: begin of i_vbpa,
vbeln type vbeln,
parvw type parvw,
kunnr type kunnr,
end of i_vbpa.
types: begin of i_kna1,
kunnr type kunnr,
name1 type name1_gp,
end of i_kna1.
types: begin of i_final,
vbeln type vbeln_va,
posnr type posnr_va,
matnr type matnr,
zmeng type dzmeng,
maktx type maktx,
lfimg type lfimg,
spras type spras,
augru type augru,
bezei type bezei40,
parvw type parvw,
kunnr type kunnr,
name1 type name1_gp,
end of i_final.
*INTERNAL TABLES
data: it_vbak type standard table of i_vbak.
data: it_vbap type standard table of i_vbap.
data: it_makt type standard table of i_makt.
data: it_lips type standard table of i_lips.
data: it_vbpa type standard table of i_vbpa.
data: it_kna1 type standard table of i_kna1.
data: it_final type standard table of i_final.
data: it_reason type standard table of i_reason.
data : v_flag.
*WORK AREA
data: wa_vbak type i_vbak.
data: wa_vbap type i_vbap.
data: wa_makt type i_makt.
data: wa_lips type i_lips.
data: wa_vbpa type i_vbpa.
data: wa_kna1 type i_kna1.
data: wa_final type i_final.
data: wa_reason type i_reason.
*DATA DECLARATION.
data: v_progname type sy-repid.
data: v_vbeln type vbak-vbeln.
data: v_gridtitle type lvc_title.
*PARAMETERS: D_VARI LIKE DISVARIANT-VARIANT.
data: i_variant like disvariant.
data: p_vari like disvariant-variant.
*DATA DECLARATION FOR CATALOGS LAYOUT SORT EVENTCATALOG TOPOFPAGE.
data: i_fieldcat type slis_t_fieldcat_alv.
data: i_layout type slis_layout_alv.
data: i_sortinfo type slis_t_sortinfo_alv.
data: i_listheader type slis_t_listheader.
data: i_eventcat type slis_t_event.
*INITIALIZATION - First point of execution of program
To initialize Any variables that are to be
used in the program, even before selection screen
appears.
initialization.
v_progname = sy-repid.
v_flag = space.
perform z_default_variant.
*SELECTION SCREEN
selection-screen begin of block blk1 with frame title text-002.
select-options: s_vbeln for v_vbeln.
selection-screen end of block blk1.
*Variable for ALV Variant
selection-screen begin of block b_var with frame title text-020.
parameters: d_vari like disvariant-variant.
selection-screen end of block b_var.
*AT SLECTION-SCREEN.
at selection-screen.
perform z_validations.
*AT SELECTION SCREEN.
at selection-screen on d_vari.
CHECK FOR THE EXISTENCE OF THE VARIANT SELECTED
perform zf_check_var_exist.
at selection-screen on value-request for d_vari.
PROVIDE THE F4-HELP.
perform zf_variant_f4.
*START OF SELECTION.
start-of-selection.
perform z_select.
perform check_validation_flag.
perform z_fieldcat using i_fieldcat.
perform z_layout.
perform z_sortinfo using i_sortinfo.
perform z_eventcat using i_eventcat.
perform z_gridtitle.
perform z_listheader using i_listheader.
perform z_display.
*& Form Z_VALIDATIONS
text
--> p1 text
<-- p2 text
form z_validations .
select vbeln into v_vbeln
up to 1 rows
from vbak
where vbeln in s_vbeln.
endselect.
if sy-subrc <> 0.
message i002(sy) with 'No Records'.
v_flag = 'X'.
endif.
endform. " Z_VALIDATIONS
*& Form Z_FIELDCAT
text
-->P_I_FIELDCAT text
form z_fieldcat using p_i_fieldcat type slis_t_fieldcat_alv.
data: i_fieldcat type slis_fieldcat_alv.
*VBAK-VELN
i_fieldcat-col_pos = '1'. " POSITION OF THE COLUMN.
i_fieldcat-fieldname = 'VBELN'. " FIELD FOR WHICH CATALOG ID FILLED.
i_fieldcat-tabname = 'IT_FINAL'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
i_fieldcat-key = 'X'. " SO THAT THIS FIELD IS NOT SCROLLABLE AND HIDDABLE.
i_fieldcat-just = 'C'. " FOR JUSTIFICATION.
i_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
i_fieldcat-seltext_l = 'SALES ORDER'. " LONG TEXT FOR HEADER.
i_fieldcat-outputlen = 15. " SET THE OUTPUT LENGTH.
i_fieldcat-ref_tabname = 'VBAK'. " FOR F1 & F4 HELP AS REFERNCED TO THE DDIC TABLE.
append i_fieldcat to p_i_fieldcat.
*VBAP-SPRAS
i_fieldcat-col_pos = '2'. " POSITION OF THE COLUMN.
i_fieldcat-fieldname = 'SPRAS'. " FIELD FOR WHICH CATALOG ID FILLED.
i_fieldcat-tabname = 'IT_FINAL'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
i_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
i_fieldcat-seltext_l = 'LANGUAGE'. " LONG TEXT FOR HEADER.
i_fieldcat-outputlen = 5. " SET THE OUTPUT LENGTH.
i_fieldcat-ref_tabname = 'TVAUT'. " FOR F1 & F4 HELP AS REFERNCED TO TABLE.
append i_fieldcat to p_i_fieldcat.
*VBAP-AUGRU
i_fieldcat-col_pos = '3'. " POSITION OF THE COLUMN.
i_fieldcat-fieldname = 'AUGRU'. " FIELD FOR WHICH CATALOG ID FILLED.
i_fieldcat-tabname = 'IT_FINAL'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
i_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
i_fieldcat-seltext_l = 'REASON'. " LONG TEXT FOR HEADER.
i_fieldcat-outputlen = 5. " SET THE OUTPUT LENGTH.
i_fieldcat-ref_tabname = 'VBAK'. " FOR F1 & F4 HELP AS REFERNCED TO TABLE.
append i_fieldcat to p_i_fieldcat.
*VBAP-bezei
i_fieldcat-col_pos = '4'. " POSITION OF THE COLUMN.
i_fieldcat-fieldname = 'BEZEI'. " FIELD FOR WHICH CATALOG ID FILLED.
i_fieldcat-tabname = 'IT_FINAL'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
i_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
i_fieldcat-seltext_l = 'DESCRIPTION'. " LONG TEXT FOR HEADER.
i_fieldcat-outputlen = 20. " SET THE OUTPUT LENGTH.
i_fieldcat-ref_tabname = 'TVAUT'. " FOR F1 & F4 HELP AS REFERNCED TO TABLE.
append i_fieldcat to p_i_fieldcat.
*VBAP-POSNR
i_fieldcat-col_pos = '5'. " POSITION OF THE COLUMN.
i_fieldcat-fieldname = 'POSNR'. " FIELD FOR WHICH CATALOG ID FILLED.
i_fieldcat-tabname = 'IT_FINAL'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
i_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
i_fieldcat-seltext_l = 'ITEM'. " LONG TEXT FOR HEADER.
i_fieldcat-outputlen = 8. " SET THE OUTPUT LENGTH.
i_fieldcat-ref_tabname = 'VBAP'. " FOR F1 & F4 HELP AS REFERNCED TO TABLE.
append i_fieldcat to p_i_fieldcat.
*VBAP-MATNR.
i_fieldcat-col_pos = '6'. " POSITION OF THE COLUMN.
i_fieldcat-fieldname = 'MATNR'. " FIELD FOR WHICH CATALOG ID FILLED.
i_fieldcat-tabname = 'IT_FINAL'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
i_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
i_fieldcat-seltext_l = 'MATERIAL'. " LONG TEXT FOR HEADER.
i_fieldcat-outputlen = 10. " SET THE OUTPUT LENGTH.
i_fieldcat-ref_tabname = 'VBAP'. " FOR F1 & F4 HELP AS REFERNCED TO TABLE.
append i_fieldcat to p_i_fieldcat.
*VBAP-ZMENG
i_fieldcat-col_pos = '7'. " POSITION OF THE COLUMN.
i_fieldcat-fieldname = 'ZMENG'. " FIELD FOR WHICH CATALOG ID FILLED.
i_fieldcat-tabname = 'IT_FINAL'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
i_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
i_fieldcat-seltext_l = 'QUANT'. " LONG TEXT FOR HEADER.
i_fieldcat-outputlen = 10. " SET THE OUTPUT LENGTH.
i_fieldcat-ref_tabname = 'VBAP'. " FOR F1 & F4 HELP AS REFERNCED TO TABLE.
append i_fieldcat to p_i_fieldcat.
*MAKT-MAKTX
i_fieldcat-col_pos = '8'. " POSITION OF THE COLUMN.
i_fieldcat-fieldname = 'MAKTX'. " FIELD FOR WHICH CATALOG ID FILLED.
i_fieldcat-tabname = 'IT_FINAL'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
i_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
i_fieldcat-seltext_l = 'DESCRIPTION'. " LONG TEXT FOR HEADER.
i_fieldcat-outputlen = 20. " SET THE OUTPUT LENGTH.
i_fieldcat-ref_tabname = 'MAKT'. " FOR F1 & F4 HELP AS REFERNCED TO TABLE.
append i_fieldcat to p_i_fieldcat.
*LIPS-VBELN
i_fieldcat-col_pos = '9'. " POSITION OF THE COLUMN.
i_fieldcat-fieldname = 'VBELN'. " FIELD FOR WHICH CATALOG ID FILLED.
i_fieldcat-tabname = 'IT_FINAL'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
i_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
i_fieldcat-seltext_l = 'DELIVERY'. " LONG TEXT FOR HEADER.
i_fieldcat-outputlen = 15. " SET THE OUTPUT LENGTH.
i_fieldcat-ref_tabname = 'LIPS'. " FOR F1 & F4 HELP AS REFERNCED TO TABLE.
append i_fieldcat to p_i_fieldcat.
*LIPS-LFIMG
i_fieldcat-col_pos = '10'. " POSITION OF THE COLUMN.
i_fieldcat-fieldname = 'LFIMG'. " FIELD FOR WHICH CATALOG ID FILLED.
i_fieldcat-tabname = 'IT_FINAL'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
i_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
i_fieldcat-do_sum = 'X'.
i_fieldcat-seltext_l = 'LFIMG'. " LONG TEXT FOR HEADER.
i_fieldcat-outputlen = 18. " SET THE OUTPUT LENGTH.
i_fieldcat-ref_tabname = 'LIPS'. " FOR F1 & F4 HELP AS REFERNCED TO TABLE.
append i_fieldcat to p_i_fieldcat.
*parvw
i_fieldcat-col_pos = '11'. " POSITION OF THE COLUMN.
i_fieldcat-fieldname = 'PARVW'. " FIELD FOR WHICH CATALOG ID FILLED.
i_fieldcat-tabname = 'IT_FINAL'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
i_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
i_fieldcat-seltext_l = 'PARTNER FUN'. " LONG TEXT FOR HEADER.
i_fieldcat-outputlen = 18. " SET THE OUTPUT LENGTH.
i_fieldcat-ref_tabname = 'VBPA'. " FOR F1 & F4 HELP AS REFERNCED TO TABLE.
append i_fieldcat to p_i_fieldcat.
*KUNNR
i_fieldcat-col_pos = '12'. " POSITION OF THE COLUMN.
i_fieldcat-fieldname = 'KUNNR'. " FIELD FOR WHICH CATALOG ID FILLED.
i_fieldcat-tabname = 'IT_FINAL'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
i_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
i_fieldcat-seltext_l = 'SHIP'. " LONG TEXT FOR HEADER.
i_fieldcat-outputlen = 18. " SET THE OUTPUT LENGTH.
i_fieldcat-ref_tabname = 'VBPA'. " FOR F1 & F4 HELP AS REFERNCED TO TABLE.
append i_fieldcat to p_i_fieldcat.
*NAME1
i_fieldcat-col_pos = '13'. " POSITION OF THE COLUMN.
i_fieldcat-fieldname = 'NAME1'. " FIELD FOR WHICH CATALOG ID FILLED.
i_fieldcat-tabname = 'IT_FINAL'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
i_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
i_fieldcat-seltext_l = 'NAME'. " LONG TEXT FOR HEADER.
i_fieldcat-outputlen = 18. " SET THE OUTPUT LENGTH.
i_fieldcat-ref_tabname = 'KNA1'. " FOR F1 & F4 HELP AS REFERNCED TO TABLE.
append i_fieldcat to p_i_fieldcat.
endform. " Z_FIELDCAT
*& Form Z_SELECT
text
--> p1 text
<-- p2 text
form z_select .
select vbeln
augru erdat into corresponding fields of table it_vbak
from vbak
where vbeln in s_vbeln.
loop at it_vbak into wa_vbak.
wa_vbak-erdat = '99991231'.
modify it_vbak from wa_vbak transporting erdat.
endloop.
select * from vbak into corresponding fields of table it_vbak
for all entries in it_vbak
where erdat = it_vbak-erdat.
if sy-subrc = 0.
select vbeln
posnr
matnr
zmeng into corresponding fields of table it_vbap
from vbap
for all entries in it_vbak
where vbeln = it_vbak-vbeln.
if sy-subrc = 0.
select spras
augru
bezei into corresponding fields of table it_reason
from tvaut
for all entries in it_vbak
where augru = it_vbak-augru.
if sy-subrc = 0.
select vbeln
parvw
kunnr into corresponding fields of table it_vbpa
from vbpa
for all entries in it_vbak
where vbeln = it_vbak-vbeln.
if sy-subrc = 0.
select kunnr
name1 into corresponding fields of table it_kna1
from kna1
for all entries in it_vbpa
where kunnr = it_vbpa-kunnr.
if sy-subrc = 0.
select posnr
matnr
lfimg into corresponding fields of table it_lips
from lips
for all entries in it_vbap
where posnr = it_vbap-posnr.
if sy-subrc = 0.
select matnr
maktx into corresponding fields of table it_makt
from makt
for all entries in it_vbap
where matnr = it_vbap-matnr.
endif.
endif.
endif.
endif.
endif.
else.
message i002(sy) with 'No Data found'.
leave list-processing.
endif.
if sy-subrc = 0.
loop at it_vbap into wa_vbap.
read table it_vbak into wa_vbak with key vbeln = wa_vbap-vbeln binary search.
if sy-subrc = 0.
*MOVE DATA INTO IT_FINAL.
move: wa_vbak-vbeln to wa_final-vbeln,
wa_vbak-augru to wa_final-augru,
wa_vbap-posnr to wa_final-posnr,
wa_vbap-matnr to wa_final-matnr,
wa_vbap-zmeng to wa_final-zmeng.
endif.
read table it_lips into wa_lips with key posnr = wa_final-posnr binary search.
if sy-subrc = 0.
move: wa_lips-lfimg to wa_final-lfimg.
endif.
read table it_reason into wa_reason with key augru = wa_final-augru binary search.
if sy-subrc = 0.
move: wa_reason-spras to wa_final-spras,
wa_reason-bezei to wa_final-bezei.
endif.
read table it_makt into wa_makt with key matnr = wa_final-matnr binary search.
if sy-subrc = 0.
move: wa_makt-maktx to wa_final-maktx.
endif.
read table it_vbpa into wa_vbpa with key vbeln = wa_final-vbeln binary search.
if sy-subrc = 0.
move: wa_vbpa-parvw to wa_final-parvw,
wa_vbpa-kunnr to wa_final-kunnr.
endif.
read table it_kna1 into wa_kna1 with key kunnr = wa_final-kunnr binary search.
if sy-subrc = 0.
move: wa_kna1-name1 to wa_final-name1.
endif.
append wa_final to it_final.
clear wa_final.
endloop.
endif.
endform. " Z_SELECT
*& Form Z_LAYOUT
text
--> p1 text
<-- p2 text
form z_layout .
i_layout-zebra = 'X'.
i_layout-totals_text = 'Total'(a00).
i_layout-subtotals_text = 'SubTotal'(a01).
i_layout-box_tabname = 'IT_FINAL'.
endform. " Z_LAYOUT
*& Form Z_SORTINFO
text
-->P_I_SORTINFO text
form z_sortinfo using p_i_sortinfo type slis_t_sortinfo_alv.
data: i_sortinfo type slis_sortinfo_alv.
clear i_sortinfo.
i_sortinfo-spos = '1'.
i_sortinfo-fieldname = 'VBELN'.
i_sortinfo-tabname = 'IT_FINAL'.
i_sortinfo-up = 'X'.
i_sortinfo-group = 'UL'. " I.E UNDERLINE AFTER EVERY GROUP
i_sortinfo-subtot = 'X'.
append i_sortinfo to p_i_sortinfo.
endform. " Z_SORTINFO
*& Form Z_EVENTCAT
text
-->P_I_EVENTCAT text
form z_eventcat using p_i_eventcat type slis_t_event.
data: i_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = p_i_eventcat
exceptions
list_type_wrong = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
clear i_event.
read table p_i_eventcat with key name = slis_ev_top_of_page into
i_event.
if sy-subrc = 0.
move 'TOP_OF_PAGE' to i_event-form.
append i_event to p_i_eventcat.
endif.
read table p_i_eventcat with key name = slis_ev_pf_status_set into i_event.
if sy-subrc = 0.
move 'SET_PF_STATUS' to i_event-form.
append i_event to p_i_eventcat.
endif.
clear i_event.
read table p_i_eventcat into i_event with key name = slis_ev_user_command .
if sy-subrc = 0.
move 'USER_COMMAND' to i_event-form.
append i_event to p_i_eventcat.
endif.
endform. " Z_EVENTCAT
*& Form Z_DISPLAY
text
--> p1 text
<-- p2 text
form z_display .
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = v_progname
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
i_grid_title = v_gridtitle
i_save = 'A'
is_layout = i_layout
it_fieldcat = i_fieldcat[]
it_sort = i_sortinfo
it_events = i_eventcat
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
tables
t_outtab = it_final
exceptions
program_error = 1
others = 2
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endform. " Z_DISPLAY
*& Form Z_GRIDTITLE
text
--> p1 text
<-- p2 text
form z_gridtitle .
v_gridtitle = 'ALV FOR SALES ORDER DISPLAY'.
endform. " Z_GRIDTITLE
*TOP OF PAGE.
form top_of_page.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = i_listheader.
endform. "TOP_OF_PAGE
*MENU SETTINGS.
form set_pf_status using rt_extab type slis_t_extab.
set pf-status 'ALV_MENU'.
endform. "SET_PF_STATUS
*USER-COMMAND
form user_command using p_ucomm type sy-ucomm
rs_selfield type slis_selfield.
data : vbeln type vbeln_va.
case p_ucomm.
when 'BACK'.
leave program.
when '&IC1'.
clear : vbeln.
vbeln = rs_selfield-value.
set parameter id: 'AUN' field vbeln.
call transaction 'VA03' and skip first screen.
endcase.
endform. " USER_COMMAND
*& Form Z_LISTHEADER
text
-->P_I_LISTHEADER text
form z_listheader using p_i_listheader type slis_t_listheader.
data: l_listheader type slis_listheader.
refresh p_i_listheader.
clear l_listheader.
l_listheader-typ = 'H'.
l_listheader-info = text-001.
append l_listheader to p_i_listheader.
clear l_listheader.
l_listheader-typ = 'H'.
l_listheader-info = text-002.
append l_listheader to p_i_listheader.
endform. " Z_LISTHEADER
*& Form check_validation_flag
text
--> p1 text
<-- p2 text
form check_validation_flag .
if not v_flag is initial.
leave list-processing.
endif.
endform. " check_validation_flag
*& Form Z_DEFAULT_VARIANT
text
--> p1 text
<-- p2 text
form z_default_variant .
i_variant-report = v_progname.
call function 'REUSE_ALV_VARIANT_DEFAULT_GET'
exporting
i_save = 'A'
changing
cs_variant = i_variant
exceptions
wrong_input = 1
not_found = 2
program_error = 3
others = 4.
if sy-subrc = 0.
p_vari = i_variant-variant.
D_VARI = P_VARI.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. " Z_DEFAULT_VARIANT
*& Form ZF_CHECK_VAR_EXIST
text
--> p1 text
<-- p2 text
form zf_check_var_exist .
data: l_variant like disvariant.
if not p_vari is initial.
clear l_variant.
l_variant-report = v_progname.
l_variant-variant = p_vari.
call function 'REUSE_ALV_VARIANT_EXISTENCE'
exporting
i_save = 'U'
changing
cs_variant = l_variant
exceptions
wrong_input = 1
not_found = 2
program_error = 3
others = 4.
if sy-subrc = 0.
clear i_variant.
move: l_variant-variant to i_variant-variant,
l_variant-report to i_variant-report.
else.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endif.
endform. " ZF_CHECK_VAR_EXIST
*& Form ZF_VARIANT_F4
text
--> p1 text
<-- p2 text
form zf_variant_f4 .
data: x_variant like disvariant.
call function 'REUSE_ALV_VARIANT_F4'
exporting
is_variant = i_variant
I_TABNAME_HEADER =
I_TABNAME_ITEM =
IT_DEFAULT_FIELDCAT =
i_save = 'U'
i_display_via_grid = 'X'
importing
E_EXIT =
es_variant = x_variant
exceptions
not_found = 1
program_error = 2
others = 3
if sy-subrc = 0.
p_vari = x_variant-variant.
d_vari = p_vari.
clear i_variant.
move: x_variant-variant to i_variant-variant,
x_variant-report to i_variant-report.
else.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endform. " ZF_VARIANT_F4
Regards,
Pritha. -
"Shared with portrait layout"
Help needed!
Hi, I'm making a book in landscape mode, but I want to see some pictures in portrait mode.
I try in de layout section: Section pages, to get it done. But every time the "Shared with portrait layout" box is greyed out, so it doesn't work.
What can I do?
Best regards
ArieIf you only intend a photo book in LS, its better to disable portrait mode. Open the Inspector and select the "book" icon first on the left. Near teh bottom if the box you will see the tick box "Disable portrait orientation".
If you want to add photos in Portrait, simply insert a shape - then drag and drop your prepared image and juggle with the mask to adjust the size of the image and content you want.
REMEMBER: ......if you make an image in full size which is almost full sceen - it will automatically disable "full screen" option for that image.
If you want to have full screen for an image as an option, you have to make your photo image smaller by perhaps 25% less than full screen.
You can trial this to optomise your reduced size -for viewing - NOT reduce the original photo image dimentions - by previewing in your iPad until you obtain teh balance you want on screen for "normal" iPad viewing and then open full page view.
For new comers to iBooks Author and infavt ALL iBA users - I suggest you check out the new 1 hour long video iBA keynote.
For new comers to iBooks Author and infact ALL iBA users - I suggest you check out the new 1 hour long video iBA keynote.
Open your iTunes Coonect page - select "Deliver your Content" and its the page along with the other downloads.
There is a lot of helpful info on images , widgets..the lot! -
I installed elements 12, it won't open, a screen pops up with options for e-12 and 4 other languages. When I click Elements 12 a screen pops up with a red install icon, I click it and it askes for the serial number. It won't let me type in letters only numbers. I already did the serial number once. How do I get this to work? I don't want to be a programer!
attach a screenshot of what pops up after clicking pse 12, http://forums.adobe.com/thread/963429
-
How do I create a automatic second page with different layout settings?
Hi there,
I want to create a business letter template with a different second page. I already managed to create a different layout on page nr two, but
whenever I write a letter with this template and I reach the end of page one, pages creates a thrid page in between my page nr one and nr two with a mixture of the layout of template page nr two and the footer of page nr one.
I want pages to take my template page nr two (with different header and footer) as second page instead of creating one itself.
If I don't need a second page - because my letter is to short - I should not have to delete a second page. It simply should not be there...
Thanks for Help!
G4's and 12" PB Mac OS X (10.4.6)Hello Stefan,
you achieve this with a little trick. Create your letter and set the layout for the first and the second page by inserting a placeholder text. This placeholder text should fill the first page and the top of the second page, so both pages are build in one section. When the entire letter is layouted well, select the placeholder text and than save the letter as a template.
Now every time you open this template, you only have to insert the main text (replace the placeholder text with real content), and the second page disappears until the main text overflows the borders of the first page. Than you will get the second page again with the layout you have created for it.
I hope this will work for you like it works fine for me. -
The "always open with-" option doesn't work!
Is there a way to get the "Always open with" option when doing a (control) (option) click on a file to actually ALWAYS open with the application I choose? Could this feature be broken or perhaps mislabeled?
Here's what happens; I'll set a file to "always open with" one application. I work on that file and save it. The next time I try to open that file it opens with the snow leopard default application instead of using the application I directed it to "Always open with".
I don't want to open every file type with this application so I'm not setting "apply to all" in the info window/ inspector, I simply want this one file to always open with the application I've selected.
I'm hoping some of you super mac users will know a trick to make this work.I want to open a few select files with a non-default application (now that the creation code is not used.)...If I work on the file and make/save any changes, it reverts to the default app.
Aha! Okay, I don't think any of us were getting that in the initial posts. You are correct. Snow Leopard no longer uses Type and Creator codes by default, but they are still there. Various things are keeping you from doing what you want.
1) Newer programs that do not use Type and Creator codes at all still need a way to tell the OS what files belong to them. Since at least back as far as Leopard (likely earlier), the system now uses Uniform Type Identifiers. As far as keeping track of what files belong to what applications, they serve the same purpose as Type and Creator codes. So when you save changes, it will indeed revert back to the default app since the file once again gets saved with that program's UTI data.
2) Some programs use both UTI and Type and Creator codes. Usually older apps that have come from PPC code. I would guess that would be either because the developer doesn't want to waste time removing the code that adds the Type and Creator codes to the files, or more likely, to make sure files passed to other users still on older Macs that don't use UTI won't have trouble opening them.
3) I use some much older apps which have still not been rewritten at all for Intel Macs and are still all PPC code. They still write Type and Creator codes. -
Hierarchy on HANA Calculation View with Optional Input Parameters Fails
Hi,
Has anyone succeeded in building a hierarchy on top of a calculation view with optional input parameters, where an input parameter is not filled?
The original requirement came from the wish to create a parent child hierarchy on a calculation view that was copied into the customer space from a HANA Live Financial Statement query view, but I have found the following when creating a simple level hierarchy on a calculation view that consumes one table. The Calculation View has one Input Parameter where the 'mandatory' box is unchecked.
Calculation view reads ECC table FAGLFLEXT
Simple level based hierarchy on fields PRCTR, RACCT and SEGMENT
Input parameter is used as a filter for PRCTR with logic ("EMPTY" = '$$P_PROFITCTR$$' or "PRCTR" = '$$P_PROFITCTR$$')
When I run the view I see the following behaviour in HANA Studio and Analysis for Excel
Before building the hierarchy I could run the view with or without the Input Parameter
After building the hierarchy I can run the view with the Input Parameter filled, but it fails when the Input Parameter is not filled.
Error message is "error: search table error: [2426] missing placeholder; missing value for mandatory parameter P_PROFITCTR"
P_PROFITCTR is not a mandatory parameter, but the selection for the hierarchy view thinks it should be. I don't find any notes around this issue, so I don't think it's version related, however the version I have used for this test is 1.00.70.
It's a shame we can't currently build the hierarchy as the parent child relationship is provided in HANA Live view NewGLFinancialStatementQuery.
Thanks,
KenHi Ken,
We have been facing similar issue. We have even tried to set default value and as optional parameter. View still fails to create hierarchy (we are not using HANA live). As mentioned on page 97 of HANA modelling guide input parameter is mandatory from engine point of view. Hierarchy is generated as column view during the initial activation of calculation view and therefore expect a value by caller.
This seems to be a product error. Some one from HANA development team should explain this issue in detail. I would expect someone like Thomas Jung reply to us.
At the moment, we cant use input parameter for date prompt which gives us calendar popup feature for date selection. Hierarchies just don't work with input parameter. We are missing something.
Regards
Angad -
VMWARE Server2012RT Installation failed with option: I will install the Operating System later
Hello, first sorry for my englich but I hope it wille ok for this Issue.
I have instelled the Win2012RT Server in VMware but the Installtion failed with this error:
Ok i chose the option: "I will install the Operating System later.",
and also tried
this:
http://www.techieshelp.com/server-2012-windows-cannot-read-the-setting-from-the-unattend-answer-file/
However, I always get
this displayed:
Last Log entry is this one:
2014-05-07T09:42:03.962+02:00| vmplayer| I120: VMMgr: Finished opening VM at /vm/#cf2324dcf779001d/ from G:\VMs\Server2012RTVmware.vmx
2014-05-07T09:42:03.962+02:00| vmplayer| I120: cui::MKSScreenWindowCoordinator::HandleGuestTopologyChange: main UI rect: 687x619 @ 948,249
2014-05-07T09:42:03.962+02:00| vmplayer| I120: cui::MKSScreenWindowCoordinator::HandleGuestTopologyChange: Found 0 present screens
2014-05-07T09:42:03.962+02:00| vmplayer| I120: cui::MKSScreenWindowCoordinator::HandleGuestTopologyChange: Windows for extra guest monitors will not be shown
2014-05-07T09:42:03.962+02:00| vmplayer| I120: cui::MKSScreenWindowCoordinator::HandleGuestTopologyChange: setting main view to all displays
2014-05-07T09:42:03.978+02:00| vmplayer| I120: SnapshotTree: Emitting refresh (G:\VMs\Server2012RTVmware.vmx)
2014-05-07T09:42:04.009+02:00| vmplayer| I120: VMHSVMCbPower: G:\VMs\Server2012RTVmware.vmx, Setting state of VM to powerOn with option soft
2014-05-07T09:42:04.024+02:00| vmplayer| I120: Stats VMX "G:\Programme2tePlatte\vmware-vmx-stats.exe" not found. Using standard VMX "G:\Programme2tePlatte\x64\vmware-vmx.exe"
2014-05-07T09:42:04.024+02:00| vmplayer| I120: Starting vmx as G:\Programme2tePlatte\x64\vmware-vmx.exe
2014-05-07T09:42:04.024+02:00| vmplayer| I120: Starting vmx as G:\Programme2tePlatte\x64\vmware-vmx.exe
2014-05-07T09:42:04.024+02:00| vmplayer| I120: VigorClient_StartAndConnect Failed: Message
2014-05-07T09:42:04.024+02:00| vmplayer| I120: G:\VMs\Server2012RTVmware.vmx: Pending power op found, completing.
2014-05-07T09:42:04.024+02:00| vmplayer| I120: G:\VMs\Server2012RTVmware.vmx: Clearing execReqPath
2014-05-07T09:42:04.024+02:00| vmplayer| I120: G:\VMs\Server2012RTVmware.vmx: Reloading config state.
2014-05-07T09:42:04.024+02:00| vmplayer| I120: VMHS: Transitioned vmx/execState/val to poweredOff
2014-05-07T09:42:04.040+02:00| vmplayer| I120: G:\VMs\Server2012RTVmware.vmx: VMHSStartVmxVigorCb: vmPath=/vm/#cf2324dcf779001d/ status=error
2014-05-07T09:42:04.040+02:00| vmplayer| I120: G:\VMs\Server2012RTVmware.vmx: Reloading config state.
2014-05-07T09:42:04.040+02:00| vmplayer| I120: VMHS: Transitioned vmx/execState/val to poweredOff
2014-05-07T09:42:04.040+02:00| vmplayer| I120: Setting power state poweredOff
2014-05-07T09:42:04.056+02:00| vmplayer| I120: Internal VMDB error: VMDB failure (-1)
2014-05-07T09:42:04.056+02:00| vmplayer| I120: VMMgr::CloseVM: closing VM at /vm/#cf2324dcf779001d/
2014-05-07T09:42:04.056+02:00| vmplayer| I120: DlgUI: Error while powering on: Internal error.
2014-05-07T09:42:04.087+02:00| vmplayer| I120: VMMgr::OnVMDestroyed: cleaning up after destroyed VM at /vm/#cf2324dcf779001d/
2014-05-07T09:42:04.087+02:00| vmplayer| I120: cui::MKS::SetAttached: detach
2014-05-07T09:42:04.087+02:00| vmplayer| I120: cui::MKS::OnSetAttachedCompleted
2014-05-07T09:42:04.118+02:00| vmplayer| I120: FILE: FileDeletionRetry: Non-retriable error encountered (C:\Users\Michael\AppData\Roaming\VMware\preferences.ini~): Unknown error 2 (0x2) (2)
2014-05-07T09:42:07.488+02:00| vmplayer| I120: PlayerFrame::UpdateActivePlayer: mActive=1
2014-05-07T09:42:09.874+02:00| vmplayer| I120: PlayerFrame::UpdateActivePlayer: mActive=0
2014-05-07T09:44:13.286+02:00| vmplayer| I120: PlayerFrame::UpdateActivePlayer: mActive=1
2014-05-07T09:44:13.473+02:00| vmplayer| I120: Cmd /host2/#_client/util/file/cmd/##135/op/stat/ failed: Invalid path
2014-05-07T09:44:17.061+02:00| vmplayer| I120: PlayerFrame::UpdateActivePlayer: mActive=0
Does anyone have
an idea maybe??
Vmware Version is: 6.0.2 build-1744117
Host: Windows 7 Enterprise, 64-bit 6.1.7601, Service Pack 1
WIN2012RT Iso is: 9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_DE-DE-IR3_SSS_X64FREE_DE-DE_DV9.ISO DOWNLOAD: http://technet.microsoft.com/de-de/evalcenter/dn205286.aspxOk. I could finde out the Problem.
I uninstalled VMware witht RevoUninstaller and deleted all Vmware sysfolders and all regKeys.
Important note:
The first Installtion was on the 2nd Hard disk on my PC. These Harddisk was Connected via USB3 Port. VMware was successfully installed, and via the standart installation procedure the ISO files could be installed in Vmware, but the problem persist with
WIN2012RT server.
After a new installation of VMware into the Local C: Drive. The Win2012RT.Iso could be installed. With this procedure
without Issues: http://www.techieshelp.com/server-2012-windows-cannot-read-the-setting-from-the-unattend-answer-file/
ISO Download: http://technet.microsoft.com/de-de/evalcenter/dn205286.aspx -
In IMovie11, is it possible to add/create a menu at the beginning of the movie with options like PLAY MOVIE, SCENES, TRAILER, etc..
*I found a solution. HP owes me $20,000 in consulting fees.*
To print to a LaserJet 3600 or 2600 from a newer Mac using 10.6, you must do the following:
Step 1: Install Foomatic HPIJS drivers
Step 2: Get an AirPort Express or equivalent print server
Step 3: Connect the printer via USB to the print server, and connect
Step 4: Go to Print & Fax, then click the + button to add a printer
Step 5: Select HP Jetdirect - Socket for the protocol
Step 6: Enter the IP address of the printer server, followed by a colon and the port number (9100 or 9101)*, i.e. 1.2.3.4:9100
Step 7: Name the printer, then click on the Print using: drop down menu
Step 8: Select the Select Other Printer..., and choose the appropriate HPIJS driver.
* To determine the correct port, open Network Utility in the Utilities folder. Click on Port Scan. Type the IP address of your print server, then check the Only test ports between... and enter 9100 and 9101. It will report back the open TCP port. -
I tryed to sort my pictures with buying Apps and following suggestion from apple, but without any success. In my opinion, the real solution is for Apple to offer us a choice of the photo sort order in ITunes. My preference would be filename, perhaps with options to choose the Date Taken attribute, file timestamp or date modified filestamp.
Not a problem when using iPhoto on a Mac, which the transfer of photos is primarily based on - not manually managing photo storage as seems to be common with Windoze.
The same should be available with a supported photo management app on a PC.
http://support.apple.com/kb/HT4221 -
Normally when I click on a pdf I would get an option to "Open With" or Save. I usually just opened pdfs first. I accidentally clicked on the Save option in this dialog box and now when I click on any pdf it automatically asks me where I want to save it. I want to get the "open With" option back, because I don't necessarily want to save a copy of every pdf.
Mountain Lion was released in 2012, so I suppose there might be advice in old threads or on the Apple forums if you don't get a response here right away.
-
Report with custom layout - formatting conditions
Hi,
There's a report with custom layout. What I need is to format some cells depending on the data they contain(like different background color). There's a tab named "Formatting Conditions" which should be meant for doing this and it works perfectly when report has tabular layout. But nothing happens in case of custom layout. Should this be done then in the "Report Layout Editor" and with Javascript? Portal version is 3.0.9.8.0.
Thanks in advance,
MadisHi,
Some condtions like background color do not work in custom mode reports. This is because in case of custom reports the table html is specified by the user and the report renderer has no control over it.
Hope this helps.
Sunil. -
Dear Friends,
I am from Jesus Osorio from Tektronix Mexico. I have seen this error messages during the last instalations and I am wonder how could I solve it?
tek_tkdpo4k initialize with options vi driver (hex 0xbfff0011) primary error (hex 0xbfff0011) insuff...
I am using DPO4000 series, laptop with SE for Tektronix Edition and a USB cable. What should I do to solve this problem?
Regards,
Jesus Osorio
Jesus V. Osorio Lopez
AEDear Jesús,
You should check if you have on your PC or Laptop installed VISA. I recommend you this link to download it:
http://digital.ni.com/softlib.nsf/websearch/b1a7837fffd2826e8625729100689d3c
To have a better oportunity in having your issue solved, please contact us in Mexico at this toll free 01 800 010 0793. As well as if you post your following messages in the Spanish Forum, we will be able to help you faster.
Thanks for using National Instruments Forums.
NorSa
NI Applications Engineer Latin America
NorSa
NI Applications Engineer Latin America
Para Soporte entra aquí -
Hi,
I would like to export the active document to PDF with options [Standard options] using vbscript.
Is there any sample or references for this?
Thanks,
ShaileshA quick copy to help you getting started.
myInDesign.ActiveDocument.Export "Adobe PDF", TargetPDFfilepath, False, IDPDFPresetName
The command can be found in VB reference guide (and scripting guide I believe) -
How to create PDF from text file with specific layout?
I wanted to create the pdf from text file in specific layout - Landscape orientation and JIS B3 Page size while at Adobe Acrobat Pro.
In past, I could do a right click on a text file (desktop area) and select print to print out the document into .pdf BUT only if I set the Adobe PDF to Landscape and JIS B3 Page size BEFORE. And I could only do 15 text documents at once.
I wanted to see if I could do the create the pdf from text file with specific layout in Adobe Acrobat without having to go to Control Panel to preset the Adobe PDF to specific layout at every time. I would have to set Adobe PDF back to normal layout after I'm done with these pdf print outs. I do lots of pdfs in normal layout. Sometimes I would forget to do that.
So, How do I do that?No such luck. It would output the contents in letter size even in JIS B3 Page layout at MS word.
Is there a script or action where I could set the orientation and page size before creating PDF on these text files?
Maybe you are looking for
-
Photoshop CS6 issue with shortcuts and my keyboard after upgrade from CS5
I recently upgraded from CS5 Extended to CS6 Extended on my Mac (Mavericks), but installed it in English instead of German this time. I transferred most of my presets just fine, but none of the keyboard shortcuts were working. All I got was an unequa
-
I am trying to create an image map for the map found on my homepage - http://www.smartcharteribiza.com/ I have followed a couple of tutorials and everything seems to be working in photoshop, but when I upload the image to wordpress, the map does not
-
In Lion I could annotate photos using Options in the screen saver preferences. In Mountain Lion how do you do this, if it can be done. I do not see an Options menu. I would like to show the name and date of the photo.
-
CP5 audio playing on wrong slide
I have an image on the first slide with no audio. The rest of the project consists of imported swf files with audio in the swf (one per slide). For some reason the audio from the swf on slide 8 starts playing when slide 1 comes up. I deleted slide 8
-
New Mac Pro 2012... Anyone knows when it's shipping ?
Still waiting...