Sap Script - How to show two logos consecutive in a row.
Hi All,
If in a window I insert two lines:
/: INCLUDE ZHEX-MACRO-ZLOGO001 OBJECT TEXT ID ST
/: INCLUDE ZHEX-MACRO-ZLOGO002 OBJECT TEXT ID ST
the Sap Script shows two logos not consecutive in a row.
I'd like to show the two logos in the same row and if it is possible, separated by blanks.
Any idea?
Thanks in advance for your kind support.
Regards,
Giovanni
This is because of your page size limitation. IF you will create two windows then it will work.Aline these windows properly in layout of page.
Similar Messages
-
Sap script '' how to create table frame in sap script"""
i have some problem in sap script'' how to create table frame in sap script"""
Hi,
you can use BOX command..
Syntax
/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
Effect: draws a box of the specified size at the specified position.
Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT and FRAME both a measurement and a unit of measurement must be specified. The INTENSITY parameter should be specified as a percentage between 0 and 100.
1. XPOS, YPOS: Upper left corner of the box, relative to the values of the POSITION command.
Default: Values specified in the POSITION command.
The following calculation is performed internally to determine the absolute output position of a box on the page:
X(abs) = XORIGIN + XPOS
Y(abs) = YORIGIN + YPOS
2. WIDTH: Width of the box. Default: WIDTH value of the SIZE command.
3. HEIGHT: Height of the box. Default: HEIGHT value of the SIZE command.
4. FRAME: Thickness of frame.
Default: 0 (no frame).
5. INTENSITY: Grayscale of box contents as % .
Default: 100 (full black)
Measurements: Decimal numbers must be specified as literal values (like ABAP numeric constants) by being enclosed in inverted commas. The period should be used as the decimal point character. See also the examples listed below.
Units of measurement: The following units of measurement may be used:
TW (twip)
PT (point)
IN (inch)
MM (millimeter)
CM (centimeter)
LN (line)
CH (character).
The following conversion factors apply:
1 TW = 1/20 PT
1 PT = 1/72 IN
1 IN = 2.54 CM
1 CM = 10 MM
1 CH = height of a character relative to the CPI specification in the layout set header
1 LN = height of a line relative to the LPI specification in the layout set header
/: BOX FRAME 10 TW
Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
/: BOX INTENSITY 10
Fills the window background with shadowing having a gray scale of 10 %.
/: BOX HEIGHT 0 TW FRAME 10 TW
Draws a horizontal line across the complete top edge of the window.
/: BOX WIDTH 0 TW FRAME 10 TW
Draws a vertical line along the complete height of the left hand edge of the window.
/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
/: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
/: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
/: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
check the fallowing link also
http://help.sap.com/saphelp_40b/helpdata/en/d1/803293454211d189710000e8322d00/content.htm
Mark the points if u find it useful...
Regards,
Omkar. -
In SAP Script how to hard code my Company address in footer window
Hi All ,
In SAP Script how to hard code my Company address in footer window .
Ex : in YB_F140_ACC_STAT this script i want to keep my company address, i want to hard coad , i dont want to use any field from table.
Please give me step by step.
Thanks
SridharHi,
You can make use of standard text...
create a standard text in SO10 with your company address
and in the footer window of your script.. use include text and provide the name of the standard text you created in SO10.
In the text editor... goto insert > text> standard
You get popup give the name of the text name id and language
regards
padma -
In sap scripts how to display the driver program
Hi,
I Want to know the sap scripts How to display the output to driver programHi,
Go to NACE Transaction.
Select application for ex: if sales V1.
Click on output types.
Select the output type for ex : BA00
Double click on Processing routines.
There you can find the Driver Program name and Script/smart form name.
Reward if useful.
Thanks,
Raju -
In SAP Scripts How to write the fields 90 Degrees to regular format
Hi ,
I am working with SAP Scripts . Sometimes you may want to print text vertically.
I have got a requiremnt in which there we have to write some data which is to be written 90 degres to regular output.
please let me know if there is any printer setting for that .
Regards.
Rohit.Dear friend,
For printing the text verticaly you need to made a
print controle at printer level.
select a command and in that you have to go in tab general
attribute.
and in front of :Include Printer Control: give the z print controle.
in my company basis people had made one print controle
ZR090.
YOU have to use this command two times between
the text .
first command will move the printer at 90 degree and then
write the text and second will move back to horizental.
I dont know how this ZR090 can be made.
rest wht i have written is very true and currently working.
hope this will solve your problem.
rewards are expected.
Thanks and Regards
vivek kumar srivastava -
How to show two items using $f_Show_On_Value_Item_Row
Hi,
I have a select list with values with Yes, No and two items(1 check box, 1 text field) below it.
I want to show two items if i select 'Yes' in select list.
I am able to show/hide one item using onchange="$f_Show_On_Value_Item_Row(this,'P1_A_EMAIL_PERS_REQ','Yes');"
How can i pass two items to this function.
Thanks for ur help in advance
Regards,
RamRam,
Rather than putting the call to $f_Show... inline with the onchange handler, create a separate function and call that function does the work and call that function instead. See this thread for some more details:
Problem when calling more than 1 Javascript function
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen -
How to show two amount (based on value type and entry code) in same column
Hi, I have to show two amount in the same column how can i do that...
For example there is
1) premium amount which depends upon the entry code lets say entry code 1000 = Premium amount .
2) Now there is another premium amount but this amount is stored on basis of value type ...let us say for value type 'prem' = premium amount .
these amount are in different field can i shown it in same column in BEx query.
If you can you please help .use the selection criteria to restrict the field types in the query designer- use other variables to check the value
if it doesnt reconcile- you can alternatively use a multi provider for the same thing- that way you will get the same amount in 1 column and you could restrict using the infoprovider column -
How to show two waveforms on XY-graph?
Hello,
i have two array with x and Y-values that are bundled and then displayed in XY Graph.
How can i show two XY-waveforms on the graph at the same time?
Thanks
Solved!
Go to Solution.
Attachments:
Wave.jpg 48 KBHi one,
open the context help and move the mouse pointer of the XY graph. Then read the help!
Btw. you don't create waveforms, you create XY plots…
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
How to show two or more PDF in one PDF-Reader / Concatenate PDF-Files
Hi,
I want to show two or more PDF files in one PDF reader window or to concatenate two or mor PDF files to one file.
We use WD4A and ADS.
Have someone an idea to solve this without an external program?
Thx in advance
JürgenWe have done this successfully a few times using WDA - it wasn't easy - it took us 2 full weeks to figure it out, so i need to get full points for this one!
It's going to much easier to do this if you start a brand new WDA. If not, you'll have to re-do all your Context Node navigations within your methods.
The first thing you need to do is to define your Context properly:
You need a top level Node defined as 1:1 cardinality (as with all PDF development)
Next, you need another Container Node 1:n cardinality (this holds the collection of content nodes)
Finally, you have your PDF Content Node 1:n cardinality - This holds each instance of your PDF form
In our scenario, we are passed in a list of Project Numbers. We need to generate a PDF sheet for each project in the same PDF session.
pseudo code - i'm leaving out some of the unnessary details
Loop through the project number table.
ADD 1 TO v_cnt.
* navigate from <TOP> to <PDF_CONTAINER> via lead selection
lo_nd_pdf_container = lo_nd_top->get_child_node( name = wd_this->wdctx_pdf_container ).
* This is the Important Part - we check to see if there is an element where index = v_cnt
* If not, we create one where we can store the new set of data
* get element via lead selection
lo_el_pdf_container = lo_nd_pdf_container->get_element( index = v_cnt ).
IF lo_el_pdf_container IS INITIAL.
lo_el_pdf_container = lo_nd_pdf_container->create_element( ).
lo_nd_pdf_container->bind_element( new_item = lo_el_pdf_container
set_initial_elements = ' ' ).
ENDIF.
lo_nd_ideasheet_data = lo_el_pdf_container->get_child_node( 'IDEASHEET_DATA' ).
lo_el_ideasheet_data = lo_nd_ideasheet_data->get_element( index = 1 ).
* fill all the data then bind the structure
Select * from XXX into lt_XXX
where project_number = lt_project-project_number.
* Move Data to appropriate fields/tables
* Bind the info back to the element
lo_el_ideasheet_data->set_static_attributes( static_attributes =
ls_ideasheet_data ).
Endloop. -
How to relate two columns in a same row
I want to relate two columns in a same row, like if A2 is Jack then B2 to be A, if A2 is Anand then B2 to be B, If A2 is Arun then B2 to be C and so on. How to do it?
Anand,
Create a table that lists the relationships:
Name
Associated Letter
Jack
A
Anand
B
Arun
C
Then, use a Lookup function to find the name in the lookup table and return the proper letter to your main table.
Jerry -
SAP Script - How to write data in a table format.
Hi All,
In my requirement, I need to show item data in a table format ( In a box, with horizental & veritcal lines.
can somebody pl give me a small code to do this.
Regards,
HardikHi
SCRIPT BOXES
POSITION WINDOW
SIZE WIDTH '160' MM HEIGHT '140' MM
BOX FRAME 10 TW
Box
BOX HEIGHT '11' MM WIDTH '160' MM FRAME 10 TW INTENSITY 35
linessssssss
BOX XPOS '20' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
BOX XPOS '45' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
BOX XPOS '80' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
BOX XPOS '120' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
Boxes, Lines, Shading: BOX, POSITION, SIZE
Use the BOX, POSITION, and SIZE commands for drawing boxes, lines, and shading to print particular windows within a form or passages of text within a window in a frame or with shading.
The SAP printer drivers that are based on page-oriented printers (the HP LaserJet driver HPL2, the Postscript driver POST, the Kyocera Prescribe driver PRES) employ these commands when printing. Line printers and page-oriented printers not supported in the standard ignore these commands. You can view the resulting printer output in the SAPscript print preview.
Syntax:
/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
/: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
/: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
BOX Command
Syntax
/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
Effect: draws a box of the specified size at the specified position.
Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT, and FRAME, you must specify both a measurement and a unit of measurement. Specify the INTENSITY parameter as a percentage between 0 and 100.
XPOS, YPOS
Upper left corner of the box, relative to the values of the POSITION command.
Default: Values specified in the POSITION command.
The following calculation is performed internally to determine the absolute output position of a box on the page:
X(abs) = XORIGIN + XPOS
Y(abs) = YORIGIN + YPOS
WIDTH
Width of the box. Default: WIDTH value of the SIZE command.
HEIGHT
Height of the box. Default: HEIGHT value of the SIZE command.
FRAME
Thickness of frame.
Default: 0 (no frame).
INTENSITY
Grayscale of box contents as %.
Default: 100 (full black)
Measurements: You must specify decimal numbers as literal values (like ABAP numeric constants) by enclosing them in inverted commas. Use the period as the decimal point character. See also the examples listed below.
Units of measurement: The following units of measurement may be used:
TW (twip)
PT (point)
IN (inch)
MM (millimeter)
CM (centimeter)
LN (line)
CH (character).
The following conversion factors apply:
1 TW = 1/20 PT
1 PT = 1/72 IN
1 IN = 2.54 CM
1 CM = 10 MM
1 CH = height of a character relative to the CPI specification in the form header
1 LN = height of a line relative to the LPI specification in the form header
/: BOX FRAME 10 TW
Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
/: BOX INTENSITY 10
Fills the window background with shading having a gray scale of 10 %.
/: BOX HEIGHT 0 TW FRAME 10 TW
Draws a horizontal line across the complete top edge of the window.
/: BOX WIDTH 0 TW FRAME 10 TW
Draws a vertical line along the complete height of the left hand edge of the window.
/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
/: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
/: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
/: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
POSITION Command
Syntax
/: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
Effect: Sets the origin for the coordinate system used by the XPOS and YPOS parameters of the BOX command. When a window is first started, the POSITION value is set to refer to the upper left corner of the window (default setting).
Parameters: If a parameter value does not have a leading sign, then its value is interpreted as an absolute value, in other words, as a value that specifies an offset from the upper left corner of the output page. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value. If one of the parameter specifications is missing, then no change is made to this parameter.
XORIGIN, YORIGIN
Origin of the coordinate system.
WINDOW
Sets the values for the left and upper edges to match those of the current window (default setting).
PAGE
Sets the values for the left and upper edges to match those of the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm).
/: POSITION WINDOW
Sets the origin for the coordinate system to the upper left corner of the window.
/: POSITION XORIGIN 2 CM YORIGIN '2.5 CM'
Sets the origin for the coordinate system to a point 2 cm from the left edge and 2.5 cm from the upper edge of the output page.
/: POSITION XORIGIN '-1.5' CM YORIGIN -1 CM
Shifts the origin for the coordinates 1.5 cm to the left and 1 cm up.
SIZE Command
Syntax
/: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
Effect: Sets the values of the WIDTH and HEIGHT parameters used in the BOX command. When a window is first started, the SIZE value is set to the same values as the window itself (default setting).
Parameters: If one of the parameter specifications is missing, then no change is made to the current value of this parameter. If a parameter value does not have a leading sign, then its value is interpreted as an absolute value. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value.
WIDTH, HEIGHT
Dimensions of the rectangle or line.
WINDOW
Sets the values for the width and height to the values of the current window (default setting).
PAGE
Sets the values for the width and height to the values of the current output page.
/: SIZE WINDOW
Sets WIDTH and HEIGHT to the current window dimensions.
/: SIZE WIDTH '3.5' CM HEIGHT '7.6' CM
Sets WIDTH to 3.5 cm and HEIGHT to 7.6 cm.
/: POSITION WINDOW
/: POSITION XORIGIN -20 TW YORIGIN -20 TW
/: SIZE WIDTH +40 TW HEIGHT +40 TW
/: BOX FRAME 10 TW
A frame is added to the current window. The edges of the frame extend beyond the edges of the window itself, so as to avoid obscuring the leading and trailing text characters.
<REMOVED BY MODERATOR>
Regards
Anji
Edited by: Alvaro Tejada Galindo on Jul 8, 2008 10:59 AM -
SAP Script: How do you print internal table values in a VAR window?
Hi
I want to have a window like MAIN window where I can print data like line items and the no of lines are only 3..I have added one window type VAR. I have schedule line data in one internal table in which I am calling WRITE_FORM func.mod for the newly created window..But the last schedule line only getting printed...when I debug the script looping in internal table is happening correctly and going to window also happening but in the output its showing last schedule line...What could be the problem and how to over come this?
Thanks in advance.
Regards
Vali.Hi Md,
1. type MAIN window CAN GROW (vertically)
But VAR window Cannot.
2. If our window is type VAR or FIXED
no matter how much we loop
it will show only the last record.
because it cannot grow.
(every loop pass overwrites the contents in the layout)
3. So if we use loop to print anything,
THE WINDOW MUST BE OF TYPE "MAIN" ONLY.
Hope the above helps.
Regards,
Amit M. -
How to show two different aliases in planning data form
I have two alias members in the Alias dimension-Default,alias-1.
Alias is associated with all the dimensions.
For ENTITY dimension i have values for both the aliases.
Now my requirement is to show Default alias member in one planning data form and alias-1 member in another data form.
How can this be achieved ?If this is a consistant requirement, you could create another alias table and assign the aliases as a concatenation of the two aliases you need to see at the same time.
IOW, export both tables, and in excel or a text editor, concatenate the two existing aliases for each member into one string, then import that list into yet another alias table. -
SAP Script - how to hide ?
Hi All,
1). I have two pages in se71 in Script program Z_SCRIPT.
I have to hide first page some times and hide second page in some conditions. How to hide the page ?
2). How can I know the driver program name, in a <b>Script editor</b>. Is there any possibility ?
Thanks in advance,2) Here are differt ways of finding script driver programs
driver program
Finding Driver program for smartforms
Re: How to findout the Driver Program
Regds
Manohar -
Regarding sap script how to create first page and next page
could u plz let me explain the steps for creating
WE HAVE " PAGE BUTTOR" IN THE FORM.
THERE WE CAN CREATE MULTIPLE PAGES
I HAVE ONE MAIN WINDOW FOR "FIRST PAGE"
I HAVE ONE MORE MAIN WINDOW FOR "NEXT PAGE"
LIKE THIS
HOW CAN I TEST THE MULTIPLE PAGE S
EXPLAIN CLEARLY
FIRST PAGE
NEXT PAGE
THIRD PAGE
FOUTH PAGE
IN SAP CERIPT FORMhi
in ur script u have page button click to it and now do this
goto
EDIT-->Create Element
after this u have an pop-up
now enter ur page name and description here and press enter
insimilar manner creat the pages that u want
Now once uahve created the pages click to windows button
and do this
EDIT-->Create Element
after this u have an pop-up
now enter ur window name and description here and press enter
Now once u have created the windows click to page window button
here u will give the page name in the box and do the same
EDIT-->Create Element
an popup will apear select the window u want to have on this window ok
now code inside this window
Hope this will solve ur problem
Cheers
Snehi Chouhan
Maybe you are looking for
-
HT4910 How do you transfer movies I purchased from the app store from iPad to iPad?
I've bought another ipad2 and I can't figure out how to transfer my movies I purchased from the app store from one iPad to another iPad. Can anyone help?
-
Data Modeler EA1: Importing SQL Server Data Dictionary issue
I am using the Data Dictionary Import Wizard to import the Schema of a SQL Server 2005 database (JDBC connection has "SQL Server 2005" as the Type) into the Oracle SQL Developer Data Modeler. In step 4 of the import, under the "Import to:" section, t
-
I'm using a Flash slideshow on a Dreamweaver site (CS3) with six slide images (see code below). The first three images have a link to Adobe - not intended. I have not been able to remove the links. Is it possible that somehow the jpeg images themse
-
I am still waiting for my student approval to set up the Adobe creative suite. Can you please help? Jasper
-
Dangling meta character exception
Hi, we get this exception after a readAll query with conformResultsInUnitOfWork. The presence of the "+" in the text seems to confuse toplink. Is it a known bug or should we open a TAR? java.util.regex.PatternSyntaxException: Dangling meta character