Tabular contents in Sapscript
Hi friends,
I want to print few details of material master in tabular format in sapscript. Say I want to print matnr maktx and mtart.
But the problem is how to draw a table having 3 columns as its structure and it would contain as many rows as user gives in input.I want a simple matrix like we do have in MS Excel.
I did some work in main window using BOX command but not able to get the desired results.
Please guide.
Thanks & Regards,
Gaurav
Use the BOX command in SAP script to make tables.
See examples
For horizontal line
/: POSITION PAGE
/: POSITION XORIGIN '2.0' CH YORIGIN '34.2' LN
/: SIZE WIDTH '75.0' CH HEIGHT '0' LN
/: BOX FRAME 10 TW
For vertical line
/: POSITION PAGE
/: POSITION XORIGIN '2.0' CH YORIGIN '32.1' LN
/: SIZE WIDTH '0' CH HEIGHT '28.1' LN
/: BOX FRAME 10 TW
Belive this helps you,
rgds,
TM.
Similar Messages
-
Hello,
I have a problem printing an SAPScript-Symbol &wa_zpp_pro_auf-TEXT& which is of TYPE CHAR with lenght 70, that is the type of an SAPScript text name object. The structure wa_zpp_pro_auf has the type of a table defined in the Dictionary. The Debugging shows that the field of the structure ist filled and the syntax of the textelement is correct. If I directly write the name of the textobject in the SAPScript text it is printed without problem. So there is a problem transfering the data from ABAP to the SAPScript document. Has anybody an idea where the problem can be. Thanks.
Regards, Lars.Hi Lars,
are you trying to dynamically print the contents of a text element which you have the name of in variable &wa_zpp_pro_auf-TEXT&? I'm not sure you can do that. If you refer to &wa_zpp_pro_auf-TEXT& I think you will just have the name of the text element rather than the actual text contents. Maybe there's some way to have a dynamic 'include'?
Stop Press:
if it is a dynamic include that you want you can actually
do it,
use: /: INCLUDE &wa_zpp_pro_auf-TEXT& OBJECT TEXT ID ST
Message was edited by: Neil Woodruff -
Hello experts,
I am facing a problem on an existent sapscritp.
The existent form contains the FIRST and NEXT page, the flow is: FIRST -> NEXT -> NEXT.
It was asked me to add one LAST page with terms and conditions (etc)...
I created the LAST page in the form.
At the program level, right before the "close_form", I added the command "control_form" > "new-page LAST".
The LAST page was printed (ok), however, the content of "sapscript-formpages" seemed to get lost (=0).
In consequence, all the existent conditions: "IF &PAGE(C)& EQ &SAPSCRIPT-FORMPAGES(C)&" (if current page = "last page") didn´t work anymore. The data/windows to be printed on the last of the FIRST/NEXT pages didn´t appear anymore.
Also, the "page" information get lost "Page 1/0".
Before my LAST page, the content of "sapscript-formpages" = 1 (currently only one page is displayed) and "Page 1/1" was fine.
After I added the command "control_form" > "new-page LAST", the "sapscript-formpages" = 0 and "Page 1/0" (?).
Does anybody knows why???
I tried other ways to print the LAST page such as:
1) Added an element /E called "lastpage" on MAIN window (also tried other windows that comes after the MAIN).
This element contained the command "new-page LAST".
I called this element on the program (after the last element printed).
Result: New-page LAST was "ignored". It passed by this on debug mode but nothing happened (the first page was totally ok but LAST page didn´t appear).
2) Added "start_form" > startpage = "last" and "end_form" (before "close_form").
Result: Error message when running the sapscript ("start_form is invalid, end_form is missing").
Obs: there was not "start_form" and "end_form" on the current program code.
Please, does anybody has an suggestion to help me solving this problem?
Thank you!
TatianaHi Tatiana,
In Main window,
Delcare:
/E PAGE.
/: NEW-PAGE
In Editor.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'PAGE'
* FUNCTION = 'SET'
* TYPE = 'BODY'
* WINDOW = 'MAIN'
* IMPORTING
* PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10.
Regards,
Venkat. -
RPR_ABAP_SOURCE_SCAN for SAPscript
Does anyone know if a tool like RPR_ABAP_SOURCE_SCAN exists for the content of SAPscript forms?
I'd like to scan the code in our SAPscripts similar to what you can do with the ABAP search tool.Hi,
I dont't think there is on, you can try searching for RSTX* programs.
Kind regards, Rob Dielemans -
Best ABAP learning resource....
Hello,
I'm new to ABAP but not to object prientated programming. I have the "ABAP Objects" book from which I'm trying to learn ABAP.
I'm finding it quite heavy going as there aren't many tutorials \ exercises to try out. Does anyone know of any tutorials or exercises.
Or a book more suited to a beginer.Hi,
Welcome to SDN.
Check these links for ABAP concepts.
1) http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
2) http://help.sap.com/saphelp_46c/helpdata/en/d6/0db357494511d182b70000e829fbfe/frameset.htm
3) http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
4) http://www.sapgenie.com/abap/example_code.htm ABAP example code
5) http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm
6) http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
7) http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm SAP Online Help.
9) http://www.sap-img.com/abap-function.htm ABAP Function Modules
10) http://www.sapgenie.com/abap/code/abap19.htm
11) http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm ABAP Quest
12) http://www.planetsap.com/Tips_and_Tricks.htm Tricks & TIps for ABAP
13) http://help.sap.com/saphelp_40b/helpdata/ru/d6/0dc169494511d182b70000e829fbfe/applet.htm SAP Online Help.
14) http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm symbols & Controls commands
15) http://www.henrikfrank.dk/abapexamples/index.html ABAP Examples
16) http://sap.ittoolbox.com/documents/document.asp?i=752 SAP Introduction to ABAP Helps
17) http://members.aol.com/_ht_a/skarkada/sap/ SAP and ABAP Goodies
18) http://sappoint.com/abap/ SAP/ABAP Technical site.
19) http://members.tripod.com/abap4/SAP_Functions.html SAP Functions-ABAP Hints and Tips
20) http://members.ozemail.com.au/~anmari/sap/index.html SAP R/3 Configurations
21) http://www.planetsap.com/Userexit_List.htm All User-Wxirs
22) http://www.planetsap.com/Tips_and_Tricks.htm
23) http://www.kabai.com/abaps/q.htm
24) http://www.planetsap.com/Userexit_List.htm User-Exits
25) http://help.sap.com/saphelp_bw21c/helpdata/en/c4/3a8090505211d189550000e829fbbd/frameset.htm bakground jobs
26) http://www.sapgenie.com/abap/bapi/example.htm BAPI step by step
27) http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm SAPscript: Definition of borders, lines, and shading
28) http://www.sap-basis-abap.com/index.htm SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips
29) http://help.sap.com/saphelp_40b/helpdata/en/fc/eb2c46358411d1829f0000e829fbfe/frameset.htm SAP Online help Dialog
30) http://help.sap.com/saphelp_46c/helpdata/en/aa/aeb23789e95378e10000009b38f8cf/frameset.htm Dilaog Prog.
31) http://www.geocities.com/ResearchTriangle/1635/system.html System fields
32) http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm Function of table control
33) http://help.sap.com/saphelp_45b/helpdata/en/d1/801bdf454211d189710000e8322d00/content.htm Defining table control
34) http://www.sapfans.com/sapfans/repos/saprep.htm SAP Repository
35) http://www.planetsap.com/howdo_a.htm ABAP
36) http://help.sap.com/saphelp_util464/helpdata/en/69/c2516e4ba111d189750000e8322d00/content.htm Table Maintenance Dialog
37) http://www.sapgenie.com/abap/smartforms_detail.htm smart forms
38) http://www.sap-img.com/abap.htm Sample ABAP Codes
3 9) http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d67358411d1829f0000e829fbfe/content.htm Processing Blocks in ABAP Programs
40) http://www.geocities.com/victorav15/sapr3/abap.html ABAP/4 compendium.
41) http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm SAP SCRIPT IMP
42) http://abap4.tripod.com/Other_Useful_Tips.html Additional useful Tips
43) http://help.sap.com/saphelp_45b/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm Searach Helps
44) http://www.sap-basis-abap.com/sapmm.htm SAP MM (Materials Management) Configuration Hints and Tips
45) http://sap.ittoolbox.com/nav/t.asp?t=303&p=448&h1=303&h2=322&h3=448
46) http://sapfans.com
47)http://www.sapdevelopment.co.uk/tips/tipshome.htm
<b>For rewarding points to SDN posters,check the weblog.
/people/mark.finnern/blog/2004/08/10/spread-the-love -
I made this in dreamweaver, can i slap some CSS on it?
Hi everyone,
A friend of mine asked me to do a webpage for her, and for
the most part, I made the page. Its not yet cmpleted, but here's
the link:
http://www.helenbwilson.com
The html pages are already made, but I wanted to format the
text in the cells in the "About" and "Contact" section, as the
leading and padding need to be fixed (The text aligns way too close
to the border of the table/cell). Is it possible to have a CSS
document where I can put it and all the text in the cells will be
formatted to my liking?
And that leads me to my next question of : how difficult is
it to make this in straight up CSS?
Any help would be appreciated.
Thanks, and go easy on me, Im a noob
-Cesar> Is it
> possible to have a CSS document where I can put it and
all the text in the
> cells will be formatted to my liking?
Certainly.
> And that leads me to my next question of : how difficult
is it to make
> this in
> straight up CSS?
Learning how to effectively create pages without using tables
is an arduous
process for most people. Although Nick's suggestion is right
on target,
it's not very practical for someone asking the questions you
are asking. I
suggest you begin to use CSS for content styling and slowly
migrate into the
more advanced usages, like floats and other page-placement
techniques as
your knowledge increases.
And learn how to use a grain of salt with the recommendations
that you do
this transition instantly, and never use tables for anything
but tabular
content. Get pragmatic. If a table works best for a
praticular purpose,
there's no shame in using it. Browsers will support tables
'till the cows
come home.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"psypent81" <[email protected]> wrote in
message
news:[email protected]...
> Hi everyone,
>
> A friend of mine asked me to do a webpage for her, and
for the most part,
> I
> made the page. Its not yet cmpleted, but here's the
link:
>
>
http://www.helenbwilson.com
>
> The html pages are already made, but I wanted to format
the text in the
> cells
> in the "About" and "Contact" section, as the leading and
padding need to
> be
> fixed (The text aligns way too close to the border of
the table/cell). Is
> it
> possible to have a CSS document where I can put it and
all the text in the
> cells will be formatted to my liking?
>
> And that leads me to my next question of : how difficult
is it to make
> this in
> straight up CSS?
>
> Any help would be appreciated.
> Thanks, and go easy on me, Im a noob
>
> -Cesar
>
>
>
> -
Hi folks,
i need to know abap coding required for BI in scenarios such as routines,appending tables etc.
in this regard i would like to have docs providing syntax as well as code in order to understand easily.
Kindly help me out
ThanksHi Kitu,
In addition to books, you have a number of very useful links to learn ABAp.
1) http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
2) http://help.sap.com/saphelp_46c/helpdata/en/d6/0db357494511d182b70000e829fbfe/frameset.htm
3) http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
4) http://www.sapgenie.com/abap/example_code.htm ABAP example code
5) http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm
6) http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
7) http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm SAP Online Help.
9) http://www.sap-img.com/abap-function.htm ABAP Function Modules
10) http://www.sapgenie.com/abap/code/abap19.htm
11) http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm ABAP Quest
12) http://www.planetsap.com/Tips_and_Tricks.htm Tricks & TIps for ABAP
13) http://help.sap.com/saphelp_40b/helpdata/ru/d6/0dc169494511d182b70000e829fbfe/applet.htm SAP Online Help.
14) http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm symbols & Controls commands
15) http://www.henrikfrank.dk/abapexamples/index.html ABAP Examples
16) http://sap.ittoolbox.com/documents/document.asp?i=752 SAP Introduction to ABAP Helps
17) http://members.aol.com/_ht_a/skarkada/sap/ SAP and ABAP Goodies
18) http://sappoint.com/abap/ SAP/ABAP Technical site.
19) http://members.tripod.com/abap4/SAP_Functions.html SAP Functions-ABAP Hints and Tips
20) http://members.ozemail.com.au/~anmari/sap/index.html SAP R/3 Configurations
21) http://www.planetsap.com/Userexit_List.htm All User-Wxirs
22) http://www.planetsap.com/Tips_and_Tricks.htm
23) http://www.kabai.com/abaps/q.htm
24) http://www.planetsap.com/Userexit_List.htm User-Exits
25) http://help.sap.com/saphelp_bw21c/helpdata/en/c4/3a8090505211d189550000e829fbbd/frameset.htm bakground jobs
26) http://www.sapgenie.com/abap/bapi/example.htm BAPI step by step
27) http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm SAPscript: Definition of borders, lines, and shading
28) http://www.sap-basis-abap.com/index.htm SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips
29) http://help.sap.com/saphelp_40b/helpdata/en/fc/eb2c46358411d1829f0000e829fbfe/frameset.htm SAP Online help Dialog
30) http://help.sap.com/saphelp_46c/helpdata/en/aa/aeb23789e95378e10000009b38f8cf/frameset.htm Dilaog Prog.
31) http://www.geocities.com/ResearchTriangle/1635/system.html System fields
32) http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm Function of table control
33) http://help.sap.com/saphelp_45b/helpdata/en/d1/801bdf454211d189710000e8322d00/content.htm Defining table control
34) http://www.sapfans.com/sapfans/repos/saprep.htm SAP Repository
35) http://www.planetsap.com/howdo_a.htm ABAP
36) http://help.sap.com/saphelp_util464/helpdata/en/69/c2516e4ba111d189750000e8322d00/content.htm Table Maintenance Dialog
37) http://www.sapgenie.com/abap/smartforms_detail.htm smart forms
38) http://www.sap-img.com/abap.htm Sample ABAP Codes
3 9) http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d67358411d1829f0000e829fbfe/content.htm Processing Blocks in ABAP Programs
40) http://www.geocities.com/victorav15/sapr3/abap.html ABAP/4 compendium.
41) http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm SAP SCRIPT IMP
42) http://abap4.tripod.com/Other_Useful_Tips.html Additional useful Tips
43) http://help.sap.com/saphelp_45b/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm Searach Helps
44) http://www.sap-basis-abap.com/sapmm.htm SAP MM (Materials Management) Configuration Hints and Tips
45) http://sap.ittoolbox.com/nav/t.asp?t=303&p=448&h1=303&h2=322&h3=448
46) http://sapfans.com
Hope this will help you...
Thanks,
Jitendra -
Starting self training of abap
hi
i want to start a self training of abap
can u advice me by giving me wich tools i need to start
i have a laptop 1.4GHZ 512RAM 40G HDD
thank youand these
For beginners,this site will be helpful.
http://www.sapgenie.com/abap/example_code.htm ABAP example code
You can refer following sites for ABAP.
1) http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
2) http://help.sap.com/saphelp_46c/helpdata/en/d6/0db357494511d182b70000e829fbfe/frameset.htm
3) http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
4) http://www.sapgenie.com/abap/example_code.htm ABAP example code
5) http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm
6) http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
7) http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm SAP Online Help.
9) http://www.sap-img.com/abap-function.htm ABAP Function Modules
10) http://www.sapgenie.com/abap/code/abap19.htm
11) http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm ABAP Quest
12) http://www.planetsap.com/Tips_and_Tricks.htm Tricks & TIps for ABAP
13) http://help.sap.com/saphelp_40b/helpdata/ru/d6/0dc169494511d182b70000e829fbfe/applet.htm SAP Online Help.
14) http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm symbols & Controls commands
15) http://www.henrikfrank.dk/abapexamples/index.html ABAP Examples
16) http://sap.ittoolbox.com/documents/document.asp?i=752 SAP Introduction to ABAP Helps
17) http://members.aol.com/_ht_a/skarkada/sap/ SAP and ABAP Goodies
18) http://sappoint.com/abap/ SAP/ABAP Technical site.
19) http://members.tripod.com/abap4/SAP_Functions.html SAP Functions-ABAP Hints and Tips
20) http://members.ozemail.com.au/~anmari/sap/index.html SAP R/3 Configurations
21) http://www.planetsap.com/Userexit_List.htm All User-Wxirs
22) http://www.planetsap.com/Tips_and_Tricks.htm
23) http://www.kabai.com/abaps/q.htm
24) http://www.planetsap.com/Userexit_List.htm User-Exits
25) http://help.sap.com/saphelp_bw21c/helpdata/en/c4/3a8090505211d189550000e829fbbd/frameset.htm bakground jobs
26) http://www.sapgenie.com/abap/bapi/example.htm BAPI step by step
27) http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm SAPscript: Definition of borders, lines, and shading
28) http://www.sap-basis-abap.com/index.htm SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips
29) http://help.sap.com/saphelp_40b/helpdata/en/fc/eb2c46358411d1829f0000e829fbfe/frameset.htm SAP Online help Dialog
30) http://help.sap.com/saphelp_46c/helpdata/en/aa/aeb23789e95378e10000009b38f8cf/frameset.htm Dilaog Prog.
31) http://www.geocities.com/ResearchTriangle/1635/system.html System fields
32) http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm Function of table control
33) http://help.sap.com/saphelp_45b/helpdata/en/d1/801bdf454211d189710000e8322d00/content.htm Defining table control
34) http://www.sapfans.com/sapfans/repos/saprep.htm SAP Repository
35) http://www.planetsap.com/howdo_a.htm ABAP
36) http://help.sap.com/saphelp_util464/helpdata/en/69/c2516e4ba111d189750000e8322d00/content.htm Table Maintenance Dialog
37) http://www.sapgenie.com/abap/smartforms_detail.htm smart forms
38) http://www.sap-img.com/abap.htm Sample ABAP Codes
3 9) http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d67358411d1829f0000e829fbfe/content.htm Processing Blocks in ABAP Programs
40) http://www.geocities.com/victorav15/sapr3/abap.html ABAP/4 compendium.
41) http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm SAP SCRIPT IMP
42) http://abap4.tripod.com/Other_Useful_Tips.html Additional useful Tips
43) http://help.sap.com/saphelp_45b/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm Searach Helps
44) http://www.sap-basis-abap.com/sapmm.htm SAP MM (Materials Management) Configuration Hints and Tips
45) http://sap.ittoolbox.com/nav/t.asp?t=303&p=448&h1=303&h2=322&h3=448
46) http://sapfans.com -
Regarding class builder(SE24)
Hi to all,
I want to know how to create classes and its interfaces and methods using <b>SE24</b> transactions. Is there any documentation for this?Hi,
Just check the following links.
1) http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
2) http://help.sap.com/saphelp_46c/helpdata/en/d6/0db357494511d182b70000e829fbfe/frameset.htm
3) http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
4) http://www.sapgenie.com/abap/example_code.htm ABAP example code
5) http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm
6) http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
7) http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm SAP Online Help.
9) http://www.sap-img.com/abap-function.htm ABAP Function Modules
10) http://www.sapgenie.com/abap/code/abap19.htm
11) http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm ABAP Quest
12) http://www.planetsap.com/Tips_and_Tricks.htm Tricks & TIps for ABAP
13) http://help.sap.com/saphelp_40b/helpdata/ru/d6/0dc169494511d182b70000e829fbfe/applet.htm SAP Online Help.
14) http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm symbols & Controls commands
15) http://www.henrikfrank.dk/abapexamples/index.html ABAP Examples
16) http://sap.ittoolbox.com/documents/document.asp?i=752 SAP Introduction to ABAP Helps
17) http://members.aol.com/_ht_a/skarkada/sap/ SAP and ABAP Goodies
18) http://sappoint.com/abap/ SAP/ABAP Technical site.
19) http://members.tripod.com/abap4/SAP_Functions.html SAP Functions-ABAP Hints and Tips
20) http://members.ozemail.com.au/~anmari/sap/index.html SAP R/3 Configurations
21) http://www.planetsap.com/Userexit_List.htm All User-Wxirs
22) http://www.planetsap.com/Tips_and_Tricks.htm
23) http://www.kabai.com/abaps/q.htm
24) http://www.planetsap.com/Userexit_List.htm User-Exits
25) http://help.sap.com/saphelp_bw21c/helpdata/en/c4/3a8090505211d189550000e829fbbd/frameset.htm bakground jobs
26) http://www.sapgenie.com/abap/bapi/example.htm BAPI step by step
27) http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm SAPscript: Definition of borders, lines, and shading
28) http://www.sap-basis-abap.com/index.htm SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips
29) http://help.sap.com/saphelp_40b/helpdata/en/fc/eb2c46358411d1829f0000e829fbfe/frameset.htm SAP Online help Dialog
30) http://help.sap.com/saphelp_46c/helpdata/en/aa/aeb23789e95378e10000009b38f8cf/frameset.htm Dilaog Prog.
31) http://www.geocities.com/ResearchTriangle/1635/system.html System fields
32) http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm Function of table control
33) http://help.sap.com/saphelp_45b/helpdata/en/d1/801bdf454211d189710000e8322d00/content.htm Defining table control
34) http://www.sapfans.com/sapfans/repos/saprep.htm SAP Repository
35) http://www.planetsap.com/howdo_a.htm ABAP
36) http://help.sap.com/saphelp_util464/helpdata/en/69/c2516e4ba111d189750000e8322d00/content.htm Table Maintenance Dialog
37) http://www.sapgenie.com/abap/smartforms_detail.htm smart forms
38) http://www.sap-img.com/abap.htm Sample ABAP Codes
3 9) http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d67358411d1829f0000e829fbfe/content.htm Processing Blocks in ABAP Programs
40) http://www.geocities.com/victorav15/sapr3/abap.html ABAP/4 compendium.
41) http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm SAP SCRIPT IMP
42) http://abap4.tripod.com/Other_Useful_Tips.html Additional useful Tips
43) http://help.sap.com/saphelp_45b/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm Searach Helps
44) http://www.sap-basis-abap.com/sapmm.htm SAP MM (Materials Management) Configuration Hints and Tips
45) http://sap.ittoolbox.com/nav/t.asp?t=303&p=448&h1=303&h2=322&h3=448
46) http://sapfans.com -
Dynamic Sapscript page content
Hi Experts,
I'm currently developing a Sapscript form where it should have dynamic content.
i have the header of the form and the body.
if the body is short, it can be be placed on the first page of the form.
if the body is long and goes off the first page, it should be totally removed from the first page and placed in the second page (or more). if this happens, there should be a note on the first page, saying "see next page". also, this should be created in a different spool. (there would be 2 spool jobs)
how should i tackle this problem?
Thanks in advance.
shockadisHi Shockadis,
For the problem of having the body completely on the next page you need to place it between PROTECT-ENDPROTECT. you can place your text element of body inside this set of keywords. this will check if the data flows to the next page, then it starts printing from the new page itself.
For displaying the message 'See Next Page', if your header gets accomodated on the first page, check the condition that if total number of pages is more than one then display the message. -
Addding body content to the mail sent by sapscript layout output report
Hi,
I have a report which sends the output of a sapscript layout as an email.Is there any way i can add some body content to the mail which the report is sending.
This include is getting called from my report to send email - RVADOPFO
Thanks
Bala DuvvuriIssue is fixed .instead of using the standard open_form functionality I am getting back the OTF output and converting into pdf and using mail fms i am sending it along with body.
Thanks
Bala Duvvuri -
Export tabular form contents to javascript array
How is it possible to export the contents of a tabular form to an javascript or a visual basic script array?
If FOO is one of the column headers in the tabular form
var th=html_GetElement('FOO'); // Gets the DOM node for the TH
var t=html_CascadeUpTill(th,'TABLE'); // Gets the DOM node for the TABLE
for (var j=1;j<t.rows.length;j++) {
var l_row=t.rows[j];
for (var k=0;k<l_rows.cells.length;k++) {
// Do whatever with the TD node at l_row.cells[k]
} -
hi there,
I have created a sapscript but the contents are not alligned. How can I allign the values i.e vertically.
1. For example: the following is shown like this. If I move the 2nd $ sign one space left then it will move it to a more than one space so this is the closest I can get.
$
$
2. At other places I am also having similar issues. what is the best way to set these values. Do I have to change the tab values in the paragraph fomat to make adjustments or any other better way.
Please advise.
Thankssee the example format,based on this you can align ..
IF &PAGE& EQ '1'.
BOX FRAME 10 TW
POSITION WINDOW
BOX WIDTH '74' CH HEIGHT '3.1' LN FRAME 10 TW I
POSITION XORIGIN '3.0' CM
BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW
POSITION XORIGIN '5.0' CM
BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW
POSITION XORIGIN '7.2' CM
BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW
POSITION XORIGIN '8.3' CM
BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW
POSITION XORIGIN '9.5' CM
BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW
POSITION XORIGIN '12.0' CM
BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW
POSITION XORIGIN '14.5' CM
BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW
POSITION XORIGIN '17.0' CM
BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW
ENDIF.
IF &PAGE& NE '1'.
POSITION WINDOW
BOX WIDTH '74' CH HEIGHT '36.5' LN FRAME 10 TW
POSITION WINDOW
BOX WIDTH '74' CH HEIGHT '3.1' LN FRAME 10 TW INTENSITY 10
POSITION XORIGIN '0.9' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '3.0' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '5.0' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '7.2' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '8.3' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '9.5' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '12.0' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '14.5' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '17.0' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '19.7' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
ENDIF -
Footer content is not displayed in SAPscript.
hello friends,
The main window content that has to be diaplayed is more than the size of the main window. Hence the contents that fit the main window size are displayed. Eventually my footer content is not displaying. What cud be the possible reason?
Please guide me.
Thanks.
Message was edited by:
AlchemiHmm..... Do you have an element in your FOOTER Window?
/E ELEMENT_NAME
If so, are you doing a WRITE_FORM against this in your print program?
CALL FUNCTION 'WRITE_FORM'
exporting
element = 'ELEMENT_NAME'.
Regards,
Rich Heilman -
SAPSCRIPTS - BOX COMMAND.
Hi ,
I hava script in which i am supposed to print an internal table.
now. the script is designed in such a way that on first page the main window starts at line 17 of the page and on second page the main window starts at line no 7.
i ma printing my internal table in the main window. i am ussing box command to get a tabular look n feel . on first page the y pos of the box is set to 18 LN. n its gettin printed properly.
till first 15 records the data gets printed on first page but if the records in the internal table are more than 15 then then the output continues to second screen.
now while setting the ypos how should set the value? how exatly i am supposed to count the value to set for the y pos? when we say BOX ypos 7 LN dose it mean set ypos at line 7 from upword direction? n line of the window or line 7 of the page?Hi
See this and use accordingly
SAPScripts
http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
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
Maybe you are looking for
-
Problem with group messaging?
A couple of days ago I started receiving only some of the texts that the people in the group message were sending. I receive some messages, but not others. Sometimes the ones that I hadn't received are received hours after the messages were sent. Ple
-
Generate Report without Installation
Hi, Can I have a way to generate crystal report without having to install any files on user computer? Like running directly from CD-Rom or DVD. It's just going to be a very simple report and just need the basic components. I tried copying dlls from C
-
Hi, Is there any tool for monitoring the CSS boxes?? We have a Cisco CSS 11506 working for load balaning the application traffic for few servers, so now we would want to see the performance of the CSS in terms of no of hits coming in to the CSS and n
-
Problems with Adjustment Brush - LR 2.3, Macintosh
I've had numerous discussions with folks at Adobe's Tech Support and they have no idea what is going on with my problem in LR 2.3 on a Mac (10.5.6, 2 X 3 GHz dual Intel, 5 GB ram, startup drive has catalog, images stored on internal drive) so I thoug
-
HI All, I have one scenario for MRP in MTS Scenario. E.g. Available Quantity= 50 Reorder Point = 60 Safety Stock = 20 Now the available stock (50-20=30) Stock is less than the reorder level stock after removing the Safety stock.PR is generated and it