Dunning Notice Sapscript form test

Hi,
I'm doing a Z style dunning notice form from F150_dunn_01 and want to test it in F150. But I don't find any account have overdue to test it. Could any expert tell me how to fake an overdue balance in a customer account to show the dunning notice? Thanks a lot.
Ryan

HI
GOOD
FOR THIS YOU HAVE TO CREATE A INVOICE AND THAN YOU HAVE TO CREATE A BILLING FOR A PARTICULAR CUSTOMER WHICH YOU CAN DO USING FB01 AND FB05 AND THAN YOU CAN TEST IT.
THANKS
MRUTYUN

Similar Messages

  • Dunning notice not printed, forms for MAHNR '0003' RBUKM '1000 do not exist

    Hi,
    I have scheduled a 'DUNN' run 'F150' transaction for customer (say) '1390' and company code '1000'.
    I have also assigned the appropriate forms in the SPRO (customizing) settings.
    When I click on 'Individual dunn notice' and execute, I get the following message.
    Dunning notice for account: 'D ' '0000001390 ' was not printed.
    Forms for MAHNR: '0003 ', RBUKM: '1000 ', KOART: 'D ' do not exist (T047E)
    Although the respective entries do exist in 'T047E'.
    What would be the reason? What do I need to do?
    Best regards,
    Harsh Dave

    Hi Harsh,
    So first time it was run means the settings are configured properly but once again check it in correspondence tab in Customer master .There give the Dunning area beside the dunning process at dunning area button in dunning data .
    Check it is there any Dunning Block
    Did you given the forums like  F150_DUNN_01  at dunning text button in T.code FBMP.There we have to give the Dunning forums in what you mention dunning levels.
    1                F150_DUNN_01
    2                F150_DUNN_01
    3                F150_DUNN_02
    4                F150_DUNN_02
    Try it once again and update me..
    Regards
    Surya

  • Print Dunning Notice in Smartforms

    Hi All,
    I want to print a dunning notice in SAP Smartforms.
    I have changed the settings required in customizing for Financial Accounts,  Financial Accounting Global Settings -> Business Transaction Events changing the function module as FI_PRINT_DUNNING_NOTICE_SMARTF.
    Then I created a smartform copying standard form F150_DUNN_SF & assigned it to my Dunning Procedure.
    When this smartform is assigned a warning message was appeared saying "Form ZF150_DUNN_SF is not defined or is not active"
    After all these settings when I tried to print the dunning notice, the program is terminated giving following reason:
    Form ZF150_DUNN_SF language EN is not active and has no errors
    Can anybody tell me how to rectify this issue please?
    Thanks in Advance,
    Inoka.

    Hi,
    The message is a sapscript message (TD 422); the system doesn't use smart forms.
    In my system it works.
    My customizing is as following (under BTE / settings)
    PS/functions modules/... of a SAP Appl.:
       00001720    FI-FI FI_PRINT_DUNNING_NOTICE    (as standard)
    Products/... of a customer:
       ZDUNNING   xxxxxx                           X(active)
    PS/functions modules/... of a customer:
       00001720     ZDUNNING          FI-FI     PRINT_DUNNING_NOTICE_SF

  • SAPScript form coding changed automatically during transport

    Hi,
    I have developped  a SAPScript form in dev. and worked well.
    After I had transport it to testing environnment to test it there, I found out that my SAPScript coding
    was modified: some new lines code have been added replacing the original code while others have been just deleted.
    When I checked the attribute of the SAPScript, I notice that these modifications have been added automatically by user DDIC!
    I really do not understand how this could be.
    Any idea is welcome.
    Thanks,
    Charas

    Hi Charas,
    Note that SAPScripts are client specific, so make sure you import your script to each and every QA client. Inform your basis that the transport is not a cross client object. So, he will import to all the QA client.
    Or check with your Basis, to which QA client the transport has been imported to, go to SCC1 transcation code and copy it over to required QA client.
    I guess, above information will help you to close the thread.
    Regards,
    SaiRam

  • DUNNING NOTICE SEND TO CUSTOMER EMAIL

    hi
    my requirement is whenever we run the dunning notice (F150) this report send to customer mail ids and opened it in pdf format.
    using smart form how can we write the coding
    thanks
    venu

    check this thread
    Dunning Question
    Please search before posting questions, u would find most solutions in search itself

  • Emailing SAP Transaction F150 Dunning Notices

    I wish to email SAP transaction F150 A/R dunning notices to customers who perfer receiving them in this manner. An email attachment preferably. Anyone have information they might share as to how this might be accomplished? Thank you for the help, harold

    Hi Dubey,
    You can check the following customizing settings :
    Define Dunning Forms (with SAP Forms)
    We Require some standard u201CSPROu201D settings  :
    The standard settings allow us to create dunning notices using SAP Smart Forms, we must first define the corresponding function module in u201CSPROu201D.
    1. Financial Accounting (New) Financial Accounting Global Settings ( New )  -->Business Transaction Events.
    The SAP Business Framework screen appears.
    2. Choose Settings -> P/S function modules -> ... of an SAP appl. .
        Continue..
    3. Under the Business Transaction Event (BTE) "1720" with application indicator FI-FI, change the function module name and save your entries.
    Standard settings in u201CSPROu201D
    Financial Accounting (New)--> Accounts Receivable and Accounts Payable -->Business Transactions --> Dunning --> Printout ->Assign dunning forms.
    Select u2018Dunning Procedureu2019 and choose u2018Forms for normal dunning procedureu2019
    Choose u2018Company Codeu2019
    Change the name of your dunning form
    I thought, it will work for your requirement.
    Thanks
    Raghava Vakada

  • Printing dunning notices using SMARTFORMS,error during parameter transfer

    Hi Friends,
                    I face a error message "Include text ZGA_DUN_HDR does not exist (object TEXT, ID ST)" when i run the dunning run.
                    I had searched every node for text ZGA_DUN_HDR in the smartform,I didnt find the text in it.
    However when I execute the smart form for print preview an error message "Printing dunning notices using SMARTFORMS,error during parameter transfer".This error i believe is due to wrong parameter passing in the fm 'GET_SF_DUNN_DATA'.It raises an error no_parameters_found.All parameters are passed correctly.
                    Can you guys help me out.
    Edited by: RAJIV KAUSHAL on Nov 14, 2008 6:03 PM

    you can create this text ZGA_DUN_HDR  in SO10 tcode and try ...

  • How to delete the dunning run and dunning notice?

    Hello everyone,
    If I created a dunning run with a future date and this has been printed, then I can not delete this dunning, so I just delete the job. But when I try to create a new dunning for the same customer, the system do not allowed me to dunned again. Is there anyone can help me on this issue?
    thanks in advance and Best regards,
    Maria

    Hi,
    if you have executed a dunning run up to the Dunning selection executed, then you can delete the run from the menu path Dunning notices -> Delete dunning run.  This will not delete the parameters, only the selection run.  customers will be released from dunning block.
    However, if you have executed the print, i.e. your dunning run has the status, dunning notice printed, then you will not be able to delete it using this route.  The customers block is released when the print out is taken.
    If you want to delete the run, then you can try re-organising the run, using the menu path Environment - Reorganisation.  I am not sure whether this will release cusomers, try it on a test system and see.
    Cheers.

  • Dunning Notice per Individual Line Items.

    We have a dunning requirement to print individual dunning notice per line item.  In fact, SAP standard form will give support for all open items of respective customer.  Recently, we have developed a form in such a way that it will consider only one Open line item and it is picking up fine. But the problem it is generating spool request for only first open line item. 
    In fact, our requirement to generate Dunning Forms (spool requests) for all other open items as well. 
    If anybody knows how to generate Dunning Form for Individual Open Items, please let us know.
    Please consider the above requirement on top priority basis, try to answer or atleast give clue how to achieve it.
    Regards.

    Hello Sekhar,
    I am not sure, but, it is not correct to do Dunning at Individual Line Item level (unlike correspondence).
    The reason is that, the Customer Master Data is normally updated once at the end of Dunning Run with the Latest Dunned Date and the appropriate Dunning Level.
    If you go for Dunning at individual Item Level, then it is obviously wrong to keep on updating Customer Master.
    Hope this info enables you to analyse in the right direction
    With Regards
    Vijay Gajavalli

  • How to change the Development Class of the SAPSCRIPT FORM

    Hi All,
          I have transported the old form which needs to be deleted in Test System. Is that possible to create a TR for deletion and send it to Test enivronment?..
         Also is it possible to change the development class for a form?
         Please help me on this. Urgent!...
    Regards,
    Ramkumar.

    Yes, it is possible to change the development class for forms..
    Use SE03, transport organiser tools
    goto node OBJECT DIRECTORY ENTRY
    select node "Change object directory entries"
    Execute
    goto the next text box after data element, type FORM, give your SAPSCRIPT form name and tick the check box execute... now rightclick on your form and chenge development class..
    Now coming to your second question is is not possible to delete a FORM that it is already transported to QA and Production, only way to do this is by doing client copy.. basis will do it for you..
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • SAPF150D-Dunning Notice Print - With Update of Line Items and Master Record

    When I am running this program SAPF150D(Dunning Notice Print - With Update of Line Items and Master Records) with a variant containing run date, runc id, update mode, pimmed & pcount; the job is failing to execute. It is giving message like,
    "The field symbol is no longer assigned because there was an attempt makde previously in a Unicode program to set the field symbol using ASSIGN with offset and/or length specification. Here, the memory addressed by the offset/length specification was not within the allowed area."
    "GETWA_NOT_ASSIGNED_RANGE" "SAPF150D" or "F150DFS0" "SORTFELDER_ERMITTELN"

    Hi,
    Search for routine FORM SORTFELDER_ERMITTELN
    in SAPF150D.
    Put a breakpoint in statement
    ASSIGN (T047F-FELDN) TO <H1>.
    in above routine and debug to the point where error is occuring.
    Most likely there is a mismatch in the length assigned to some field FELDN in table T047F.
    In that case, simply change the T047F-LENGT field accordingly in change mode.
    Cheers,
    Vikram
    Edited by: Vikram Jalali on May 27, 2008 5:56 PM

  • 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

  • I Require standard names for Sapscript form

    hai to all ,
    would any body help me in finding the standard sapscripts forms names and their correponding standard print programs for the following topics;
    1. RFQ
    2. QUOTATION
    3. CONTRACT
    4. CUSTOMER STATEMENT
    5. FI-INVOICE
    6. FI-CREDIT MEMO
    7. DUNNING LETTER
    8. ACCOUNTS PAYABLE CHECKS
    Correct answers will be appreciated.
    thank you ,
    rajesh kumar.

    Hi Rajesh,
       Go to Nace transaction.Choose your application.For Example RFQ application EF and for Sales Application V1 , Billing V3. After selecting go to the output types and from there Processing routines.
       U can also search using tables.for sd and mm related scripts u can find in table TNAPR and for finace related script programs and layouts u can find in table t001f.
    If this helps u reward me points.
    Regards,
    vijay.

  • Restart dunning notice printout

    Hello all,
    I've got a problem with the dunning process (F150) of just one concret execution (id "XXXX"):
    - Parameters maintaned --> Ok
    - Proposal generated --> Ok
    - Dunning printout --> Ko --> Some items of some customers changed dunning level and some not. The problem is because there is an error when printing the dunning letter of one specific customer (because it has items in different document currency, and this case is not contemplated and, so on the form is not ready for it, and this item and the following items of other customers did not change of level.
    The result --> This execution has the button "RESTART DUNNING NOTICE PRINTOUT" active, and following executions are K.O. because all the customers are being blocked by dunning run "XXXX".
    If I clic "restart dunning notice printout" nothing occurs, (justs a Job arrives to SM37 with the form error)
    What I need, is to finish this execution completely, because the items that are posted in other currency are User's errors and they will cancel these items (Fb08). Therefore need to finish this execution, canceling such documents and create another execution again.
    One solution might be to fix the SmartForm to finish printing the letter that failure. But I do not want this.
    Do you know other way?
    Thanks very much,
    Best regards, Itziar

    hi,
    if you doing the dunning process, please cross check with the customer master data that any updation is happening or not.
    Suppose the the dunning level is not updating that will be the problem.
    regards,
    Sanju

  • How Sapscript form can be send by mail

    Hello all,
    I want to send a Sapscript form by mail.
    I think it should first be converted to PDF form and than need to be send by mail.
    I have created a z form which is a copy of standard for medruck and also have changed the standard program SAPFM06P. So I need to add functionality in z program so that i can send the sapscript form by mail.
    Can any body let me know the complete process how can i do it?
    Thanks

    Hi,
    Just follow the below code . I am giving the code which starts from OPEN_FORM. After that one submit program is there u can see the code.
    *&      Form  display_layout
          text
    -->  p1        text
    <--  p2        text
    FORM display_layout.
      CALL FUNCTION 'OPEN_FORM'
       EXPORTING
      APPLICATION                       = 'TX'
      ARCHIVE_INDEX                     =
      ARCHIVE_PARAMS                    =
         device                            = 'PRINTER'
      DIALOG                            = 'X'
         form                              = 'YFIL_DUNN_01'
      LANGUAGE                          = SY-LANGU
       options                           = itcpo
      MAIL_SENDER                       =
      MAIL_RECIPIENT                    =
      MAIL_APPL_OBJECT                  =
      RAW_DATA_INTERFACE                = '*'
    IMPORTING
      LANGUAGE                          =
      NEW_ARCHIVE_PARAMS                =
      RESULT                            =
       EXCEPTIONS
         canceled                          = 1
         device                            = 2
         form                              = 3
         options                           = 4
         unclosed                          = 5
         mail_options                      = 6
         archive_error                     = 7
         invalid_fax_number                = 8
         more_params_needed_in_batch       = 9
         spool_error                       = 10
         OTHERS                            = 11
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP AT i_tab INTO wa_tab.
        CALL FUNCTION 'WRITE_FORM'
         EXPORTING
           element                     = '531'
      FUNCTION                       = 'SET'
      TYPE                           = 'BODY'
           window                      = 'MAIN'
    IMPORTING
       pending_lines                  = wa_tab.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDLOOP.
      CALL FUNCTION 'CLOSE_FORM'
       IMPORTING
         result                         = itcpp
        RDI_RESULT                     =
      TABLES
        OTFDATA                        =
         EXCEPTIONS
           unopened                       = 1
           bad_pageformat_for_print       = 2
           send_error                     = 3
           spool_error                    = 4
           OTHERS                         = 5.
      IF sy-subrc = 0.
        IF ( itcpp-userexit IS INITIAL AND
            NOT itcpp-tdspoolid IS INITIAL ).
          p_spool = itcpp-tdspoolid.
          SUBMIT yfir_mailsend_pdf_attachment WITH p_spool = p_spool
                                              WITH p_kunnr = p_kunnr.
        ENDIF.
      ENDIF.
    ENDFORM.                    " display_layout
    *&      Form  modify_duedate
          text
    -->  p1        text
    <--  p2        text
    FORM modify_duedate.
      SELECT SINGLE mat_rec_no
                    mat_rec_date FROM yfi_matno
                    INTO (v_mat_rec_no, v_mat_rec_date)
                    WHERE vbeln = wa_tab-vbeln.
      CHECK sy-subrc EQ 0.
      SELECT SINGLE zterm
                    FROM vbrk INTO  v_zterm
                    WHERE vbeln EQ wa_tab-vbeln.
      CHECK sy-subrc EQ 0.
      SELECT SINGLE zdays
                    FROM yfi_payment INTO v_zdays
                    WHERE zterm EQ v_zterm.
      IF sy-subrc EQ 0.
        wa_tab-zfbdt_due = ( v_mat_rec_date + v_zdays ).
        wa_tab-due_days = ( sy-datum - wa_tab-zfbdt_due ).
       IF wa_tab-due_days LE 0.
         wa_tab-due_days = 'N/A'.
       ENDIF.
        IF ( wa_tab-umskz = 'A' AND wa_tab-shkzg = 'H' ).
          wa_tab-zfbdt = ' '.
          wa_tab-zfbdt_due = ''.
          wa_tab-due_days = ''.
        ENDIF.
        MODIFY i_tab FROM wa_tab INDEX sy-tabix.
        CLEAR: v_mat_rec_no, v_mat_rec_date, v_zterm, v_zdays.
      ENDIF.
    ENDFORM.                    " modify_duedate
    SUBMIT PROGRAM :
    REPORT yfir_mailsend_pdf_attachment MESSAGE-ID yf.
    *& Program Name   : *
    & Author         :
    *& Creation Date  : *
    *& Program Type   :                                                   *
    *& SAP Release    : *
    *& Description    :     *
    *& Transport No   :                                                   *
    *& Transaction    :                                                   *
    *&  Send document with OTF/ALI attachment from spool to externalreci-
    *&  pient. OTF/ALI document is converted to PDF/HTML format duringthe
    *&  SAPconnect send process.
    *&  This report serves as example documentation for the function
    *&  modules SO_NEW_DOCUMENT_ATT_SEND_API1 and SO_DOCUMENT_SEND_API1.
    *&  Following this example you should be able to develop your own
    *&  report to send documents with all kinds of attachments.
    Creation of the entry for the compressed document
    *& TABLES:
    TABLES : kna1,
            adr6.
    *& INTERNAL TABLES:
    ***********PDF Declaration*******
    DATA: BEGIN OF i_spool OCCURS 0,
            rqident  LIKE tsp01-rqident,
            rqo1name LIKE tsp01-rqo1name,
            rqclient LIKE tsp01-rqclient,
          END   OF i_spool.
    *& VARIABLES :
    DATA: client LIKE tst01-dclient,
          name LIKE tst01-dname,
          objtype LIKE rststype-type,
          type LIKE rststype-type.
    DATA: spoolno LIKE tsp01-rqident,
         download TYPE c VALUE 'X', "AS CHECKBOX DEFAULT 'X',
         p_file LIKE rlgrap-filename
                         VALUE 'C:\Invoice.pdf',               "#EC NOTEXT
          otf LIKE itcoo OCCURS 100 WITH HEADER LINE,
         cancel,
          pdf LIKE tline OCCURS 100 WITH HEADER LINE,
          doctab LIKE docs OCCURS 1 WITH HEADER LINE,
          numbytes TYPE i,
          arc_idx LIKE toa_dara,
          pdfspoolid LIKE tsp01-rqident,
          jobname LIKE tbtcjob-jobname,
          jobcount LIKE tbtcjob-jobcount,
          is_otf.
    Data Declaration
    DATA: docdata    LIKE sodocchgi1,
          objpack    LIKE sopcklsti1 OCCURS  1 WITH HEADER LINE,
          objhead    LIKE solisti1   OCCURS  1 WITH HEADER LINE,
          objtxt     LIKE solisti1   OCCURS 10 WITH HEADER LINE,
          objbin     LIKE solisti1   OCCURS 10 WITH HEADER LINE,
          objhex     LIKE solix      OCCURS 10 WITH HEADER LINE,
          reclist    LIKE somlreci1  OCCURS  1 WITH HEADER LINE.
    *objpack-head_start = 1.
    *objbin = '  |  '. APPEND objbin.
    *DATA: listobject LIKE abaplist   OCCURS  1 WITH HEADER LINE.
    DATA: tab_lines  TYPE i,
          doc_size   TYPE i,
          att_type   LIKE soodk-objtp.
    objpack-head_start = 1.
    *& PARAMETERS:
    PARAMETERS : p_spool LIKE tsp01-rqident NO-DISPLAY,
                 p_kunnr LIKE kna1-kunnr NO-DISPLAY.
    *& M A I N   P R O C E S S
    *& START OF SELECTION.
    START-OF-SELECTION.
      SELECT SINGLE
      adr6~addrnumber
      adr6~smtp_addr
      FROM adr6
      INNER JOIN kna1
      ON kna1~adrnr = adr6~addrnumber
      INTO CORRESPONDING FIELDS OF adr6
      WHERE kna1~kunnr = p_kunnr.
      IF sy-subrc = 0.
    Create receiver list
        reclist-receiver = adr6-smtp_addr. "<-- customer address
        reclist-rec_type = 'U'.
        APPEND reclist.
      ENDIF.
    ***Convert Spool request to PDF
      PERFORM pdf_convert.
      docdata-obj_name  = 'MAIL_AEIW'.
      docdata-obj_descr = 'Dunning'.
      Main Text
      objtxt = 'Hi,'.
      APPEND objtxt.
      objtxt = 'Dunning'.
      APPEND objtxt.
      objtxt = 'Regards'.
      APPEND objtxt.
      Write Packing List (Main)
      DESCRIBE TABLE objtxt LINES tab_lines.
      READ     TABLE objtxt INDEX tab_lines.
      docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
      CLEAR objpack-transf_bin.
      objpack-head_start = 1.
      objpack-head_num   = 0.
      objpack-body_start = 1.
      objpack-body_num   = tab_lines.
      objpack-doc_type   = 'RAW'.
      APPEND objpack.
    Create Message Attachment
      Write Packing List (Attachment)
      att_type = 'PDF'.
      DESCRIBE TABLE objbin LINES tab_lines.
      READ     TABLE objbin INDEX tab_lines.
    *objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
      objpack-doc_size = tab_lines * 255.
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num   = 1.
      objpack-body_start = 1.
      objpack-body_num   = tab_lines.
      objpack-doc_type   = att_type.
      objpack-obj_name   = 'ATTACHMENT'.
      objpack-obj_descr  = 'Attached Document'.
      APPEND objpack.
    *check for not maintaining customer address
      IF reclist IS INITIAL.
        MESSAGE e000 WITH 'Please Maintain Customer e-Mail ID'.
        LEAVE LIST-PROCESSING.
      ELSE.
    Send Message
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data                     = docdata
             put_in_outbox                     = 'X'
        commit_work                       = 'X'     "used from rel.6.10
      IMPORTING
        SENT_TO_ALL                        =
        NEW_OBJECT_ID                     =
          TABLES
            packing_list                      = objpack
            object_header                     = objhead
            contents_bin                      = objbin
            contents_txt                      = objtxt
        CONTENTS_HEX                      = objhex
        OBJECT_PARA                        =
        OBJECT_PARB                        =
            receivers                         = 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.
          MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
                  WITH docdata-obj_name.
        ELSE.
          WRITE 'Mail sent successfully'.
        ENDIF.
      ENDIF.
      WRITE: / 'End of Program'.
    *&      Form  pdf_convert
          text
    -->  p1        text
    <--  p2        text
    FORM pdf_convert.
      DATA: date1   LIKE sy-datum,
            time1   LIKE sy-uzeit,
            period1 LIKE tsp01-rqcretime.
      date1 = sy-datum.
      time1 = sy-uzeit.
      date1 = date1 - 1.
      CONCATENATE date1 time1 INTO period1.
      SELECT rqident
             rqo1name
             rqclient FROM tsp01 INTO TABLE i_spool
                            WHERE rqowner   = sy-uname AND
                                  rqclient  = sy-mandt AND
                                  rqident   = p_spool.
      IF sy-subrc <> 0.
        WRITE: / 'No Spool Request created today'(003)
                COLOR COL_NEGATIVE.
        EXIT.
      ENDIF.
      SORT i_spool DESCENDING BY rqident.
      READ TABLE i_spool INDEX 1.
      CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
             EXPORTING
                authority     = 'SP01'
                client        = i_spool-rqclient
                name          = i_spool-rqo1name
                part          = 1
             IMPORTING
              CHARCO        =
              CREATER       =
              CREDATE       =
              DELDATE       =
              MAX_CREDATE   =
              MAX_DELDATE   =
              NON_UNIQ      =
              NOOF_PARTS    =
              RECTYP        =
              SIZE          =
              STOTYP        =
                  type          = type
                  objtype       = objtype
             EXCEPTIONS
                  fb_error      = 1
                  fb_rsts_other = 2
                  no_object     = 3
                  no_permission = 4.
      CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid                    = i_spool-rqident
            no_dialog                      = ' '
          DST_DEVICE                     =
          PDF_DESTINATION                =
          IMPORTING
            pdf_bytecount                  = numbytes
            pdf_spoolid                    = pdfspoolid
          OTF_PAGECOUNT                  =
            btc_jobname                    = jobname
            btc_jobcount                   = jobcount
          TABLES
            pdf                            = 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.
      CASE sy-subrc.
        WHEN 0.
        WHEN 1.
          WRITE: / 'Error On Spool Job'(002)
                COLOR COL_NEGATIVE.
          EXIT.
        WHEN 2.
          WRITE: / 'No Permission'(003)
                COLOR COL_NEGATIVE.
          EXIT.
        WHEN 3.
          WRITE: / 'Conversion Not Possible'(004)
                COLOR COL_NEGATIVE.
          EXIT.
        WHEN OTHERS.
          WRITE: / 'Incorrect Destination Device'(005)
                    COLOR COL_NEGATIVE.
          EXIT.
      ENDCASE.
      CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
           EXPORTING
                line_width_src              = 134
                line_width_dst              = 255
           TABLES
                content_in                  = pdf
                content_out                 = objbin
           EXCEPTIONS
                err_line_width_src_too_long = 1
                err_line_width_dst_too_long = 2
                err_conv_failed             = 3
                OTHERS                      = 4.
    ENDFORM.                    " pdf_convert

Maybe you are looking for

  • Sold-to-party cannot be changed

    I have created a sales order with SP ...0001 now i want to change the SP to 0002 .both 0001 and 0002have different sales area.It doesnot allow 001 to be changed Why a sales area for a sold-to-party is not redetermined? What factors restrict it?

  • Hello, the perennial question on getting the Touchsmart touchscreen to work with WIndows 7

    My IQ526 touchscreen does not work after upgrading to Win 7 Ultimate, using the upgrade software provided by HP. I have a good installation of Win 7, diagnostics run fine, and installed the touchscreen drivers from the HP website in the recommonded o

  • WD- "Internal error occured at initialize in source code of INTERF_SECTION"

    Hello Experts, I am facing a strange error in Webdynpro ABAP. When I try to check or save the webdynpro component, the system is giving me an error "Internal error occured at initialize in source code of INTERF_SECTION". It could not save the changes

  • RH8 - defining search synonyms

    I need to set up the terms "check off" "check-off" and "checkoff" as synonyms - however Robohelp won't accept "check off" nor "check-off" - it thinks they are phrases. Are there any suggestions for how I can solve this problem? Our users will search

  • New Apple College Computer Offer

    I received a brand new Apple MacBook Air for graduation and then two weeks later I see an advertisement saying anyone who buys a new computer for college gets $100 for the App Store! I feel like I should be able to receive that $100. How would I go a