Adding popup before printing deliveries in VL01N / VL02N

Hi,
there´s a need to print deliveries in different languages, when the delivery is between inter company.
In this case, a popup should be shown when printing deliveries in VL01N / VL02N. It should be shown,
when choosing the message type, before starting to print.
On this popup the language, in which the additional print out should be made, should be chosen.
After that, the delivery should be printed in the original language and then in the chosen language.
Is that possible and if so, how? Any other ideas?
Thank you!

Hi
Yes u can, u need to change the print program (I suppose the std RVADDN01 or a copy of RVADDN01).
U should change the routine PROCESSING in order to print the delivery twice: one with original language and one with the choosen language, something like this:
FORM PROCESSING USING PROC_SCREEN.
  DATA: T_FIELDS TYPE TABLE OF SVAL WITH HEADER LINE,
        RETURNCODE.
  DATA: T_NAST  TYPE TABLE OF NAST.
  PERFORM GET_DATA.
  CHECK RETCODE = 0.
  APPEND NAST TO T_NAST.
  T_FIELDS-TABNAME      = 'NAST'.
  T_FIELDS-FIELDNAME    = 'SPARS'.
  APPEND T_FIELDS.
  CALL FUNCTION 'POPUP_GET_VALUES'
       EXPORTING
            POPUP_TITLE = 'Choose langue'
       IMPORTING
            RETURNCODE  = RETURNCODE
       TABLES
            FIELDS      = T_FIELDS.
  IF RETURNCODE IS INITIAL.
    READ TABLE T_FIELDS INDEX 1.
    IF NOT T_FIELDS-VALUE IS INITIAL.
      MOVE T_FIELDS-VALUE TO NAST-SPRAS.
      APPEND NAST TO T_NAST.
    ENDIF.
  ENDIF.
  CLEAR  NAST-SPRAS
  PERFORM FORM_OPEN USING PROC_SCREEN VBDKL-LAND1.
  CHECK RETCODE = 0.
  LOOP AT T_NAST INTO NAST.
* Start form
    CALL FUNCTION 'START_FORM'
         EXPORTING
              LANGUAGE    = NAST-SPRAS
         EXCEPTIONS
              FORM        = 1
              FORMAT      = 2
              UNENDED     = 3
              UNOPENED    = 4
              UNUSED      = 5
              SPOOL_ERROR = 6
              OTHERS      = 7.
    IF SY-SUBRC <> 0.
      RETCODE = SY-SUBRC.
    ENDIF.
    CHECK RETCODE = 0.
    PERFORM CHECK_REPEAT.
    PERFORM HEADER_DATA_PRINT.
    CHECK RETCODE = 0.
    PERFORM HEADER_TEXT_PRINT.
    CHECK RETCODE = 0.
    PERFORM ITEM_PRINT.
    CHECK RETCODE = 0.
    PERFORM END_PRINT.
    CHECK RETCODE = 0.
    CALL FUNCTION 'END_FORM'
         EXCEPTIONS
              UNOPENED                 = 1
              BAD_PAGEFORMAT_FOR_PRINT = 2
              SPOOL_ERROR              = 3
              OTHERS                   = 4.
    IF SY-SUBRC <> 0.
      RETCODE = SY-SUBRC.
    ENDIF.
    CHECK RETCODE = 0.
  ENDLOOP.
  PERFORM FORM_CLOSE.
  CHECK RETCODE = 0.
ENDFORM.
Max

