Enter multiple documents

Hi Experts,
In MIR7, i already have the screen exit . I have created a button for billing document no.(VBRK-VBELN)
against which i have the icon for multiple selction (the same icon that we see in SE11 for entering
multiple inputs). Now my requirement is that, when i click on this button, i should get a pop-up
in which i can enter multiple billing doc. nos. one below the other and then say continue.
Then in the exit ( i also have found out a badi for the same) , i should be able to access these
multiple billing nos. entered along with all the data on the current screen of MIR7 and then
do the further coding.
My problem is that i am not able to enter multiple billing nos. and capture those in the BADI.
Please suggest me if there is any Function Module to enter multiple entries.
Thanks in advance.
Any soln?
Edited by: priti suryawanshi on Apr 22, 2009 8:09 AM

hi ,
use this function module
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
title = 'Pop-up for sales office'
text = 'MODEL'
signed = 'X'
search_help = v_shelp
tab_and_field = struc_tab_and_field1
TABLES
range = VBRK-VBELN
EXCEPTIONS
no_range_tab = 1
cancelled = 2
internal_error = 3
invalid_fieldname = 4
OTHERS = 5.
IF sy-subrc EQ 0.
"your code
ELSEIF sy-subrc EQ 2.
MESSAGE s899 WITH text-003. "user cancelled
ELSEIF sy-subrc 0 AND sy-subrc 2.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
hope it will help u .

