Export Dunning letter to PDF

Hi,
When running the Dunning, on the Recommendation Report screens/step, why can we not export a customer letter to PDF? Instead it goes to the PLD screen format.
Seems to me I used to be able to do this... currently on SBO2007A SP01 PL07.
Thank you,
Heather

Hi Manish,
My user ID is a superuser so it's not an authorization issue; the PDF option works everywhere else except with Dunning. Yes, the PDF icon is available.
Should the PDF export work for previewing Dunning letters?
Thank you,
Heather
Edited by: Heather Wilkinson on Jul 22, 2010 3:16 PM

Similar Messages

  • How to download dunning letter to PDF file in background?

    Hi experts:
    Now my user have a request to download dunning letter to PDF file.
    What I want to know is if there is any way to config to solve this problem or I must develop a program to download?

    hello
    check standard program RSTXPDFT4
    or use function module
    CONVERT_OTFSPOOLJOB_2_PDF
    Thanks
    Anirudh

  • Dunning letter - email/pdf problem

    I want to email a dunning letter to a customer.
    I have executed a dunning run.
    I go back to the Recommendation report for the dunning run - when I highlight the row under the customer name and click print preview I can see a preview of the dunning letter I want to email.
    When I click the 'Email' button and click 'Yes' to attach an edited report I thought that would attach the letter to an email as a PDF? (I have send E-Mail via Microsoft Outlook' selected)
    But when I check my Outlook sent box the email has been sent but there is no attachment of the dunning letter - it's just an empty email?
    I tried again and examined the 'Send message' box that appears when I click the 'Email..' button.
    The data tab shows the dunning run listed but the Attachments tab has nothing listed.
    Should the file be listed here if it had correctly attached?
    Incidentally when I click the PDF button this just brings up the same print preview instead of making a PDF of the letter - is this significant i.e is the PDF function not working hence the 'attach edited report' function also cannot work?
    I'd be grateful for advice on emailing dunning letters correctly
    Karen

    Hi Andrew,
    Check this Link
    Re: Email Dunning Report to the BP
    Re: Automatic Dunning By Email
    Regards
    Jambulingam.P

  • Dunning letter (email) PDF attachment or body of email

    Hi experts,
    What is the industry practice for dunning letters when sent via email? Attach them as a pdf to the email, or add all the content of the dunning letter to the body of the email to make it easier for the customer to receive the message?
    Thanks,
    Mario

    Hi Mario,
    It all depends on the functionality that and payment option that are provided.
    If the dunning letters contains and payment/remittance slip(through which customer can make payment in bank, outlet or post office) than the letter should go as PDF attached to mail with body saying that its the reminder for payment being missed,
    But if the payment option is not like as described above than you can send the the letter in html body mail.
    Regards

  • F150 : Dunning Letter

    Hi,
    Dunning letter procedure  (F150)  currently creates an output in PDF format but the remqt is to get the output in PDF and alos in text files with some modifications in the text file.
    Could anyone pls. help me how to achieve this.
    Thanks.
    Edited by: Sri KVS on May 20, 2010 9:55 AM

    Hi,
    sorry, here yesterday it was a day off.
    For the code, if you  want to copy the pdf you have to take the number of spool and convert it in an other pdf (but you will get the same printing). If you want to get an another form (different from the standard: no logo, header ...) you have to do a new form (smartform ou sapscript one) and to call this new form in the enhancement...
    if you do a new sapscript form: you should use: open_form.... write_element.... close form (like in the function standard F150_printing_notice)
    and if you use a smartform one, you should use the function     call function 'SSF_FUNCTION_MODULE_NAME'
    to know the function associate at your smarform form.
    and after
    call function lf_fm_name
            exporting
              archive_index        = toa_dara
              archive_index_tab    = tsfdara
              archive_parameters   = arc_params
              control_parameters   = ls_control_param
              mail_appl_obj        = ls_mail_appl_obj
              mail_recipient       = ls_recipient
              mail_sender          = ls_sender
              output_options       = ls_composer_param
              user_settings        = space
              is_vbdkr             = is_vbdkr
              is_nast              = is_nast
              iv_spras             = lv_spras
              iv_spras_ag          = lv_spras_do
            importing
              job_output_info      = ls_job_info
              document_output_info = ls_document_output_info
              job_output_options   = ls_job_output_options
              es_vbdkr             = vbdkr
            tables
              it_tvbdpr            = it_tvbdpr
            exceptions
              formatting_error     = 1
              internal_error       = 2
              send_error           = 3
              user_canceled        = 4
              others               = 5.
    for calling the form...
    It's depend of what you have to do: sapscript or smartform printing. But you will do a new form, i think
    Best regards
    Hote it'shelpfull

  • Dunning Letter Report for Portugal

    Hi All
    For Dunning Letter Portugal language rdf file made some changes in layout like removing break for credit
    and debit transactions and moving address field to right side
    But fields from Dunning letter setup in applications (first line) is getting truncated to half even after redoing changes it is behaving
    in similar way any hints on fixing this issue will be helpfull
    Thanks
    Kamalakar.G

    Hi Husain...Thanks for immediate response. There is already data being pulled by standard function modules like PRINT_DUNNING_NOTICE(copied into Z). Can we use that in simpler way(without the need of any new driver program with all the data population again)? And your answer is correct which I already thought earlier and kept it as a last resort, because I need to populate all the data again, convert spool to pdf and send pdf's to all selected customers And one more thing is that the requirement is to schedule a background job which takes care of sending all the emails . So any more ideas?

  • Dunning Letter on Receivables Aging SAP B1 2007

    You run the customer receivables aging report and double click a row on receivables aging report window. You highlight one row, there is no letter checkbox compare to SAP 2005 A. There is no Dunning Letter PLD as well. Therefore dunning letter report cannot be previewed.
    Does this letter checkbox and dunning letter PLD is not available in SAP 2007 A?
    Thanks,
    Kay Chong

    Hi,
    the document [Changed Features as of Release 2007 |https://websmp101.sap-ag.de/~sapidb/011000358700000281062007E.pdf]says the following:
    Dunning in Aging Report
    Application Path: Financials u2192 Financial Reports u2192 Accounting u2192 Aging u2192 Customer Receivables Aging u2192 Customer Receivables Aging u2013 Details window
    Availability: All countries
    Used for: indicating the dunning level linked to the document/transaction and creating a dunning letter if required.
                             Availability in
                             SAP B1 2007 A or B    Functionality changed?
    New installations        N/A                   No
    Upgrading customers      All countries         No
    So this functionality is only available for databases upgraded from an older release.
    Regards,
    Marcus

  • AR Statement /Dunning Letter Report Issue

    Hi Guys,
    I have an issue in the Customer statement report in XMLP. There are two Concurrent Program for this Print Statement (i.e; Print Statement and Statement Generate Program) Here Print Statement runs with respect to the ARXSGPO.rdf file and Statement Generate Program runs with respect to the spawned program.
    I followed the following steps to view the output in PDF using XMLP.
    1. I used ARXSGPO.rdf which is from "Print Statement" Concurrent Program.
    2. I have given the exact short name(ARXSGPO) of Print Statement to the Defination and Template also attachment in XMLP responsibility.
    3. When i see the output after both parent (Print Statement) and child(Statement Generate Program) completed successfully. I can able to see the output only in XML format. Obvisouly it should display in PDF format right?..
    Do we need any other steps to go through to achieve this AR statement report. Same issue i have with the Dunning letter report. Please drive me if any one already worked for these two reports in xmlp.
    Awaiting your comments
    with regards
    Prabu

    Hi Prabu,
    Please refer to solution on forum:
    AR Statement is not displaying PDF output where it used to display earlier.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • Replace Oracle Report Dunning Letter to BI-Publisher Dunning Letter

    HI,
    Are their any documents who is telling me, how I can use the output of "Dunning Letter Print from Dunning Letter Generate".
    I have Already tried to create an "RTF" document, and placed it in BI Publisher of Oracle EBS R11.5.10.
    I have Created Data Definition, Simple one
    I have replaced the output of "Dunning Letter Print from Dunning Letter Generate" to XML.
    But the BI Publisher doesn't pick up the output.
    So I have done the following thinks.
    1. Change output type of "Dunning Letter Print from Dunning Letter Generate" to XML
    2. Copied XML out put to my workstation.
    3. Make an example MSWord Document
    4. Test the XML output file in MSWord and it seems to work
    5. Create in EBS BI Publisher and data definition called "ARDLP_NON_SRS"
    6. Create in EBS BI Publisher and Template Called "ARDLP_NON_SRS" defined with Default Output Type = PDF
    7. Restart "Dunning Letter Generate" Output is created but result is XML output, and not PDF output as defined in BI Publisher Template.
    what do I wrong.
    Thanks for your reply.

    Check the data definition setup - is the code = to the program short name? make sure that they are both in capital letters

  • Dunning letter

    hi experts,
    iam asked to modify one standard sapscript and respective print program of dunning letter , for fi module. for tcode f150. original object is displaying dunning letter output for each customer. when i copied the same object and tried to execute, output is nil. i activated each and every include program etc, but in vain. according to FI consultant they dont maintain application in NACE. so i dnt know how to interlink print program and sapscript, in the original print program form name is not mentioned, i dnt know how the output is displayed in the form of sapscript.
    my requirement is as follows
    The customer is sent the gentle reminder letter for the out standing balances to be received by them. When ever the dunning program is run based on the dunning procedure assigned in the customer master and the level in the customer master, F150 program should be able to print the dunning letter for the customer correspondence.
    MY STANDARD PROGRAM IS FOLLOWS
    REPORT RFMAHN20 MESSAGE-ID FM NO STANDARD PAGE HEADING.
    declaration for dunning lists
    INCLUDE RFMAHNXXTOP.
    tables declaration
    TABLES: T001.
    declaration for independend forms
    INCLUDE RFMAHNXXFORM.
    declaration
    DATA: BEGIN OF MHNK_ACC,
            KOART       LIKE MHNK-KOART,
            BUKRS       LIKE MHNK-BUKRS,
            KUNNR       LIKE MHNK-KUNNR,
            LIFNR       LIKE MHNK-LIFNR,
            KONTO       LIKE MHNK-KUNNR,
            SELKEY      LIKE SY-TABIX,
            L_INCL      LIKE F150V-L_INCL,
            HSORT1(16)  TYPE C,
            HSORT2(16)  TYPE C,
            HSORT3(16)  TYPE C,
            HSORT4(16)  TYPE C,
            HSORT5(16)  TYPE C,
          END OF MHNK_ACC.
    declaration
    DATA:   T_MHNK     LIKE MHNK     OCCURS 10 WITH HEADER LINE.
    DATA    T_MHNK_ACC LIKE standard table of MHNK_ACC
              with key koart bukrs konto  WITH HEADER LINE.
    parameters & select options
    SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: P_KOART FOR MHNK-KOART,
                    P_BUKRS FOR MHNK-BUKRS,
                    P_KUNNR FOR MHNK-KUNNR,
                    P_LIFNR FOR MHNK-LIFNR.
    SELECTION-SCREEN END OF BLOCK 1.
    INITIALIZATION.
      H_REPID               = SY-REPID.
      H_ACTVT               = '13'.        "display dunning history
      H_TABNAME_HEADER      = 'MHNK_ACC'.
      H_TABNAME_ITEM        = 'MHNK_EXT'.
      H_SET_PF_STATUS       = 'SET_PF_STATUS'.
      H_USER_COMMAND        = 'USER_COMMAND_0001'.
      H_VARIANT-REPORT      = H_REPID.
      H_VARIANT-LOG_GROUP   = '0001'.
      H_VARIANT-HANDLE      = '0001'.
      H_LAYOUT-DETAIL_POPUP = 'X'.
    START-OF-SELECTION.
      select the information from MHNK
      SELECT * FROM MHNK INTO  TABLE T_MHNK
                         WHERE KOART IN P_KOART AND
                               BUKRS IN P_BUKRS AND
                               KUNNR IN P_KUNNR AND
                               LIFNR IN P_LIFNR.
      build the tables for the listviewer
      PERFORM CREATE_TABLES    TABLES   T_MHNK T_MHNK_ACC T_MHNK_EXT.
    END-OF-SELECTION.
      fill the fieldcatalog
      PERFORM FILL_FIELDCAT TABLES   T_FIELDCAT
                            USING    H_TABNAME_HEADER H_TABNAME_ITEM.
      determine the keyinfo
      PERFORM FILL_KEYINFO  CHANGING H_KEYINFO.
      register the list events
      PERFORM REGISTER_EVENTS TABLES T_EVENTS.
    Check if default-variant is existing (default or user-default )
    h_variant-variant has to be empty for this check, otherwise it is
    checked whether this variant is existing.
      H_VARIANT-VARIANT = SPACE.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
           EXPORTING
                I_SAVE        = 'A'
           CHANGING
                CS_VARIANT    = H_VARIANT
           EXCEPTIONS
                WRONG_INPUT   = 1
                NOT_FOUND     = 2
                PROGRAM_ERROR = 3
                OTHERS        = 4.
      IF SY-SUBRC = 2.
      default-variant not existing, therefor get variant 0
        H_VARIANT-VARIANT = '0'.
      ELSEIF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE 'S' NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      display the list
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
           EXPORTING
                I_INTERFACE_CHECK        = ' '
                I_CALLBACK_PROGRAM       = H_REPID
                I_CALLBACK_PF_STATUS_SET = H_SET_PF_STATUS
                I_CALLBACK_USER_COMMAND  = H_USER_COMMAND
                IS_LAYOUT                = H_LAYOUT
                IT_FIELDCAT              = T_FIELDCAT[]
                IT_EXCLUDING             =
                IT_SPECIAL_GROUPS        =
                it_sort                  = t_sort[]
                IT_FILTER                =
                IS_SEL_HIDE              =
    *--              i_screen_start_column    = 5
    *--              i_screen_start_line      = 5
    *--              i_screen_end_column      = 80
    *--              i_screen_end_line        = 25
                I_DEFAULT                = 'X'
                I_SAVE                   = 'A'
                IS_VARIANT               = H_VARIANT
                  IT_EVENTS                = T_EVENTS[]
                IT_EVENT_EXIT            =
                I_TABNAME_HEADER         = H_TABNAME_HEADER
                I_TABNAME_ITEM           = H_TABNAME_ITEM
                I_STRUCTURE_NAME_HEADER  =
                I_STRUCTURE_NAME_ITEM    =
                IS_KEYINFO               = H_KEYINFO
                IS_PRINT                 =
           IMPORTING
                E_EXIT_CAUSED_BY_CALLER  =
                ES_EXIT_CAUSED_BY_USER   =
           TABLES
                T_OUTTAB_HEADER          = T_MHNK_ACC
                T_OUTTAB_ITEM            = T_MHNK_EXT
           EXCEPTIONS
                PROGRAM_ERROR            = 1
                OTHERS                   = 2.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *&      Form  FILL_FIELDCAT
          text
         -->P_T_FIELDCAT  text                                           *
         -->P_H_TABNAME_HEADER  text                                     *
         -->P_H_TABNAME_ITEM  text                                       *
    FORM FILL_FIELDCAT TABLES TI_FIELDCAT STRUCTURE T_FIELDCAT
                       USING  I_HEADER TYPE SLIS_TABNAME
                              I_ITEM   TYPE SLIS_TABNAME.
    create the header fieldcat
      PERFORM APPEND_SEL_FIELDS  TABLES TI_FIELDCAT
                                 USING  I_HEADER.
      CLEAR TI_FIELDCAT.
      TI_FIELDCAT-TABNAME       = I_HEADER.
      TI_FIELDCAT-FIELDNAME     = 'KOART'.
      TI_FIELDCAT-SELTEXT_L     = TEXT-052.
      TI_FIELDCAT-SELTEXT_M     = TEXT-052.
      TI_FIELDCAT-SELTEXT_S     = TEXT-052.
      TI_FIELDCAT-REPTEXT_DDIC  = TEXT-052.
      TI_FIELDCAT-REF_FIELDNAME = 'KOART'.
      TI_FIELDCAT-REF_TABNAME   = 'MHNK'.
      APPEND TI_FIELDCAT.
      CLEAR TI_FIELDCAT.
      TI_FIELDCAT-TABNAME       = I_HEADER.
      TI_FIELDCAT-FIELDNAME     = 'BUKRS'.
      TI_FIELDCAT-SELTEXT_L     = TEXT-051.
      TI_FIELDCAT-SELTEXT_M     = TEXT-051.
      TI_FIELDCAT-SELTEXT_S     = TEXT-051.
      TI_FIELDCAT-REPTEXT_DDIC  = TEXT-051.
      TI_FIELDCAT-REF_FIELDNAME = 'BUKRS'.
      TI_FIELDCAT-REF_TABNAME   = 'MHNK'.
      APPEND TI_FIELDCAT.
      CLEAR TI_FIELDCAT.
      TI_FIELDCAT-TABNAME       = I_HEADER.
      TI_FIELDCAT-FIELDNAME     = 'KONTO'.
      TI_FIELDCAT-SELTEXT_L     = TEXT-050.
      TI_FIELDCAT-SELTEXT_M     = TEXT-050.
      TI_FIELDCAT-SELTEXT_S     = TEXT-050.
      TI_FIELDCAT-REPTEXT_DDIC  = TEXT-050.
      TI_FIELDCAT-REF_FIELDNAME = 'KONTO'.
      TI_FIELDCAT-REF_TABNAME   = 'F150V'.
      APPEND TI_FIELDCAT.
      CLEAR TI_FIELDCAT.
      TI_FIELDCAT-TABNAME       = I_HEADER.
      TI_FIELDCAT-FIELDNAME     = 'L_INCL'.
      TI_FIELDCAT-SELTEXT_L     =  TEXT-041.  " Kennz: Mahn. gedruckt
      TI_FIELDCAT-REPTEXT_DDIC  = 'L_INCL'.
      TI_FIELDCAT-REF_FIELDNAME = 'L_INCL'.
      TI_FIELDCAT-REF_TABNAME   = 'F150V'.
      APPEND TI_FIELDCAT.
      clear ti_fieldcat.
      ti_fieldcat-tabname       = 'MHNK_EXT'.
      ti_fieldcat-fieldname     = 'COMP_CURR'.
      ti_fieldcat-seltext_l     = text-053.
      ti_fieldcat-seltext_m     = text-053.
      ti_fieldcat-seltext_s     = text-053.
      ti_fieldcat-ref_fieldname = 'WAERS'.
      ti_fieldcat-ref_tabname   = 'MHNK'.
      append ti_fieldcat.
    perform append_sort_fields tables ti_fieldcat
                                using  i_header h_sort_info 'H'.
    create the item fieldcat
      PERFORM APPEND_SEL_FIELDS  TABLES TI_FIELDCAT
                                 USING  I_ITEM.
    generate fieldcat
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                I_PROGRAM_NAME         = H_REPID
                I_INTERNAL_TABNAME     = I_ITEM
                I_STRUCTURE_NAME       = 'MHNK'
                I_CLIENT_NEVER_DISPLAY = 'X'
               i_inclname             = 'RFMAHNXXTOP'
           CHANGING
                CT_FIELDCAT            = TI_FIELDCAT[]
           EXCEPTIONS
                INCONSISTENT_INTERFACE = 1
                PROGRAM_ERROR          = 2
                OTHERS                 = 3.
    for amounts in company currency establish link to MHNK_EXT-COMP_CURR
    so that summation in ALV is possible
      loop at ti_fieldcat.
        if ti_fieldcat-fieldname = 'SALHW' or
           ti_fieldcat-fieldname = 'FAEHW' or
           ti_fieldcat-fieldname = 'ZINHW' or
           ti_fieldcat-fieldname = 'FAMSH' or
           ti_fieldcat-fieldname = 'MHNGH'.
              ti_fieldcat-cfieldname = 'COMP_CURR'.
              ti_fieldcat-ctabname = 'MHNK_EXT'.
              modify ti_fieldcat.
        endif.
      endloop.
      CLEAR TI_FIELDCAT.
      TI_FIELDCAT-TABNAME       = I_ITEM.
      TI_FIELDCAT-SELTEXT_L     = TEXT-042. " 'Nur gedruckte Posten'.
    ti_fieldcat-seltext_m     = text-'Nur gedr. Posten'.
    ti_fieldcat-seltext_s     = 'Nur gedr. Post.'.
      TI_FIELDCAT-FIELDNAME     = 'L_INCL'.
      TI_FIELDCAT-REPTEXT_DDIC  = 'L_INCL'.
      TI_FIELDCAT-REF_FIELDNAME = 'L_INCL'.
      TI_FIELDCAT-REF_TABNAME   = 'F150V'.
      APPEND TI_FIELDCAT.
    perform append_sort_fields tables ti_fieldcat
                                using  i_item h_sort_info 'H'.
    select the fields to be shown
      PERFORM HIDE_ALL_FIELDS TABLES TI_FIELDCAT USING I_HEADER.
    select the fields to be shown
      PERFORM HIDE_ALL_FIELDS TABLES TI_FIELDCAT USING I_ITEM.
    ENDFORM.                               " FILL_FIELDCAT
    *&      Form  CREATE_TABLES
          text
    -->  p1        text
    <--  p2        text
    FORM CREATE_TABLES TABLES TI_MHNK     STRUCTURE MHNK
                              TI_MHNK_ACC STRUCTURE MHNK_ACC
                              TI_MHNK_EXT STRUCTURE MHNK_EXT.
      data : begin of comp_curr,
             bukrs like mhnk-bukrs,
             waers like mhnk-waers,
           end of comp_curr.
      data bukrs_tab like comp_curr occurs 0 with header line.
    sort the table
      SORT TI_MHNK BY KOART BUKRS KUNNR LIFNR ASCENDING.
    build t_mhnk_ext
      LOOP AT TI_MHNK.
      check authority
        PERFORM CHECK_AUTHORITY USING    '13' TI_MHNK-KOART TI_MHNK-BUKRS
                                CHANGING H_AUTHORITY_OK.
        IF H_AUTHORITY_OK = SPACE.
          CONTINUE.
        ENDIF.
      save wa
        MHNK = TI_MHNK.
      create item entry
        MOVE-CORRESPONDING MHNK TO TI_MHNK_EXT.
        IF TI_MHNK_EXT-KOART = 'D'.
          TI_MHNK_EXT-KONTO = TI_MHNK_EXT-KUNNR.
        ELSE.
          TI_MHNK_EXT-KONTO = TI_MHNK_EXT-LIFNR.
        ENDIF.
        TI_MHNK_EXT-HSORT1 = <F1>.
        TI_MHNK_EXT-HSORT1 = <F2>.
        TI_MHNK_EXT-HSORT1 = <F3>.
        TI_MHNK_EXT-HSORT1 = <F4>.
        TI_MHNK_EXT-HSORT1 = <F5>.
      check if item has been printed already
        IF NOT TI_MHNK_EXT-PRNDT IS INITIAL.
          TI_MHNK_EXT-L_INCL = 'X'.
        ELSE.
          TI_MHNK_EXT-L_INCL = SPACE.
        endif.
        read table bukrs_tab with key bukrs = ti_mhnk_ext-bukrs.
        if sy-subrc <> 0.
          select single * from t001 where bukrs = ti_mhnk_ext-bukrs.
          if sy-subrc = 0.
            bukrs_tab-waers = t001-waers.
            bukrs_tab-bukrs = ti_mhnk_ext-bukrs.
            append bukrs_tab.
          endif.
        endif.
        ti_mhnk_ext-comp_curr = bukrs_tab-waers.
        APPEND TI_MHNK_EXT.
      create header entry
        MOVE-CORRESPONDING MHNK TO TI_MHNK_ACC.
        IF TI_MHNK_ACC-KOART = 'D'.
          TI_MHNK_ACC-KONTO = TI_MHNK_ACC-KUNNR.
        ELSE.
          TI_MHNK_ACC-KONTO = TI_MHNK_ACC-LIFNR.
        ENDIF.
        COLLECT TI_MHNK_ACC.
      ENDLOOP.
    determine if account has at least one printed dunning
      LOOP AT TI_MHNK_ACC.
        READ TABLE TI_MHNK_EXT WITH KEY  KOART  = TI_MHNK_ACC-KOART
                                         BUKRS  = TI_MHNK_ACC-BUKRS
                                         KUNNR  = TI_MHNK_ACC-KUNNR
                                         LIFNR  = TI_MHNK_ACC-LIFNR
                                         KONTO  = TI_MHNK_ACC-KONTO
                                         L_INCL = 'X'.
        IF SY-SUBRC = 0.
          TI_MHNK_ACC-L_INCL = 'X'.
          MODIFY TI_MHNK_ACC.
        ENDIF.
      ENDLOOP.
    ENDFORM.                               " CREATE_TABLES
    *&      Form  FILL_KEYINFO
          text
         <--P_H_KEYINFO  text                                            *
    FORM FILL_KEYINFO CHANGING E_KEYINFO TYPE SLIS_KEYINFO_ALV.
      MOVE 'KOART' TO : E_KEYINFO-HEADER01,E_KEYINFO-ITEM01.
      MOVE 'BUKRS' TO : E_KEYINFO-HEADER02,E_KEYINFO-ITEM02.
      MOVE 'KONTO' TO : E_KEYINFO-HEADER03,E_KEYINFO-ITEM03.
    ENDFORM.                               " FILL_KEYINFO
    *&      Form  SET_PF_STATUS
          text
         -->P_RT_EXTAB  text                                             *
         -->P_TYPE  text                                                 *
         -->P_SLIS_T_EXTAB  text                                         *
    FORM SET_PF_STATUS USING I_EXTAB TYPE SLIS_T_EXTAB.
      SET PF-STATUS 'HIST_MAX' EXCLUDING I_EXTAB.
    ENDFORM.                               " SET_PF_STATUS
    *&      Form  USER_COMMAND_0001
          text
    -->  p1        text
    <--  p2        text
    FORM USER_COMMAND_0001 USING I_UCOMM     LIKE SY-UCOMM
                                 I_SELFIELD  TYPE SLIS_SELFIELD.
      CASE I_UCOMM.
        WHEN 'DISP'.
          PERFORM COMMAND_DISP USING I_SELFIELD.
      ENDCASE.
    ENDFORM.
    *&      Form  COMMAND_DISP
          text
    -->  p1        text
    <--  p2        text
    FORM COMMAND_DISP CHANGING E_SELFIELD TYPE SLIS_SELFIELD.
    declaration
      DATA: TH_MHND     LIKE MHND OCCURS 10 WITH HEADER LINE,
            TH_MHNK     LIKE MHNK OCCURS 1 WITH HEADER LINE.
    determine the current line
      IF E_SELFIELD-TABNAME = H_TABNAME_ITEM.
        READ TABLE T_MHNK_EXT INDEX E_SELFIELD-TABINDEX.
        MOVE-CORRESPONDING T_MHNK_EXT TO TH_MHNK.
        APPEND TH_MHNK.
      ELSE.
        MESSAGE E481.
        EXIT.
      ENDIF.
    determine the mhnd entries for the actual mhnk
      SELECT * FROM  MHND INTO TABLE TH_MHND
             WHERE  LAUFD       = TH_MHNK-LAUFD
             AND    LAUFI       = TH_MHNK-LAUFI
             AND    KOART       = TH_MHNK-KOART
             AND    BUKRS       = TH_MHNK-BUKRS
             AND    KUNNR       = TH_MHNK-KUNNR
             AND    LIFNR       = TH_MHNK-LIFNR
             AND    CPDKY       = TH_MHNK-CPDKY
             AND    SKNRZE      = TH_MHNK-SKNRZE
             AND    SMABER      = TH_MHNK-SMABER
             AND    SMAHSK      = TH_MHNK-SMAHSK.
    change the dunning data
      CALL FUNCTION 'EDIT_DUNNING_DATA'
           EXPORTING
                I_MHNK     = TH_MHNK
                I_XDISPLAY = 'X'
           TABLES
                T_MHND     = TH_MHND
                T_MHNK     = TH_MHNK
           EXCEPTIONS
                OTHERS     = 1.
    ENDFORM.                               " COMMAND_DISP
    *&      Form  REGISTER_EVENTS
          text
         -->P_T_EVENT  text                                              *
    FORM REGISTER_EVENTS TABLES T_EVENT TYPE SLIS_T_EVENT.
    determine the events
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
                I_LIST_TYPE     = 1
           IMPORTING
                ET_EVENTS       = T_EVENT[]
           EXCEPTIONS
                LIST_TYPE_WRONG = 1
                OTHERS          = 2.
    set top of page form
      READ TABLE T_EVENT WITH KEY NAME = SLIS_EV_TOP_OF_PAGE.
      IF SY-SUBRC EQ 0.
        T_EVENT-FORM = 'TOP_OF_PAGE'. MODIFY T_EVENT INDEX SY-TABIX.
      ENDIF.
    set top of list form
      READ TABLE T_EVENT WITH KEY NAME = SLIS_EV_TOP_OF_LIST.
      IF SY-SUBRC EQ 0.
        T_EVENT-FORM = 'TOP_OF_LIST'. MODIFY T_EVENT INDEX SY-TABIX.
      ENDIF.
    set end of list
      READ TABLE T_EVENT WITH KEY NAME = SLIS_EV_END_OF_LIST.
      IF SY-SUBRC EQ 0.
        T_EVENT-FORM = 'END_OF_LIST'. MODIFY T_EVENT INDEX SY-TABIX.
      ENDIF.
    ENDFORM.                               " REGISTER_EVENTS
          FORM TOP_OF_PAGE                                              *
    FORM TOP_OF_PAGE.
      PERFORM BATCH-HEADING(RSBTCHH0).
    ENDFORM.                               " TOP_OF_PAGE
          FORM TOP_OF_LIST                                              *
    FORM TOP_OF_LIST.
    *- Standardseitenkopf fuellen -
      MOVE '0'      TO BHDGD-INIFL.
      MOVE SY-LINSZ TO BHDGD-LINES.
      MOVE SY-UNAME TO BHDGD-UNAME.
      MOVE SY-REPID TO BHDGD-REPID.
      CLEAR: LINE.
      WRITE TEXT-040 TO BHDGD-LINE2.
    ENDFORM.
          FORM END_OF_LIST                                              *
    FORM END_OF_LIST.
      WRITE: / TEXT-039.
    ENDFORM
    regards
    maaya

    Hi,
    I copied your program and executed it. First of all, I dont think its a print program for any script. Its a plain ALV report program. I think you mis-understood the requirement or I totally lost the question.
    Make sure you are changing the correct program.
    Regards
    Aneesh.

  • Dunning letter via email with invoice attachments

    Hi Experts,
    We have requirement where in dunning letter should be send to customer via email along with invoice attachments.
    We have copied standard script F150_DUNN_02 to custom one as per requirements and configured it in SPRO. We are using BTE 1040 to fetch the customer email address and assign it to structure c_finaa-intad.
    This serves the purpose partially. The email goes to customer with dunning letter as an attachment properly.
    The question here is how to send additional invoice attachments in the same mail? For example, if dunning letter contains 3 line items, then email should have 4 attachments( 1 dunning letter and 3 invoices).
    Is it possible by some config steps? or please suggest me suitable approach to solve the problem.
    Appreciate your help.
    Thanks
    Swati

    Hi Partha,
    Here are the steps that you can follow :
    1. Using following SPRO path assign the dunning form.
    Financial Accounting (New) > Accounts Receivable and Accounts Payable > Business Transactions > Dunning > Printout > Assign Dunning Forms
    2. There is standard BTE (00001040) that is provided by SAP which is called when dunning is run. SAP has also provided sample function module SAMPLE_PROCESS_00001040 to indicate how to use the BTE. The FM imports I_KNA1 strutcure and pass back structure C_FINAA.
    3. Copy the standard FM to custom Z-FM and using I_KNA1-ADRNR fetch customer email address. If email is maintained, set c_finaa-nacha = 'I' and c_finaa-intad - <email>.
    4. You can also set the title of PDF file in email by setting c_itcpo-tdtitle as per requirement.
    5. Goto transaction FIBF. Settings-> Process Modules-> of SAP Application
    6. Add new entry with Process 00001040, application FI-FI and function module as custom FM created in step 3.
    Above steps are enough if you want to send dunning email to customer. If there is a need to send invoices as an attachments along with email then there is a need to enhance the standard FM PRINT_DUNNING_NOTICE. I used following approach to achieve the purpose.
    a. I created another custom FM to send invoices which I am calling from PRINT_DUNNING_NOTICE. For this, I am using implicit enhancement option to modify standard code. With this option, I am able to send 2 emails back-to-back one with dunning letter and other containing all invoice attachments with respect to dunning letter.
    Let me know, if you need further guidance.
    Regards,
    Swati

  • Dunning Letter Email for all customers

    Hi All, I need your help in my requirement, which goes like this :- In F150 tcode(ecc 6.0), which internally uses RFMAHN20 program to display all customer accounts, we can select a customer and see the dunning letter(It's a sapscript) and also take a printout. I made some changes accordingly to add the email functionality so when user checks the print preview then a pop up promts for email address( which has default value of email address assoicated with that particular customer) and send pdf letter accordingly. But my requirement is to send email to all customers who may be selected via RFMAHN20( they may be all customers who belong to the same account type). How can we achieve this in the most easy way? I already copied standard FM's associated. So can I do something in them to resolve this or any separate program is needed( if so, how?)? Please respond asap. Thank you so much...in advance

    Hi Husain...Thanks for immediate response. There is already data being pulled by standard function modules like PRINT_DUNNING_NOTICE(copied into Z). Can we use that in simpler way(without the need of any new driver program with all the data population again)? And your answer is correct which I already thought earlier and kept it as a last resort, because I need to populate all the data again, convert spool to pdf and send pdf's to all selected customers And one more thing is that the requirement is to schedule a background job which takes care of sending all the emails . So any more ideas?

  • Import Crystal Reports Dunning letter as SAP Business One layout

    Hello,
    I have created a dunning letter in Crystal Reports. I want to import this layout as a layout (not a report) in Business One.
    Problem is that I don't know the parameters in the report so I can import the layout between the standard PLD layouts (like Dunning 1, dunning 2 dunning 3 dunning all etc). I tried a few but import fails everytime. You also don't get any errormessage when the layout cannot be imported.
    Anybody knows what parameters to use in this report? Thanks.
    Regards Thijs

    Hello Gordon/ Rahul,
    Thanks for yor reply.
    I already created a Crystal report that runs as a report. In this case you select the WizardName and the report will give an output of all dunning letters in this report.
    Unfortunately it is not possible to import this report because when I do that I only get the error that SAP Business One couldn't import the layout. EXporting a layout is af course not possible because only PLD layouts are available in dunning.
    Regards Thijs

  • Printing Dunning Letter at Customer Aging

    My client is using SAP B1 2005 SP1 Patch 42.
    Dunning term and dunning level has been properly set up.
    We have also design the dunning letter for dunning level 1, eg called it DunningLetter#1
    When using Dunning Wizard, SAP prints the letter for dunning letter for dunning level 1 with no problem.  However it does not allow preview on the screen.,
    Therefore, we try to running Customer Ageing by Due date so that we can see the dunning level, if needed change it.  However, when try to print preview dunning letter, it shows nothing on the screen.  However, it can be printed directly to the printer.
    Is this how it is supposed to work?  Ie, we cannot print preview dunning letter.

    Hi Shwu
    This is a known limitation on SAP Business One. You could try printing to a document generator or PDF, but unfortunately the system updates the dunning level with each print regardless of printer.
    Kind regards
    Peter Juby

  • How to add named destination while exporting ms word to pdf that will support in adobe reader 10 and 11

    Hi,
    I need to add named destination in pdf when ms word is exporting to pdf  that will support named destination in adobe reader 10 and 11.
    I tried with options create bookmarks as word bookmarks but that also not supporting in adobe reader 10/11.
    Please let me know how we can create bookmarks while exporting MS word to PDF.
    And when we are opening pdf in IE with search parameter,its always opening PDF with 2 document on left serach panel.
    Suneetika

    Might be better to post this in the Acrobat or Indesign forums.

Maybe you are looking for

  • Closing references to front panel objects

    Short version of my question: are programmatically generated references to front panel objects (controls, etc.) automatically disposed of when the VI exits? More details: I'm recursively retrieving references to all the controls on the front panel.  

  • RAC Differences for Standard and Enterprise Editions of 10g

    Are there any differences between RAC implementations for Oracle 10g SE and RAC option for Oracle 10g Enterprise Edition (except CPU numbers limitations and CRS&ASM necessity)? I heard some buzz what RAC for SE have only HA abilities.

  • Full database export hangs (Oracle9i rel2)

    I recently migrated successfully from oracle8i rel 8.0. to oracle9i release 2,But now am not able to do a full database export.has anyone experienced this and whats the remedy?. the text i get is listed below. Microsoft Windows [Version 5.2.3790] (C)

  • ExistsNode exception with Schema based XMLType table

    hi, While running this query on structured table --> SELECT OBJECT_VALUE FROM Table_Structured WHERE existsNode(OBJECT_VALUE, '/Entity/Fields[field2="stringvalue"]') = 1; I get this exception --> Error report: SQL Error: ORA-00932: inconsistent datat

  • Cannot remove selected keyword with certain movies

    Greetings, I started with a movie file on disk. The format is Apple Motion JPEG A, 1440 x 1080, Millions. I imported it into iMovie '11 a couple of months ago, so it was iMovie 9.0.0. (I am now using iMovie 9.0.2.) The movie was converted to this for