How to control the printer selection popup in SAP SCRIPT .

Hi all,
I have written a print program which is calling 5 different layouts forms and printing all the shipping related documents such as packing list, delivery note, shipping label etc . The print program is
attached to a single output type ZEDM. 
The issue is that for printing every document a pop-up comes for the printer selection and i want
only one pop-up and all the document should be printed.
Can anyone tell how to control the pop-ups.
Thanks and Regards,
Syed

Hi,
Open the form with dialog once. and then other forms pass ' ' to dialog parameter in OPEN_FORM .
Open the form for printing
  Capture the return code
  Capture messages
Other froms
Open the form for printing
  Capture the return code
  Capture messages
Whenever you have a new form use START_FORM
  CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      device                      = 'PRINTER'
      dialog                      = 'X'
      form                        = p_fname
      language                    = sy-langu
      OPTIONS                     = p_itcpo
    EXCEPTIONS
      canceled                    = 1
      device                      = 2
      form                        = 3
      OPTIONS                     = 4
      unclosed                    = 5
      mail_options                = 6
      archive_error               = 7
      invalid_fax_number          = 8
      more_params_needed_in_batch = 9
      spool_error                 = 10
      codepage                    = 11
      OTHERS                      = 12.
  IF sy-subrc <> 0.
    w_retcode = 1.
    PERFORM protocol_update.
  ENDIF.
  CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      device                      = 'PRINTER'
      dialog                      = ' '
      form                        = p_fname
      language                    = sy-langu
      OPTIONS                     = p_itcpo
    EXCEPTIONS
      canceled                    = 1
      device                      = 2
      form                        = 3
      OPTIONS                     = 4
      unclosed                    = 5
      mail_options                = 6
      archive_error               = 7
      invalid_fax_number          = 8
      more_params_needed_in_batch = 9
      spool_error                 = 10
      codepage                    = 11
      OTHERS                      = 12.
  IF sy-subrc <> 0.
    w_retcode = 1.
    PERFORM protocol_update.
  ENDIF.
CALL FUNCTION 'START_FORM'
    EXPORTING
      form      = w_fname
      language  = sy-langu
      startpage = 'PAGE'
      program   = sy-repid.
Regards
Krishna

