Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

spool

Former Member
0 Likes
608

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.

4 REPLIES 4
Read only

Former Member
0 Likes
550

data: t(1) value '3'.

data: t1(4) type n .

data: t2(4) type n .

t1 = 1 * t.

t2 = 2 * t.

write /: t1,t2.

Read only

Former Member
0 Likes
550

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.

Read only

Manohar2u
Active Contributor
0 Likes
550

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

Read only

Former Member
0 Likes
550

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.