Generating same SApScript output to different output methods

Hi All,
Can someone tell me whether it's possible to generate different out methods using the same SAPScript output. if so how to do it ??
i.e : e-mail & printer or fax & printer.
thanks in advance
Dhanushka.

Hi,
Is there a BAPI to send the spool request as an e-mail or fax.
About the sequence of events:
Generating of the spool request is done using the open_form right. Once the form is closed get the spool id and send it by e-mail or fax ???.
is this correct
thanks & regards
Dhanushka.

Similar Messages

  • Problem with same Container for 2 different outputs

    Hi,
    I am using method set_table_for_first_display to display 2 different output with same container depending upon the selection of radio button. but the problem I am facing is when I click BACK button after dispaying second output and executing first output, it is showing prebious output only. is there any method to handle this problem?
    Regards,
    Nilanjana

    Hi,
    On clicking back use leave to screen 0 in the PAI module of the screen.
    Call screen 100.
    PROCESS BEFORE OUTPUT.
    Logic
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND.
    MODULE USER_COMMAND INPUT.
    IF sy-ucomm EQ 'User command defined for BACK button'.
    LEAVE TO SCREEN 0. "Go back to selection screen
    ENDIF.
    END MODULE.
    Have a look at the method FREE of class cl_gui_alv_grid.
    eg:
    CALL METHOD wcl_alvgrid1->free
      EXCEPTIONS
        cntl_error        = 1
        cntl_system_error = 2
        OTHERS            = 3.
    Thanks,
    Vinod.

  • Invoice Split for same customer but for different output types

    Hi Gurus,
    I have a requirement from the customers. A new output type has to be created with reference to the old type and for this output type a new driver program and SAP script was created with reference to the old one.They wants  invoice split to be happened based on item level PO number. That was done successfully.
    This invoice split logic  was written in the billing routine  RV60C901(Customized).
    But now they came back with a issue that the invoice split  should be done  only if they use the new output  type but not for the old one. That means for the same customer for one output type invoice split should be done based on item level po number and for one output type it should not. How can this be controlled for a particular
    output type?
    This output types will not be used in the billing routine as the split happens at the sales order level. Is there any configuration that allows split for a particular output type.
    Please suggest me how to proceed???

    Hi,
    In the invoice split routine check if it is possible to find the output type making use of field symbols.
    Just check in debug if the variable for output type is available as follows:-
    (Program Name)variable name.
    Regads,
    Ankur Parab

  • Mirror the same audio over two different outputs

    Hi,
    I've got a MacMini (late 2009, running Lion) set up in my living room and connected to my HDTV. The audio goes to my amp via the built in digitial audio out and toslink cable.
    I recently added a second TV in my bedroom and connected it via the mini display port and a HDMI cable. Unfortunately this version of Mini does not support audio over mini display port so i bought a separate USB audio card. This is connected via a Jack plug to my audio in on my bedoom TV (no amp here, non-digital stereo audio).
    I would like to be able to have video and audio in both rooms at the same time. Video is working very well, but the audio does'nt come along. I can only set the audio to one output. I tried to make an Aggregate device, but still the audio sounds over one output. I tried this with both stereo audio (music) and with 5.1 audio.
    Offcourse I googled and found that an aggregate device is used for creating multiple channels for audio, not for mirroring.
    What i'm looking for, is some kind of setting or software(i hope) that can mirror my audio to both outputs, and if nessecary, format into the right source (5.1 for the toslink and 2.0 for the USB device). Ofcourse, everything needs to be in sync with video and eachother.
    Is there such a thing?
    Thanks for any help offered.

    1) Don't know why this is happening. It may have something to do with
    I downloaded from iCloud the same library I was working with
    I'm not clear what procedure you're using here. Using a cloud for storage might change some file tags. Generally users I think keep the library on the same drive as the media, keeping the library backups on the system. There is no real benefit in keeping the media in a separate location. Often users will keep the library in the same folder as the media. It makes backing up using tools like Carbon Copy Cloner very efficient.
    1a) This can be difficult to find as there sometimes is no obvious indicator. It might be a missing element in a compound clip, a missing or altered layer in a graphics file, a missing font, a missing effect. These will show up inside the item involved, but may not be apparent in the browser. A missing transition for instance will not be seen until you skim over the project or try to export it.
    2) The 43 MB is a small amount of optimized media. This never prevents relinking. The library is always looking for original media, or proxy media if you're in proxy playback. It never looks for optimized media. If it has it, it uses it, if it doesn't, it uses the original media. If you are using original/optimized playback, you must have the original files. The optimized files are not enough.

  • Priting same SAPscript form on different printer: different results

    Hi,
    my client has different printer models and is claiming now that the forms appear different.
    Do I have to create a SAPscript form for each printer type?
    Is there a way to use the same form for all printer models?
    Would we have the same problem using SMARTFORM?
    Thanks for your help in advance!!!
    thomas

    Hi.
    You should not have one SAPscript for each printer type. Thats not really a good idea. I would first of all try to do some tests with different device types on your output devices.
    I don't think converting to SMARTFORM is the way to go if you don't feel like you have to. It is much easier to experiment with the device types.
    BR
    Niklas

  • Different output observed in IE8 and IE11 for same HTML file

    when I open the below html code in ie8 and ie11 the output is different.
    <div style=" color: EAE6F1; " id="Screen147">
    <img style=" width: 1280; height: 1020; " id="item1" src="Desert.jpg" border="0"/>
    <div style=" background-color: FFFFFF; color: 000000; font-family: 'Arial'; font-size: 31px; layout-grid: both fixed 51px 32px; white-space: nowrap; " id="item2">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </div>
    <div style=" background-color: FFFFFF; color: 000000; font-family: 'Arial'; font-size: 31px; layout-grid: both fixed 51px 32px; white-space: nowrap; " id="item3">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </div>
    <div style=" background-color: FFFFFF; color: 000000; font-family: 'Arial'; font-size: 31px; layout-grid: both fixed 51px 32px; white-space: nowrap; " id="item4">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </div>
    I want to display a white block in the image. but when run in IE8 the white block appears bigger as compared to when displayed in IE11. 
    I wanted to know why is this behaviour and if the code is same then the output should also be the same. can anyone help me to understand this behaviour?
    thank you very much in advance for your replies.

    Hi yashajmera,
    Same script gets different results ,just as Greg said this may be related to the different rendering pages methods between different Internet Explorer versions.
    Here is a link for reference :
    Specifying legacy document modes
    https://msdn.microsoft.com/en-us/library/jj676915(v=vs.85).aspx
    We also can try to choose different view mode by F12 tool to have a check .
    To get more detailed information ,it is recommended to look for help from our MSDN forum for help.
     https://social.msdn.microsoft.com/Forums/ie/en-US/home?forum=iewebdevelopment
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin

    Hi ,
    We have a catalog that defines 2 types of products (they have too many different properties), so wanted to keep them on two different MDEX engines and serve the applications requests. Here DB catalog and front end ATG application is same for both the MDEX instances.
    Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin?
    Thanks
    Dev

    Hi, also have had some problem some monthes ago - I created separete component ProductCatalogSimpleIndexingAdminSecond. After that one of my colleage gave me some advice:
    The creating separate component like ProductCatalogSimpleIndexingAdmin for the second IOC is possible way for resolving your situation. But I afraid that this way will be required creating mane duplicates for already existed components.
    In my opinion the better way is the following:
    starting from AssemblerApplicationConfiguration and ApplicationConfiguration component. It contains details for connecting between ATG and Endeca. Of course you should configure different components for different Endeca Apps.
    After that:
    Find all components that uses AssemblerApplicationConfiguration and ApplicationConfiguration. Customize these components for using one or another  *Configuration component depending on what index works. (many variants released it: the most simple global custom component with flag.)
    Then customize the existed ProductCatalogSimpleIndexingAdmin. Using one or another IOC  and setting the flag in global custom component when index started. You can add some methods into your custom ProductCatalogSimpleIndexingAdmin like:
    Execute baseline index for both IOC (one by one)
    Execute baseline for IOC 1
    Execute baseline for IOC 2.
    Note: you should be afraid about incremental (partial) index in this configuration. But resolving conflicts in incremental index should be done after full implementation these changes.
    Regards

  • Same report, 2 identical servers, 2 different outputs???

    We have a report that is produced correctly on our Staging server, but when we promote the same report to our Production server (which is a mirror of our Staging server), we get different output. The machines are identical in every respect except for the name. The same queues, fonts, and version of Crystal Report (10.2.3600.0) is installed on both. I wish I could upload the 2 versions of the pdfs that are outputted for you to see the differences, but there doesn't seem to be a way to do that here. Any ideas of what could be causing the discrepancies?

    Hi Amanda,
    Can I back track a bit here?  I would like a bit more clarification on how this is being tested.  From what I understand:
    1)  You have the same application running on 2 different servers which are mirrors of each other. 
    2)  The report is exported to PDF directly, not previewed or printed first. 
    3)  The PDF is opened locally on the client machine. 
    A couple of questions I have: 
    1)  Is the client machine viewing the PDFs from both servers or are these 2 different clients as well?  If the clients are different, then can you try opening the PDF from the second server onto your original client and see if they formatting is the same?  I say this because I want to make sure the Acrobat reader is the same version on both machines and to eliminate the possibility that the PDF is fine but the reader may be the culprit. 
    2)  You've removed the printer in the report I see.  On the client machine, is there default printer installed and is it something other than the Generic Text Driver? 
    3)  Same question as above but on the second server?  A printer is important to Crystal even if you are not printing.  Many years ago if a printer was not installed, the print engine would crash the report when you tried to run it.  That's when the No Printer option was added but that's a different story.  I just needed to stress the importance of having a printer installed. 
    Thanks,
    Brian

  • Can we get a output in different languages for the same configuration

    Hi All,
    Can we get a output in different languages for the same configuration done in NACE. or it is language specific.
    They have symbols which have values both in german and english. But when we run the transaction we are getting the output only in german language.We want the out put in english
    language.
    Thanks in Advance.
    Rajesh

    A Smartform can be maintained in many languages other than the language that it is created. Translations for the texts have to be maintained for this purpose.
    To maintain the translations:
    Go to transaction SE63 in R/3.
    Go to menu Translation->R/3 Enterprise->Other Long Texts
    Select the object type in the pop up. Smartform(SSF) object type is found under Forms and Styles(FS).
    Enter the name of the Smart form and choose the source and target language. This would open a screen with the Smartform code in Source language on the top and an editor with the same code in the bottom.
    Find the text for which you need to maintain the translation and insert the translation in that place. As usual after required texts are maintained Save and Activate.
    To see the translated Smartform create an output type and assign the smartform and the driver program to this output type. In the transaction that sends output to this smartform, select the output type and select the language in which the smartform has to be displayed (translations have to be maintained in this lanuage).This will give the smartform in the required language.
    Madhavi

  • Acrobat DC and XI different Output preview; same setting on the same machine

    Hello,
    I've got an question regarding Output preview
    My sample PDF does have different output preview values on Acrobat DC (100% Black) and Acrobat XI (CMYK values)
    Both use the same setting (Euroscale Coated v2), doc has no PDF/X output intent
    Still..... it's strange that on one Mac the PDF does look different....
    What's going wrong?
    Kind regards

    Numerous fixes went into color display on MacOS for Acrobat DC as well as in Output Preview in general. That having been said, I don't recall any changes that would have resulted in the phenomena you are seeing.
    I assume you were clicking on the “black” circle to get you sample color values? And what do you believe should be the correct values? CMYK=(0,0,0,1) or CMYK=(0.8,0.64,0.67,0.75)?
    If you can post a copy of this file, we can examine it to see what is going on.
                  - Dov

  • Java-puzzlers...Why 2 different outputs for the same line

    Here, why it is giving 2 different outputs for the same set of lines
    Line-1 and Line-2 are both same.But giving 2 different results ???
    /*java-puzzlers*/
    public class Elementary {
        public static void main(String[] args) {
             System.out.println(12345 + 5432l);  /*Line-1: Original statement- didn't modify*/
          System.out.println(12345 + 54321);  /*Line-2: I wrote - I delete 12345 + 54321 and wrote the same thing again*/
    }

    kjshikal wrote:
    one of them is a longkjshikal,
    For the third and final time. Please stop resurrecting old threads like this.
    Thank you for your co-operation.

  • Can we have different output types for same document?

    Hi,
    Can we have different output types for same doucument.if yes plz describe the steps to perform it
    Thanks

    Hi,
    Generally you can use same out put type for the different document types of PO. You can create different out put types for the same PO, in case you need different layouts that is different forms like MEDRUCK. Please refer below link to create out types . If you want that PO as fax or e-mail can use same out put type .Thanking you.
    http://www.sap-img.com/materials/purchasing-tips.htm

  • Can PO output in different printer at the same time ?

    Hi,Expert
    Can PO output in different printer(one is local ,another is printed in SH office) at the same time when created ? and how to config the output type ?
    please kindly advise . .

    It is not possible to print on two printers at a time.

  • Smartform Different output formats in same language

    Hello
    I have a Bulgarian smartform which is translated via SE63 into English.We have a customizing table and according to some fields from there,the customer wants to have the english smartform to have slightly different outputs, no big differences,but for ex some bigger/smaller characters or some fields that should not be displayed.
    How can i do this,because the only way to control this is via se63 that has no such option?
    Thank you

    Look at SE63 translation screen, some constants texts are represented like <F1>пример</ > where <F1> is the character format, so translate it to <F2>example</ > and the text will be printed with another character format.
    But it may be easier to check the language code in the Smartforms itself, especially for text that are not to be printed, (if you don't wont to translate text to initial value) or for full variable text (text item without any constant) that don't appear in the translation screen.
    Regards,
    Raymond

  • Three different output tables

    Hi Experts,
    what has to be done if you have three different output tables which you would like
    display by the ALV.  How can you change between those three  tables .
    If possible I wold like to use the same alv reference.
    data ref_alv TYPE REF TO cl_gui_alv_grid.
    If this is not possible
    please tell me the other way ?
    Regards
    sas

    hi,
    maybe it helps to understand me better!
    <outtab2>
    <outtab3>
    might be also dislayed as like as  <outtab>
    PROCESS BEFORE OUTPUT.
      MODULE alvgrid_out.
    PROCESS AFTER INPUT.
      MODULE user_command_0600.
    MODULE alvgrid_out OUTPUT.
      PERFORM init.
    ENDMODULE.                 " ALVGRID_OUT  OUTPUT
    FORM init.
      IF NOT r_nsize IS INITIAL AND NOT r_normes IS INITIAL AND gv_flag IS INITIAL.
        PERFORM alv_size.
        gv_flag = 'X'.
      ENDIF.
      IF NOT r_slim IS INITIAL AND NOT r_slimes IS INITIAL AND gv_flag IS INITIAL.
        PERFORM alv_slimsize.
        gv_flag = 'X'.
      ENDIF.
      IF NOT r_stocky IS INITIAL AND NOT r_stomes IS INITIAL AND gv_flag IS INITIAL.
        PERFORM alv_stockysize.
        gv_flag = 'X'.
      ENDIF.
      IF NOT r_nsize IS INITIAL AND NOT r_normes IS INITIAL AND gv_paiflag EQ 'NO'.
        PERFORM alv_size.
      ENDIF.
      IF NOT r_slim IS INITIAL AND NOT r_slimes IS INITIAL AND    gv_paiflag EQ 'SL'.
        PERFORM alv_slimsize.
      ENDIF.
      IF NOT r_stocky IS INITIAL AND NOT r_stomes IS INITIAL AND   gv_paiflag EQ 'ST'.
        PERFORM alv_stockysize.
      ENDIF.
    ENDFORM.                    "init
    MODULE user_command_0600 INPUT.
      IF NOT r_nsize IS INITIAL AND NOT r_normes IS INITIAL AND sy-ucomm EQ 'NO'.
        gv_paiflag = 'NO'.
      ENDIF.
      IF NOT r_slim IS INITIAL AND NOT r_slimes IS INITIAL AND sy-ucomm EQ 'SL'.
        gv_paiflag = 'SL'.
      ENDIF.
      IF NOT r_stocky IS INITIAL AND NOT r_stomes IS INITIAL AND sy-ucomm EQ 'ST'.
        gv_paiflag = 'ST'.
      ENDIF.
      FREE: ref_alv, ref_container.
    ENDMODULE.                 " USER_COMMAND_0600  INPUT
    FORM alv_size .
      CHECK ref_alv IS INITIAL.
      CREATE OBJECT ref_container
        EXPORTING
          container_name = 'ALV'.
      gv_layout-no_toolbar = 'X'.
      CLEAR: gs_fcat, gs_zpd.
      READ TABLE lt_sgroup INTO ls_sgr INDEX 1.
      gs_fcat-fieldname = 'ORG_SIGN'.
      gs_fcat-coltext = ''.
      gs_fcat-outputlen = 2.
      APPEND gs_fcat TO gt_fcat.
      CLEAR gs_fcat.
      gs_fcat-fieldname = 'DESCRIPTION'.
      gs_fcat-coltext =   ls_sgr-sizegroup_name.
      gs_fcat-outputlen = 30.
      APPEND gs_fcat TO gt_fcat.
      CLEAR gs_fcat.
      SORT r_nsize BY low.
      DELETE ADJACENT DUPLICATES FROM r_nsize.
      LOOP AT r_nsize.
        CONDENSE r_nsize-low NO-GAPS.
        gs_fcat-fieldname =  r_nsize-low.
        gs_fcat-coltext   =  r_nsize-low.
        gs_fcat-outputlen = 5.
        APPEND gs_fcat TO gt_fcat.
      ENDLOOP.
      CLEAR gs_fcat.
      LOOP AT gt_fcat INTO gs_fcat WHERE  fieldname NE refer.
        gs_fcat-edit = 'X'.
        MODIFY gt_fcat FROM gs_fcat TRANSPORTING edit.
      ENDLOOP.
      CLEAR gs_fcat.
      LOOP AT gt_fcat INTO gs_fcat WHERE  fieldname EQ 'DESCRIPTION'.
        gs_fcat-edit = ' '.
        MODIFY gt_fcat FROM gs_fcat TRANSPORTING edit.
      ENDLOOP.
      CLEAR gs_fcat.
      LOOP AT gt_fcat INTO gs_fcat WHERE  fieldname EQ 'ORG_SIGN'.
        gs_fcat-edit = ' '.
        MODIFY gt_fcat FROM gs_fcat TRANSPORTING edit.
      ENDLOOP.
      FIELD-SYMBOLS: <lt_ss> TYPE table,
      <test> TYPE ANY.
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = gt_fcat
        IMPORTING
          ep_table        = new_table.
      ASSIGN new_table->* TO <outtab>.
      CREATE DATA new_line LIKE LINE OF <outtab>.
      ASSIGN new_line->* TO <l_line> .
      SORT r_normes BY low.
      DELETE ADJACENT DUPLICATES FROM r_normes.
      LOOP AT r_normes.
        ASSIGN COMPONENT 2 OF STRUCTURE <l_line> TO <test>.
        <test> = r_normes-low.
        APPEND <l_line> TO <outtab>.
      ENDLOOP.
      CLEAR gs_cpmpon.
      REFRESH: gt_compon, gv_comp
      PERFORM read_comp
        TABLES gv_comp
         USING
            'zpd'
            <l_line>.
      CREATE OBJECT ref_alv
        EXPORTING
          i_parent      = ref_container
          i_appl_events = 'X'
        EXCEPTIONS
          OTHERS        = 5.
      CALL METHOD ref_alv->register_edit_event
        EXPORTING
          i_event_id = cl_gui_alv_grid=>mc_evt_enter.
      CREATE OBJECT ref_alv_events.
      SET HANDLER ref_alv_events->handle_data_changed FOR ref_alv.
    * <outtab2>
    * <outtab3>
    * might be also dislayed
      CALL METHOD ref_alv->set_table_for_first_display
        EXPORTING
          is_layout            = gv_layout
          it_toolbar_excluding = it_toolbar_excluding  " TYPE UI_FUNCTIONS
        CHANGING
          it_fieldcatalog      = gt_fcat
          it_outtab            = <outtab>
        EXCEPTIONS
          OTHERS               = 4.
      CALL METHOD cl_gui_cfw=>flush.
    ENDFORM.                    " ALV_SIZE

Maybe you are looking for