Setting format for spool requests in background jobs, for emails

Hi,
Don't know if this is the correct forum, but I'll give it a go (will appricate info regarding what forum is applicable otherwise.)
For some periodical background jobs that we run in ECC, we have in the job set up that a mail group of people to receives the spool request via mail. Vi have used this a few years now. When we recently uppgraded from R/3 to ECC, the format of the spool request sent as mail attachment changed from .txt to .htm. This is however not the problem for us.
We now have a scenario with a daily mail report, i.e. delivered as an attachment (htm-format) in our email system (Lotus Notes).
So far so good, and nothing really new about this, except the changed format.
What the users want is to print this report. It can be done, but it is a wide report, so it cuts the report in three pieces, as there is no automatic sizing to landscape printout and/our automatic sizing to one page. The best solution would be if it automatically was set up to landscape + automatically fit page size. Which format (.txt .htm .xls .pdf...) we receive the file in, is not really important, as long as we can print it directly without having to reformat it. Now we have to save the file to excel manually after we receive it, and then format the excel sheet. Just for printout purpose, so it is annoying work.
Any solution available? (preferrably without coding)
BR,
Niclas

Hi NTR,
If you are using FM REUSE_ALV_LIST_DISPLAY to print your ALV Report it has got a paramter IS_PRINT in which you can pass your format type. Below is the field name where you have to pass your format type.
IS_PRINT-print_ctrl-PRI_PARAMS-PAART
Regards
Bala

