on 05-09-2007 5:33 PM
Hi every body,
Please help in,
1)Why smartforms are client-independent?
2)What are SAP memory and ABAP memory?
3)How to use the option "Outline" in scripts while creating a paragraph fomat?
4)What are the control commands RESET and SUMMING in scripts and their syntaxes to use them (sample codes)?
5)What is exactly HIDE?
Thanks in advance,
SUMAN.
Hey Thanks all of u for such a good response.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
1Q The reason why SmartForms are client independent is because when you activate a SMartForm, SAP actually generates a Function Module (which as you know is client independent). The Print Program (or as SAP likes to refer to them these days - Application Program) calls your generated FM.
2Q SAP Memory
SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens
The SAP memory, otherwise known as the global memory, is available to a user during the entire duration of a terminal session. Its contents are retained across transaction boundaries as well as external and internal sessions. The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory.
ABAP/4 Memory
ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data
to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse.
The contents of the ABAP/4 memory are retained only during the lifetime of an external session (see also Organization of Modularization Units). You can retain or pass data across internal sessions. The EXPORT TO MEMORY and IMPORT FROM MEMORY statements allow you to write data to, or read data from, the ABAP memory.
https://forums.sdn.sap.com/click.jspa?searchID=2274783&messageID=2489768
ABAP/4 Memory
ABAP memory is a memory area that all ABAP programs within the same internal session can access
using the EXPORT and IMPORT statements.
Data within this area remains intact during a whole sequence of program calls. To pass data
to a program which you are calling,
the data needs to be placed in ABAP memory before the call is made.
The internal session of the called program then replaces that of the calling program.
The program called can then read from the ABAP memory.
If control is then returned to the program which made the initial call, the same process operates in reverse.
3Q Name of the highest-level paragraph in an outline hierarchy. The outline hierarchy of various paragraphs is formed by assigning a common highest-level outline paragraph to all outline paragraphs.
Example: Three outline paragraphs, AA, BB, and CC, are to be defined, where AA is the highest and CC the lowest paragraph in the hierarchy. AA is to be used, for example, for chapter headings, BB for section headings, and CC for headings within the sections.
Paragraph AA must be specified as the highest-level outline paragraph for all three paragraphs. Make sure that AA, this paragraph itself, is entered as the highest-level outline paragraph for AA.
4.SUMMING: Adding program symbols
Program symbols can be added with the SUMMING command. The command only needs to be defined once. Each time that the specified symbol is edited, its current value is added to the sum field. Several program symbols can also be added in a sum field.
Sntax:
/:SUMMING program symbol INTO sum symbol
As SAP script cannot define sum fields dynamically, the sum symbol must be in a structure of the calling program, which was declared with TABLES.
5. Hide is a keyword used in Interactive reporting.it is used to hold the value till the next screen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1.SmartForms are Client Independent because when you activate them you are actually generating a Function Module. This means that the Print Programs actually call a FM instead of using the "OPEN_FORM", "WRITE_FORM" etc FM's that SAPscript use.
2.
In simple terms...
ABAP Memory : with in the transaction( session ).
SAP Memory : between the transcations ( sessions ).
or u can say...
ABAP memory -
> Memory related to that particular session
SAP memory -
> memory related to all sessions
3.
Name of the highest-level paragraph in an outline hierarchy. The outline hierarchy of various paragraphs is formed by assigning a common highest-level outline paragraph to all outline paragraphs.
Example: Three outline paragraphs, AA, BB, and CC, are to be defined, where AA is the highest and CC the lowest paragraph in the hierarchy. AA is to be used, for example, for chapter headings, BB for section headings, and CC for headings within the sections.
Paragraph AA must be specified as the highest-level outline paragraph for all three paragraphs. Make sure that AA, this paragraph itself, is entered as the highest-level outline paragraph for AA.
4.SUMMING: Adding program symbols
Program symbols can be added with the SUMMING command. The command only needs to be defined once. Each time that the specified symbol is edited, its current value is added to the sum field. Several program symbols can also be added in a sum field.
Syntax:
/:SUMMING program symbol INTO sum symbol
As SAP script cannot define sum fields dynamically, the sum symbol must be in a structure of the calling program, which was declared with TABLES.
5. is used to store the vale temporaryly and check it when we trigger it to generate next report
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1.refer this link.
3.summing is used to calculate total in sapscript.
/:SUMMING &PRICE& INTO TOTAL.
loop
CALL FUNCTION ' WRITE_FORM'
<MAIN WINDOW FORM>
endloop.
For every loop the value of price will be added to total.
5.HIDE is used to keep the value of some fields & used in interactive report(hotspot)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.