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

Function module for to generate spool

0 Likes
675

Hi,

here I am using the FM PRINT_SELECTIONS for collecting my data into spool through internal table as shown below.

CALL FUNCTION 'PRINT_SELECTIONS'

EXPORTING

mode = 'TABLE'

rname = sy-cprog

rvariante = sy-slset

TABLES

infotab = wt_info.

The structure of wt_info is a refered structure of info in standard FM as shown below.

DATA: BEGIN OF wt_info OCCURS 0,

flag,

olength TYPE x,

line LIKE raldb-infoline,

END OF wt_info.

here lie is taking only 79 chars in the spool output as it is mentioned through this structure. But our out put carring 120 chars length.

here we can't change the line length for this FM.

can please suggest any other FM for the to get output more than 120 chars length and behaves like above FM.

please do needfull urgently as requirement is urgent and effecting business.

Regards

Hareesh Tadepalli.

1 REPLY 1
Read only

Former Member
0 Likes
453

HI,

If the standard FM is suitable to your requirement and if you have also issue with the length. Copy the Standard FM to Z and change the length to 120 char.

Thanks,

Sriram Ponna.