Similar Messages

  • Adding a cost centre before printing

    Hello there,
    We've a Windows Server 20k12 R2 running with all printers mapped in print server, every month I export a report about every print done by users.
    I would like to know if its possible add an user input before printing to select cost center.
    Any experience with this?
    Thanks and regards.

    Hi,
    Thank you for posting your issue in the forum.
    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Thank you for your understanding and support.
    Best Regards,
    Justin Gu

  • Error #2057: The page could not be added to the print job.

    I've been making myself crazy over this one.  I'm trying to print a complex multi-page "report" in Flex, but I keep getting this error every time I try to call FlexPrintJob.addObject(page):
    Error #2057: The page could not be added to the print job.
    Here is the basic scenario...  I have created a new control I call a PrintVBox that extends the normal VBox control.  After adding all of the children properly to the component, I wait for an update event (so that the heights of all the components are calculated) and then I call a custom method I have added to PrintVBox that "paginates" the control.
    This pagination method essentially decides how many of the items in the VBox can fix on each page, and splits them up into separate pages.  Here's a somewhat graphic example of what happens:
    (before paginate)
    ***** PrintVBox ********
         [ Item 1 ]
         [ Item 2 ]
         [ Item 3 ]
         [ Item 4 ]
         [ Item 5 ]
    This single VBox with 5 items, after calling the paginate method becomes something like this:
    (after paginate)
    ****** PrintVBox ********
         **** VBox (page1) ******
                   [ Item 1 ]
                   [ Item 2 ]
         **** VBox (page 2) ******
                   [ Item 3 ]
                   [ Item 4 ]
                   [ Item 5 ]
    So, what was once a single VBox with 5 UIComponents on it is now a VBox that contains two VBoxes, each the exact size of a printable page, one containing the first two items, the other containing the second two items.
    In my example that I am working on, my PrintVBox that I have created uses a Repeater to create about 20 HBoxes on the page.  I then call
    myFlexPrintJob.start()
    to show the print dialog and get the user's parameters.  I then pass the chosen print height and width to the PrintVBox control and call the paginate method, which creates pages of the desired width/height.  I have tested this part thoroughly and displayed the resulting PrintVBox on the screen and it paginates successfully and all is well.  After paginate, it has created 3 page VBoxes each holding some of those 20 items.
    I then iterate thru PrintVBox.getChildren() array, in this case which is the three VBox pages, and I call:
    myFlexPrintJob.addObject(page);
    for each one.  Each one errors out with the above error.  The error is down in the PrintJob code, which is part of the Flash framework and I cannot step through it.  I have no indication of why the page can't be added to the print job.  Is there a reason this is happening??  Does it have to do with the Repeater that originally created the 20 HBoxes, even though I have now moved those HBoxes down onto separate pages?  I'm just so confused here.
    I can probably post the entire code chunk if someone really wanted it.  I'm currently testing it as an AIR application using a big tester XML data object on the repeater, so that I didn't need a database and such to create the control and test printing.  If someone really wants to see what I'm doing, let me know.
    HELP! PLEASE!!
    Thanks,
    Joe

    Were you able to solve this problem?
    I am currently having the same problem as yours... I created my own printing classes that do all crazy calculation to figure out page breaks and stuff... everything goes well until the point I want to add these pages to the printJob. I get same error?
    Any help is highly appreciated.
    Thanks,

  • LiveCycle Newbie: Validate Before Printing Form

    I have a form created in Adobe Acrobat Pro that I have brought into LiveCycle to add print and emails buttons to. However, I need a specific functionality added to the standard "Print" button. It is a legal form that has required fields and the client needs to fill in all the required fields on the form BEFORE printing and signing it. We have had problems in the past with clients not filling in all the required fields before sending it back to them. So, I need to somehow make the print button check to make sure all the required fields are filled in and send a warning message and/or prevent printing if all the required fields are not filled in. Is there a way to do this?
    I am using LiveCycle Designer ES 8.2 and I am VERY new to this program so the simpler the solution the better.
    Thanks in advance for the help!

    Hi
    I would add another fake print button over the top of the existing one but just add a standard button not a print button.
    then to the click scripting event in the script editor add something like the below
    if ((TextField1.rawValue == null) or (TextField2.rawValue == null) & (CheckBox1.rawValue == "1")) then
    xfa.host.messageBox("You must enter the required data to be able to print this form")
    else
    PrintButton1.execEvent("click")
    endif
    as you are relatively new to this. Incase the above it giberish to you I will try to explain what the above is doing.
    the above is an if statement using formcalc (which is the default on button objects)
    as this code is inserted in to the click event  (you can see what event you are looking from the dropdown at the top left of the script editor window.... make sure click is selected, and formcalc is set in the drop down to the right of the script editor window.
    each bracketed command e.g. (TextField1.rawValue == null) is address a single field in your form. You will need to make sure you adjust these names and the path to these names so it may end up looking like (Form1.subform.TextField1.rawValue == null).
    A quick tip to ensure you have the right path is with the cursor in the script window move your mouse over the field you wish to address, hold Ctrl button and click the field. This will load the field path in to the script editor and all you have to add is the .rawValue portion of the command.
    You require '==' because means 'is equals to' in formcalc
    the null term means 'if the field is empty'
    if you have checkboxes that require to be ticked you must address them and look for a value of 1 (as in the example) as as default when a checkbox is selected it has a value of 1.
    you can use or commands or & commands between expressions.
    please note all the comments together require brackets round them hence the double brackets at the start and end of the expression.
    once you have added all the required expressions to the top line
    the second line is saying if the statement returns a true value  e.g. in our example a true value would be returned if TextField1 or TextField2 empty AND the checkBox1 is not ticked
    then this will pop up a message box saying you have not entered the required fields to print this form
    then the else statement says to click the print button for the user.... which will print the form as the print button does now.
    I know it may seem complicated but it honestly is not that difficult.
    Feel free to come back to me if you need any further help.
    Regards
    Graham

  • Added a new printer; other printers in Printer Utility list dissappeared

    Ok, i did something unconscious. Added a new printer (Canon MP160) to a list of many while the Printer Setup Utility was open. No harm i figured, when i rebooted 4 printers from my list were gone. Found them in Users> Library> Printers. Any way to simply drag & drop them back to the list? I don't seem to be able to add tyhem....
    Thanks for offering any insight or solutions.
    Peace
    15" MacBook Pro C2D 2.33/120/3g;   Mac OS X (10.4.8)   Pismo G4/550;SuperDrive;DLink BT;1GB RAM

    Because the printers are still showing in Users/Library/Printers then that shows that they are still installed on your Mac. So it is possible that as the Printer Setup Utility was open it may have caused your current problem, although from what I remember most of the Canon installers I've run close all open application before installing? Anyway, if another restart doesn't get them back into view then it could be that the printers.conf file (a hidden file located in etc/cups) has not updated correctly. Open Safari and type "http://127.0.0.1:631/printers". You should see all the printers currently installed and if this file is 'damaged' then you may only see the MP160.
    Of course, it may be a lot simpler than this. It could be due to the View menu in the Printer Setup Utility. Select View > Columns and enable 'In Menu'. If there is no tick next to the other printers then that can be one reason.
    Also, if the other printers are not currently connected to the Mac you are using, then that can also stop the printers from being displayed. Also, if they are shared printers and the Mac sharing them is off/sleep, then that can stop them from appearing also.

  • VL01N / VL02N Delivery Header Screen Exit BAdI

    Hi,
    I am using LE_SHP_TAB_CUST_HEAD BAdI to add a custom tab in VL01N / VL02N header. I added a field with reference to VBPA-KNREF on my custom subscreen.
    I need to update XVBPA and YVBPA tables (Partners data) in my subscreen based on the VBPA-KNREF custom field input and send back to the delivery processing. This BAdI allows to change only LIKP data when passing data from subscreen back to the delivery transaction/program.
    Any experience with this BAdI or any ideas?
    Thanks.

    You need to use the methods
    TRANSFER_DATA_TO_SUBSCREEN to pass the data from the standard fields to Subscreen fields
    TRANSFER_DATA_FROM_SUBSCREEN to pass the data from the subscreen fields to standard fields
    1) Create a Function Group e.g. ZVL02N_CUST
    2) Create your screen in this function Group
    3) Pass this program & screen information in the ACTIVATE_TAB_PAGE method
      ef_caption = 'ADD. TAB'.
      ef_program = 'ZVL02N_CUST'.
      ef_dynpro  = '9100'.
    4) Create a function module ZVL02N_SET_DATA_SUBSCREEN in the same Function Group. Put all the required fields as the importing parameters in this function module. Create the same fields in the TOP include of the function group. Save the data from the importing parameter to the TOP Include fields. You can use these fields in your screen PBO to set your subscreen fields.
    5) Same way create a FM ZVL02N_GET_DATA_SUBSCREEN in the same Function Group. Put all the required fields as the exporting parameters in this Function Module. Set the this exporting parameters values from the TOP include fields.
    Regards,
    Naimesh Patel

  • EXEcutable only starting DLL when calling a popup before.

    Hello,
    1. I have created a DLL in Labview 8.2 with one VI/function.
    2. Then i call this DLL/function in a new VI
    3. Then i created an EXE-file of this VI (which calls a DLL)
    Attached a screenshot of the code.
    As you can see it contains a sequence-structure where in the first part i open a message-popup and in the second-part i call the DLL.
    When i run it like this then it works without problems.
    The funny thing is:
    When i remove the message-popup and create a new EXE-file and run it then nothing happens!
    Only the Run-arrow changes to running-mode (and stays there until i close it with taskmanager) but the outputs dont-change (they stay "0").
    (The VI in the DLL that i call is very simple. The Inputvalue "11" is added and multiplied. This two results are returned. So nothing special.)
    Whats wrong here? Seems like Labview can´t make the DLL-call starting in the second exe-file (without an popup before).
    Is this a kind of a bug?
    Thanks for your help and ideas
    Attachments:
    screen.jpg ‏26 KB

    Hmm, i´m getting a red error-message after cklicking on "install LabVIEW 8.2.1 now." in your link.
    Whats going wrong here?
    --> See attached screenshot
    Attachments:
    error.jpg ‏54 KB

  • JTree questions (1) Re-populating (2) Adding popups

    Hi all,
    I've just started to use a JTree in my application and I've encountered two
    problems. Sorry if these have been covered before - I've been Googling around
    for answers.
    I have a UI panel ...
    http://photos1.blogger.com/blogger/541/411/1600/TreeDemo.gif
    ... where a tree is populated with stock quotes from different
    sources. The user selects the stock and the tree should update to show the
    quotes for that stock. The quotes are read from a DB and I want the user to
    be able to delete from the DB using a pop-up on the leaf nodes.
    Problems
    (1) Re-populating
    The only way I've got this to work at this time is to create a new tree from scratch,
    based on the stock name, then put it into a new scroll panel, remove the old scroll
    panel from the container and add the new one. Not good is it? Nasty, nasty.
    I've read a lot about needing to interact with the tree model - is that right?
    (2) Adding popups
    I want to be able to delete items from the DB by doing a right-click on the leaf
    nodes and selecting "Delete" from the pop-up.
    I find that I can't add a mouse listener to the DefaultMutableTreeNode used to
    hold the leaf item. Should I subclass DefaultMutableTreeNode and implement some
    interface to do this?
    Any insights very much appreaciated.

    I know I'm asnwering my own question here - but I found the answer to teh re-population question while waiting.
    I now use the DynamicTree class that is included in the Sun tutorial here
    http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html
    Specifically, here
    http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/index.html#DynamicTreeDemo
    I'd still welcome any suggestions on the pop-up menu question!

  • We just added a new printer and bluetooth connection to our iMac.  Now iTunes does not recognize our iPads as devices.  Have already tried restarting everything.  Any other suggestions?

    We just added a new printer and bluetooth connection to our iMac.  Now iTunes does not recognize our iPads as devices.  Have already tried restarting everything.  Any other suggestions?

    You can try the steps recommended here: http://www.apple.com/support/ipad/assistant/itunes/

  • History report page prints before printing each new document?cc=us

    How do i stop my HP Officejet 6700  Premium from printing a history report page before printing each new document, using Windows 7 & Using Microsoft Word? When I open a document and print it, it prints a history including: File Name; Directory; Template; Title; Subject; Keywords; Comments; creation Date; Change Number; Last Saved On; Last Saved By; Total Editing; Last Printed On; As of Last Printing....
    Everything worked perfectly for a year, then I had to reinstall the printer because I deleted it by mistake. I cary it with me when I travel to meetings and didn't have my install disk, so I had to download the install software. I haven't changed any settings in Word, but it appears that the report is generated from Word.
    Help will be appreciated. I can't find any other topic like mine to see an already presented solution.
    This question was solved.
    View Solution.

    Hi,
    The report indeed being generated by Word and not by the pritner driver.
    As you did not clarify your MS Office version I included the steps for Word 2010, I believe the same should also apply for Word 2007:
    From Word click the File menu, then select Options.
    Select Display from the left pane.
    Under the Printing Options sections, uncheck the box next to Print document properties.
    Click OK and try printing again.
    If you cannot find the specific option, please clarify your exact Microsoft Wiord version.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • SAP should retrieve print preferences in a Crystal report before printing

    I would like to submit an enhancement... or a "come back" of something that was working fine before.
    Missing functionality referring to message #88318 opened at the end of January 2011
    Version: 8.8 u2013 PL18
    Description of requirements:
    Automatically select the appropriate page layout in SAP B1 when the page layout has been saved in a Crystal report.  So, the user wonu2019t have to change his u201CPrint preferencesu201D in SAP before printing a document with a different layout.
    Valid as of: N/A
    Business needs: (Please describe the impact on your business, if the functionality is not realized)
    Any people who has to print a report doesnu2019t want to always think about what should be the layout of this specific report and then have to change it in B1 before printing. This is a loss of time, more over when the layout has been saved in the u201CPrint preferencesu201D of the report itself (for example, 8½ X 14 or Landscape) so the user should not have to manually select it in addition.
    The print preview is correct in CR and in B1 but then, when sending the preview to the printer, the printing is not correct.  It is not on the same format.
    Examples: (Please describe a typical example, how the functionality should work.)
    I have a Crystal Report saved in 8½ X 14 format.
    I preview it within Crystal Report --> Ok
    I send it to the printer via Crystal Report --> Ok
    I preview it within SAP --> Ok
    I send it to the printer via SAP --> THIS SHOULD BE PRINTED THE WAY IT IS PREVIEWED
    Current Workaround: (Please describe the workarounds you are using at the moment)
    The users have to change their print preferences in B1 before printing the report !  This is a loss of time !
    Proposed solution:
    SAP should take in consideration the printing preferences saved in Crystal, so it will print the report accordingly to the print definition, using the appropriate tray. Since the print preview is okay, it should print that way.
    This was working fine in 8.8-PL11u2026

    Thank you for your reply. It works in this specific report.
    But we have both PLD and Crystal Report in the system, changing the settings means the PLD will lose their watermark...
    Also, I don't know how the Draft is displayed, but when select Print Preview for Draft, it's asking for parameter (DocEntry), which I have setup a DocKey@ in Crystal Report and set it in the Selection Manager. Does SAP provide DocEntry in Draft Invoice (ODRF) the same way as in Invoice (OINV)?
    Thanks,
    Grace

  • Hp j4680 all-in-one printer stops before printing is completed

    Ever since windows 8.1 downloaded to my computer I've lost my scanner and have problems printing.  It stops before printing is completed and now it won't print at all.  I've tried going to H.P. to help but it now says that no printer is found.  What can I do?

    Hi,
    First follow this tool by selecting fix printing:
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=mp-141412-1&cc=us&dlc=en&lc=en...
    Be sure to clarify how the printer is connected to your PC, what HP software has been installed and what security program have been installed.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • I cant print and get this message, "adobe elements, "the saved printer information is not compatible with this version of photoshop elements, or the saved printer is no longer available. you will need to check with your printer settings before printing."

    I keep getting this message when trying to print in adobe elements, I am using a new Epson WF-3640 printer
    "the saved printer information is not compatible with this version of photoshop elements, or the saved printer is no longer available. you will need to check with your printer settings before printing.

    Hi,
    If you are working in PSE13, please update it to latest PSE13.1 update available and see if it helps.
    To apply update, you can go to Help > Updates and there you can see PSE13.1 update.
    Thanks,
    Anwesha

  • Require name and date before printing form

    I have a 13 page PDF that a customer or our staff prints from our website. Often the customer or staff does not name and date each page of the form. Not having a name and date on each page of the form causes problems when they customer returns the form to the office, and the form pack gets divided for scanning into different areas of the customer file. 1) Is there an Adobe product that changes a PDF to require the downloader of the form to place a first and last name in the name field before printing. 2) Also, I would need a date stamp placed on the form when it prints. Is there I product that could help me program this PDF to do these 2 things?  This post is the first time I can recall posting in this community. Any other suggestions are welcome. Thank you.

    >> 1) Is there an Adobe product that changes a PDF to require the downloader of the form to place a first and last name in the name field before printing.
    Many fields have a "Required" property. This is used when a form is submitted to a scripted web page for processing to throw an error message if any required fields are not completed.
    One can use this property within a an action for a form to check if required fields are competed.
    >> 2) Also, I would need a date stamp placed on the form when it prints.
    I would add a form field that is filled in with the print date and time by some JavaScript in the Will Print action.

  • Can a photo book created in i photo be saved in pdf format or shared online with a customer before printing?

    Can a photo book created in i photo be saved as a pdf or shared online in any way with a customer before printing?

    Sure - once you make a PDF you can e-mail or share it as you want - although they can be large so you need a share capability for large file
    LN

Maybe you are looking for

  • Invisible selections and paths photoshop CS5

    Hello, could you help me please ? My new Photoshop is unusable : selections and paths are invisible until they are not closed or finished. It seems to be a display problem - though all my softwares and drivers are updated - because when I move my ima

  • Menu Bar Not Displaying Correctly

    Hi, I am building a website locally and have developed the menu bar in Fireworks. When I preview the page in IE I get a strange strip running across the top of the bar, but it displays fine in Firefox. I have posted this in the Fireworks discussion w

  • Edit JS Script CS4 (Add XML Tags All pages automatically)

    Hi, all Scripter I have a javascript for add xml tags (ETMV2 Pearson, InDesign CS4).  We have select my powermath equation data then run script. Script automatically insert xml tags both side (open/close). But we select one by one then run script its

  • How to change language in CS4 applications?

    Hello, for giving exact instructions for a german client, I need to change the interface/menu/tools language in Illustrator and Photoshop occassionally from English to German. Is there a way to do this? (if not possible to do this temporarily, would

  • Changing thumbnails to full screen viewing

    Hello     When I double click on a jpeg thumbnail image in iPhoto to view full screen, the full screen version will not appear. It starts to appear but then what ends up showing is a exclamation mark with a grey background. This happens with all of t