To change the printer name while printing the invoice

Hi,
I have a requirement like if there is already an entry in NAST table with o/p type ZURD and printer name USJC-PM03,then an error message has to be displayed like 'This Output already printed in USJC-PM03,Change the printer name 'USJC-PM03' to 'LOCL' and then print' on the vf03 screen.
But even if  I change the printer name from 'USJC-PM03'  to 'LOCL',it is showing the same error message.This message should not be shown.
I have used the following code in the program.
lf_formname = tnapr-sform.
determine print data
  PERFORM set_print_data_to_read USING    lf_formname
                                 CHANGING ls_print_data_to_read
                                 cf_retcode.
  IF cf_retcode = 0.
select print data
    PERFORM get_data USING    ls_print_data_to_read
                     CHANGING ls_addr_key
                              ls_dlv-land
                              ls_bil_invoice
                              cf_retcode.
  ENDIF.
  IF sy-tcode = C_VF03.
    SELECT SINGLE * FROM tnapr WHERE kschl = 'ZURD'
                                   AND nacha = 1
                                   AND kappl = 'V3'.
    SELECT count(*)
    FROM NAST
    INTO lv_count
    WHERE objky = ls_bil_invoice-hd_gen-bil_number
    AND    kappl = c_v3
    AND    kschl = c_ZURD
    AND   ldest = c_PM03.
    IF LV_COUNT GE 1.
      Message e000(zup) with text-001 text-002 text-003.
    ELSE.
determine smartform function module for invoice
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
             EXPORTING  formname           = lf_formname
                variant            = ' '
                direct_call        = ' '
             IMPORTING  fm_name            = lf_fm_name
             EXCEPTIONS no_form            = 1
                        no_function_module = 2
                        OTHERS             = 3.
call smartform invoice
          CALL FUNCTION lf_fm_name
               EXPORTING
                          archive_index        = toa_dara
                          archive_parameters   = arc_params
                          control_parameters   = ls_control_param
                mail_appl_obj        =
                          mail_recipient       = ls_recipient
                          mail_sender          = ls_sender
                          output_options       = ls_composer_param
                          user_settings        = space
                          is_bil_invoice       = ls_bil_invoice
                          is_nast              = nast
                          is_repeat            = repeat
     importing  document_output_info =
*Uncomented the line to get the spool id or OTF formatted data -
*NY047532
               IMPORTING
                      job_output_info      = w_job
NY047532
                job_output_options   =
               EXCEPTIONS formatting_error     = 1
                          internal_error       = 2
                          send_error           = 3
                          user_canceled        = 4
                          OTHERS               = 5.
      ENDIF.
    ENDIF.
When should be done for the error message not to be shown when the printer name is 'LOCL'.

Hi,
Here my requirement is first the user has to check the nast table if there is any entry with o/p type ZURD and printer 'USJC-PM03' .If there is an entry then an error message 'This Output already printed in USJC-PM03,Change the printer name 'USJC-PM03' to 'LOCL' and then print' has to be displayed.
Then if i close this popup window which is showing error message and change the printer name from 'USJC-PM03' to 'LOCL', and click on execute button,the printer name is not getting changed and still the error message is getting displayed.How to remove this error message?

