Script not printing throught Output type

Dear Experts,
I have developed a script which is working fine if execute directly.
I have configured an output type for the transaction ME9E with application EA, when execute this through transaction with output type it is not working. Please let me know what would  be the problem with this.
Thanks in Adevance...
Rahul
Edited by: rahulsachin on Oct 4, 2010 4:20 AM

Hi,
Please check the program name and routine name you configured in NACE with the one you have used actually to keep
break point in your report and see whether it stops.
Regards,
Pawan

Similar Messages

  • Variable in script not printing

    Hi guys,
    I have form and driver program. while debugging in the driver program I can see the values of the fields, but in the script debugger I can not. Please have a look at my coding. Please correct me if I was wrong.
    SELECT SINGLE ktext
        FROM crtx
        INTO gv_ktext
        WHERE objid EQ iviqmel-arbpl. " value is there for GV_KTEXT which is global
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          device                      = 'PRINTER'
          form                        = 'ZPMF_PMOR'
          dialog                      = space
          language                    = 'E'
          OPTIONS                     = gs_itcpo. " ....
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          element = 'HEADER'
          window  = 'MAIN'.   " But not appearing in output
      " Closing forms and other coding here
      /E HEADER
      P1 Category: &GV_KTEXT& " In script, I am printing like this

    Hi Anil,
    Appreciate your reply.
    Here, I declared the variable globally in the print program and I am using only one client for development and testing.
    Here is my declaration part.
    DATA: gs_itcpo TYPE itcpo,
          gv_qmartx TYPE tq80_t-qmartx,
          gv_ktext  TYPE crtx-ktext.

  • SAPSCRIPT Print Preview / Output Type Options?

    When in a PO, ME23N, I do a Print Preview. For one of our businesses it displays two output types for selection, ZSBL and ZSTK, for another business (consolidated in the same test system) it just displays output without any selection options. Where is the config to point to output type options I checked NACE and TNAPR and they look right....Thanks.

    Hi,
    I am not clear with your question..
    You mean to say for second part you don't expect any output type..
    Anyways check the transaction NACR for condition records for the output type
    THanks
    Naren

  • How make "Scanner" not printing the output in a new line?

    Hi!
    I'm Jordi from Barcelona and I'm new on Java and on this Forum. I have a question to you. I'm developing a testing application that uses the "Scanner".
    Before using it, the app asks a question to the user:
    String strInput;
    Scanner sc = new Scanner(System.in);
    System.out.print("* Please, write your name: ");
    strInput = sc.next();Running this, the app asks me for the options and after pressing "Enter" prints the input string in a new line like this:
    * Please, write your name:
    Jordi
    And I would to get the next:
    * Please, write your name: Jordi
    Does anybody know how to make the "Scanner" print the output in the same line as the question?
    Thanks for your help!
    Jordi

    Running the code,
    import java.util.Scanner;
    public class Test {
        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            System.out.print("* Please, write your name: ");
            System.out.println("* Hi, "+sc.next());
    }results in the following output:
    * Please, write your name: Bart
    * Hi, BartWhere the first "Bart" is the input I gave.
    If this is not the case, then it has something to do with your IDE or perhaps you didn't recompile and it previously was
    System.out.println("* Please, write your name: "); // println instead of printbut it's all guesses.
    Good luck.

  • Delivery Note By Email -Output type LD00

    Hi All,
    We have a requirement to send delivery note by email.
    At the moment we are using output type LD00.
    I've created a similar output type  with a transmission medium '5'.
    But it is not triggering any email.Can you pelase advice what do I need to do in order to trigger an email.
    Thanks
    Venkat

    Hi Santhosh,
    I've checked in NACE transaction ,Partner function SH is already assigned to it.
    Can you pelase give me the steps to create a new output type in NACE.
    Here is how I've created:
    1.NACE->V2 Shipping->Output types->New Entries->ZLDM(New output type)
    In processing routines:
    Transm.Medium: 5
    Program           ZVADDN00
    FORM routine      ENTRY
    Form              ZRVDELNOTE00
    Partner Functions:
    External send     SH     Ship-to party
    Then I went to Procedures:
    I've added my new output type here.
    Do I need to do anything else?Please let me know.
    Thanks
    venkat

  • Find the SAP Script name for the Output type RD00 and Appli V3

    Hi Gurus,
    My requirement was to copy the Std SAP Script for the output type RD00 and application name V3 and to do some modification.
    Please any one suggest me how to find the Std SAP script based on the above Output type and Appl ?
    Regards
    paul

    Hi,
    The script Name is LB_BIL_INVOICE
    You can find byNACE>V3>Output Types>RD00-->Processing Routines
    In thje output type Press Change button and select New entries.
    Regards
    Sandipan
    Edited by: Sandipan Ghosh on Mar 31, 2008 12:06 PM

  • SAP Script not printing as viewed in preview

    Hi Experts,
    I have a SAP Script which is driven via RFFOUS_C Program.The script is using custom page format which is created via SPAD.
    I have a wierd issue like i can see all my data in preview but when i print all the lines are not printing as viewed in preview.Its printing from top of the page till 70% and the bottom portions are not getting printed.
    How can I solve this?
    Thanks,
    Siva

    Hi Siva
    Please check the page format as well as printer on which are printing settings in SPAD..Do we have any custom space before and after defined...? You can also try by testing it with existing format and different printers to find the issue whether it is at script/page/printer level
    Nabheet

  • Print quantity output type in NACE

    Hi all,
    we have created a new output type in NACE for the shipping notification (application V2).
    Where can I configure the standard print quantity when using the output type?
    We want to print out the document twice every time it is triggered.
    Thanks
    Anne

    Hi Anne,
    Whenever we trigger a smartform, we normally get a pop-up window where we mention various printing options (no. of copies, device name etc...) But these options can be programmed in our driver program as well and also we can suppress this pop-up window. These printing options are part of a structure which you can find using F1 help on the pop-up window.
    Now coming to your query, you can provide the number of copies you want in your program by populating the appropriate field of the structure and also by suppressing the pop-up window. So, after that each time when we print your smartform you will get the desired number of copies.
    I hope it will help you to solve your issue.
    Regards,
    Sambaran Ray.

  • Graphics-heavy pdfs will not printer to any type of printer.

    They send back an error message as displayed below or they do not prints. This happens in both Mavericks and Yosemite, for both Preview and Adobe Reader, our organization's primary pdf Readers. It only seems to apply to the .pdf or similar formats, as when a screenshot is taken of the individual pages, those items are able to print.

    The current workaround is based on the notion that the printers are having trouble with pdfs, and not images
    "It only seems to apply to the .pdf or similar formats, as when a screenshot is taken of the individual pages, those items are able to print."
    Adobe Reader allows us to convert the pdf to print as an image format:
    Open your pdf in Adobe Reader
    File Print
    Click Advanced, next to the printer name
    In the Advanced Print Menu, check the box to Print as Image
    Click Ok and then Print, the Document should print at this point

  • Tags not printed when outputting XML after XSLT transformation

    Hi!
    I want my to perform an XSLT transformation on requests to my web service.
    This is the style of a typical request:
    <app:aRequest xmlns:app="http://myNamespace">
      <app:firstTag>value1</app:firstTag>
      <app:secondTag>value2</app:secondTag>
      <app:thirdTag>value3</app:thirdTag>
    </app:aRequest>I want to transform it into something like this:
    <app:aRequest xmlns:app="http://myNamespace">
      <app:firstTag>A hard coded, completely different value!</app:firstTag>
      <app:secondTag>value2</app:secondTag>
      <app:thirdTag>value3</app:thirdTag>
    </app:aRequest>To do that, I use the following XSLT:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:app="http://myNamespace">
    <xsl:template match="/">
    <app:aRequest>
      <app:firstTag>A hard coded, completely different value!</app:firstTag>
      <app:secondTag><xsl:value-of select="app:aRequest/app:secondTag" /></app:secondTag>
      <app:thirdTag><xsl:value-of select="app:aRequest/app:thirdTag" /></app:thirdTag>
    </app:aRequest>
    </xsl:template>
    </xsl:stylesheet>And I use the following code to execute the transformation:
    public Object unmarshal(Source source) throws XmlMappingException, IOException {
      TransformerFactory factory = TransformerFactory.newInstance();
        // Does this factory support SAX features?
        if(factory.getFeature(SAXSource.FEATURE)) {
          SAXTransformerFactory saxTransformerFactory = (SAXTransformerFactory)factory;
        // Read xslt file.
        InputStream inputStream = getClass().getResourceAsStream("/META-INF/xsltTransformation.xsl");
        if(inputStream == null) {
          throw new RuntimeException("No XSLT transformation file present at " + location);
        Templates xsltOutputTemplate = saxTransformerFactory.newTemplates(new StreamSource(inputStream));
        Transformer transformer = xsltTemplate.newTransformer();
        // Perform transformation.
        StringWriter stringWriter = new StringWriter();
        StreamResult result = new StreamResult(stringWriter);
        transformer.transform(source, result);
        // Print result.
        String xmlString = stringWriter.toString();
        System.out.println(xmlString);
        // Proceed with unmarshalling.
        StringReader stringReader = new StringReader(xmlString);
        StreamSource transformedSource = new StreamSource(stringReader);
        return oxMapper.getUnmarshaller().unmarshal(transformedSource);
    }However, the System.out.println(xmlString); produces the following result:
    <?xml version="1.0" encoding="UTF-8"?>
      value1
      value2
      value3The tags are not printed and the hard coded value is not present.
    What am I doing wrong? Please help!

    Following up on what the good Dr said,
    Are you sure that you are using the stylesheet that you think you are?
    I tried your stylesheet and input and got more or less what you wanted and not what you actually got.
    Note that I did not use your code.

  • How to use the output types e-mail in script?and other output types

    how to e -mail a script?and fax?

    hi,
    check the example
    Just try by using the below code may be it will helpful to you.
    REPORT Z_RMTIWARI_SEND_SPOOL_MAIL_ATT .
    PARAMETERS : P_SPOOL TYPE TSP01-RQIDENT OBLIGATORY .
    PARAMETERS : P_MAIL TYPE char100 OBLIGATORY .
    TYPES : TY_LINE type string.
    DATA: IT_ATTACHMENT TYPE soli OCCURS 0 WITH HEADER LINE.
    DATA: IT_ATTACHMENT_LONG TYPE TY_LINE OCCURS 0 WITH HEADER LINE.
    DATA: LV_PDF_SIZE type i.
    DATA: LT_PDF type standard table of tline with header line.
    PERFORM SEND_EMAIL USING P_SPOOL P_MAIL.
    FORM send_email
    --> X_SPOOL_ID
    --> X_EMAIL
    FORM send_email USING X_SPOOL_ID X_EMAIL.
    DATA: LT_OBJPACK LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE,
    LT_OBJHEAD LIKE solisti1 OCCURS 1 WITH HEADER LINE,
    LT_OBJBIN LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    LT_OBJTXT LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    LT_RECLIST LIKE somlreci1 OCCURS 5 WITH HEADER LINE,
    LV_DOCUMENT_DATA TYPE sodocchgi1.
    DATA: L_ATT_LINES TYPE i.
    DATA : LV_SPOOL_DESC(68) type c.
    CHECK NOT ( X_EMAIL IS INITIAL ).
    CLEAR: LT_RECLIST, LT_RECLIST[],
    LT_OBJHEAD, LT_OBJHEAD[],
    LT_OBJTXT, LT_OBJTXT[],
    LT_OBJBIN, LT_OBJBIN[],
    LT_OBJPACK, LT_OBJPACK[].
    CLEAR LV_DOCUMENT_DATA.
    Read spool and get the pdf internal table and name of spool
    PERFORM READ_SPOOL USING X_SPOOL_ID LV_SPOOL_DESC.
    CHECK NOT ( LT_PDF[] IS INITIAL ).
    Convert pdf itab to 255 line itab.
    data :LV_COUNTER type i.
    data :LV_FROM type i.
    loop at LT_PDF.
    translate LT_PDF using ' ~' .
    concatenate IT_ATTACHMENT_LONG LT_PDF into it_attachment_long.
    endloop.
    translate IT_ATTACHMENT_LONG using '~ ' .
    append IT_ATTACHMENT_LONG.
    clear : LV_COUNTER.
    DO.
    LV_COUNTER = strlen( IT_ATTACHMENT_LONG ).
    if LV_COUNTER ge 255.
    IT_ATTACHMENT = IT_ATTACHMENT_LONG(255).
    append IT_ATTACHMENT.
    SHIFT IT_ATTACHMENT_LONG by 255 places.
    else.
    IT_ATTACHMENT = IT_ATTACHMENT_LONG(lv_counter).
    append IT_ATTACHMENT.
    exit.
    endif.
    ENDDO.
    Body of email
    MOVE 'Email sent to you from SAP' TO LT_OBJTXT.
    APPEND LT_OBJTXT.
    LV_DOCUMENT_DATA-obj_name = 'SpoolMail'.
    Title of the email as spool name
    LV_DOCUMENT_DATA-obj_descr = LV_SPOOL_DESC.
    LV_DOCUMENT_DATA-sensitivty = 'O'.
    LV_DOCUMENT_DATA-expiry_dat = SY-datum + 15.
    LV_DOCUMENT_DATA-doc_size = STRLEN( LT_OBJTXT ).
    e-mail body
    CLEAR LT_OBJPACK.
    LT_OBJPACK-head_start = 1.
    LT_OBJPACK-head_num = 0.
    LT_OBJPACK-body_start = 1.
    LT_OBJPACK-body_num = 1.
    LT_OBJPACK-doc_type = 'RAW'.
    LT_OBJPACK-doc_size = STRLEN( LT_OBJTXT ).
    APPEND LT_OBJPACK.
    For e-mail attachment
    DESCRIBE TABLE IT_ATTACHMENT LINES L_ATT_LINES.
    READ TABLE IT_ATTACHMENT INDEX L_ATT_LINES.
    CLEAR LT_OBJPACK.
    LT_OBJPACK-transf_bin = 'X'.
    LT_OBJPACK-head_start = 1.
    LT_OBJPACK-head_num = 1.
    LT_OBJPACK-body_start = 1.
    LT_OBJPACK-body_num = L_ATT_LINES.
    LT_OBJPACK-doc_type = 'PDF'.
    LT_OBJPACK-obj_name = 'email'.
    LT_OBJPACK-obj_descr = LV_SPOOL_DESC.
    LT_OBJPACK-doc_size = ( 255 * ( L_ATT_LINES - 1 ) ) + STRLEN( IT_ATTACHMENT-line ).
    APPEND LT_OBJPACK.
    make recipient list
    LT_RECLIST-receiver = X_EMAIL.
    LT_RECLIST-rec_type = 'B'. "To external email id
    APPEND LT_RECLIST.
    send mail with attachment
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = LV_DOCUMENT_DATA
    put_in_outbox = 'X'
    TABLES
    packing_list = LT_OBJPACK
    object_header = LT_OBJHEAD
    contents_bin = IT_ATTACHMENT
    contents_txt = LT_OBJTXT
    receivers = LT_RECLIST
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8.
    If SY-subrc = 0.
    write:/ 'Message sent'.
    else.
    write:/ 'Error encountered'.
    endif.
    ENDFORM. " send_email
    *& Form read_spool
    FORM read_spool USING X_SPOOL_ID Y_SPOOL_DESC.
    DATA : LV_SPOOL_TYPE TYPE TSP01-RQDOCTYPE.
    SELECT SINGLE RQDOCTYPE RQTITLE
    INTO (lv_spool_type, y_spool_desc)
    FROM TSP01
    WHERE RQIDENT eq X_SPOOL_ID.
    IF Y_SPOOL_DESC IS INITIAL.
    concatenate 'Spool-' X_SPOOL_ID into Y_SPOOL_DESC.
    ENDIF.
    IF LV_SPOOL_TYPE eq 'LIST'. " If spool is a list
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
    EXPORTING
    SRC_SPOOLID = X_SPOOL_ID
    NO_DIALOG =
    DST_DEVICE =
    PDF_DESTINATION =
    IMPORTING
    PDF_BYTECOUNT = LV_PDF_SIZE
    PDF_SPOOLID =
    LIST_PAGECOUNT =
    BTC_JOBNAME =
    BTC_JOBCOUNT =
    TABLES
    PDF = LT_PDF
    EXCEPTIONS
    ERR_NO_ABAP_SPOOLJOB = 1
    ERR_NO_SPOOLJOB = 2
    ERR_NO_PERMISSION = 3
    ERR_CONV_NOT_POSSIBLE = 4
    ERR_BAD_DESTDEVICE = 5
    USER_CANCELLED = 6
    ERR_SPOOLERROR = 7
    ERR_TEMSEERROR = 8
    ERR_BTCJOB_OPEN_FAILED = 9
    ERR_BTCJOB_SUBMIT_FAILED = 10
    ERR_BTCJOB_CLOSE_FAILED = 11
    OTHERS = 12
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ELSE. " If spool is OTF
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
    EXPORTING
    SRC_SPOOLID = X_SPOOL_ID
    NO_DIALOG =
    DST_DEVICE =
    PDF_DESTINATION =
    IMPORTING
    PDF_BYTECOUNT = LV_PDF_SIZE
    PDF_SPOOLID =
    OTF_PAGECOUNT =
    BTC_JOBNAME =
    BTC_JOBCOUNT =
    TABLES
    PDF = LT_PDF
    EXCEPTIONS
    ERR_NO_OTF_SPOOLJOB = 1
    ERR_NO_SPOOLJOB = 2
    ERR_NO_PERMISSION = 3
    ERR_CONV_NOT_POSSIBLE = 4
    ERR_BAD_DSTDEVICE = 5
    USER_CANCELLED = 6
    ERR_SPOOLERROR = 7
    ERR_TEMSEERROR = 8
    ERR_BTCJOB_OPEN_FAILED = 9
    ERR_BTCJOB_SUBMIT_FAILED = 10
    ERR_BTCJOB_CLOSE_FAILED = 11
    OTHERS = 12
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.
    ENDFORM. " read_spool
    http://www.sap-img.com/abap/sending-fax-from-abap.htm
    http://www.sap-img.com/abap/sending-email-with-attachment.htm

  • HIPAA SAP Script not printing

    Hi Everyone,
    I am working on a SAP script... this sap script deals with the HIPAA certificate. Right now we are using the std. SAP transaction THIPAA to print the certificate.. when I enter the transaction THIPAA and enter the personnel number and then hit the tab "issue certificate" a new screen comes up and then again I put the personnel number there in and then execute it but after that nothing happens. So can you please suggest me what might be going wrong.
    Thank you,
    Rajat

    Solved my self.... need to pass the values in the following tables:
    T5F99OMFG
    T5F99OEFG
    T5F99OSFT
    T5F99OSFG
    Thanks,
    Raj

  • CreatePDF Desktop Printer does not print/create output

    I have been triing to use the Desktop Printer for a wile now, since it was the main reason to go with CreatePDF Subcription.
    I was able to install everything, Log-In under settings, and the printer shows up under my Windows Printers and I can print to it. However, after this, nothing happens. No PDF is created...
    What am I missing?

    Please log into http://createpdf.acrobat.com/signin.html with your Adobe ID and password?
    Do you see your converted files there?
    If not, if you're running Windows 7, you may be encountering the issue described here: http://helpx.adobe.com/acrobat-com/kb/createpdf-desktop-printer-windows-7.html

  • XML Publisher report not printing excel output due to special characters

    Hello,
    I am trying to create a xml publisher report which should display the output in excel. But the program completes with a warning status and the output is displayed as XML instead of excel, with some errors "An invalid character was found in text content. Error processing resource " and i think these errors are due to the special characters(eg: city/province - A Coruña, Cáceres). If i give rownum < 10 in my query, where there are no such characters it works fine and i am getting an excel output.
    Tried changing the XML encoding and it doesn't help (both mentioned below)
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <?xml version="1.0" encoding="UTF-8"?>
    Do anyone have a solution for this
    Thanks in advance
    Edited by: user10317098 on Jan 16, 2012 10:58 AM

    Hi,
    Check this links that might help you..
    https://forums.oracle.com/thread/1018488
    http://docs.oracle.com/cd/E10091_01/doc/bip.1013/e05000/toc.htm
    Here the Exact solution from Oracle
    In the XML PUBLISHER ADMINISTRATOR Resp..
    Click the administration..
    then Click HTML Output
    Then in the Base Image URI Give the url of your application for example
    http://Test.Test.com:8000/OA_MEDIA/
    And then
    Image File Directory give this as per your application setup
    /u01/app/oracle/apps/apps_st/comn/java/classes/oracle/apps/media/
    Thanks & Regards
    Srikkanth.M

  • Form Printing Using Output Type

    Hi,
    I have a requirement on authorization consideration, it says:
    Set user parameter NDR =X to Indicates that the output determination function will be activated. In this case, the system checks whether output is to be generated.
    Where can I see this?

    Hi,
    1. Run transaction SU01
    2. Enter <user name> => EDIT
    3. Go to tab 'Parameters'
    4. Select parameter ID = 'NDR' and enter value 'X'
    5. Save
    Done

Maybe you are looking for

  • Using jmf when doing an install

    when creating a program that is going to use jmf, does the host machine need to have jmf installed to do an rtp transmission of streaming video? or do i need to include a jmf.jar file in the installer package? or is the jmf pieces I need part of the

  • Orchestration takes more than 30 mins to open

    Hi all We have BizTalk 2013 Server, and our development enviroment is Visual Studio 2013. Any time a new Orchestration is added to the Project. It takes more than 30 mins to open the Orchestration What could be the issue here? Thanks in Advance for y

  • Storing .pfx file in mysql

    All, I am trying to store a .pfx file in mysql. What is the best way to do this?

  • Create view from multiple days tables

    Hi, I'm having existing oracle db with daily stat data, tables strangely named data_mon, data_tue, data_wed.. For my batch processing I plan to use view with multiple day data, let say for last 5 days. Not sure how better implement my sql statement,

  • How to get Adobe up and running?

    This download then go back and sign some agreement is stupid and it is not evident that there is anything to sign. I have clicked on agree several times and am still unable to get it to work. This is a Macbook Pro computer and I'm tired of not being