Preview invoice in ABAPcode

Hi,
In a report we can click on a invoicenumber(SD) (hotspot) which leads us to tcode VF03-Display billing document. This is quite simple en works ofcourse fine.
However the requirement is not to show VF03 but to display the invoice in print-preview mode. In VF03 we can do this through menu: issue output to - screen.
Is it possible to ABAP (function module perhaps) to show invoice directly in printpreviewmode.
Bert

Hi Bert,
Get the entry for the table NAST for your selected invoice #. Now call the sub routine EINZELNACHRICHT_SCREEN from the program RSNAST00 to show the print preview of the invioce.
Here is the sample code. I have hardcoded some values (invoice #/Output type/Partner type/Partner# --> These entries should be from the NAST table).
REPORT ZZEXCEL.
TABLES : NAST.
DATA L_RCOD TYPE SY-SUBRC.
SELECT SINGLE * FROM NAST WHERE
       KAPPL = 'V3'         AND
       OBJKY = '0090000001' AND
       KSCHL = 'RD00'       AND
       SPRAS = 'E'          AND
       PARNR = '0001000001' AND
       PARVW =  'RE'        AND
       ERDAT = '20030414'   AND
       ERUHR = '173509'.
NAST-TDARMOD = '1'.
PERFORM EINZELNACHRICHT_SCREEN(RSNAST00) USING L_RCOD.
WRITE: L_RCOD.
LEt me know , if u need any clearifications.
Best Regards,
Vijay

Similar Messages

  • Print preview invoice issue for a parcular invoice in vf03

    Hi,
    I am facing an issue with the print preview invoice. I have 2 billing document nos., for billing document 3117101008 when I go to "Billing Document"->"Issue to output"-> and click on "print preview" I get an output, but for the other billing document 3117101007 when I click on "Print preview" nothing happens, it just keeps on loading and everything gets hanged.
    Do I need to do any modifications in my custom include "YV0023INV_PRINT_F01" or is there anything linked with the header details table 'IT_HU_HEAD'.
    Please advise, appreciate your efforts.
    Thanks

    Hello Bawneet,
    Are you facing this issue only to this billing document ?
    Did you check the same for 1008 billing document ? First try to open 1007 and then next open 1008 document, here please check are you facing the same issue like screen keeps on loading issue.
    Please check this and come back with your issues.
    Thanks & Regards,
    Lakshmi S

  • Print Preview Invoice Before Save

    Hello,
    We have a requirement to preview the invoice print in transaction VF01, before the actual SAVE. This scenario is to present the opportunity to the user to back out of saving the invoice if something is incorrect.
    Thanks,
    Pankaj

    Hi
    How can you get printout with billing document savinng.If the document number not get generated you can not  get the printout.
    You have another alternative to achive this, create a proforma invoice with ref to Sales order/delivery , if it is ok and then go ahead for Final invoice this is what the business is doing.
    Thanks,
    Narasimha

  • Print Preview Invoice

    Hi All,
    I wanted to get five copies of same invoices at a sigle print with different headings (to vendor,office copy,duplicate,triplicateetc..)
    How it is possible in B1
    By
    Firos C

    Hi Friend,
    I know this but i wanted to get different heading for different copies. I mean i have define different name for each copy base on custome requirement.
    I have seen a link in forum but i am not able under stand it
    <a class="jive_macro jive_macro_message" href="" __jive_macro_name="message" modifiedtitle="true" __default_attr="6208409"></a>
    By
    Firoz C

  • Recommendations, samples, etc for creating a "Vendor Invoice" Content Type.

    I am developing a "Vendor Invoice Approval" application in SharePoint 2013. My development platform is "Visual Studio 2013". This will be an "Intranet only" application running only on our internal SharePoint
    2013 Farm.
    I am planning on using a "Document Library" to store all of the Invoices. I believe the "correct" approach (or one of many, probably, lol) would be to create a "Content Type" called "Vendor Invoice". The "content
    type" would then need to have the following functionality:
    Custom Columns. Some columns would be "required", some would be "optional".
    Vendor Name - Chosen from a “Vendors” list (a SharePoint "custom" list that contains "Vendor Name" and "People Responsible" (which will be a "People" type column and allow multiple choices/people from
    a SharePoint Group called "Vendor Invoice Person Responsible"). The user may also enter a new Vendor Name.
    Person Responsible - Limited to the users in the “Vendor Invoice Person Responsible” SharePoint Group. Will allow the selection of 1 or more "people" from that Group. (When a Vendor Name is "chosen" (above), this field
    should be populated with the values from the "People Responsible" record for that Vendor. The user can then ONLY choose between those users or choose them all. Optionally, I may just store a single Person in the "Vendors" list and use that
    to populate this field with a "default" value, but then allow the user to pick ANY user from the "Vendor Invoice Person Responsible" SharePoint Group).
    Invoice Number (Will probably renamed the “Title” column.)
    Invoice Date
    Invoice Amount
    PO Number (When entered, look it up in our ERP system and populate as many fields as possible, such as the Vendor Name, Account Number and Plant.)
    Status - Most likely this field will only be adjusted via "workflows". Choices are:
    “Created” – The initial Status when an Invoice is created (BEFORE any “Issue” or “Approved”).
    "Pending Issue" - An "Issue" needs to be resolved. (See "Issue" below.)
    “Issue Resolved” – The current “Issue” has been resolved. The next status could be “Pending Issue” (if there is another Issue to resolve) or “Approved”.
    “Approved” – All Issues have been resolved.
    “Issue Check” – The Invoice was “Approved” and a check may now be issued to the Vendor.
    “Completed” – The Invoice has been “Approved” and the vendor has been issued a check.
    Issue - Chosen from an “Invoice Issues” list (a SharePoint "custom" list that contains "Issue" and the name of a "WorkFlow" to execute on the "Invoice" in order to resolve that particular "Issue").
    When an Issue is chosen, this will trigger a "Workflow" (or more than one?? probably only one...) to start.
    Account Number
    Plant (Choices: 1-New York, 2-Los Angeles,99-Headquarters)
    Invoice Notes
    Template/Forms (Insert/Update)/Development/Event Receivers/Display Template/"UI". This is the part that I am unsure of and where "Visual Studio" will be used. (I have quite a bit of experience developing "SharePoint
    Solutions". I am not interested in using the new "App Model". I have read about it, studied it, setup a local "App Store", etc, but for this particular application, I am going to stick with the "old" Solution based model.
    I am more familiar with it and "believe" it will give me the most "power" and "flexibility". As I said.... I am unsure how to "categorize" the following "needs", so I am just going to lump the rest of the "features"
    I need into the list below and ask for any feedback and/or help. :)
    Adding Invoices - Ideally, the "drag and drop" feature will (can) be utilized by the user to add the new Invoices (I can force them to only add one Invoice at a time). If this is just "too much trouble", I
    could require the user to only add them using the "Upload Document" control. Or, I could develop the UI  (or just the Insert/Update UI) using traditional "ASP .Net" controls and insert/update the data using the Server
    Object Model or the Client Object Model (CSOM).
    Preview Invoices - There are several times I would like to show the Invoice (pdf) as a "preview" (when the Invoice is being Added or Edited, when the user is "Approving" or "Denying"
    on Invoice via a "WorkFlow", or when an Invoice is "hovered" over in a Document Library View). Basically, anytime the Invoice needs to be acted on by a user, I would like to show the PDF in a "preview" window and
    I don't mean just open it in a separate Tab or Window. I mean use something like an "IFrame" in a certain area of the page (depending on what the page is doing: Inserting/Editing/Viewing/etc) to show that preview.  (For the "hover
    preview", I believe I can use the same skills I learned when modifying how the "Enterprise Search Center" works with PDFs. Basically, it involved adding a new Display Template for the Search Item and referencing that template
    in a new "Search Result Type". The new Display Template created an "IFrame" and populated it using our Office Web App Server via "WOPI". Anyway, I believe I can simply do the same thing in a Document Library View and most
    likely in whatever "form" or "page" is responsible for the Insert/Edit. I suppose I am just looking for someone to tell me if this is "doable" (and as "easy" as I think it might be), what the "best"
    way to accomplish it would be, or if it is a bad idea, etc. etc.)
    "Auto Populate" the columns. When a new Invoice is added, I would like to use the (Enterprise) Search functionality (OCR and "graphic matching") to somehow populate as many of the columns (metadata) as possible.
    This might involve looking for some particular "text" or graphic(s) (like a company logo?) to determine the Vendor. Then, once the Vendor is determined, I might be able to figure out other items, such as the "Invoice Number" and "PO".
    Usually our Vendor Invoices don't change very often. This would only serve as "default" values, so it wouldn't have to be 100% correct. Anything I can do to save the user time or make it easier to enter new Invoices will go along way towards
    acceptance of this application. (Currently, they use an Excel Spreadsheet, along with email. So, from their point of view, the existing "system", "works" and is very "easy" to use,  etc....)
    More uses for the "Search Index Results". It would also be "nice" if we could setup some "weighted rules" on a "per Vendor" basis to help determine who the "responsible user" is. (For instance,
    we may get Invoices from a single Vendor that could possibly go to 1 of several "responsible users". In order to determine the correct user, I would like to setup some "rules" for each vendor to give "weighted" values to
    certain "keywords". For instance, if the word "Computer" appears on the invoice, that might be worth "100 points" towards the "IT Manager". So, when the user is selecting the person responsible for this particular invoice,
    I could order the list they are choosing from by the "total points" (as calculated from the "weighted rules") which would put the "Person" who is most "likely" the "Person Responsible" at
    the top of the list, followed by the second most likely, and so on. I don't think this be that "hard" to do. I would simply need to store "keywords" and "values" and have access to the "Search Index Results" for the
    document (Invoice) the user is currently adding.
    **Another "option" I have for developing this application is to basically develop it using a traditional "ASP .Net" framework and controls (which I definitely have more experience with, but as I mentioned, I also
    have quite a bit (4-5 years) of SharePoint development experience) and just using the "out of the box" features of SharePoint (and Custom Lists, Document Libraries, SharePoint Security Groups, WorkFlows), etc. What I am trying to describe is that
    I would develop the "UI" (add/change/delete) using traditional "ASP .Net" controls and just use SharePoint for my "Data Source". (I DO need to AT LEAST use SharePoint as the "Data Source". This is for reasons that
    I don't want to get into here and just bog down the discussion. I certainly realize this application could easily be a "traditional" "ASP .Net" application using "SQL" for the Data Source. So that part really isn't what I am looking
    for "advise" on.)
    Any help/advice/samples would be very MUCH appreciated!
    Shayne

    You should generate the XSD form the DTD files. Also you should list values unless necessary. XMLSpy is good tool I use.
    You can send the XML schema file to me if you can't register it to XML DB. I will help you take a look.

  • Print preview MIRO output

    Dear friends,
    Where we can print or see print preview, invoices posted through MIRO tcode ?
    Regards,
    Praveen Lobo

    hi
    u can see with tcode MR90 .
    You execute this transaction  and then select the line item for which you want print .
    then in the header move to GOTO and there you will find print preview.
    hope it helps
    reward if useful
    Rohit

  • Preview is ok, Print is wrong. For Scriptform.

    Dear all,
       thanks first.
       I encounter a puzzle during developing a PO form.
        I draw some horizontal line(uline) in some windows. Length of these horizontal  lines is 19 cm.
        These lines is right when i preview the form. its length is 19 cm.
        But these lines shorten after print. Its length is only 16 cm.
    Statement for form
        &uline(70)&
      Pls tell me if you have any idea,  thanks a lot.
      Shi Chun Qing.  2008.10.14  08:58

    Dear all.
    this is script form ,no smartform.     Page size 19 Cm  * 27 cm  A4
    Preview :
      Invoice...Service...invoice...Trans...Curr...Invoice ...Location .................Payment....Cheque
      Number..Month....Date......Actn.... ency. Amount................................Amount .....Number
    Print:  the two horizontal line shorten
      Invoice...Service...invoice...Trans...Curr...Invoice ...Location .................Payment....Cheque
      Number..Month....Date......Actn.... ency. Amount................................Amount .....Number
    Edited by: SHI CHUN QING on Oct 14, 2008 8:44 AM
    Edited by: SHI CHUN QING on Oct 14, 2008 8:45 AM
    Edited by: SHI CHUN QING on Oct 14, 2008 8:45 AM
    Edited by: SHI CHUN QING on Oct 14, 2008 8:48 AM

  • Error while transferring Forwarding settlement document to ERP Billing

    Hi Experts,
    My forwarding settlement document is consistent.
    All the basic customizing in SAP ERP, TM has been completed as follows, but getting error while transferring forwarding settlement document to ERP billing (Ref. 1st screenshot).
    I am using SAVE AND TRANSFER button to send the document to ERP, also same error is displaying while using PREVIEW INVOICE button (Ref.2nd screenshot)
    Please suggest if I missed anything to send forwarding settlement document to ERP.
    Customizing settings for transferring Forwarding settlement document to SAP ERP.
    1. In SD Billing all condition types has been maintained, pricing procedure determination configured.
    2. In SAP ERP SD condition types mapped to TM charge types using following path.
    Integration with other sap components - Transportation management - Invoice integration - Billing - Definition for transportation charge elements - Define charge types.
    3. Assignment of charge types in ERPSD
    4. Define charge category, subcategory codes
    5. Mapped ERP SD, TM sales organization with logical TM system, sales area, Order type, Billing type, Pricing procedure
    6. Output types determination configured for ERP Billing in SD

    Dear Serhat,
    I don't think this is an RFC problem or an error. But you wrote:
    When I checked why its value is 'X', I saw that if the RFC destination and the current system are the same, then lv_no_commit = 'X', (means if the R3 and the GTS are in the same server, same client.)
    It is impossible to have GTS and R/3 on the same system and same client. At least the client should be different. So try to check why the call is performed like that.
    Balazs

  • Excise invoice print preview.

    Hi..Gurus,
    How we can see the print preview of the excise invoice. What the settings that are needed?
    regards,
    jyothi.

    hI,
    gOTO t.CODE NACE and select V3 then click the output types button, then select j110 for out put type for excise invoice, also maintain condition record and accesses sequence for the output type, then assing this to partner function, also for processing routines specify medium as 1 (printout) program as RLB_Invoice or what ever developed in your project also assgin smartform which was developed by your ABAPER.
    Then do the output determination by going to SPRO>SD>BF>output determination>output determination for Billing.
    If you maintain all these then you will be able to see the print preview of your excise invoice by going to VF02 and select the output type and then see the print preview but first you have to create your excise invoice.
    Hope this will give u some idea,
    Reward points if helpful.
    Bye
    Anil

  • How to see the print preview of outgoing excise invoice.

    Hi Experts,
    How to see the print preview of outgoing excise invoice.
    Thanks,
    srinivas.

    Dear Sreeni,
    Just go to J1IIN, click on "Exc.inv for delivery -- Display" where you input delivery reference and execute. If you have generated excise invoice, you can see the corresponding excise invoice for that delivery / billing document.
    Preethi.

  • Print preview issue with invoice script

    Hi folks
    i am working on preparing UTP for a invoice script(modification of standard one).
    here when i am running the billing document number in VF02 i am not able to see the print preview.
    i would like to know what should i do on this as i need a printpreview to prepare  UTP on this layout.
    when i select the message type(output type) of that layout and press the option print preview nothing is happening.
    when i say print in the status bar it is giving success message and when i saw in the spool the status is in waiting.
    can anyone let me know what i need to do ?
    thanks in advance

    Hi
    Do u know the o/p type  of the script ?
    if not ist see the out put type by going to Tcode NACE
    after thatjust go through the steps...
    1 vf02 > give a doc no-> enter
    2
    from menue bar chose GOTO> Header> output
    3.
    now give the output type . medium -> printout press enter
    4
    save and go bck to 1st screen of vf02
    from menue bar chose billing document--> issueoutput type
    chose select the printout and select print preview.
    rewards if useful
    Regards
    Sachhi

  • Invoice printing output preview is not displaying anymore.

    Hello
    The user have invoices where you cannot click the issue output preview. Before the 9th of january everything was fine, he said all he did was transport 2 things.
    1. made the field of payment term mandatory instead of it being optional.
    2. Added new payment terms, about 5 or 6 new ones.
    He says on the 10th of january he started seeing this problem. Also, the accounting document is not being created for those invoices after the 9th of january. Before 9th , there were no problems.
    Any ideas or solutions.
    Thanks in advance

    Hi
    Use Tcode VFX3 and try to release the documents and advise the error as to why the the accounting documents are not being generated
    Anurag

  • Cannot preview journal entry in AP Invoice

    Dear Experts,
    Good day!
    One of the users who create AP Invoice cannot preview the journal entry while adding such document. SAP B1 automatically directs it to the approval process? What would be the possible cause of this? He is a limited financial user with full authorization in AP invoice, Journal Entry etc.
    I hope you could help me with this.
    Thank you.
    Regards,
    Alven

    Hi Sir,
    Thank you for your response.
    But in my unit i can preview the journal entry before SAP activates its approval process. By the way I am using SAP v9.0 PL12 and my client use only v9.0 PL05..
    I just discovered that its a program error and such bug was fixed in PL08.
    Please see SAP Notes below.
    http://service.sap.com/sap/support/notes/1905717
    http://service.sap.com/sap/support/notes/1925757
    Regards,
    Alven

  • Preview results in SAP B1 differ from Crystal Report - AR Invoice

    Greetings,
    I have an AR Invoice layout which I want to show the base document number at the header which I call it Delivery Note No.
    I created a subreport for this because of the possibility of a few deliveries for 1 invoice.
    All the marketing documents have a prefix which is from the table NNM1.
    The way I linked in the subreport as the follow:
    OINV.DocEntry-->INV1.DocEntry
    INV1.BaseEntry-->ODLN.DocEntry
    ODLN.Series-->NNM1.Series
    When I preview the main report (AR Invoice) in Crystal Report, I get the correct prefix for the Delivery No. However, when I import it into SAP B1 and preview the invoice from there, it showed me the Invoice prefix instead. Why is it not showing the delivery prefix?
    Am I doing something wrong here?

    Hi,
    Basically Crystal report run with SQL statement, I would suggest to do well performance tuning on SQL query / Store Procedure.
    Structure your query in DBA manner that will make some how faster such as use ( inner join, less condition,...)..
    also if it simple query then use Command in Crystal report rather store Procedure..that make some how Faster your report.
    Thanks
    Kevin
    Edited by: Kevin Shah on May 27, 2011 4:21 PM

  • AR Invoice print preview

    Hi Experts
              In Sap B1 9.0 AR Invoice while taking at the time of preview am getting a report i customized while taking print that report contains 5 different hedings on right side top as ORIGINAL,DUPLICATE,QUADRADUPLICATE,TRIPLICATE,ETC.how to acheive this in query.
    Regards
    Vinoth

    Hi
    Check this
    Print multiple copies in Crystal Report
    How to Print original, duplicate, triplicate in single layout
    Three copies in crystal reports
    Crystal Report Copies
    Thanks
    Mohammad Imran

Maybe you are looking for

  • IPhone Not Syncing to iTunes, despite re-install

    Hi, I was having problems with iTunes on a Mac recognising iPhone, iPad, etc.  Had tried all suggested fixes and eventually re-installed iTiunes (and removed various pref files, which solved the problem.  HOWEVER, a day later the problem has returned

  • Message not found. Application: FND, Message Name: FND_VIEWOBJECT_NOT_FOUND

    Hi, we are currently upgrading our environment from R12.1.2 to R12.1.3.(Projects) In the R12.1.3 there is a change in the TeamTableVO and already we have exteneded the standard VO in R12.1.2 as UDTDPATeamTableVO. So due to oracle changes the custom V

  • Trick to group multiple albums into one?

    Ive got about 20 albums from one artist and it takes up a huge amount of space in the album view. Is there a trick, other than changing all the names of the album to group them all into one?

  • Command line arguments to a string

    I run a script on CLI with n number of parameters like this... <pre>bash myScript one two three four</pre> How can I get within the script a string represented as "onetwo+threefour"

  • Dynamic group of DHCP 2012 windows server objects

    Dear All, We need to create a SCOM dynamic group to have Windows server object of DHCP 2012 installed servers. Went through this post and tried to edit the mp xml file by inserting below mentioned lines. But, i couldn't import the MP back.