‎2006 Jun 22 12:29 PM
Hi
1.how do u findout function module requirement name related to spool requirement ?
2.i want the o/p like......
3 * 1 = 0003
3 * 2 = 0006
.
.
.
3 * 10 = 0030.
3. how to write the test case for validity of a material in a selection screen.
4.how to findout the table name if u know the field name from the structure.
thanks,
SHILPA.
‎2006 Jun 22 12:32 PM
data: t(1) value '3'.
data: t1(4) type n .
data: t2(4) type n .
t1 = 1 * t.
t2 = 2 * t.
write /: t1,t2.
‎2006 Jun 22 12:46 PM
Hi,
u can go to T-code SE37 write SPOOL and press F4 u will get the list of all FM's
For the o/p u need u can use the syntax,
data: num1(4) type n,
num2(4) type n,
num(1) value '3'.
and i don get what did u ment by a test case.
‎2006 Jun 22 12:47 PM
1)
Refer to the FM's belongs to below function groups
SLVC_BATCH_SPOOL Batch Spool Processing
SPOA Spool Administration
SPOB Spool Cache Administration / Usage
SPOC Spool: Conversions
SPOD Spooler: Output of data
SPOF Spool: C Calls for Front-End Printing
SPOH Help Functions For The Spooler
SPOI Spool Callback Functions Using RFC
SPOK Spool: Configuration Functions
SPOL Spooler Help Programs
SPOO Spool functions
SPOR Spool authorization checks
SPOS Spool: User-Defined Settings
SPOX Spool extended functions
SXSP XMI Spool Configuration Interface
4)
Goto se11 and give the dataelement, and click on where used button to search for tables used.
Use ST05 transaction to know the tables triggered in your transaction.
goto st05 - activate trace on
execute your transaction in another session
stitch off the trace in st05
Click on display trace to list down the tables used.
Regds
Manohar
‎2006 Jun 22 1:29 PM
HI Shilpa,
1. Goto SE37 and serach with these keywords : SPOOL, PRINT.
2.
Consider this code snippet.
REPORT abc.
DATA : var TYPE i VALUE 1,
temp TYPE i,
result(4) TYPE n.
CONSTANTS : const TYPE i VALUE 3 .
DO 10 TIMES.
temp = const * var.
result = temp.
WRITE / result.
var = var + 1.
ENDDO.
3.
Consider this.
REPORT abc.
PARAMETERS : p_matnr TYPE mara-matnr.
AT SELECTION-SCREEN ON p_matnr.
SELECT SINGLE matnr FROM mara
INTO p_matnr
WHERE matnr EQ p_matnr.
IF sy-subrc NE 0.
MESSAGE 'Invalid Material' TYPE 'E'.
ENDIF.
4. There are many ways to fine the table name:
1. Goto SE84 -->ABAP DICTIONARY and search.
2. Select field in Structure and do WHERE USED LIST.
Regards,
Arun Sambargi.