Similar Messages

  • Print spool requests by background job

    Hi,
    we want to print spool requests by a background job. Do you know any abap program to do this.? I search at the programs RSPO... , but i can't find anyone to do this.
    Can anybody help me.
    Regards Oliver

    Hi,
    i found a report for this issue. You can use the report RSPO0015

  • Alv show in report but when see in spool (after run background job) there i

    my program have some error when i run result alv show in report but when see in spool (after run background job) there is no data, (other program can see result in spool)
    Please help
    here is some example of my program
    ********************************declare internal table*****************************
    internal table output for BDC
    data : begin of t_output occurs 0,
    bukrs type anla-bukrs,
    anln1 type anla-anln1,
    anln2 type anla-anln2,
    zugdt type anla-zugdt,
    result(70) type c,
    end of t_output.
    *****get data from loop********************************
      loop at t_anla.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
                  INPUT  = t_anla-anln1
             IMPORTING
                  OUTPUT = t_anla-anln1.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
                  INPUT  = t_anla-anln2
             IMPORTING
                  OUTPUT = t_anla-anln2.
    check record is correct or not
        select single bukrs anln1 anln2 zugdt
        into w_output
        from anla
        where bukrs = t_anla-bukrs and
        anln1 = t_anla-anln1 and
        anln2 = t_anla-anln2
       zugdt = '00000000'
    if record is correct
        if sy-subrc = 0 and w_output-zugdt = '00000000'.
          w_output-bukrs = t_anla-bukrs.
          w_output-anln1 = t_anla-anln1.
          w_output-anln2 = t_anla-anln2.
          w_output-result = 'Yes : this asset can delete'.
          append w_output to t_output.
    if record is not correct
        elseif sy-subrc = 0 and w_output-zugdt <> '00000000'.
    there is error record  this asset have value already
          v_have_error = 'X'.
          w_output-bukrs = t_anla-bukrs.
          w_output-anln1 = t_anla-anln1.
          w_output-anln2 = t_anla-anln2.
          w_output-result = 'Error : this asset have value already'.
          append w_output to t_output.
        else.
    there is error record this asset donot exist in table anla
          v_have_error = 'X'.
          w_output-bukrs = t_anla-bukrs.
          w_output-anln1 = t_anla-anln1.
          w_output-anln2 = t_anla-anln2.
          w_output-result = 'Error : this asset doest not exist'.
          append w_output to t_output.
        endif.
    *end of check record is correct or not
        clear w_output.
      endloop.
    ******************************show data in ALV***************************************************
    show data from file in ALV
      perform display_report_ALV.
    *&      Form  display_report_ALV
    form display_report_ALV.
      DATA: LT_FIELD_CAT TYPE SLIS_T_FIELDCAT_ALV,
          LT_EVENTS TYPE SLIS_T_EVENT,
          LV_REPID LIKE SY-REPID.
      PERFORM ALV_DEFINE_FIELD_CAT USING LT_FIELD_CAT.
      PERFORM ALV_HEADER_BUILD USING T_LIST_TOP_OF_PAGE[].
      PERFORM ALV_EVENTTAB_BUILD USING LT_EVENTS[].
      LV_REPID = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM = LV_REPID
                IT_FIELDCAT        = LT_FIELD_CAT
                I_SAVE             = 'A'
                IT_EVENTS          = LT_EVENTS[]
           TABLES
                T_OUTTAB           = t_output
           EXCEPTIONS
                PROGRAM_ERROR      = 1
                OTHERS             = 2.
      IF SY-SUBRC NE 0.
        WRITE: / 'Return Code : ', SY-SUBRC,
          'from FUNCTION REUSE_ALV_GRID_DISPLAY'.
      ENDIF.
    endform.
    *&      Form  alv_define_field_cat
          text
         -->P_LT_FIELD_CAT  text
    FORM ALV_DEFINE_FIELD_CAT USING  TB_FCAT TYPE SLIS_T_FIELDCAT_ALV.
      DATA: WA_FIELDCAT LIKE LINE OF TB_FCAT,
        LV_COL_POS TYPE I.
      DEFINE FIELD_CAT.
        CLEAR WA_FIELDCAT.
        ADD 1 TO LV_COL_POS.
        WA_FIELDCAT-FIELDNAME = &1.
        WA_FIELDCAT-REF_TABNAME = &2.
        WA_FIELDCAT-COL_POS = LV_COL_POS.
        WA_FIELDCAT-KEY = &3.
        WA_FIELDCAT-NO_OUT = &4.
        WA_FIELDCAT-REF_FIELDNAME = &5.
        WA_FIELDCAT-DDICTXT = 'M'.
        IF NOT &6 IS INITIAL.
          WA_FIELDCAT-SELTEXT_L = &6.
          WA_FIELDCAT-SELTEXT_M = &6.
          WA_FIELDCAT-SELTEXT_S = &6.
        ENDIF.
        WA_FIELDCAT-DO_SUM = &7.
        WA_FIELDCAT-OUTPUTLEN = &8.
        APPEND WA_FIELDCAT TO TB_FCAT.
      END-OF-DEFINITION.
      FIELD_CAT  'BUKRS'  'ANLA'     'X' '' 'BUKRS' 'Company Code' '' ''.
      FIELD_CAT  'ANLN1'  'ANLA'     'X' '' 'ANLN1' 'Asset Number' '' ''.
      FIELD_CAT  'ANLN2'  'ANLA'     'X' '' 'ANLN2' 'Asset Sub Number' '' ''.
    FIELD_CAT  'ATEXT'   'T5EAE'     'X' '' 'ATEXT' 'Result' '' ''.
      FIELD_CAT  'RESULT'  ''     'X' '' 'RESULT' 'RESULT' '' ''.
    ENDFORM.                    " alv_define_field_cat

    Hi,
    Check this code..
    FORM display_report_alv.
      DATA: lt_field_cat TYPE slis_t_fieldcat_alv,
      lt_events TYPE slis_t_event,
      lv_repid LIKE sy-repid.
      PERFORM alv_define_field_cat USING lt_field_cat.
      PERFORM alv_header_build USING t_list_top_of_page[].
      PERFORM alv_eventtab_build USING lt_events[].
      lv_repid = sy-repid.
      IF sy-batch EQ 'X'.  ----> " System Field for Backgroud..if Background use list display
        CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
          EXPORTING
            i_callback_program = lv_repid
            it_fieldcat        = lt_field_cat
            i_save             = 'A'
            it_events          = lt_events[]
          TABLES
            t_outtab           = t_output
          EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
      ELSE.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program = lv_repid
            it_fieldcat        = lt_field_cat
            i_save             = 'A'
            it_events          = lt_events[]
          TABLES
            t_outtab           = t_output
          EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
      ENDIF.
      IF sy-subrc NE 0.
        WRITE: / 'Return Code : ', sy-subrc,
        'from FUNCTION REUSE_ALV_GRID_DISPLAY'.
      ENDIF.
    ENDFORM.                    "display_report_ALV

  • Setting up archive delete functionalities using background job

    Hi,
    Through SARA transaction there we can set up a archive delete job by selecting the files, job timing details. Instead of this, we want to set up this functionality using a background job as per the variant and timing requirements.
    Is there any option to set up a background job of archive delete functionality by selecting the files through a program or function moduel. Please suggest me if anyone has done this in previous.
    Thanks,
    Siva

    Hello,
    Take a look at OSS note 205585 which describes how to schedule archive delete jobs indirectly using program RSARCHD.
    Hope this helps.
    Best Regards,
    Karin Tillotson

  • How to use a nice format for email [From]

    hi there,
    Does anyone know how to use a nice format for email? Currently my Auto-System sends an email to the client with the account name ([email protected]) and I want to change it to a nice format such as 'Auto-Response'
    anyone?
    Ppr

    anyone?

  • HT5622 how do I go back and set up for emails to come to my ipod

    How do I go back and set up for emails to come to my ipod?

    Hello, if I'm understanding you, tap on the mail icon, enter the account address and password. Good luck, Cheers.

  • Setting layout to a report in background job

    Hi.
    Does anybody knows how I set layouts dynamically to a report output, given that such report is scheduled to run once a day in a background job?
    It would work for me, either: through SM36 or coding JOB_OPEN / JOB_SUBMIT / JOB_CLOSE (or any other option, if available).
    My requirement is to execute every night few reports, each with their corresponding variants and layouts.
    Something like:
    RUN <report1> VARIANT <variant1> LAYOUT <layout1> JOB <job>. (it would output and xls file).
    RUN <report2> VARIANT <variant2> LAYOUT <layout1> JOB <job>. (it would output another xls file).
    RUN <report3> VARIANT <variant3> LAYOUT <layout2> JOB <job>. (it would output a 3rd xls file).
    How should I do to inform variant and layout parameters?
    Thank you.
    Rafael.

    I think I didn't make myself clear in my explanation. Sorry about that.
    My question is, I can create a new field in selection-screen specifically to layout and it would work. However, as I'm running it in background, the ALV will not be shown and the output file must be the export of the ALV with the layout (if in XLS, it'd be even better, but in .CSV would work as well). I just don't think it would work with a .TXT output, because there's no way to reflect the layout in a .TXT file.
    Is there any way of having the ALV inside the output file (saved in the server, in background processing)?
    Thank you so much!
    Edited by: rvsilvax on Nov 30, 2011 3:45 PM

  • Spool incomplete through background job

    Hi All,
    A spool is being created through a background job which is displaying strangely.
    CONCATENATE text-t01 co_constant v_variable text-t02 INTO v_output.
    CONCATENATE text-t03 text-t04 INTO v_output2.
    WRITE: / v_output1,
                / v_output2.
    In integration system, everything is comign fine. But in production system, only v_variable in v_output is being displayed. None of the text elements are being displayed. We checked the text elements translation and all. Everything is perfect.
    Can anybody suggest on this?
    Thanks!!!

    Hi Srinivas,
    Please check those text elements has transported to the Production server or not
    or else double click on the text element to check that text elements are currently in the production server.
    If not then transport those text elements again and make sure that they are in Production system.
    Regards,
    Md Ziauddin.

  • Re: Different format for email PO

    We are currently sending PO as PDF to vendors.
    Some vendors are requesting that we send the data in text format to them.
    we are sending PO thru INT (communication type).
    However, it is linked to PDF format for internet under "Supported Address type".
    Do i use back the same node to send and yet under different format?
    OR do i need to configure another node under SCOT?

    Hi colin,
    You have to config in 'scot'
    Basic settins required to config
    1. You must maintain an e-mail address in the address in the vendor master.
    2. The same applies to your own user master. You also have to specify an e-mail address there in order to identify the sender.
    • Note that it is not possible to change the e-mail address of the vendor via the SAP purchase order transaction (ME21N, ME22N, and so on).
    • The system only uses the e-mail address of the vendor that is maintained in the vendor master!
    3. For the output type for default values, a communication strategy needs to be maintained in the Customizing that supports the e-mail. You can find the definition of the communication strategy in the Customizing via the following path: (SPRO -> IMG -> SAP Web Application Server -> Basic Services -> Message Control -> Define Communication Strategy). As a default, communication strategy CS01 is delivered. This already contains the necessary entry for the external communication. Bear in mind that without a suitable communication strategy it is not possible to communicate with a partner via Medium 5 (external sending).
    4. Use the standard SAP environment (program 'SAPFM06P', FORM routine 'ENTRY_NEU' and form 'MEDRUCK') as the processing routines.
    5. In the condition records for the output type NEU (for example, Transaction MN04), use medium '5' (External send). Then in Transaction M/34 for the output type NEU add the medium '5' (External send) in Partner functions & Processing routines.
    6.Then Create a PO…Go to Messages>select the output type & medium '5' (External send). Then communication method > Comm Strategy “CS01”. Remoce Print immediately if it is ticked.
    7. Then go back ,Select message>Further data>Dispatch time>Select 'Send immediately (when saving application)'
    Back and save PO.
    8. Check SCOT. PO will be in the waiting list. If u want to see the detailed list of waiting items then go to transaction SOST. Specify the Send date, select the check box Waiting & execute.
    In t.code SCOT you can set the format conversions by using menu path SETTINGS --> CONVERSIONS and specifying that your sapscript out put (I think SCR) should convert to PDF and then put in the appropriate Function module (try SX_OBJECT_CONVERT_SCR_PDF).
    You also have to allow PDF in the EXCHG node setup
    If you want further details Please check the SAP note 191470.
    regards,
    Hareesha

  • SMTP Server set up for emailing

    Can anyone advise which BO documents sets out the procedure for setting up the job server for emailing, etc? The Admin and deployment guides talk about it, but don't specify how it's done.
    Thanks.

    CMC > servers > job server > destinations
    enable SMTP and configure the default options from there. Some information may be required from your email admin.
    Then schedule a report (that uses that job server) and select email as a destination. You will have the ability to select a specific address or use the default (configured on the job server in the 1st step). The accounts used will have to have access to send to the email SMTP server.
    Regards,
    Tim

  • Lightroom 2 How do I set up for emails ?

    I have Lightroom 2 but I cannot set it up to send my pictures as an email. HELP PLEASE

    Do you have a separate modem and Trendnet router now, or is the Trendnet a gateway....combination modem/router in one box?  If you add another AirPort at this location, it will need to connect to a modem, or it could connect to your Trendnet router and you could turn off the wireless on the Trendnet
    If you go wireless all the way, what is the approximate distance between the "main" router and the "remote" AirPort?  How many walls will be in the signal path?  How are these walls constructed?
    In general....I have found that power line works better than wireless....unless you have a very good wireless connection. If you take your computer to the remote area where the extender will be located, and you can get a good, solid wireless signal, you are probably OK.  The Express can only "extend" the quality of signal that it receives.
    But will the wireless setup for video streaming (which is my main goal) be reliable?
    Questions like this cannot be answered because it is just not possible to predict wireless performance and results in advance of any installation.  The products might be great....but other wireless networks around you or cordless phones cause interference problems.
    In this regard, If I only had one chance at a network, I would go with wired connections over wireless.
    If you go with the 2 AirPort Express plan, I would suggest that you still have a "Plan B" if wireless does not deliver the performance you want. Personally, I would never try to stream video, especially high definition, over wireless here at the house, but it can work if everthing else falls into place....and the planets are in the right alignment.

  • Custom file name format for EMAIL Attachment

    Hi,
    We are seding attachment to Supplier by using Email Transport protocol over Custom Document Generic Exchange.
    It delivers mail successfully with an attachment as EMAIL 1.0. but we want to customize the filename( ex: c111.txt) . how can we change the attachement filename ? and coud u tell us what are the properties are required(tip.properties) for email tranport.
    Regards,
    Jawah

    Hi,
    Have you checked -
    http://www.oracle.com/technology/products/integration/b2b/pdf/B2B_TN_009_Transport_SMTP.pdf
    http://www.oracle.com/technology/products/integration/b2b/pdf/B2B_TN_021_TIP_Properties.pdf
    Also refer -
    override default send from email id and attachment name in email delivery
    I am not very sure whether name of attachment can be customized. I think anybody from Oracle IDC team can confirm the same.
    Regards,
    Anuj
    Edited by: Anuj Dwivedi, Infosys on Oct 13, 2009 2:09 PM

  • How to set format for a column in repository

    Hi all,
    i have some columns for which i would like to set a default format of the data directly into the repository.
    For example, a numeric code is shown as 1.234,00, i want the BM to show by default 1234.
    Or a date shown as 03/03/2013 04:00:00 AM i want it to be shown by default as 2013-03-03.
    Is it possible to make these settings into repository?
    Thanks in advance

    NQsconfig check for
    DATE_TIME_DISPLAY_FORMA
    In Answers you may go for
    Column properties->Data format->
    and then Save button to save that format in webcat side.
    If helps mark :)

  • When importing a CD to iTunes which will then be downloaded onto a ipod, which is the best setting format for sound quality?Im unsure if once i save setting for CD import, do i then have to change settings to sync with my ipod?

    When importing a CD to iTunes  which will then be downloaded onto a ipod, which is the best setting for audio quality?  Also once CD is downloaded do i need to change the setting to sync with my ipod?

    gobbybird40 wrote:
    Also once CD is downloaded do i need to change the setting to sync with my ipod?
    I'm not sure what settings you are referring to. If you mean the import CD settings, there would be no point in changing them after importing the CD, would there?
    As for the best setting for audio quality, it's down to your preference. Many people will not hear the difference bewteen one setting and another. The best thing to do is import the same song several times using different import setttings (and change the song title so you know which one is which) and then listen to them on your iPod. Then decide.
    Unless you have specific reasons for using the WAV setting, don't use it. It will use up a lot of space on your iPod and you cannot tag WAV files in the same way as the other formats.

  • Setting default for Email Reply text colour

    Hello, Can anyone tell me how to change the default colour for my signature and email replies from BLUE to BLACK?Currently, I only see the option to 'format' each individual email reply.  I don't know why the default colour for the text and the signature is BLUE but I would really like to change it to BLACK.  Any help would be appreciated. Thanks,interloper1969

    Don't know how I overlooked this before but the following is the expected result
    Composing a new email, black text
    Reply or forward to a email, blue text
    These cannot be changed so I'll share your feedback internally for future consideration
    Thanks!
    Ty