Similar Messages

  • How to specify the target name while deploying a code in OSB-- Plz Help

    Hi all,
    Am working in creating a cluster environment. For my testing i created a new managed server(OSB_Server) in 9001 port in the admin console itself and that server started running. The default managed server(Admin_Server) is in 7001 port. So when i deploy a code in 7001 sb console the WSDL gets exposed in 7001 because the default admin server port is 7001. While deploying a code in service bus admin console we are not specifying the target name. So how to specify the target name while deploying the code in service bus admin console. Plz help me.
    Regards
    Prabhu

    Hi Prabhu,
    There are three kind of server architecture possible for OSB -
    1. Single server - Everything gets deployed on Admin server itself
    2. Admin Server + Single Managed Server for OSB -- OSB configuration gets deployed on OSB managed server. OSB resources (proxy service, WSDL, Schema) will remain available on OSB managed server port only and NOT on admin server port
    3. Admin Server + OSB cluster -- OSB configuration gets deployed on OSB cluster. OSB resources (proxy service, WSDL, Schema) will remain available on OSB Cluster port(s) only and NOT on admin server port
    Converting one type of server architecture to any other type, requires a manual tedious process, so it is suggested that you create domain accordingly i.e. if you need clusters then while creating domain itself, create OSB cluster, so that all OSB applications gets deployed to OSB cluster. I will suggest you to create a clustered domain from scratch and import the configuration from your existing domian to this new clustered domain.
    You may refer-
    http://download.oracle.com/docs/cd/E17904_01/doc.1111/e15022/toc.htm
    Regards,
    Anuj

  • Task name while modifying the packages

    Dear experts ,
    From where can I find all the task name , that I can enter into the "Task Name" while modifying the package.
    Is there any such givin task list or how do we come to know that which task has to be used in proper place.
    Thanks in advance
    Sanjay

    Thanks Badrish for your reply,
    Actually... I am not looking for any package. I want to modify the given package or create a new one. So for that... when we modify the package... then we can give either info, prompt or task. On the left side... only prompt and info are given. For task there is option for task only ... but what should be the value inside that task .i.e "task name" and its use.
    My doubt is about the task. I dont know which all task I can give and what is the use of those task.
    Hope that I have made my question clear this time.
    Sanjay

  • How do I get the file name to print up closer to a horizontal photo?

    Kind of a nit-picking question, but here goes anyway:
    I use Lightroom's Print module to create contact sheets (three rows by three columns). I check the "Photo Info" check box and select "Filename" to have the file names printed with each photo. When the photo is shot vertically, the file name prints at the lower edge of the photo, as you would expect. However, when the photo is shot horizontally, the file name still prints down in the same place where it would print if the photo were vertical. That can be confusing because if the next photo down on the sheet is vertical, a file name can end up being much closer to the vertical photo below it--to which it is completely unrelated--than to the horizontal photo above it, to which it actually refers.
    Is there any way to get Lightroom to print file names closer to horizontal photos?

    Thanks to both of you for your speedy responses. Making all the shots horizontal or vertical (i. e., unchecking the "Rotate to Fit" box on the right) is not what I want. Increasing the vertical spacing is a possibility, but that'll make the vertical shots smaller. There's a program called "ImageBuddy" which does exactly what I want LIghtroom to do in this instance: print the filenames of only the horizontal shots higher and therefore closer to the photos to which they refer. It's quite cheap, but I'd rather not use Lightroom for everything else and ImageBuddy just for contact sheets, so if anybody knows of a way to do what I want to do within Lightroom, please do clue me in.

  • Changing the table name while drill down at the dashboard query

    I have a DAY fact table that has about 1B rows.
    The purpose of this table is to store on hand quantity for each item per day.
    On the presentation layer I have a dashboard that will display average on hand qty per year and then user can drill down to quarter/month/week and then by day level to see the actual value at evey level.
    Its hard to run aggregation on fly as all my 3 TEMP tablespace 32gb each filled and then I get error can not extent TEMP file.
    So I thought I will do the aggregation at the database level and store the aggregated data in another table. So at first dashborad will read this new aggregated table to display qty at yearly. As soon as user drill down to quarter the dashbord should query the actual DAY fact table by filtering for specific year and quarter.
    IS it possible? Can I change the table name while I drill down to lower level?
    Thanks in advance.

    Hi use,
    Yes. This is possible in OBIEE. You need to use Action Links to have navigation between reports. The main idea is to have 2 analysis. One with your aggregated data by year (using your aggregated table), and another one with the rest of the hierarchy and data (using normal fact table)
    You add an action link on this report, that can navigate to the second report. showing "the details" (in your case would be the rest of the time dimension).
    Please refer to http://www.rittmanmead.com/2010/07/obiee-11gr1-action-framework-and-conditions/ for actions links.
    Another way is to create 2 analysis, then go to the 2nd analysis, and filter the column year as "Is based on results of other analysis" and you select there the first analysis. In this case when you click on the year in the first analysis, this value will be passed to the second analysis so you can filter the rest of the hierarchy based on the year you clicked on the first analysis.
    If helpful, assign points.
    J.

  • Error in Printer Selection while print the document

    Dear All,
    Error in Printer Selection,  while print the document in Quotation.
    Also both side Printing is not happening.
    My Report is in Crystal Report format.
    Suggest any solution on this as earlier as possible.
    Regards,
    Sumeet Vaity

    hi,
    are you printing locally or shared printer?
    pls check the ff.
    1. make sure your printer is on and Online (For local and shared)
    2. make sure the host PC is connected in the network., ping the host PC to make sure your host PC is Connected (Shared)
    3. make it as your default printer.
    regards,
    Fidel

  • Install canon printer on macbook air?  I've got as far as add printer - the printer name appears as the software is installed but when I go to choose a driver, mine isn't listed - where is it?  what do I do? Tearing hair out...

    install canon printer on macbook air?  I've got as far as add printer - the printer name appears as the software is installed but when I go to choose a driver, mine isn't listed - where is it?  what do I do? Tearing hair out...

    Thanks for telling us the printer model. You are right - it isn't in the software available for auto-download from Apple servers.
    Are you using the version 3.66 CAPT driver released in Jun 2014?
    Get it from:
    http://www.canon-europe.com/Support/Consumer_Products/products/printers/Laser/i- SENSYS_LBP5000.aspx?type=download&softwaredetailid=tcm:13-920158&os=OS%20X%20v10 .9&language=
    It is a disk image (.dmg) file. You must double-click to "mount" the disk image, then install using the installer inside that.
    Please let us know if that helps. There are more thing to try.

  • Error Occurred While Converting the file"name of song" The file name.......

    I get this message when I try to import some CD's to my library.
    A window pops up and says
    Error occurred while converting the file "name of song"
    The file name was invalid or to long.
    Anyone else ever get this message, and how can you import CD's???????

    I have had this exact same problem. I'm not sure how to fix it...

  • Unable to change reference point location while using the Transform Functions in Photoshop Elements 6.0.

    Unable to change reference point location while using the Transform Functions in Photoshop Elements 6.0.

    Which operating system are you using?
    In photoshop elements 6, as far as i know, you can only change the Reference Point Location for transforms using the small grid in the left hand corner of the tool options bar with Transform enabled.

  • I want to change my full name deatil in the email account. It is grey ed out.Help Please

    I want to change my full name details in the email account. It is greyed out.Can you help Please.

    Change your name at...
    My Apple ID

  • When bates numbering a .pdf in XI, how can I change the file name to include the bates number AND its name?  I know under file output, there is an option for either/or.  I want both.  Thank you.

    when bates numbering a .pdf in XI, how can I change the file name to include the bates number and the file name?  I know under "file output: it's either/or.  I need both.  Thanks!

    Long ago I wrote a little demo using the touch command. Check out the following thread:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=25128#M25128
    LabVIEW Champion . Do more with less code and in less time .

  • My messages won't say the contact name only shows the phone number, how do you change this when the contact is in my phone under that number already?

    My messages won't say the contact name only shows the phone number, how do you change this when the contact is in my phone under that number already?

    I thought that at first, but I have text this person before and had received responses in a timely manner. Its just weird that it all of a sudden removed their name.
    Would this affect the delivery of the text message?

  • Can't Print "Error while printing."

    Suddenly I can't print.
    When I try, I get the warning: "Error while printing."
    I also get this same warning if I try to create a PDF, or Preview.
    The printer (HP 6890xi) has been working fine in all applications and is able to print a test page from the HP printer utility.
    Drivers are fine (I think), but I replaced them anyway.
    Any thoughts?
    Thanks,
    John

    I had four documents open in OmniOutliner Pro, and did a CMD-P on each of them in turn. The first two printed, and the second two did not, without an error message. Since then, I get an "Error while printing" message in OmniOutliner Pro, whether I attempt to print to the printer or save to a PDF; Adobe Reader will not print, and does not display an error message, and Firefox fails to print with an "Unknown error occurred while printing" message. I have run repair disk permissions on my startup volume, followed the Printer Troubleshooting guide on the Apple Support page, including updating printer drivers, I have verified that the CUPS software sees the printer, the printer can print a test page, and have used Printer Utility to Reset the printing. Nothing has changed.
    Now what?

  • REP-1849: Failed while printing : Problem while printing on network printer

    I am getting this error message while printing the report on Network Printer.
    "REP-1849: Failed while printing"
    Reports Server is not installed on my machine.
    On shared printer, it has no problems.
    Platform is Win2000. Report Builder 6.0.8.11.3
    Plz help !
    Thanks in advance !

    Try the following if your printer is a network printer
    1. Add Printers - select Local Printer
    2. In the Add Printer wizard, select "create a new port" option and select "TCP/IP" as type
    3. Write the IP address of the network printer in the "Add standard TCP/IP Printer Port wizard". The port name becomes IP_<ip addr>. Click Next.
    4. Select the printer and printer type in "Add Printer" wizard.
    5. Select a driver and Write a printer name. This completes the setup. Use this printer name to print from Oracle reports.
    Hope this helps..
    Yogesh
    I am getting this error message while printing the report on Network Printer.
    "REP-1849: Failed while printing"
    Reports Server is not installed on my machine.
    On shared printer, it has no problems.
    Platform is Win2000. Report Builder 6.0.8.11.3
    Plz help !
    Thanks in advance !

  • The https URL hostname does not match the Common Name (CN) on the server.

    Hi,
    I am getting the following error while trying to use https with our self-signed certificates.
    javax.xml.ws.soap.SOAPFaultException: Marshalling Error: The https URL hostname does not match the Common Name (CN) on the server certificate. To disable this check (NOT recommended for production) set the CXF client TLS configuration property "disableCNCheck" to true.
    The above error is the error I get, when I try to use the Web Services using https.
    I have added the following lines in cxf.xml but it still doesn't seem to work correctly.
    <http-conf:conduit name="*.http-conduit">
    <!-- deactivate HTTPS url hostname verification (localhost, etc)
    WARNING ! disableCNcheck=true should NOT be used in production -->
    <http-conf:tlsClientParameters disableCNCheck="true" />
    Kindly let me know on what would be the issue here?.

    I had P2V'd a SQL 2008 server and was having this issue.  I tried everything I could find to get the affinity corrected; setting the Lock Pages security policy, trying the affinity commands in Single User mode, etc.
    Then wrighbar's response got me headed in the right direction, but I ran into an issue where the previous engineer had set the Physical SQL server to have affinity on procs 9-16 of a 16 proc box, I could only set up to 8 procs on my VM.  After searching
    for a while for registry keys or config files that might be editable to change the affinity I couldn't find where SQL got that information from.  Finally it hit me, maybe it's stored in the master or msdb datatbases.  
    SOLUTION: I was able to go back to the original Physical machine, change the affinity settings there, Stop SQL on both boxes, then copied MASTER, MODEL, MSDB, TEMPDB from the original Physical machine to the new virtual machine.  All services started
    OK on the virtual machine now and affinity was set the way I needed it.

