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 issue

Former Member
0 Likes
616

Experts,

please look at code below ,execute the code in foreground and then execute

same in background , i want same output in background(spool that is created) ,as

it is in foreground

<u><b>CODE</b></u>

report ztest.

DATA : BEGIN OF struc.

INCLUDE STRUCTURE RANGE_DATE .

DATA : END OF STRUC.

DATA : BEGIN OF struc1,

sign(1) ,

OPTION(2),

LOW LIKE SY-DATUM,

HIGH LIKE SY-DATUM ,

END OF STRUC1.

DATA : T_LFDAT LIKE TABLE OF struc1 WITH HEADER LINE ,T_C_V4 LIKE

TABLE OF

struc WITH HEADER LINE .

START-OF-SELECTION.

SELECT-OPTIONS: D_LFDAT FOR SY-DATUM.

T_LFDAT-SIGN = 'I'.

T_LFDAT-OPTION = 'EQ'.

T_LFDAT-LOW = D_LFDAT-LOW.

append t_lfdat.

T_C_V4-SIGN = 'I'.

T_C_V4-OPTION = 'EQ'.

T_C_V4-LOW = 'EK00' .

append T_C_V4.

CALL FUNCTION 'WS_DELIVERY_MONITOR'

EXPORTING

IF_C_PROCTYPE = 'F'

  • IF_C_PARVW = ' '

  • IF_C_ITEM_ADD = ' '

  • IF_C_ANZPOS = ' '

  • IF_C_SPDNR_ADD = ' '

  • IF_C_FLAG_WM = ' '

  • IF_C_FLAG_FIX = ' '

  • IF_C_REFNUM_ADD = ' '

  • IF_C_LGNUM_HEAD = ' '

  • IF_C_REF_GEWEI = ' '

  • IF_C_REF_VOLEH = ' '

  • IF_C_ALAKT = 'X'

  • IF_C_KOMIM = ' '

  • IF_C_EINLM = ' '

  • IF_C_UNCHA = ' '

TABLES

  • IT_C_VSTEL =

  • IT_C_ROUTE =

  • IT_C_AULWE =

  • IT_C_SPDNR =

  • IT_C_KUNAG =

  • IT_C_KUNWE =

  • IT_C_PARTN =

  • IT_C_VKORG =

  • IT_C_KDGRP =

  • IT_C_MATNR =

  • IT_C_WADAT =

  • IT_C_WADAT_IST =

  • IT_C_LDDAT =

  • IT_C_TDDAT =

IT_C_LFDAT = T_LFDAT

  • IT_C_KODAT =

  • IT_C_SAMMG =

  • IT_C_TKNUM =

  • IT_C_LFART =

  • IT_C_VBELN =

  • IT_C_LSTEL =

  • IT_C_LGNUM =

  • IT_C_LGORT =

  • IT_C_LGTOR =

  • IT_C_ABLAD =

  • IT_C_VSBED =

  • IT_C_LPRIO =

  • IT_C_KOSTK =

  • IT_C_WBSTK =

  • IT_C_FKSTK =

  • IT_C_KOQUK =

  • IT_C_LVSTK =

  • IT_C_TRSTA =

  • IT_C_PKSTK =

  • IT_C_BESTK =

  • IT_C_ERNAM =

  • IT_C_ERDAT =

  • IT_C_VTWEG =

  • IT_C_SPART =

  • IT_C_EBELN =

  • IT_C_EBELP =

  • IT_C_TRAID =

  • IT_C_EXIDV =

  • IT_C_LIFEX =

  • IT_C_LIFNR =

  • IT_C_KDMAT =

  • IT_C_EAN11 =

  • IT_C_CHARG =

  • IT_C_PRVBE =

  • IT_C_AUFNR =

  • IT_C_LGBZO_H =

  • IT_C_XBLNR =

  • IT_C_TRAGR_H =

  • IT_C_ABELN =

  • IT_C_VGSYS =

  • IT_C_VLSTK =

  • IT_C_E1_OUTP_SEL =

  • IT_C_V2_OUTP_SEL =

IT_C_V4_OUTP_SEL = T_C_V4

  • IT_C_V5_OUTP_SEL =

  • EXCEPTIONS

  • NO_DATA_FOUND = 1

  • WRONG_PROC_TYPE = 2

  • OTHERS = 3

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

4 REPLIES 4
Read only

Former Member
0 Likes
562

I cannot see any write statements in the code, so where is the question of output.

What are you trying to do?

Regards,

Ravi

Read only

0 Likes
562

HI Ravi,

when u will execute the program in background,it will create a spool,but

field which are displayed in spool are limited ,i need to have all the field

which are getting displayed in foreground

<b>Note</b>:-> i have increase the spool size,so don't give me the suggestion

of increasing spool size

Read only

Former Member
0 Likes
562

Hi,

In the REPORT statement add LINE-SIZE 255.

REPORT ztest LINE-SIZE 255.

Sreedhar

Read only

0 Likes
562

increasing it to line-size 255 , didn't worked out