How to get that the invoice has been printed or not?

Hi Experts,
I have a issue in Printing Invoice. I have to make 2 copies of an invoice. One is Original and another is Duplicate. I have made that with copy windows. But the requirement is that when the original copy of a selected invoice has been printed then from the second time only the duplicate copy will be printed. How to do that in ABAP? How to get the information that the invoice has been printed or not?
Regards,
SURYA

Hi Surya,
Try the below approach, i think this is better than the previous approach and takes care of the print from "text menu" as well
select from z table.
if sy-subrc eq 0.
  call "SMARTFORM_COPY"
else.
While calling the smartform, make sure you import the "JOB_OUTPUT_INFO" parameter,
and after you call the smartform,
call "SMARTFORM_ORIG"
exporting...
Importing...
job_output_info = w_job_output_info
exceptions...
If sy-subrc eq 0.
  if w_job_output_info EQ 'X'.
    update the Z table.
  else.
    do not update the z table
  endif.
endif. 
endif.
Regards,
Chen

Similar Messages

  • How to verify that the request has been moved to Quality System

    Hi friends,
    I a new abaper and i need ur help in solving this issue.
    I have developed an object and released( as per the suggestions given already in this forum). Its working well and i can see the request in released status in se09.
    No what i really want is , How can i verify that the request has been moved to Quality System by the basis people, assuming that i have only access to dev system.

    Yes, once u release the request, if it is successfullly released will make the request avaialble under released requests
    As an ABAP'er this is enof
    <b>wht abt me Sravanan :-(</b>
    Regards
    - Gopi
    Message was edited by: Gopi Narendra

  • How to check whether an invoice has been paid or not?

    Hi,
        In FI, how should I check whether an invoice is paid fully and also whether it has any residual item?
    And how should I pay an invoice with some residue? Which transaction I should use and what are the steps to do that?
    Since I'm new to FI, any guidance will help me a lot...
    Thanks,
    Priya.

    Hi Priya,
    you create a posting with residual items as follows:
    <b>Incoming payment</b>
    1. Start transaction F-28
    2. Enter all required information and click on <i>Process open items</i>
    3. On the next screen click on the tab <i>Res. items</i>
    4. Make sure that only the items that you want to pay are highlighted ((Net amount appears in blue)
    5. For each line item enter the residual amount that is still to be paid (Example: you have one invoice over 100 USD and 80 USD are paid, you enter 20 USD, since this is your residual that still needs to be paid)
    6. Save
    <b>Outgoing payment</b>
    1. Start transaction F-53
    2-6. is identical to incoming payment
    Regards,
    Claus

  • When I send an email notification that the form has been sent I want the receiver to get a copy of the actual filled out form not a ling to the data, how can I make this happen?

    When I send an email notification that the form has been sent I want the receiver to get a copy of the actual filled out form not a ling to the data, how can I make this happen?

    Hi,
    you can find documentation for Designer under this website
    http://help.adobe.com/en_US/livecycle/10.0/documentation.html#task=4,5&module=2
    In Designer you can use the JavaScript API of Acrobat.
    So the Devnet for Acrobat is also a good source.
    http://www.adobe.com/devnet/acrobat.html
    http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf

  • Hi, for Iphone tips page "see when a message was sent " , then how do I know that the message has been read?

    Hi,
    for Iphone tips page "see when a message was sent " , then how do I know that the message has been read? Thanks  

    Hi Bhavesh,
    Please see my replies inline:
    > 1. If i remember your ealier thread correct also, I
    > would suggest that you drill down in Where Did the
    > Error Occur. Instead of no restriction, select
    > Adapter Engine and also your Corresponding Adapter
    > and then trigger the error message and check if the
    > alert is triggered.
    When I click on "Where did the error occur" -> "Adapter Engine", I do not have a choice of errors from the dropdown. I only see one option "*".
    Is this right?
    > 2. ><i>When I click on "Alert Inbox" ->
    > "Subscription", I get a message "The table does not
    > contain any entries". Is this correct?</i>
    >
    > Yes this is correct. You have defined in your alerts
    > as the option as FIED RECIPIENTS. You also have
    > options like Reciepients via User Role and
    > Subscription Authorization in ALRTCADTDEF.
    >
    I see.
    I've also managed to overcome this problem by selecting "Subscription Authorization" in the Alert Category Definition page, and entering SAP_XI_MONITOR as one of the roles.
    After that, I am able to see a the alert category defined. By default it's already subscribed, because I'm using the same user - PISUPER.
    I saw in another post that the option "Suppress Multiple Alerts of this Rule" should be left unchecked. I tried that, but I still do not see any alerts raised in ALRTDISP.
    What did I miss?
    Please help.
    Thanks.
    Ron

  • When downloading updates for Quicktime 7 and Itunes 10 I keep getting an error saying that files shared by these updates has an invalid signature and that the downloaded has been removed.

    When downloading updated for Quicktime 7 and Itunes 10 I keep getting an error saying that files shared by these updates has an invalid signature and that the downloaded has been removed. If I don't get that message I get a message saying that the download was unsuccesful and that in order to download I need to go to tools and then select dowload only. Please help I really want to update my iphone!

    Thanks for helping out, but I already tried these steps.
    I even tried this on a iMac with similar results. The only difference was that the errorcode was called 2001 instead of 21.
    Today I took the phone to www.iphoneambulancen.dk. A guy (in Aarhus, Denmark) that specializes in iPhone repairs. I figured, that given his occupation he'd seen most errorcdes. Two hours later, he called me back, and told me that he had replaced the battery.
    So, it turns out that a broken battery can cause this behaviour.
    But thanks again

  • HT4623 In attempting to update my phone software, the program tells me that the backup has been corrupted and needs to be deleated first.  How do I do that?

    In attempting to update my phone software, the program tells me that the backup has been corrupted and needs to be deleated first.  How do I do that?

    Launch iTunes. Go to Preferences, Devices pane. Click on a backup and click Delete.

  • HT1539 I purchased the Bu Ray/Digital Copy of "Voyage of the Dawn Treader" today at Best Buy, but when attempt to install the digital copy, I get a message about 3 minutes into the download that says that the download has been interrupted, and to check av

    I purchased the Bu Ray/Digital Copy of "Voyage of the Dawn Treader" today at Best Buy, but when attempt to install the digital copy, I get a message about 3 minutes into the download that says that the download has been interrupted, and to check available download in the store drop down menu in Itunes.  Nothing there!  The digital copy disc does not seem to play smoothly on my Imac, which may be the cause of the problem.  What do I need to do to download the digital copy to my computer/Itunes?
    Thank you, 
    Jonathan Mink

    I purchased the Bu Ray/Digital Copy of "Voyage of the Dawn Treader" today at Best Buy, but when attempt to install the digital copy, I get a message about 3 minutes into the download that says that the download has been interrupted, and to check available download in the store drop down menu in Itunes.  Nothing there!  The digital copy disc does not seem to play smoothly on my Imac, which may be the cause of the problem.  What do I need to do to download the digital copy to my computer/Itunes?
    Thank you, 
    Jonathan Mink

  • How to know that a method has been called and returning value of a method

    Hi, everyone! I have two questions. One is about making judgment about whether a method has been called or not; another one is about how to return "String value+newline character+String value" with a return statement.
    Here are the two original problems that I tried to solve.
    Write a class definition of a class named 'Value' with the following:
    a boolean instance variable named 'modified', initialized to false
    an integer instance variable named 'val'
    a constructor accepting a single paramter whose value is assigned to the instance variable 'val'
    a method 'getVal' that returns the current value of the instance variable 'val'
    a method 'setVal' that accepts a single parameter, assigns its value to 'val', and sets the 'modified' instance variable to true, and
    a boolean method, 'wasModified' that returns true if setVal was ever called.
    And I wrote my code this way:
    public class Value
    boolean modified=false;
    int val;
    public Value(int x)
    {val=x;}
      public int getVal()
      {return val;}
       public void setVal(int y)
        val = y;
        modified = true;
         public boolean wasModified()
          if(val==y&&modified==true)
          return true;
    }I tried to let the "wasModified" method know that the "setVal" has been called by writing:
    if(val==y&&modified==true)
    or
    if(x.setVal(y))
    I supposed that only when the "setVal" is called, the "modified" variable will be true(it's false by default) and val=y, don't either of this two conditions can prove that the method "setVal" has been called?
    I also have some questions about the feedback I got
    class Value is public, should be declared in a file named Value.java
    public class Value
    cannot find symbol
    symbol  : variable y
    location: class Value
    if(val==y&&modified==true)
    *^*
    *2 errors*
    I gave the class a name Value, doesn't that mean the class has been declared in a file named Value.java*?
    I have declared the variable y, why the compiler cann't find it? is it because y has been out of scale?
    The other problem is:
    Write a class named  Book containing:
    Two instance variables named  title and  author of type String.
    A constructor that accepts two String parameters. The value of the first is used to initialize the value of  title and the value of the second is used to initialize  author .
    A method named  toString that accepts no parameters.  toString returns a String consisting of the value of  title , followed by a newline character, followed by the value of  author .
    And this is my response:
    public class Book
    String title;
    String author;
      public Book(String x, String y)
       { title=x; author=y; }
       public String toString()
       {return title;
        return author;
    }I want to know that is it ok to have two return statements in a single method? Because when I add the return author; to the method toString, the compiler returns a complain which says it's an unreachable statement.
    Thank you very much!

    Lets take this slow and easy. First of all, you need to learn how to format your code for readability. Read and take to heart
    {color:0000ff}http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html{color}
    Now as to your first exercise, most of it is OK but not this:   public boolean wasModified()
          if (val == y && modified == true)
                return true;
    y being a parmeter to the setValue method exists only within the scope of that method. And why would you want to test that anyways? If modified evaluates to true, that's all you need to know that the value has been modified. So you could have   public boolean wasModified()
          if (modified == true)
                return true;
       }But even that is unnecessarily verbose, as the if condition evaluates to true, and the same is returned. So in the final analysis, all you need is   public boolean wasModified()
          return modified;
       }And a public class has to be declared in a file named for the class, yes.
    As for your second assignment, NO you cannot "return" two variables fom a method. return means just that: when the return statement is encountered, control returns to the calling routine. That's why the compiler is complaining that the statement following the (first) return statement is unreachable.
    Do you know how to string Strings together? (it's called concatenation.) And how to represent a newline in a String literal?
    db

  • HT201653 We are a retail shop which has a copy of AppleCare Protection plan. The box is not sealed. How can I tell if the product has been registered or not.

    We are a retail shop which has a copy of AppleCare Protection plan. The box is not sealed. How can I tell if the product has been registered or not.

    Since the only thing needed in that box is the small piece of paper with the (very long) registration code on it (usually found inside the booklet), see if that is actually there and, if it is, call Apple at 800-275-2273 and ask to be transferred to the Applecare department. Here is the link to the Applecare plan - just in case you may need it, see the fax numbers listed under para. 9 (Cancellation).
    http://www.apple.com/legal/sales-support/applecare/appmacnaen.html

  • I downloaded lion but it wont install, it says that the software has been tampered with. But i downloaded from the app store.

    I downloaded lion but it wont install, it says that the software has been tampered with. But i downloaded from the app store.

    I have been through the same process three times now. The downloaded file is 4.07GB. I deleted it and re-downloaded and I get the same error.

  • Had hard drive renewed due to product recall (iMac) backed up complete system on time machine . Had the drive done got mac back tried to reinstall from time machine .The new drive tells me that the space has been taken up but can't find where the file hav

    Had hard drive renewed due to product recall (iMac) backed up complete system on time machine . Had the drive done got mac back tried to reinstall from time machine .The new drive tells me that the space has been taken up but can't find where the file have gone. Need to free up the space that the ghost file take up so I can drag drop from ex drive onto harddrive

    Here's the scoop, new friend.....
    When you boot into Time Machine you'll get the same OS X Utilities screen as you would if you booted into the Recovery HD. So, from there go into Disk Utilities to erase/format your internal drive. After that's done, back out to the OS X Utilities screen and select the restore option. Just follow the prompts to select the TM back up date you want to restore from and where to restore it to. Pretty straight forward.

  • How indesign detects that the images have been modified

    Hello,
    My problem is that all my images links are seen modified (yellow triangle) while the images don't have been modified.
    The modified dates are the same.
    All my images are on a unix server and indesign is used on Mac.
    How indesign detects that the images have been modified ?

    Thank you for your answer.
    When you say the time stamp you talk about the modification date in the box link info ?
    Because this date is the same on the image and in indesign and when I update the image this date doesn't change.
    the only informations that change when I update the links are the import date and the state (modified become ok)

  • HT5129 How can I stop the "MobilMe has been discontinued" message?

    I don't have any published albums; how can I stop the "MobilMe has been discontinued" message coming up all the time?

    Bill,
    Go to iPhoto>Preferences...>Accounts...and remove the MobileMe account. Then go to System Preferences...>MobileMe, and sign out.

  • I lost my iPhone recently. It has since disappeared from support profile. Does this suggest that the phone has been restored and synced with another account?

    I lost my iPhone recently. It has since disappeared from support profile. Does this suggest that the phone has been restored and synced with another account?

    See:
    What to do if your Apple ID has been hacked
    (Fair disclosure: The Safe Mac is my site, and contains a Donate button, so I may receive compensation for providing links to The Safe Mac. Donations are not required.)

Maybe you are looking for

  • Could not activate my iphone 3gs after activating to ios:5, could not activate my iphone 3gs after activating to ios:5

    could not activate my iphone 3gs after activating to ios:5, could not activate my iphone 3gs after activating to ios:5 its workin with previous version of 3 os n after updatin,its showing that cannot connect to apple server n try connceting to i tune

  • EclipseLink JPA multitenancy

    I am using EclipseLink to auto populate the column on inserts. (column i want it to auto update is COMPANY_ID) Table is like COMPANY_ID EMPLOYEE_ID NAME SALARY AGE My entity is @Entity @NamedQueries({ @NamedQuery(name = "EmployeeVpd1.findAll", query

  • PROPERTY INSPECTOR HELP?!!!

    Where did my property inspector go? its gone from the bottom and i fdont know how to get it back :S

  • Conversion from Musicmatch Jukebox

    When I first got my iPod I was using Musicmatch (iTunes was unstable) and burned 1/2 my collection that way. Now my entire collection is there and everything is under iTunes (all in mp3 format). Using 'get CD track names' it will sometimes say - not

  • Golden Gate and Timezone

    Hi all, This may sound like one sort of typical question, we are using OGG for active active, between two data centers which are at different timezones, my question here is, can we able to replicat data according to local time zone on Data centers? I