Similar Messages

  • How to find the print program for a sap script

    Hey Experts,
    How to find the print program for a sap script (espicially when it is a custom script(Z*))?
    Thanks a ton,

    Thanx Vijay,
    Actually when I searched for the program in both the tables it didnt show up ther.
    But when I did check in the texts of script, I found it.
    Good job.
    Thanks all.
    Vijay, a small doubt.
    But why didn't it show up in those 2 tables when all the print programs for standard scripts show up usually?
    thnx once again.
    Message was edited by: dev a

  • How to control the print pages in se71 form or smartforms

    Dear All:
             I have a issue for control the print pages in se71 form or smartforms.
    For example:my report used form or smartforms to print.it have 12  total pages.but user want to print the .3rd  page.3rd  page is customized.
             How can I do it?
    Thanks
    Sun

    Hi,
    By using command node, with some command we can handle this.

  • How to control the printing resolution in JAVA

    Do we have any control on printing resolution in JAVA?
    If yes, how?
    Because I can print out the component but its resolution is same as screen or even less.

    Hi,
    Maybe you have to be more explicit. What do you want to print? What Component? Only a image? A Swing component (JTree, JTable, JPanel, etc)?

  • How to control the print out

    Hai
    I create the scrip program… I want to get only one print out in each document number. After that I want to restrict that print out that each document number… how I should do it. Ex: I got the print out doc no. 00111 at once after that never gives the print out if I click print command…I want to restrict only one print out… (I create the Z-table and I want to pass flag when I press print command but I don’t knw how to do it if I get the solution for that my problem wil solve)
    Regard
    nawa

    Hi,
    try this..
    data: v_docno like ztable-docno.
    select docno from ztable
                        into v_docno
                        where docno eq <curr doc no> and  "u should provide current doc no here
                                  printed eq 'X'.                     " suppose 'printed' is the flag field name
    if sy-subrc NE 0. "i.e if form is not printed for this doc no, then print form
    call function open_form
    call function write_form.
    call function close_form.
    elseif.
    message e001(zmsg).   "message: form already printed for this doc no.
    endif.
    regards,
    Ravi

  • How to control the location of Popup window on applet?

    I constructed an applet with some buttons on it.when one of the buttons is clicked, a popup frame will display. What I want to do is to control the frame display location on applet, hopefully around the trigger button. Does anyone know how to do that?
    i am using JDK1.1
    thanks in advance.

    setLocation()

  • How to control the print spool.

    hi, there,
    Can i control the spool' name and generation unit.
    for example.
    set the name of spool & unit of spool , then call smartforms.
    then output

    Hi,
    By using command node, with some command we can handle this.

  • How to control the shipping of goods in SAP.

    Hi Experts,
    Can any one tell me in detail, how can I control the shipping functionality of goods by using transportation zone, transportation lead time and other related parameters??? Is it possible to control the goods issue operation by using shipping distance, shipping time, modes of transport???
    Please advice.
    Thanks & regards,
    Rupam.

    Hello,
    1.Scheduling With Route Schedule For Shipping Point
    Route schedules (previously referred to in the system as delivery phases in this step) describe the periodic delivery of goods from a shipping point to different ship-to parties and their unloading points. Here you specify per shipping point whether this sort of periodicity is generally required.
    Requirements- if you want to define route schedules, you must perform the following activities:
    1. Define routes
    2. Activate delivery scheduling
    Standard settings
    2.Scheduling With Route Schedule For Sales Document Type
    Route schedules describe regular outgoing delivery of goods from a shipping point to different ship-to parties and their unloading points. This is where you configure whether you want this to apply to a given sales document.
    Requirements - If you want to define route schedules, you must complete the following activities:
    1. Define routes
    2. Activate shipping dates
    Standard settings
    Controlling without determination of route schedules.
    3.Scheduling With Route Schedule For Delivery Type
    Route schedules describe regular outgoing delivery of goods from a shipping point to different ship-to parties and their unloading points. This is where you configure whether you want this to apply to a given delivery type.
    Requirements - If you want to define route schedules, you must complete the following activities:
    1. Define routes
    2. Activate shipping dates
    Also refer:
    - Re: Route determination
    - [Shiiping in SD |http://wiki.sdn.sap.com/wiki/pages/viewpage.action?spaceKey=ERPLO&title=Shipping+Overview&decorator=printable]
    You can search the search SAP Help & SDN for the same for links and more information.
    Thanks & Regards
    JP

  • How to control the dynamic selections in FBL3N?

    When I execute the Selection screen of the logical Database SDF, it shows me all the 4 segments - GL Master Record, Compnay Code, Document, Custom (I added this descritption).
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE SKA1.
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE SKB1.
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE BSIS.
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE FAGLFREESEL.
    but when I execute FBL3N, I am not able to see the 4th segment fields (FAGLFREESEL).
    Pl advise where it is gettig suppressed in the code.
    Also is there a way to use the fields from the following in Dynamic Selections?
    SELECTION-SCREEN FIELD SELECTION FOR TABLE SKA1.
    SELECTION-SCREEN FIELD SELECTION FOR TABLE SKB1.
    SELECTION-SCREEN FIELD SELECTION FOR TABLE BSIS.
    SELECTION-SCREEN FIELD SELECTION FOR TABLE BSISEXT.
    SELECTION-SCREEN FIELD SELECTION FOR TABLE BKPF.
    SELECTION-SCREEN FIELD SELECTION FOR TABLE BSEG.
    SELECTION-SCREEN FIELD SELECTION FOR TABLE GSEG. 
    Thanks,
    Ven

    no solution so far. clsong as it is waiting for a long time

  • 6.1 Print Templates - auto select items in the print dialog popup

    In the slide deck I have about 6.1 it says the following:
    •Print Templates
    –Print templates can now be used to auto select items in the
    print dialog popup. By default, the out of the box template
    selects the current specification
    Unfortunately I haven't been able to find how to do this in the EP documentation. Could someone point me in the right direction on how to do this?

    Download Extensibility Pack 2.6. It was just released. Take a look at page 11 in the Print Extensibility Guide. It should have the info you need. If not let me know.
    Here is the link for the downloads:
    https://support.oracle.com/CSP/ui/flash.html#tab=PatchHomePage(page=PatchHomePage&id=h1j503ev())

  • How to control the options in Search popup of an LOV?

    I have a query panel which is based on a view criteria of a view object. One of the query item is a ComboListOfValues. I do not have control over the 'Search' window which opens when we click on the LOV inside the Query Panel. Basically, I want to control the width of the results table and I do not want the title('Search') for the dialog. Also, I want to hide the Advanced button. Is there any way to do it?

    Hi,
    Below is my code for the popup. What I am saying is, inside the popup I have a search parameter which in ComboListOfValues. On click on that LOV it will invoke a search popup on which we do not have control. How to control the properties in that search popup. I am not talking about initial popup(id=popup1) on which we have control and I have set all the properties. I am talking about a LOV search parameter inside the query panel(id = qryId2).
    <af:popup id="popup1" contentDelivery="lazyUncached"
    popupFetchListener="#{popUpBean.candSearchListener}">
    <af:dialog id="dialog1" type="cancel"
    title="Search Candidates"
    stretchChildren="first" contentWidth="920"
    contentHeight="480">
    <af:panelGroupLayout layout="vertical" id="pgl30">
    <af:panelHeader text="" id="ph2">
    <af:query id="qryId2" headerText=""
    disclosed="true"
    value="#{bindings.SearchCandVOCriteriaQuery.queryDescriptor}"
    model="#{bindings.SearchCandVOCriteriaQuery.queryModel}"
    queryListener="#{bindings.SearchCandVOCriteriaQuery.processQuery}"
    queryOperationListener="#{bindings.SearchCandVOCriteriaQuery.processQueryOperation}"
    resultComponentId="::resId2"
    modeChangeVisible="false"
    saveQueryMode="hidden"
    modeButtonPosition="footer"
    binding="#{popUpBean.searchCandQuery}"/>
    </af:panelHeader>
    <af:table value="#{bindings.SearchCandVO1.collectionModel}"
    var="row"
    rows="#{bindings.SearchCandVO1.rangeSize}"
    emptyText="#{bindings.SearchCandVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.SearchCandVO1.rangeSize}"
    rowBandingInterval="0"
    selectionListener="#{treeSelectionBean.candDetailsSelect}"
    rowSelection="single" id="resId2"
    inlineStyle="width:inherit;">
    <af:column sortProperty="CandidateId" sortable="true"
    headerText="Candidate Id" id="resId2c1" width="80">
    <af:commandLink text="#{row.CandidateId}" id="cl4"
    actionListener="#{treeSelectionBean.candSearchListener}">
    <af:setActionListener from="#{row.ClientId}"
    to="#{pageFlowScope.clientId}"/>
    <af:setActionListener from="#{row.PeopleId}"
    to="#{pageFlowScope.candPeopleId}"/>
    </af:commandLink>
    </af:column>
    <af:column sortProperty="Fullname" sortable="true"
    headerText="Candidate Name" id="resId2c2" width="160">
    <af:outputText value="#{row.Fullname}" id="ot42"/>
    </af:column>
    <af:column sortProperty="ClientName" sortable="true"
    headerText="Client Name" id="resId2c3" width="165">
    <af:outputText value="#{row.ClientName}" id="ot41"/>
    </af:column>
    <af:column sortProperty="InterviewName" sortable="true"
    headerText="Interview Name" id="resId2c4" width="215">
    <af:outputText value="#{row.InterviewName}"
    id="ot40"/>
    </af:column>
    <af:column sortProperty="InterviewDate" sortable="true"
    headerText="Interview Date" id="resId2c5" width="100">
    <af:outputText value="#{row.InterviewDate}"
    id="ot38">
    <af:convertDateTime pattern="#{bindings.SearchCandVO1.hints.InterviewDate.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="CandStatusName"
    sortable="true"
    headerText="Candidate Status" id="resId2c6" width="160">
    <af:outputText value="#{row.CandStatusName}"
    id="ot39"/>
    </af:column>
    </af:table>
    </af:panelGroupLayout>
    </af:dialog>
    </af:popup>
    Thanks!

  • How can I print from my MacBook Pro to Canon MP560 using rear tray?  I can't find that "option" in the print selection possibilities.

    How can I print from my MacBook Pro to Canon MP560 using rear tray?  I can't find that "option" in the print selection possibilities.

    Sure can.
    With a document open in Pages, select to print so that you can see the print dialog as shown below.
    Note that to see this view, you may need to press the Show Details button in the bottom left corner. In the image above, since I have the expanded view displayed, this button changes to Hide Details
    So with the view shown, first change the Presets menu to Default Settings. Then click the Layout drop menu and select Quality & Media. Make the changes you want and then click on the Presets menu and select Save Current Settings as Preset...
    At the next window, give the Preset a name and select the Only this Printer radio button and then click OK to save it. That's it.
    As for the Preset that you already have, if you no longer want this preset then you can delete it via the Show Presets menu pane that you've used already.

  • How to control the data  in data selection

    Hi,
    how to control the data  .
    in the transfer structure I am having 10 fields and and the file which is to be loaded contains 7 fields only.where can I control  the other 3 fields and how .
    thanks in advance
    karna

    If your source file is flat file, add extra three fields with blank (just add field separator say comma for each extra field) and then load. It should be ok.
    Hope it helps..

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • Print ALV report Directly - without the Print Parameter POPUP

    Hai All,
    I want to print a ALV directly to the printer without the Print Paramter POPUP.
    I passed on IS_PRINT parameters in the FM 'REUSE_ALV_LIST_DISPLAY'.
    But still i am getting the popup.
    How to do this.
    It is urgent .
    Kindly help me solving this.
    Vikki.

    Hi,
    i have passed IS_Print-Print = 'X'.
    But even after that i am getting the print parameter popup.
    IS there any other way to handle this. TO SUPPRESS THE PRINT PARAMETER POPUP.
    Please guide me.
    Waiting for ur replies.
    Vikki.

Maybe you are looking for

  • Jsp jdbc connectivity problem.

    i'm getting the following error "HTTP Status 500----- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: /create_user.jsp(

  • Post manual/unplanned depreciation in previous period

    Dear Experts, I really appreciate for your advices on the following issue. I have posted depreciation up to period 9, 2010. However, there's an unplanned depreciation journal that was missed to be posted on period 8, 2010. Therefore, I tried to creat

  • 'Private' web galleries & iPhone display problem.

    I shoot weddings and a number of my brides now have iPhones. I recently published a web gallery for a sneak preview of a recent wedding. I sent the link to the bride so she could view it on her honeymoon. She responded stating she could see 4 galleri

  • Separating data combined in a string with a ";" delimiter

    Post Author: debbethune CA Forum: General I have a couple fields from my file that contain data separated by a semicolon (AddOn and AddOnChg).  Field is formatted as a string.  How can I parse out the one component that has a value in order to be abl

  • Maintain Columns for Higher Levels in Hierarchy when using Drill Down

    Hello all, I've searched through this forum looking for an answer to this, since I thought it might be a common question, but I wasn't able to find any related content.  So I apologize if this has already been answered in the past. I would like to kn