Similar Messages

  • How can i enter multiple sales order numbers to set up table

    Hi,
    I need to reload about 8,000 sales orders to the set up table and the SO numbers are very scattered, so i can not enter them as a range. In transaction OLI7BW Sales Document field has no multiple selection option, therefore i have to enter the documents ONE BY ONE! Could you please tell me if there any faster way to enter them?
    regards,
    Tansu Aksu @ CHEP

    Try this link..
    http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
    Regards.
    PS: if it help you, pls assign points.

  • How to Enter multiple inputs at a time in Form or Table

    Hi,
    I have one doubt in Webdynpro with java. How to enter multiple inputs at a time?
    For Exam My requirement is we will take employee details node under node empid, name, sal  etc some attributes is here
    Client asking like this enter multiple inputs at a time that data will saved in ECC System.
    1.     By using form how can enter enter multiple inputs at a time I donu2019t this so I will take table(here I will select input fileds). If any possible in form also tell me how I can enter multiple inputs at a time.
    In table suppose 6 rows available So He will enter
                             empid, name, sal  ,firstname, last Name
                             empid, name, sal  ,firstname, last Name
                             empid, name, sal  ,firstname, last Name 
    Like 6 time Click Submit. That data will save in ECC.
    So I was taken table. But in that Table only first row will be editable. I want all 6 will editable that time he will put data in rows then click on submit.
    How to editable these remaining rows? if u have any documents pls send me.
    Regards
    Vijay Kalluri

    Dear Vijay,
    To enter multiple inputs in a table and to make the other rows editable you have to provide that node with initial values.
    by initial values I mean you have to make that much space in your table node.
    For example the name of Node is  yourNode & you have empid, name, sal ,firstname, last Name
    attributes in that node, and you have to make 6 rows editable.
    Then, simply write this code in you wdDoinit() method of your view controller.
    IPrivateYourView.IYourNodeElement e ;
    for(int i = 0 ; i < 6 ; i++ )
    e = wdContext.nodeYourNode().createYourNodeElement();
    e.setAttributeValue("empid" , "") ;
    e.setAttributeValue("name" , "") ;
    e.setAttributeValue("sal" ,  "") ;
    e.setAttributeValue("firstname" , "") ;
    e.setAttributeValue("lastname" , "") ;
      wdContext.nodeOverTimeEnty().addElement(e) ;
    Change YourView with your view name & YourNode with your node name.
    If you have any problem in doing this you can revert back.
    Hope it helps!!
    Warm Regards
    Upendra Agrawal

  • Easy dms multiple document number search

    Dear experts,
    We have installed easy dms 6.0 successfully. We have a problem in
    usage. In selection screen we need to search "document number" field
    with multiple search criteria, however the system permits only 1
    entrance.
    Thanks for your help.

    Dear Ahmet,
    based on your description I have to inform you that the mentioned behavior means to be the current standard of EasyDMS. If you want to search for documents in EasyDMS you can only enter one document type and here multiple values are not possible. So I can only recommend you to use other fields like 'description' for searching document info records of different document types.
    As EasyDMS is programm in C++ no  individual screens could be customizing here. This behavior is also the same in EasyDMS 7.0.
    Best regards,
    Christoph

  • Multiple document for request correspondence FB12

    Hello all,
    currently i'm using version 4.7.
    as known in std t-code FB12, we need to request which documents to generate correspondence.
    steps are:-
    1. enter company code
    2. choose correspondence type
    3. key in document number & fiscal year
    as for item 3; is there a method that we can key in multiple document numbers & year in one shot?
    currently doc number and year enter one by one.
    pls give ideas anyone...really appreciate it.

    Hi,
    i got what u meant. for my case, i want to print customer invoices (includes with or without tax).
    is there any other std t-code to do it for multiple selection documents?
    update:
    i tested use t-code F.62 (internal doc) using my correspondence type. here i select multiple documents to request as you mentioned earlier.
    but error msg prompted as 'Correspondence type ZAPS1 requires an individual text'.
    then i check the setting for ZAPS1 (tcode OB77) and indicator 'indiv. text' maintained. for what purpose this is ticked?
    further to that i check the program attached to ZAPS1 (t-code OB78), 'Text' field is maintained. what purpose this is maintain?
    kindly help to explain to me as i'm in doubt of the setting. Thanks.
    Edited by: IM_SM on Nov 12, 2008 3:55 AM

  • "Enter the document number" in BAPI_SALESORDER_CHANGE.

    Hi,
    I've got the following error:
    Call of BAPI_SALESORDER_CHANGE gives us an error V1 045 "Enter the document number". We are sure the call is proper (document number is send). The errors occurs in function module SD_SALES_DOCUMENT_READ in lines 60 and 61:
    60    VBAK-VBELN = DOCUMENT_NUMBER.
    61   PERFORM BELEG_LESEN(SAPMV45A).
    In line 60 field VBAK-VBELN is set  but in form BELEG_LESEN(SAPMV45) is initial. The value of field is checked in MV45AF0B_BELEG_LESEN line 53.
    53    if vbak-vbeln is initial.
    54    message e045.
    55   endif.
    The error occurs only when we have mass changing of sales order and posting deliveries in reference to sales order. Single operation doesn't make any problem.
    Our system:
       SAP_APPL 470 with  SAPKH47026
       SAP_BASIS 620 with SAPKB62059
    Anyone met it before? I'm quite confused.
    Best regards:
    Lukasz Tylutki

    Hi Lukasz,
    If I understand correctly the problem occurs with multiple calls of the BAPI within the same program call. As a general rule of thumb, this could be due to parts of the program not properly initialized. Don't try to correct the BAPI - it's hopeless.
    I suggest you make use of the suggestion in note 760068 to start a new task.
    This can be achieved as follows:
    Call function 'XXXXXX' starting new task 'BLABLA'
    performing yyyyy on end of task
    ...rest of function interface (only export and tables)...
    wait until semaphore = 'X'.
    form yyyyy
    receive results from function 'XXXXXX'
    importing...
    tables...
    exceptions....
    semaphore = 'X'.
    endform.
    This way all data are initalized in a different LUW, thus not influencing the next function executions. An alternative would be to submit programs for each function call, passing the interface through export-import parameters, but it doesn't look as nice.
    Best regards,
    Stratis

  • Removing pw-protection from multiple documents using v. 11.0.4

    I'm hoping someone can help me out here. I'm at my wit's end after wasting an hour and a half with an Adobe chat person who couldn't figure this out.
    In previous versions of Acrobat, one was able to add pw-protection to multiple documents at once using the batch process, and conversely, one was able to REMOVE that pw-protection using a similar batch process. I now have about 150 documents that all have the same password, which I must remove because of the need for edits. In v. 11.0.4, however, this capability seems to have disappeared. The chat support person said the only way to do it was to create an Action, but then be willing to re-enter the pw for each and every file! 150 times! Surely we haven't gone backwards in this version?! Say it ain't so!
    If anyone knows how to do this, I would be very grateful. It seems a shame that I would have to revert to an older version to get this job done (with the hassle of uninstalling/installing to boot).
    Thanks,
    Gail

    Hi Dave,
    OK I’ve downloaded your  file and installed. The option Remove Security appears under the Encrypt action only if I have a file open and it will indeed remove the pw from that file and allow me to save back to the same file name. However I don’t see an option to add multiple files to the action, and if no file is open, the action is dimmed out. This is my last hurdle to getting this job done; can you point me in the right direction?
    Gail

  • JProgressBar and ObserverPattern in multiple document app??

    Hi,
    I'm working on a multiple document application with jInternalFrames. There is one very time-consuming process and therefore I'd like to show a progressbar for the user to know, that the programm is still running.
    So Icreated a seperate internalFrame with a jProgressBar and I implemented the observer pattern.
    Now the problem is: my time-consuming process (which is in the observable-class) notifies the internalFrame whenever one percent of work is done,
    and the programm even enters the update method of the internal frame. In this update method i set the value of the
    progress bar, but nothing happens. I tried a repaint() and even a paintImmediately() but nothing happens until
    my time-consuming process is done. That's not exactly what i call a progressbar... ;-) It is even worse as the whole view of the application is faulty once I minimized and then resized the main window while my time-consuming process is running.
    So I already found some articles and I fear I have to work with threads. But how?
    can anyone explain to me what method I have to run as a thread and how can I refresh my internalFrame respectively the progressbar then?
    I hope anyone can help me...

    * Progress_Test.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Progress_Test extends JFrame {
        public Progress_Test() {
            initComponents();
        private void initComponents() {
            desktop = new JDesktopPane();
            internalFrame = new JInternalFrame();
            panel = new JPanel();
            progressBar = new JProgressBar();
            progressBar.setVisible(false);
            toolbar = new JToolBar();
            startBtn = new JButton();
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            setTitle("Test Progress");
            internalFrame.setPreferredSize(new Dimension(200, 100));
            internalFrame.setVisible(true);
            panel.add(progressBar);
            internalFrame.getContentPane().add(panel, BorderLayout.CENTER);
            startBtn.setText("Start");
            startBtn.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    startBtnActionPerformed(evt);
            toolbar.add(startBtn);
            internalFrame.getContentPane().add(toolbar, BorderLayout.NORTH);
            internalFrame.setBounds(0, 0, 200, 100);
            desktop.add(internalFrame, JLayeredPane.DEFAULT_LAYER);
            getContentPane().add(desktop, BorderLayout.CENTER);
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setBounds((screenSize.width-400)/2, (screenSize.height-300)/2, 400, 300);
        private void startBtnActionPerformed(ActionEvent evt) {
            if( ltThread == null || !ltThread.isAlive() ){
                progressBar.setValue(0);
                LongTask lt = new LongTask();
                ltThread = new Thread(lt);
                ltThread.start();
        public static void main(String args[]) {
            new Progress_Test().setVisible(true);
        private JDesktopPane desktop;
        private JInternalFrame internalFrame;
        private JPanel panel;
        private JProgressBar progressBar;
        private JButton startBtn;
        private JToolBar toolbar;
        private Thread ltThread;
        public class LongTask implements Runnable{
            public LongTask() {
                progressBar.setMaximum(max);
            public void run(){
                progressBar.setVisible(true);
                int n=0;
                while ( n<max ){
                    n++;
                    progressBar.setValue(n);
                    try{Thread.sleep(1000);}catch(Exception ex){}
                progressBar.setVisible(false);
            private int max=10;
    }

  • Need Code For PO-GR through MiGO for multiple documents through BAPI

    Hi All
    Im using BAPI_GOODSMVT_CREATE to post goods for PO-GR.
    When im posting multiple documents its giving error.
    When im posting individually, it's working fine.
    Please send me the code for PO-GR through BAPI.
    Urgently required.
    Regards,
    SImha.

    Is this not working???
    BAPI_GOODSMVT_CREATE to post Goods Movement
    The following is an abap program making used of the BAPI function BAPI_GOODSMVT_CREATE to do Goods Receipts for Purchase Order after importing the data from an external system.
    BAPI TO Upload Inventory Data
    GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order
                         02 - MB31 - Goods Receipts for Prod Order
                         03 - MB1A - Goods Issue
                         04 - MB1B - Transfer Posting
                         05 - MB1C - Enter Other Goods Receipt
                         06 - MB11
    Domain: KZBEW - Movement Indicator
         Goods movement w/o reference
    B - Goods movement for purchase order
    F - Goods movement for production order
    L - Goods movement for delivery note
    K - Goods movement for kanban requirement (WM - internal only)
    O - Subsequent adjustment of "material-provided" consumption
    W - Subsequent adjustment of proportion/product unit material
    report zbapi_goodsmovement.
    parameters: p-file like rlgrap-filename default
                                     'c:\sapdata\TEST.txt'.
    parameters: e-file like rlgrap-filename default
                                     'c:\sapdata\gdsmvterror.txt'.
    parameters: xpost like sy-datum default sy-datum.
    data: begin of gmhead.
            include structure bapi2017_gm_head_01.
    data: end of gmhead.
    data: begin of gmcode.
            include structure bapi2017_gm_code.
    data: end of gmcode.
    data: begin of mthead.
            include structure bapi2017_gm_head_ret.
    data: end of mthead.
    data: begin of itab occurs 100.
            include structure bapi2017_gm_item_create.
    data: end of itab.
    data: begin of errmsg occurs 10.
            include structure bapiret2.
    data: end of errmsg.
    data: wmenge like iseg-menge,
          errflag.
    data: begin of pcitab occurs 100,
            ext_doc(10),           "External Document Number
            mvt_type(3),           "Movement Type
            doc_date(8),           "Document Date
            post_date(8),          "Posting Date
            plant(4),              "Plant
            material(18),          "Material Number
            qty(13),               "Quantity
            recv_loc(4),           "Receiving Location
            issue_loc(4),          "Issuing Location
            pur_doc(10),           "Purchase Document No
            po_item(3),            "Purchase Document Item No
            del_no(10),            "Delivery Purchase Order Number
            del_item(3),           "Delivery Item
            prod_doc(10),          "Production Document No
            scrap_reason(10),      "Scrap Reason
            upd_sta(1),            "Update Status
          end of pcitab.
    call function 'WS_UPLOAD'
      exporting
        filename                      = p-file
        filetype                      = 'DAT'
    IMPORTING
      FILELENGTH                    =
      tables
        data_tab                      = pcitab
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      OTHERS                        = 6
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      exit.
    endif.
    gmhead-pstng_date = sy-datum.
    gmhead-doc_date = sy-datum.
    gmhead-pr_uname = sy-uname.
    gmcode-gm_code = '01'.   "01 - MB01 - Goods Receipts for Purchase Order
    loop at pcitab.
      itab-move_type  = pcitab-mvt_type.
      itab-mvt_ind    = 'B'.
      itab-plant      = pcitab-plant.
      itab-material   = pcitab-material.
      itab-entry_qnt  = pcitab-qty.
      itab-move_stloc = pcitab-recv_loc.
      itab-stge_loc   = pcitab-issue_loc.
      itab-po_number  = pcitab-pur_doc.
      itab-po_item    = pcitab-po_item.
      concatenate pcitab-del_no pcitab-del_item into itab-item_text.
      itab-move_reas  = pcitab-scrap_reason.
      append itab.
    endloop.
    loop at itab.
      write:/ itab-material, itab-plant, itab-stge_loc,
              itab-move_type, itab-entry_qnt, itab-entry_uom,
              itab-entry_uom_iso, itab-po_number, itab-po_item,
                                                  pcitab-ext_doc.
    endloop.
    call function 'BAPI_GOODSMVT_CREATE'
      exporting
        goodsmvt_header             = gmhead
        goodsmvt_code               = gmcode
      TESTRUN                     = ' '
    IMPORTING
        goodsmvt_headret            = mthead
      MATERIALDOCUMENT            =
      MATDOCUMENTYEAR             =
      tables
        goodsmvt_item               = itab
      GOODSMVT_SERIALNUMBER       =
        return                      = errmsg
    clear errflag.
    loop at errmsg.
      if errmsg-type eq 'E'.
        write:/'Error in function', errmsg-message.
        errflag = 'X'.
      else.
        write:/ errmsg-message.
      endif.
    endloop.
    if errflag is initial.
      commit work and wait.
      if sy-subrc ne 0.
        write:/ 'Error in updating'.
        exit.
      else.
        write:/ mthead-mat_doc, mthead-doc_year.
        perform upd_sta.
      endif.
    endif.
          FORM UPD_STA                                                  *
    form upd_sta.
      loop at pcitab.
        pcitab-upd_sta = 'X'.
        modify pcitab.
      endloop.
      call function 'WS_DOWNLOAD'
        exporting
          filename                      = p-file
          filetype                      = 'DAT'
    IMPORTING
      FILELENGTH                    =
        tables
          data_tab                      = pcitab
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      OTHERS                        = 6
    endform.
    *--- End of Program
    REgards,
    Ravi

  • Can't see 'Upload Multiple Document' option in sharepoint 2013

    After upgrading Sharepoint 2010 to 2013, i can't see 'Upload Multiple Document' option under files tab. I have downloaded and place the file 'STSUPLD.DLL' into Office14 and Office15 folder but IE is not asking me to run any microsoft ActiveX control as mentioned here
    http://thuansoldier.net/?p=2289
    I am using  Office 2010 with IE9 (32 bit) .
    Am i missing anything ?

    Hi, 
    According to your post, my understanding is that you could not see the “Upload Multiple Document” option in SharePoint 2013.
    In SharePoint 2013 the “Upload Multiple” Options has been depreciated. As we all known, there are two alternative ways to Upload multiple documents:option
    1 -  Using the drag-and-drop functionality, option 2 - Windows Explorer view.
    You can upgrade your IE from IE9 to IE10 then check whether it works.
    You can also use the Windows Explorer view to upload multiple documents.
    You will probably get the following error.
    To resolve this add the SharePoint site as Trusted in your Browser and Make sure that the WebClient service is running. To do this, follow these steps:
    Click Start, click Run, type services.msc, and then press Enter.
    In the list of services, locate the WebClient service, and then make sure that its status in the Status column is set to Started. If its status is not set to Started, double-click WebClient, click Start, and then click OK.
    Once done restart the browser and try opening the Windows Explorer again. In the Windows Explorer you can copy and paste Multiple documents as done in earlier SharePoint versions.
    For more information:
    http://www.learningsharepoint.com/2012/11/29/how-to-upload-multiple-documents-in-sharepoint-2013/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Enter multiple invoice number

    Hi all,
    On screen FB60, users want to enter multiple invoice numbers (amount should be entered as a lump sum on Field Amount). Actually, we are using the field Reference to input one single invoice number. How can I capture multiple invoice numbers in one transaction/step only?
    Thanks for your help.
    Nas

    Please note this is not what this transaction is for. A single invoice should have a single reference.
    Can you provide the reason why you want a single accounting document to have many invoices?
    You could use t code FB01, and have many vendor line item postings, and use the allocation field at line item level to store the invoice number.

  • I have multiple documents how can I combine them into one document?

    I have multiple document files in Pages. How can I combine them into one document?

    Menu > View > Page Thumbnails > click on the thumbnails > Copy/Paste into thumbnails of other document
    Peter

  • Display data from multiple document Libraries in List View Webpart

    Hi All,
    I want to display data from multiple document libraries into one list view webpart(custom i have created)
    I went through the following link http://blogs.msdn.com/b/ramg/archive/2009/04/22/implementing-a-simple-cross-site-collection-list-view-webpart.aspx
    but it tells to display only from one document library.
    My motive behind displaying data in the list view webpart is to achieve the functionality of Check In ,Check Out and other OOB features.
    With Regards,
    Jaskaran Singh

    Hi,
    As there is no such OOTB feature, a workaround is to create a visual web part to gather items from libraries and implement functionalities like Check in, Check out files
    in different libraries.
    The links below will provide more details:
    Create Visual Web Parts in SharePoint
    2010
    A demo about displaying list items in visual web part:
    http://www.dotnetcodesg.com/Article/UploadFile/2/217/Web%20Part%20in%20SharePoint%20To%20Show%20All%20List%20and%20List%20Items.aspx
    About the Check In and Check Out:
    How to Check In a document programmatically
    SPFile.CheckIn method
    and SPFile.CheckOut method
    Best regards
    Patrick Liang
    TechNet Community Support

  • Unable to enter multiple Schedule lines for BOM material in Sales Order

    Hi All,
    We have a Sales Order where in which we cannot add additional schedule lines for BOM material.
    The schedule lines are greyed out, user was able to add schedule lines earlier.
    I have checked all assignments in VOV6, VOV7 and everything seems to be fine and no changes have been made to item category being used.
    Please provide a solution for this.
    PFB link in which similar situation posted in this community but the final resolution method is not discussed.
    http://scn.sap.com/message/13201504#13201504
    Regards,
    Samiksh

    Hi Samiksh,
    Pls check for that particular customer, only complete delivery allowed(c) is set in the CMR or CMIR. If so, you can't enter multiple schedule lines for that customer.. it would be grayed out in the sales order schedule lines except confirmed line.
    or check the problematic sales order at item level shipping tab if the par del/item is set to 'C'
    With regards
    S.Siva

  • How do you highlight multiple documents rapidly, rather than having to click on the document and on "command" one at a time?

    How do you highlight multiple documents rapidly, rather than having to click on the document and on "command" one at a time? Right now, when I'm trying to highlight documents to export, I have to click on each document individually. Is there a way to highlight one document while scrolling down the list until all desired documents are highlighted? I would like to rapidly be able to do this to save time when I am exporting or saving multiple files from my documents to an external drive, CD-Rom or cloud storage.

    Click on the first item
    Hold the Shift key
    Click on the Last Item.
    All the items in between will be selected.

Maybe you are looking for