Maybe you are looking for

  • Auto Creation of Delivery with PGI and Billing after creation of Sale Order

    Dear Experts, I am having one Req. like...After creation of sales order ..automatic Delivery and Billing should be done. Right now i m able to create automatic Delivery but PGI is not happening for that delivery. Is there any configuration I have to

  • Building coherence rpm fails because of Unix flat file permission.

    Hi - New to coherence but have large implementation ahead. Trying to rpm it. Refer bug - https://bugzilla.redhat.com/show_bug.cgi?id=250295. lot of files in coherence.jar have flat unix file permission which makes building rpm fail. Solution is to un

  • ESS portal request approval thru blackberry

    Hi, I have a requirement of sending a request for approval on Blackberry as soon as a requisition is raised from ESS. The requisitions are Z-development and connected to a workflow which triggers once the requisition is raised. I want a approval requ

  • MacBook won't boot into OS X (Lion)

    I installed Lion about a week after its release, and didn't have any problems with it until a few days ago. I can boot into my Windows partition and "Recovery HD" partition no problem. From Recovery HD, I've run a disk utility check (which yielded an

  • 1310 Wireless Repeater

    Hello Team, I have a partner and they have questions about the 1310: Here's their scenario: I'd like to be able to provide wireless bridge capabilites using the 1310 to connect a remote area to the main campus via wireless. I would also like to provi