Archiving invoice using smartform

Hi All
I am trying to archive invoices using smartform.
In the program I am directly calling the smartform by passing the archiving parameters to the function module of smartform which is determined using CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'.
I am passing the parameter to the  archive_index and  archive_parameters in CALL FUNCTION lf_fm_name.
If from the same program I am calling driver program of sap script then the document is getting archived.
Is there any problem with archiving using smartform.
Please guide.

Hello,
Check this link
http://sap.ittoolbox.com/groups/technical-functional/sap-abap/archiving-smartforms-in-sap-2653513

Similar Messages

  • Problem in customization for Interest invoice using Smartforms

    Hi all,
    While printing the interest invoice, one of the customization provided in SPRO (Financial Accounting -> Bank Accounting -> Accounts Receivable and Accounts Payable-> Business Transactions -> Interest Calculation -> Print), triggers an SAPScript form.
    Is there any other customization that makes the use of Smartforms possible?
    Thanks and Regards,
    Vijay

    Dear Sagar Pande
    In normal circumstances, if your configurations are in line with standard, it should not happen.  Anyway, please check in J1I7 with transaction type DLFC whether those values (BED, SCess) are flowing.  Not sure whether I am giving right direction but just you can try.
    thanks
    G. Lakshmipathi

  • How to take  printout  of archived invoices

    Hi GURUS,
    How to take the printout of the Archived invoices
    Regards

    Hello,
    Please check the following extract from Note 440033
    ad 2. Due to the design of Transaction VF07, certain information cannot
    be displayed:
    - Document flow
    - Outputs
    - Texts
    - Partner detail
    - Payment card data
    Possible workaround (for the future): use of optical archive.
    Documentation in R/3 Library under the path:
    Basis Components -> Basis Services / Communication Interfaces BC-SRV)
      -> SAP ArchiveLink (BC-SRV-ARL) -> SAP ArchiveLink - Scenarios in
    Applications (BC-SRV-ARL) -> SAP ArchiveLink - Archiving Scenarios (SD)
    When the documents (created by SMARTFORM or SAPSCRIPT) are printed to
    the printer you can also choose to create a copy to be sent to an
    archive content system ie optical jukebox via the Archivelink interface.
    This copy will be a PDF document identical to the printed version  which
    can be displayed later and printed if you like. To set this up you just
    need to define this in the message type for the output  (tx NACE) used
    in the application when printing invoice. You then need an Archivelink
    certified optical archive system and the associated configuration.
    Regards,
    Raghavendra

  • Printing Invoices using T VF03

    Hi
    I am trying to print invoices using Vf03. I can print most of the invoices (or the numbers that they gave me) but two.
    When I enter the number for one of those two and tell it to print from the menu it says on the bottom "output could not be issues"
    And if I double click on the error message, it opens up an window saying what might have cuassed the error, but not in detail.
    This is what it says
    "Output could not be issued
    Message no. VF304
    Diagnosis
    An error occurred while output was being issued. It is possible, for example, that the form to be issued has not been activated or has an error. An error may also have arisen while the data to be issued was being edited.
    Procedure
    Check possible causes of the problem.
    Now it prints othe invoices but these two. These are old invoices and needed to be reprinted.
    Please help
    Edited by: Anwarul Kabir on Sep 3, 2008 5:44 PM

    HI,
    Please check the text elements in the smartform.
    I mean there will be no error in the form but there may be some problems in the text elements. That too it will be while printing
    For eg: if there are three text elements but you have only 2 Boxes to print it ( take it in Main window )
    So if for some instances if all the three text elements are getting printed, then it will definitely give you an error like Output cannot be issued.
    So you need to confirm these kind of errors also in the form. This will come into picture depending on the data what you are printing in the form.
    So please check the othe data which is getting printed with the data which is not getting printed.
    When ever " Output not issued ", Please check the text elements mostly. This means it is not finding proper place to print the data.
    Some times in a row there will 2 columns. IF you pass 3 rows, then it will be definitely an error. 
    This is what i faced in 4.6 C Version.
    Mostly In higer versions you can have the line and column number in the Text elements when you put them in Templates.
    Regards,
    Venkatesh

  • Archived Invoices (on separate DB) need to be accessed via Oracle Apps

    Hi there,
    Our organization is currently on Apps 11.5.10.2 and have acquired a new company which has been moved onto Oracle. However this new company has lots of old invoices that we do not wish to migrate to Oracle as we wish to keep the Apps database lean and fast and this data is used very rarely.
    Our plan is to move this data into a separate DB/ Warehouse and build a custom application (using Oracle Forms and Reports) to query the data and print reports.
    However, we need to add some sort of link / menu item within Oracle Apps to call this new application when the user wishes to query this archived data.
    Is this possible? If so, how can this be achieved? How do we create the link from Apps to another database?
    Any help will be much appreciated?
    TIA.
    Ashika.

    Duplicate post.
    Archived Invoices to be accessed via Oracle Apps
    Re: Archived Invoices to be accessed via Oracle Apps

  • Issues while archiving Invoice documents

    Hi all,
    While archiving Invoice documents using MM_REBEL(using company code only), it was found that the write job is picking up certain open Invoices also. ie the subsequent Accounting document was not cleared/archived.
    My understanding was the system will check for retention periods and whether the subsequent documents are archived or not.
    I just wanted to know if there are any extra checks , which it looks for , as the criterion for archiveablility.
    Please let me know if anyone knows about this or if any of you have faced similar issues .
    Regards,
    Shail.

    hi,
    Dependencies
    The status of the document determines whether it can be archived:
    ·        Documents with the status Closed or Deleted can be archived.
    ·        Documents with the status Unchecked, Checked and Errors Found, or Checked and No Errors Found cannot be archived.
    Financial accounting documents generated when invoice documents are posted are not archived with the object MM_REBEL. They are archived in Financial Accounting.
    Residence Time/Retention Period of Data in the System
    The retention period for invoice documents can be configured in the Customizing system. The posting date contained in the invoice document header is the key date for the retention period.
    If a retention period has not been set in Customizing, the system takes the minimum retention period as 9999 days.
    Presettings
    In Customizing for Invoice Verification you can set the retention period for invoice documents per company code under Define Document Lives.
    Hope it helps..
    Regards
    Priyanka.P

  • Attach mail (.eml) messages to sd invoices using abap

    Good morning,
    I need a abap report to attach outlook express messages (.EML) to SD Invoices (using SapOffice?). Can anyone give an help? Is there any function-module,
    or exemple program to solve this problem?
    The idea is to strore attached to the sd invoice, the EDI messages exchanged outside of R/3 (using an external non-sap system). Those messages are have .eml format
    Thank you

    Hello,
    thanks for your help, but this is my first experience with document management in SAP, and it´s not clear for me what I have to do, as those examples are for outbound documents (sent from sap). I want to store inbound documents (import external files and link them to SD Billing documents in R/3, probably using my Archive system). It seems to me that Sapoffice document store should be perfect for this, as I would not need to do any additional work in order to open the documents latter.
    This is what I want to do: in VF03 (Change billing document) I select "Create Attachment" option and browse for a .eml file (outlook express msg) in order to store it and display it latter.
    This is perfect. Now I need to do this in abap, as this can not be a manual process.
    Can you please give me some additional details on how to get this working?
    Thank you
    Best regards

  • Error while raising a invoice using VF01

    Hi,
    I am getting an error while raising a invoice using VF01.
    Error as follows
    RV_MESSAGE_UPDATE
    Update was terminated
    System ID....   TIP
    Client.......   300
    User.....   user1
    Transaction..   VF01
    Update key...   E66E6454075548D8922BAC091E81F0CB
    Generated....   18.07.2007, 18:57:38
    Completed....   18.07.2007, 18:57:38
    Error info...   TD 443: WRITE_FORM
    Pls help
    Points will be rewarded.
    Thanks

    Hi,
    This is an ABAP short dump. If you go through the error log, there will be a section where in you can see > What caused the problem.
    Try to analyze this log and you can find a solution. Probably, you can also check whether there is any OSS note with this error message.
    Thanks
    Murali.

  • Calculate Withholding taxes for VEndor Invoices using ABAP program.

    Hi All,
    I have to upload Vendor Invoices using FB60/Fb01 tcodes. I am able to post the Invoices using FB01/Fb60
    but I have to calculate extended withholding taxes also using this program for the Invoices.
    Is it possible to upload vendor Invoices and calculate withholding taxes using Program?
    If yes,
    Does anyone has any idea how do you calculate extended withholding taxes using any BAPI's?
    I have used these two BAPI's
    BAPI_ACC_DOCUMENT_POST
    BAPI_acc_invoice_receipt_post
    they are working fine but without withholding tax.
    This is a requirement for country India.
    Regards,
    Sushil

    Hi,
    Imho, you need to get (meaning, extract into separate fields) the different supplier types from Table1 first. Your key for Table1 is the vendor no, which is also the key in Table2 (or the key for Table2 is Vendor no & Type).
    For better performance, better select multiple/all required entries from Table1 instead of doing a select endselect.
    Depending on the format of the vendortypes in Table1, put them in a new itab (for our purpose named Table1New where vendor no & type are the only 2 fields. For example, if the type length is fixed to 2 chars, or divided by space,... use your coding accordingly.
    Next step is to select all vendor no's in Table2 which you have selected in Table1. If in Table2, the vendor no is the only key (and the all vendor types are filled in a single record), then loop check the vendor types from Table1New against the types in Table2.
    If the key of Table2 is vendor no & vendor type, then do a read table for the key.
    The logic in pseudo-code:
    Select from Table1 into table. If you'd like to limit the selection size, add package size statement.
         extract the vendor types in to itab Table1New.
         Select the vendor & types from Table2 by using the for all entries option (better performance).
         loop at Table1New
              check in Table2:
                   if the unique key is vendor no: check all fields for the vendor type from Table1New
                   if the unique key combo is vendor no & type: check by using a read table.
              If not found => add entry to Table2
         endloop.
    endselect Table1 (when using package size)
    I guess the most difficult step is to extract the types from Table1 into separate fields, all the rest seems straight forward. Please keep in mind the itab type definitions for a better performance.
    Good luck!
    Best regards,
    Zhou

  • 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 ...

  • Printing Dunning Letters using Smartforms

    Hi all,
    I have a requirement wherein I need to print dunning letters using smartforms; the dunning data are extracted in program SAPF150D2;I modified the subroutine OFI_DUN_ACT to call function module FI_PRINT_DUNNING_NOTICE_SMARTF.
    Now I need to extract the dunning data in program SAPF150D2 to be imported to my new form using GET_SF_DUNN_DATA, my question is where do I code the calling of FM GET_SFG_DUNN_DATA? I'm a little bit confused on the step by step process of the dunning data extraction to printing of the form... Thanks...

    In the INITIALIZATION of the Smartforms, after the call to  GET_SF_DUNN_DATA, you have a many informations back, of which the record of MHNK and an internal table of MHND, which you can use to select other informations from database.
    So fill or enrich your own internal table in the initialization.
    I enclose thereafter a sample to help you
    * Load data
      CALL FUNCTION 'GET_SF_DUNN_DATA'
           EXPORTING
                is_sfparam          = is_sfparam
           IMPORTING
                es_mhnk             = mhnk
                es_t001             = t001
                es_knb5             = knb5
                es_lfb5             = lfb5
                es_t047             = t047
                es_t047c            = t047c
                es_t047i            = t047i
                es_t056z            = t056z
                es_f150d            = f150d
                es_fsabe            = fsabe
                es_adrnr            = adrnr
                es_uadrnr           = uadrnr
                es_adrs             = adrs
                es_uadrs            = uadrs
                es_t047b            = t047b
                eb_testprint        = testprint
                e_langu             = langu
                e_lang2             = lang2
                es_f150d_esr        = f150d_esr
                es_paymi            = paymi
                es_paymo            = paymo
           TABLES
                t_mhnd              = th_mhnd
           EXCEPTIONS
                no_parameters_found = 1
                OTHERS              = 2.
    IF sy-subrc <> 0.
      sy-msgid = 'FM'.
      sy-msgty = 'E'.
      sy-msgno = 461.
      RAISE others.
    ENDIF.
    h_t040a-text1 = space.
    show_interest = space.
    LOOP AT th_mhnd INTO mhnd WHERE xzins = ' '.
      show_interest = 'X'.
      EXIT.
    ENDLOOP.
    * Load user information
    DATA: usr21 LIKE usr21, addr3_sel LIKE addr3_sel.
    CLEAR: usr21, addr3_sel, addr3_val, adr6.
    * Charger fiche profil
    SELECT SINGLE * FROM usr21 WHERE bname = sy-uname.
    * Récupérer l'adresse
    MOVE-CORRESPONDING usr21 TO addr3_sel.
    CALL FUNCTION 'ADDR_PERS_COMP_GET'
         EXPORTING
              address_pers_in_comp_selection = addr3_sel
         IMPORTING
              address_pers_in_comp_value     = addr3_val
         EXCEPTIONS
              OTHERS                         = 1.
    * load SMTP address
    CLEAR adr6.
    SELECT SINGLE * FROM adr6
      WHERE addrnumber = usr21-addrnumber
        AND persnumber = usr21-persnumber.
    * date format
    SET COUNTRY adrs-land1.
    * Group similar posts
    DATA: xbseg TYPE bseg,
          xbkpf TYPE bkpf,
          xpost TYPE th_outtab.
    REFRESH: t_post, t_cumul_waers.
    LOOP AT th_mhnd INTO mhnd.
    * Select lines to use
      IF mhnk-gmvdt IS INITIAL.
        IF mhnd-xzalb <> space OR mhnd-mansp <> space.
          CONTINUE.
        ELSEIF t047b-xpost NE 'X' AND mhnd-xfael <> 'X'.
          CONTINUE.
        ENDIF.
      ENDIF.
    * Map data
      CLEAR xpost.
      MOVE-CORRESPONDING mhnd TO xpost.
    * Load text from bseg
      SELECT SINGLE sgtxt INTO xpost-sgtxt FROM bseg
        WHERE bukrs EQ mhnd-bbukrs AND belnr EQ mhnd-belnr
          AND gjahr EQ mhnd-gjahr  AND buzei EQ mhnd-buzei.
      PERFORM edit_text CHANGING xpost-zuonr mhnd-xblnr xpost-sgtxt.
    * if "Payment difference" get the date of original document
      IF mhnd-bschl = '06'.
        SELECT SINGLE bldat INTO xpost-bldat
          FROM bkpf
          WHERE bukrs = mhnd-bukrs
            AND belnr = mhnd-rebzg
            AND gjahr = mhnd-rebzj.
      ENDIF.
    * Collect posts to print
      COLLECT xpost INTO t_post.
    * Collect amount per currency
      MOVE-CORRESPONDING xpost TO cumul.
      COLLECT cumul INTO t_cumul_waers.
    ENDLOOP.
    * Load customer information
    SELECT SINGLE * FROM kna1 INTO kna1
      WHERE kunnr = mhnk-kunnr.
    SELECT SINGLE * FROM knb1 INTO knb1
      WHERE bukrs = mhnk-bukrs
        AND kunnr = mhnk-kunnr.
    * Convert date to text
    PERFORM convert_date USING control_parameters-langu mhnk-laufd
      CHANGING text_date.
    PERFORM convert_date USING control_parameters-langu mhnk-prndt_before
      CHANGING text_prev.
    PERFORM convert_date USING control_parameters-langu mhnk-grdat
      CHANGING text_extr.
    Regards

  • Dunning phases and blockades not visible for archived invoices in FPL9

    Hi experts,
    I am not able to see the dunning phases and blockades for archived invoices when i am opening FPL9 with archive.
    My requirement is that it should be visible and donot so any error message.
    Can you please provide me with the solution ?
    Thanks and Regards.
    Ajit Krishna

    Hi
    When you Full reverse an Inv, it will not show in ES32 but can see ERDK table with original and reverse inv doc numbers. The new invoice will be genreated based on the restored Billing order for the same period.
    FPL9 -show current valid posted amount as due amount & posting reversed inv amount will be shown as _ve.
    Message was edited by: G Reddy

  • How to create invoice using bapi  base on delivery number with example

    hi,
    Pl give me one example to create invoice using bapi base on delivery number (PGI).

    Use this code
    * Pass the delivery no to the FM to create the invoice
          wa_vbsk-smart = u2018Fu2019.
            wa_komfk-vbeln = nast-objky. u201CuF0DF-----delivery number
            APPEND wa_komfk TO it_komfk.
            CLEAR wa_komfk.
    *    To fill the message structure
    *        l_wa_error-vbeln_vl = nast-objky. " Delivery No.
    *        l_wa_error-fkart = wa_ztab-bil_doc_type." Billing Doc type
            CALL FUNCTION 'RV_INVOICE_CREATE'
                    EXPORTING
    *                 delivery_date             = 0
                     invoice_date              = v_date  u201C<- date
    *                 invoice_type              = '    '
    *                 pricing_date              = 0
                     vbsk_i                    = wa_vbsk
                     with_posting              = u2018Du2019
    *                 select_date               = 0
                     i_no_vblog                = ' '
                     i_analyze_mode            = ' '
                     id_utasy                  = ' '
                     id_utswl                  = ' '
                     id_utsnl                  = ' '
                     id_no_enqueue             = ' '
                     id_new_cancellation       = ' '
    **             IMPORTING
    *               VBSK_E                    =
    *               OD_BAD_DATA               =
    *               DET_REBATE                =
                    TABLES
                      xkomfk                    = it_komfk
                      xkomv                     = it_komv
                      xthead                    = it_thead
                      xvbfs                     = it_vbfs
                      xvbpa                     = it_vbpa
                      xvbrk                     = it_xvbrk
                      xvbrp                     = it_vbrp
                      xvbss                     = it_vbss
    *               XKOMFKGN                  =
    *               XKOMFKKO                  =

  • Clearing an Invoice using the DI

    Hello
    I am experiencing a problem when I generate a Journal Credit that is matched to a invoice using the DI but the balance on the invoice does not reduce or clear. I am using the following code:
    ' Generate the Excess Invoice/Document
    oJournal = oDICompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
    oJournal.TaxDate = Now
    oJournal.Memo = "Excess-" & oCustName.Value
    oJournal.Reference = lDocNum
    oJournal.Lines.AccountCode = sGLTradeAcc
    oJournal.Lines.ContraAccount = oCustAcc.Value
    oJournal.Lines.ShortName = oCustAcc.Value
    oJournal.Lines.Debit = rExcAmt
    oJournal.Lines.Credit = 0
    oJournal.Lines.ReferenceDate1 = Now
    oJournal.Lines.LineMemo = "Excess-" & oCustName.Value
    oJournal.Lines.Reference1 = lDocNum
    oJournal.Lines.Add()
    oJournal.Lines.AccountCode = sGLTradeAcc
    oJournal.Lines.TaxDate = Now
    oJournal.Lines.ContraAccount = oInvParty.Value
    oJournal.Lines.ShortName = oInvParty.Value
    oJournal.Lines.Credit = rExcAmt
    oJournal.Lines.Debit = 0
    oJournal.Lines.ReferenceDate1 = Now
    oJournal.Lines.LineMemo = "Excess-" & oCustName.Value
    oJournal.Lines.Reference1 = lDocNum
    oJournal.Lines.Add()
    If (0 <> oJournal.Add()) Then
      MsgBox("failed to add a journal entry")
      Call oDICompany.GetLastError(nErr, ErrMsg)
      If (0 <> nErr) Then
        MsgBox("Found error:" + Str(nErr) + "," + ErrMsg)
      End If
    End If
    oJournal = Nothing
    Please help !
    Regards
    John

    Hi John,
    You can only "clear" (= "Close"?!) an Invoice by posting a Payment or a Credit Memo, if I am not totally wrong!
    A Journal entry only has a connection to a document (through the Origin / Origin No. fields) when it is generated in the background of the document creation!
    Sorry, Frank

  • Trying to create Invoice using the API,however i am not able to create the customer accounts in the front end

    when creating invoice using the API AR_INVOICE_AP_PUB.Create_Single_invoice Am Getting the below Error:
    Transaction type is invalid with current transaction date
    invalid transaction type
    either an inventory item description must be provided
    Kindly help me here

    Hi Team,
    I  tried creating the invoice and I got the above errors, however, when updated the batch source ID I am now getting this following error only, i am just left with the following Error only
    Either an inventory item or description must be provided.
    Please help me on this.

Maybe you are looking for

  • How to create a more general install package for an AIR app?

    Hi, I have been using the ADT to compile an exe of my AIR app along with some other files I want to distribute. Problem is, I would like to do more general install actions (e.g. copy a bunch of files to the users Documents directory, copy a file to t

  • Column selected at run time in ALV!!

    Hi, IS ther any way to know how many fields have been hidden on the output list of ALV... any indicator that gets set once we hide some field.... as i need to send only those columns which are selected as layout from the output list... Regards Gunjan

  • Hard Drive 12 in Pbook; What brand of

    Just curious as to what brand of hard drive is being used in the 12" 1.5 pbook. My G3 ibook is using an ibm and my mini has a seagate. Does it depend on the hard drive size? Thanks for any help.

  • Qosmio F750 -How to watch movie or smth else in 3D mode?

    Before i've bought this laptop, i saw plenty of clips and read a lot of articles about easy 3d mode when cam is watching for your eyes. Now I cant find any software which can do so. I've found only Toshiba Video Player, but it plays only DVD or mpeg

  • Adding video and audio goes to track 4....

    Seems to only happen from videos I record of my Flip Video recorder but I don't know why. Any ideas?