Maybe you are looking for

  • Making the "next" button inactive until video ends

    I am new to Captive and have downloaded the trial version to test out to set up an e-learning module.  I have managed to create my first quiz and was able to get it to work fine.  I used one of the pre made templates and I inserted a flv video.  The

  • Brush Preview

    Just downloaded a CS5 upgrade on my PC.  According to the learning videos with Lynda.com, when I click on the new bristle brush and select the brush tool, the brush preview is supposed to pop up.  My does not, nor am I able to acess this at the botto

  • Permission error when WebLogic Server starts up

    Dear WebLogic gurus When I try to startup WebLogic server with 80 listening port in Solaris 2.6, it did not startup due to permission problem. The error log said that Sat Dec 11 06:11:02 GMT 1999:<E> <ListenThread> **** Unable to create server socket

  • Hyperion Planning Information

    Hi,Iam new to Hyperon Planning Implementation. My Company is going for implementation. We already have Essbase cubes. I wanted to know how exactly Hyperion Planning is related to hyperion Essbase. Is there any Documentation I can get & probably archi

  • Lost photos/videos

    I deleted some photos in error so tried to restore to my last iCloud backup to retrieve them.  When I restarted I had no photos or videos in my camera roll.  I got the Restore Incomplete message with the suggestion of syncing with iTunes.  I have nev