Multiple Downlopad from DMS Problem

Hi guys , I am uploading multiple files in DMS using bapi_document_create2. It is working perfectly fine.
But the problem is when i want to download particular file from multiple uploaded  files . i am not able to download selected files but a whole bunch of files of 'SAME' extension. Like if i have uploaded two doc files , two xls file. now when i click on single xls file to download two files are being download.
Kindly help.

The Problem has been Solved.... Posting the solution..
REPORT  ZDHRUVDOWNLOADTEST.
DATA : L_PFX_FILE TYPE DRAW-FILEP.
DATA : WA_PS_COUNT_DF TYPE DMS_CHECKOUT_DEF,
       WA_PS_DOC_FILE TYPE DMS_DOC_FILE,
       WA_DRAW TYPE DRAW,
       WA_DMS_PHIO TYPE DMS_PHIO,
       WA_FRONTEND TYPE DMS_FRONTEND_DATA,
       WA_FILE TYPE DRAW-FILEP,
       IT_DOC_FILE TYPE STANDARD TABLE OF CVAPI_DOC_FILE,
       WA_DOC_FILE TYPE CVAPI_DOC_FILE,
       WA_PSX_DRAW TYPE DRAW,
       WA_PATH TYPE  DRAW-FILEP,
       WA_CHECK1 TYPE DRAW-DAPPL.
DATA : WA_L_F TYPE DBMSGORA-FILENAME,
       WA_FILENAME TYPE SDBAH-ACTID,
       WA_EXT TYPE SDBAD-FUNCT.
DATA  TEMP TYPE DRAW-FILEP.
*BREAK-POINT.
CALL FUNCTION 'CVAPI_DOC_GETDETAIL'
    EXPORTING
      PF_DOKAR              = 'ZMM'
      PF_DOKNR              = '0000000000000010000000056'
      PF_DOKVR              = '00'
      PF_DOKTL              = '000'
      PF_READ_KPRO           = 'X'
*     PF_READ_DRAT          = 'X'
   IMPORTING
     PSX_DRAW              = WA_PSX_DRAW
*     PFX_DESCRIPTION       =
   TABLES
     PT_FILES              = IT_DOC_FILE
*     PT_COMP               =
*     PT_DRAP               =
*     PT_DRAD               =
*     PT_DRAT               =
   EXCEPTIONS
     NOT_FOUND             = 1
     NO_AUTH               = 2
     ERROR                 = 3
     OTHERS                = 4
IF SY-SUBRC <> 0.
  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
BREAK-POINT.
LOOP AT IT_DOC_FILE INTO WA_DOC_FILE.
  CALL FUNCTION 'SPLIT_FILENAME'     " to get the file extention
  EXPORTING
    LONG_FILENAME = WA_DOC_FILE-FILENAME
IMPORTING
   PURE_FILENAME        = WA_FILENAME
   PURE_EXTENSION       = WA_EXT
  TRANSLATE WA_EXT TO UPPER CASE.
  WA_CHECK1 = WA_EXT.
  CONCATENATE WA_FILENAME '.' WA_EXT INTO WA_FILENAME.
  WA_PATH = WA_FILENAME.
  CONCATENATE 'abc' WA_DOC_FILE-APPNR into TEMP.
  CALL FUNCTION 'CV120_DOC_GET_FILE'
EXPORTING
   PF_DTTRG              = 'DEFAULT'
*   PF_PATH               = 'C:\DOCUMENTS AND SETTINGS\AUDITOR\DESKTOP\'
   PF_FILE               = TEMP
   PF_DAPPL              = WA_DOC_FILE-DAPPL                "WA_check1
*   PF_MASK1              =
   PF_MASK2              = '*.*'
   PF_MODE               = 'S'
*   PF_TITLE              = ''
*   PF_HOSTNAME           = ' '
IMPORTING
   PFX_FILE              = L_PFX_FILE
*   PFX_MASK_CHANGE       =
EXCEPTIONS
   WRONG_APPL            = 1
   ERROR                 = 2
   OTHERS                = 3
  IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  WA_L_F = L_PFX_FILE.
*BREAK-POINT.
  CLEAR : WA_FILENAME.
  CLEAR : WA_EXT.
  CALL FUNCTION 'SPLIT_FILENAME'     " to get the file extention
    EXPORTING
      LONG_FILENAME = WA_L_F
   IMPORTING
     PURE_FILENAME        = WA_FILENAME
     PURE_EXTENSION       = WA_EXT.
  WA_PS_COUNT_DF-KPRO_USE = 'X'.
  WA_PS_COUNT_DF-COMP_GET = 'X'.
  WA_PS_DOC_FILE-LANGU = 'EN'.
  WA_PS_DOC_FILE-FILENAME = WA_L_F.
  WA_PS_DOC_FILE-DAPPL = WA_DOC_FILE-DAPPL."WA_EXT.
  WA_DRAW-DOKAR = 'ZMM'.
  WA_DRAW-DOKNR = '10000000055'.
  WA_DRAW-DOKVR = '00'.
  WA_DRAW-DOKTL = '000'.
  WA_DRAW-DOKST = 'FR'.
  WA_DMS_PHIO-LO_INDEX = WA_DOC_FILE-APPNR.
  WA_DMS_PHIO-LO_OBJID = WA_DOC_FILE-LO_OBJID.
  WA_DMS_PHIO-PH_OBJID = WA_DOC_FILE-PH_OBJID.
  WA_DMS_PHIO-PH_INDEX = WA_DOC_FILE-APPNR.
  WA_DMS_PHIO-LANGU = 'EN'.
  WA_DMS_PHIO-STATUS_NR = '000'.
  WA_DMS_PHIO-FILENAME = WA_DOC_FILE-FILENAME.
  WA_DMS_PHIO-ACTIVE_VERSION = 'X'.
  WA_DMS_PHIO-DELETE_FLAG = 'X'.
  WA_DMS_PHIO-PROTECTED = 'X'.
  WA_DMS_PHIO-DEFAULT_LANGU = 'X'.
  WA_DMS_PHIO-FILE_ID = WA_DOC_FILE-FILE_ID.
  WA_DMS_PHIO-STORAGE_CAT = 'ZDMS'.
  WA_FRONTEND-FRONTEND_TYPE = 'PC'.
  WA_FRONTEND-HOSTNAME = 'DEFAULT'.
  WA_FRONTEND-WINSYS = '  WN32'.
  CALL FUNCTION 'CV120_DOC_CHECKOUT_VIEW'
    EXPORTING
     PS_COUT_DEF         = WA_PS_COUNT_DF
     PF_TCODE            = 'CV03'
     PS_DOC_FILE         = WA_PS_DOC_FILE
     PS_DRAW             = WA_DRAW
     PS_PHIO             = WA_DMS_PHIO
     PS_FRONTEND         = WA_FRONTEND
     PF_STD_URL          = 'X'
   IMPORTING
     PFX_FILE            = WA_FILE
*   PFX_URL             =
*   PFX_USE_LAST        =
* TABLES
*   PT_COMPONENTS       =
*   PT_DRAZ             =
*   PTX_CONTENT         =
   EXCEPTIONS
     ERROR               = 1
     OTHERS              = 2
  IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDLOOP.
Some Variables and code is useless in this u just need to rectify... thanks

Similar Messages

  • Mass downloading of Documents from DMS

    Dear SAP gurus,
    How to download the multiple documents from DMS in one step?
    Thanks in advance.
    Venkat

    Dear Prasanna,
    We have to download all the document info records (along with Documents attached to it) and upload them to new server.
    How should go about this?
    Thanks in advance.
    Venkat

  • Scanning multiple pages from print book into computer

    How to scan multiple pages from print book into computer? Someone supplied a link to this question, but I got stuck at step 1: Where is "HP Director software"? In other directions, it says to open the "HP Scan window," but that option is not available to me when I follow the directions. I have an HP 2159m computer, HP Photosmart Plus all-in-one, Windows 7, and use Firefox, if that's any help.
    TIA

    I have a similar problem:
    I am using an HP Officejet 6310xi via its TWAIN interface.  Regardless of which application invokes TWAIN (whether Irfanview, Thumbs Plus, or something else), the scanner dialog closes after transferring each scanned image.  To scan the next page requires re-starting the scanner, beginning with a whole new preview and re-entering all my scan settings.  This is only an issue with the HP scanner, not with my Cannon CanoScan LIDE 100, Visioneer OneTouch 8920, or any other scanner, each of whose scanner dialogs stay open for scan after scan.  Can anyone help me make the HP scanner dialog stay open for multiple pages?
    Note: Based on a suggestion on another site I set my scan preferences to include "Prompt for Additional Scans from Glass" as follows, but it did not help.
    I am experienced at scanning, but I find it extremely frustrating that the HP scan dialog closes, forgetting its settings, after each page.
    If it helps others, I gladly share my article, "Freedom from Paper--At Last" here
    http://www.richpasco.org/paperless.html

  • [UIX] How To: Return multiple values from a LOV

    Hi gang
    I've been receiving a number of queries via email on how to return multiple items from a LOV using UIX thanks to earlier posts of mine on OTN. I'm unfortunately aware my previous posts on this are not that clear thanks to the nature of the forums Q&A type approach. So I thought I'd write one clear post, and then direct any queries to it from now on to save me time.
    Following is my solution to this problem. Please note it's just one method of many in skinning a cat. It's my understanding via chatting to Oracle employees that LOVs are to be changed in a future release of JDeveloper to be more like Oracle Forms LOVs, so my skinning skills may be rather bloody & crude very soon (already?).
    I'll base my example on the hr schema supplied with the standard RDBMS install.
    Say we have an UIX input-form screen to modify an employees record. The employees record has a department_id field and a fk to the departments table. Our requirement is to build a LOV for the department_id field such that we can link the employees record to any department_id in the database. In turn we want the department_name shown on the employees input form, so this must be returned via the LOV too.
    To meet this requirement follow these steps:
    1) In your ADF BC model project, create 2 EOs for employees and departments.
    2) Also in your model, create 2 VOs for the same EOs.
    3) Open your employees VO and create a new attribute DepartmentName. Check “selected in query”. In expressions type “(SELECT dept.department_name FROM departments dept WHERE dept.department_id = employees.department_id)”. Check Updateable “always”.
    4) Create a new empty UIX page in your ViewController project called editEmployees.uix.
    5) From the data control palette, drag and drop EmployeesView1 as an input-form. Notice that the new field DepartmentName is also included in the input-form.
    6) As the DepartmentName will be populated either from querying existing employees records, or via the LOV, disable the field as the user should not have the ability to edit it.
    7) Select the DepartmentId field and delete it. In the UI Model window delete the DepartmentId binding.
    8) From the data controls palette, drag and drop the DepartmentId field as a messageLovInput onto your page. Note in your application navigator a new UIX page lovWindow0.uix (or similar) has been created for you.
    9) While the lovWindow0.uix is still in italics (before you save it), rename the file to departmentsLov.uix.
    10) Back in your editEmployees.uix page, your messageLovInput source will look like the following:
    <messageLovInput
        model="${bindings.DepartmentId}"
        id="${bindings.DepartmentId.path}"
        destination="lovWindow0.uix"/>Change it to be:
    <messageLovInput
        model="${bindings.DepartmentId}"
        id="DepartmentId"
        destination="departmentsLov.uix"
        partialRenderMode="multiple"
        partialTargets="_uixState DepartmentName"/>11) Also change your DepartmentName source to look like the following:
    <messageTextInput
        id=”DepartmentName”
        model="${bindings.DepartmentName}"
        columns="10"
        disabled="true"/>12) Open your departmentsLov.uix page.
    13) In the data control palette, drag and drop the DepartmentId field of the DepartmentView1 as a LovTable into the Results area on your page.
    14) Notice in the UI Model window that the 3 binding controls have been created for you, an iterator, a range and a binding for DepartmentId.
    15) Right click on the DepartmentsLovUIModel node in the UI Model window, then create binding, display, and finally attribute. The attribute binding editor will pop up. In the select-an-iterator drop down select the DepartmentsView1Iterator. Now select DepartmentName in the attribute list and then the ok button.
    16) Note in the UI Model you now have a new binding called DCDefaultControl. Select this, and in the property palette change the Id to DepartmentName.
    17) View the LOV page’s source, and change the lovUpdate event as follows:
    <event name="lovSelect">
        <compound>
            <set value="${bindings.DepartmentId.inputValue}" target="${sessionScope}" property="MyAppDepartmentId" />
            <set value="${bindings.DepartmentName.inputValue}" target="${sessionScope}" property="MyAppDepartmentName" />
        </compound>
    </event>18) Return to editEmployees.uix source, and modify the lovUpdate event to look as follows:
    <event name="lovUpdate">
        <compound>
            <set value="${sessionScope.MyAppDepartmentId}" target="${bindings.DepartmentId}" property="inputValue"/>
            <set value="${sessionScope.MyAppDepartmentName}" target="${bindings.DepartmentName}" property="inputValue"/>     
        </compound>
    </event>That’s it. Now when you select a value in your LOV, it will return 2 (multiple!) values.
    A couple things to note:
    1) In the messageLovInput id field we don’t use the “.path” notation. This is mechanism for returning 1 value from the LOV and is useless for us.
    2) Again in the messageLovInput we supply “_uixState” as an entry in the partialTargets.
    3) We are relying on partial-page-refresh functionality to update multiple items on the screen.
    I’m not going to take the time out to explain these 3 points, but it’s worthwhile you learning more about them, especially the last 2, as a separate exercise.
    One other useful thing to do is, in your messageLovInput, include as a last entry in the partialTargets list “MessageBox”. In turn locate the messageBox control on your page (if any), and supply an id=”MessageBox”. This will allow the LOV to place any errors raised in the MessageBox and show them to the user.
    I hope this works for you :)
    Cheers,
    CM.

    Thanks Chris,
    It took me some time to find the information I needed, how to use return multiple values from a LOV popup window, then I found your post and all problems were solved. Its working perfectly, well, almost perfectly.
    Im always fighting with ADF-UIX, it never does the thing that I expect it to do, I guess its because I have a hard time letting go of the total control you have as a developer and let the framework take care of a few things.
    Anyway, I'm using your example to fill 5 fields at once, one of the fields being a messageChoice (a list with countries) with a LOV to a lookup table (id , country).
    I return the countryId from the popup LOV window, that works great, but it doesn't set the correct value in my messageChoice . I think its because its using the CountryId for the listbox index.
    So how can I select the correct value inside my messageChoice? Come to think of it, I dont realy think its LOV related...
    Can someone help me out out here?
    Kind regards
    Ido

  • Retruring Multiple rows from a Stored Procedure

    The Oracle JDBC documentation shows how to return a cursor pointer through the parameter list of a stored procedure allowing a Java program to use the cursor like a normal result set. I've tried it (using the thin driver) and it works fine - however, I'm having trouble getting this to work running the program under a Weblogic server (using their own JDBC implementation). So, I have two questions:
    1) Has anyone had this problem before and solved it ??
    2) Are there any other techniques for getting multiple rows back from the database without having to fire "raw" sql at it ?

    Hi
    You could return not resultset but array, for example:
    PACKAGE TEST:
    type string_table is table of varchar2(80)
    index by binary_integer;
    function get_something (
    something1 out string_table,
    arraylength in number
    ) return number;
    PACKAGE'S BODY:
    function get_something (
    something1 out string_table,
    arraylength in number /** length of the array **/
    ) return number as
    cursor C is
    select something1, ...
    from test_table;
    pos number := 1;
    begin
    for position in C loop
    exit when (pos > arraylength);
    something1(pos) := position.something1;
    pos := pos + 1;
    end loop;
    return (pos - 1);
    end;
    Of course in this example you need to know length of your array
    (arraylength parameter), but you can avoid such problem, for
    example, by using DBMS_SQL package (or dynamic SQL feature in
    the Oracle8i).
    Andrew
    Mladen Gogala (guest) wrote:
    : Phil Hildebrand (guest) wrote:
    : : Is there a way that I can return multiple rows from a stored
    : : procedure for function ?
    : : Something like:
    : : CREATE FUNCTION sp_get_children (my_nip IN port.nip_num%
    TYPE)
    : : RETURN my_nip
    : : IS
    : : CURSOR child_cur IS
    : : SELECT nip_num
    : : FROM logical_port
    : : WHERE port_num = my_nip;
    : : child_rec child_cur%rowtype;
    : : BEGIN
    : : FOR child_rec IN child_cur
    : : LOOP
    : : RETURN my_nip;
    : : END LOOP;
    : : END tmp_sp_get_children;
    : : I know how to do it in Informix ( RETURN WITH RESUME ), but
    : I'm
    : : not running Informix ;)
    : : Thanks,
    : : Phil
    : In contrast with Informix, SQL Server and Sybase, Oracle
    : can not return a result set. the only workaround is to
    : return the cursor variable as such.
    null

  • How to pass multiple values from master to child report

    Hello,
    How would I pass multiple prompts from the master to child report? So for example, say I want to pass a 'Country' value along with a 'City' value
    Would it be?
    ="<a href=\"../../opendoc/openDocument.jsp?iDocID=ASQlgCemIOlEid1HHUlzyPs&sDocName=DocTest&sIDType=CUID&sType=wid&sWindow=Same&lsSCountry="+[Country]+"&lsSCity="+[City]+"\</a>"
    Thanks,
    Carter

    Carter,
    what is the syntax for this?
    It is exactly how you have posted in your original note.
    "&lsSCountry="+[Country]+"&lsSCity="[City]
    This will work providing the target report has a prompt called "Country" and another prompt called "City".  Note that your prompt and what you pass between the &lsS and the equal (=) must match exactly, otherwise OpenDocument will not communicate the prompt title to InfoView properly and InfoView will stop and execute the prompt to get the info it needs before running the report.  Have you tried what you've posted originally to see if it executes without a problem?
    Thanks,
    John

  • How to return multiple values from dialog popup

    hi all
    I'm using ADF 10g. I have a requirement that I have to return multiple values from a dialog.
    I have a page containing a table with a button which calls the dialog. The dialog contains a multi-select table where i want to select multiple records and add them to the table in the calling page.
    In the backing bean of the calling page, I have the returnListener method.
    I am thinking that I have to store the selected rows from dialog in an array and return that array to the returnListener...but I don't know how to go about it with the code.
    Can someone help me out with it?
    thanks

    Hi Frank,
    I'm trying to implement your suggestion but getting comfused.
    AdfFacesContext.getCurrentInstance().returnFromDialog(null, hashMap) is called in ActionListener method, from what I understood.
    ReturnListener method already calls it, so no need to call explicitly.
    Okay here's what i'm doing.
    command button launches the dialog on the calling page.
    In the dialog page, there is a button "select", which when i click, closes the dialog and returns to calling page. I put a af:returnActionListener on this button, which logically should have a corresponding ReturnListener() in the calling page backing bean.
    Now I have 3 questions:
    1. do i have to use ActionListener or ReturnListener?
    2. where do I create the hashMap? Is it in the backing bean of the dialog or in the one of calling page?
    3. how do I retrieve the keys n values from hashmap?
    please help! thanks
    This is found in the backing bean of calling page:
    package mu.gcc.dms.view.bean.backing;
    import com.sun.java.util.collections.ArrayList;
    import com.sun.java.util.collections.HashMap;
    import com.sun.java.util.collections.List;
    import java.io.IOException;
    import java.util.Map;
    import javax.faces.application.Application;
    import javax.faces.application.ViewHandler;
    import javax.faces.component.UIViewRoot;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    import javax.faces.event.ActionEvent;
    import mu.gcc.dms.model.services.DMSServiceImpl;
    import mu.gcc.dms.model.views.SiteCompaniesImpl;
    import mu.gcc.dms.model.views.SiteCompaniesRowImpl;
    import mu.gcc.dms.model.views.lookup.LkpGlobalCompaniesImpl;
    import mu.gcc.util.ADFUtils;
    import mu.gcc.util.JSFUtils;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.view.faces.context.AdfFacesContext;
    import oracle.adf.view.faces.event.ReturnEvent;
    import oracle.adf.view.faces.model.RowKeySet;
    import oracle.binding.AttributeBinding;
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    import oracle.jbo.AttributeDef;
    import oracle.jbo.Key;
    import oracle.jbo.Row;
    import oracle.jbo.RowIterator;
    import oracle.jbo.RowSetIterator;
    import oracle.jbo.domain.Number;
    import oracle.jbo.server.java.util.Iterator;
    public class CompanyList {
    private BindingContainer bindings;
    private Map hashMap;
    DMSServiceImpl service =(DMSServiceImpl)ADFUtils.getDataControlApplicationModule("DMSServiceDataControl");
    SiteCompaniesImpl siteCompanyList = service.getSiteCompanies();
    LkpGlobalCompaniesImpl globalCompanyList = service.getLkpGlobalCompanies();
    public CompanyList() {
    public BindingContainer getBindings() {
    return this.bindings;
    public void setBindings(BindingContainer bindings) {
    this.bindings = bindings;
    *public void setHashMap(Map hashMap) {*
    *// hashMap = (Map)new HashMap();*
    this.hashMap = hashMap;
    *public Map getHashMap() {*
    return hashMap;
    public String searchCompanyButton_action() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("Execute");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    return null;
    *public void addCompanyActionListener(ActionEvent actionEvent){*
    AdfFacesContext.getCurrentInstance().returnFromDialog(null, hashMap);
    public void addCompanyReturnListener(ReturnEvent returnEvent){
    //how to get hashmap from here??
    public String addCompanyButton_action() {
    return "dialog:globalLovCompanies";
    }

  • Print from DMS directly

    hi all,
        i have a requirement that document should be printed directly from DMS. i came to kno from someone that there is s program named MCDOKPRT which can solve my problem. But i tried that program, it is giving me some text and not displaying or printing the actual document which has been loaded using the Tcode CV01n.
    Pls help
    any suggestions most welcomed.
    Regards
    Kshitij

    Hi Kshitij,
    If you want to print originals directly from a DMS transaction (CV02N or CV03N)
    it is necessary that you have defined workstation application type "3" (print) for the relevant workstation application and the frontend type in transaction DC30.
    Further it is necessary that your Windows folder options are also maintained correctly. Please see the following sample for the direct print of PDF files:
    I would recommend to do the following steps:
    1. Open Microsoft Explorer
    2. Menue: Tools   > Folder options   > File types
    3. Select "PDF" and press button "Advanced"
    4. There should be a input called "print". If there is no such entry
       please create it by pressing the button "New"
    5. Into the action field please insert "print" and to application used..
       write the Acrobat application path (see sample picture attached)
    Back to SAP system at transaction DC30:
    1. Select "PDF" and then select "define Workstation application"
    2. Edit entry: PC    PDF    3 (application type)    %Auto%
    3. Save
    After creating this settings the pdf document should be printed by
    directly. Only the empty Reader (without displaying a file) opens.
    Best regards,
    Christoph
    P.S.: Please award points of the information is useful.

  • Extract Multiple Rows from a Single Table into a Single Row in a New Table

    I have a table in a database that contains contact data like name, address, phone number, etc.
    The folks who designed the database and wrote the application wrote it so that all contact records are placed in that table, regardless of contact type. In fact, the contacts table does not even have a column for "type" even though there are many
    different types of contacts present in that table.
    I am trying to write a mail merge style report in SRSS, that gets sent to a specific type of contact, based on criteria provided that must be obtained from another table, and that data is then used to get back to a specific set of contacts from the contacts
    table.
    The attached file directly below describes my problem and all related information in an extremely detailed way.
    SRSSMailMergeIssue.pdf
    Unless there is a way to make a SRSS Tablix point to two different data sets in SRSS, it looks like I have to combine multiple rows from the same table into a new table.
    If anyone can review the details in the attached pdf file and possibly point me in the direction I need to run to solve this probelm, I would greatly appreciate it.
    I also included a document (below) that shows the tables I reference in the probelm description.
    dbtables.pdf

    I found a solution.... and posted it below
    select
    dk.ucm_docketnumber [UCM DocketNumber],
    dk.ucm_docketid [UCM DocketID],
    vc.FirstName [Victim FirstName],
    vc.MiddleName [Victim MiddleName],
    vc.LastName [Victim LastName],
    vc.Suffix [Victim Suffix],
    vc.Address1_Line1 [Victim AddressLine1],
    vc.Address1_Line2 [Victim AddressLine2],
    vc.Address1_Line3 [Victim AddressLine3],
    vc.Address1_City [Victim City],
    vc.Address1_StateOrProvince [Victim StateProvince],
    vc.Address1_PostalCode [Victim Postalcode],
    oc.FirstName [Offender FirstName],
    oc.MiddleName [Offender MiddleName],
    oc.LastName [Offender LastName],
    oc.Suffix [Offender Suffix],
    oc.Address1_Line1 [Offender AddressLine1],
    oc.Address1_Line2 [Offender AddressLine2],
    oc.Address1_Line3 [Offender AddressLine3],
    oc.Address1_City [Offender City],
    oc.Address1_StateOrProvince [Offender StateProvince],
    oc.Address1_PostalCode [Offender Postalcode],
    pc.FirstName [Arresting Officer FirstName],
    pc.MiddleName [Arresting Officer MiddleName],
    pc.LastName [Arresting Officer LastName],
    pc.Address1_Line1 [Arresting Officer AddressLine1],
    pc.Address1_Line2 [Arresting Officer AddressLine2],
    pc.Address1_Line3 [Arresting Officer AddressLine3],
    pc.Address1_City [Arresting Officer City],
    pc.Address1_StateOrProvince [Arresting Officer StateProvince],
    pc.Address1_PostalCode [Arresting Officer Postalcode]
    FROM ucm_docket dk
    left outer join ucm_victim v on dk.ucm_docketid = v.ucm_docketnumber
    left outer join contact vc on vc.contactid = v.ucm_victimlookup
    left outer join ucm_offender o on o.ucm_offenderid = dk.ucm_offenderlookup
    left outer join contact oc on oc.contactid = o.ucm_individualid
    left outer join contact pc on pc.contactid = dk.ucm_ArrestingOfficerLookup
    WHERE (dk.ucm_docketnumber = @DocketNUM)

  • I can no longer select multiple addresses from my Mail address book when forwarding emails

    Since updating to Mavericks I cannot select multiple addresses from my address book when forwarding emails.
    I can select them individually using the + sign in the address bar but cannot select any when I open my Contact list as I have done with previous systems.
    Additionly, the full address appears in the "To" window instead of just the name and without the email address. I have selected "Smart Address" from the Preferences menu, View section.
    Help!

    Why are you using a Hotmail or Live Mail SMTP server to send email with your Gmail account?
    This is likely the cause of the problem. Use Gmail's authenticated SMTP server to send email with your Gmail account.

  • File download from DMS into Webdynpro for ABAP application

    I need to download the file from DMS content server on the PC and with my application on clicking of file name, file needs to be displayed.
    To achieve the downloading part I tried BAPI_DOCUMENT_CHECKOUTVIEW2, but it is not working.
    If I pass the parameters
    PF_HTTP_DEST              = 'SAPHTTPA'
    PF_FTP_DEST               = 'SAPFTPA', then it returns error message saying file can not be saved.
    If I don't pass above parameters then it gives me 'RFC_START_PROGRAM' error.
    How to download the file from DMS in WebDynpro and read/display the content?
    Please help.
    Thanks, in advance.

    Hi,
    I had the same problem, but found a solution. All I changed was the hostname to 'DEFAULT'
    Use the code below:
    DATA: lt_drao TYPE TABLE OF drao,
             wa_drao TYPE drao,
             wa_bin TYPE x LENGTH 2550,
             lt_bin LIKE TABLE OF wa_bin,
             file_data TYPE xstring,
             v_line TYPE i,
             size TYPE i.
       CALL FUNCTION 'CVAPI_DOC_CHECKOUTVIEW_DIALOG'
         EXPORTING
           pf_dokar                 = ls_input-dokar
           pf_doknr                 = ls_input-doknr
           pf_dokvr                 = ls_input-dokvr
           pf_doktl                 = ls_input-doktl
    *     PF_FTP_DEST              = 'SAPFTPA'
    *     PF_HTTP_DEST             = ' '
          pf_hostname              = 'DEFAULT'
          pf_content_provide       = 'TBL'
    *     PS_API_CONTROL           =
    *   IMPORTING
    *     PSX_MESSAGE              =
    *     PSX_FILE                 =
    *     PSX_DRAW                 =
        TABLES
          ptx_content              = lt_drao.
       LOOP AT lt_drao INTO wa_drao.
         wa_bin = wa_drao-orblk.
         APPEND wa_bin TO lt_bin.
       ENDLOOP.
       DESCRIBE TABLE lt_drao LINES v_line.
       size = 2550 * v_line.
       CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
         EXPORTING
           input_length       = size
    *     FIRST_LINE         = 0
    *     LAST_LINE          = 0
        IMPORTING
          buffer             = file_data
         TABLES
           binary_tab         = lt_bin
    *   EXCEPTIONS
    *     FAILED             = 1
    *     OTHERS             = 2
       IF sy-subrc <> 0.
    * Implement suitable error handling here
       ENDIF.
    CALL METHOD cl_wd_runtime_services=>attach_file_to_response
         EXPORTING
           i_filename      = 'abc.pdf'
           i_content       = file_data
           i_mime_type     = 'application/pdf'
    *     i_in_new_window = ABAP_FALSE
    *     i_inplace       =  ABAP_FALSE

  • Import data to Purchase Order Item Level Text from DMS system

    Hi,
    I have the material PO Text maintained against the Material in the DMS system.
    In R/3, when I am creating the Purchase Order, I want the system to retreive the PO Text maintained in DMS against the material in the Purchase Order and paste it in the Purchase Order Item details - Material PO Texts.
    Could anyone suggest me which User Exit or BAPI and the Function Module to fetch this data from DMS.
    Thanks in advance.
    Regards,
    Jeetendra

    Dear Gurus,
    We are able to populate the "Import Data" in the backend PO in our backend system 4.6C, thorugh user exit
    EXIT_SAPMM06E_004   &   EXIT_SAPLV50E_004.
    Now when we create PO from SRM , the import related foreign trade data gets filled up from the master data.
    Problem: In Header and Line item condition: We are not getting the condition type GRWR automatically, if the PO is comming from SRM. Because of this the statistical value is 0.
    ( If we create manual PO, the condition GRWR appears in PO - and the Statistical value gets filled in automatically )
    How can we put the condition type GRWR into the PO using user exit ?
    Thanks and regards,
    Anil Rajpal
    Edited by: ANIL on Aug 12, 2010 6:18 PM

  • Call multiple screens from LSMw

    Hi
    i want to call multiple screens from lsmw
    I need to call a three transaction from LSMW wich are subzequent steps for data entry.
    1) first tcode to be called is eprodcust which creates some master data and using this master data and some fields of data creatd i need to call two more tcodes first iq01 to create meter and save then eg31 tcod to feed data.
    Please suggest where in lsmw can i give options for suc hscnerio and call of subsequent screens.
    regards
    Edited by: Prieti_V on Nov 8, 2011 8:28 PM

    Hi Priti ,
    we have few options to handle such cases , to avoid Locked Problems what you can do is
    -->write BDC program within LSMW to create installation ( this will be created within step of 11 Convert Data ).
    -->Based on the above BDC results ,run another BDC within LSMW to create Device.( this will be created within step of 11 Convert Data ).
    -->third BDC records , let SAP do it thru LSMW or can you do it convert data step itself.
    this approch needs lots of codes , so in worst case and if you dont want to break the loadings the follow this.
    *Better to find any BAPI which will do creation of installation ,devices
    regards
    Prabhu

  • Create multiple PDFs from multiple files

    Hi everyone
    I'm trying to use the "Create multiple PDFs from multiple files" function in Acrobat 9 Pro (version 9.4.6) to create about 100 PDFs from InDesign CS5 files. Theoretically this would do the trick for my purpose. BUT: When running the function, it does not use the CS5 InDesign (version 7.0.3), but tries to open the files with InDesign CS3. Of course this does not work. We, as a professional working agency, have installed CS3, CS4 and CS5. Even with making the InDesign CS3 .app invisible an pushing it into the garbage bin during the process did not work. Acrobat still wants to access InDesign CS3. It is not possible to downgrade the files to CS3 files, for there are special (i.e. interactive) functions which only work in CS5. It would be more work than creating the PDFs manually, anyways.
    Does anyone have similar issues? Any ideas how to solve the problem?
    Thanks in advance.
    Thinka

    OK, cool, I found one, which seems to work just fine.
    http://www.kahrel.plus.com/indesign/batch_convert_cs3.html
    found here:
    http://forums.adobe.com/message/3712434#3712434
    Thanks for the hint!

  • Get document from DMS to VB

    Hello,
    does anyone know how to get the document from DMS to a local drive, while using VB Code (with SAP Connector) or .NET?
    I tried to use the 'CVAPI_DOC_CHECKIN' but it didn't work.
    maybe it's the wrong function to use...
    I've also tried to examine the 'CVAPI_DOC_GETDETAIL' but got an error.
    does anyone has a sample code in VB or .NET to get the document from a DMS to a local file?

    Try BAPI_DOCUMENT_CHECKOUTVIEW2.
    Remember to reward points if this solves ur problem.

Maybe you are looking for

  • How to measure performance of supplier when using scheduling agreement ?

    Hello all, My client has an absolute need to be able to measure the performance of its suppliers based on delivery dates and delivered quantities. That is to say he needs to be able to compare what dates and quantities were asked to what has been rea

  • Adding mail ids & Removing mail ids from the last step of process chain

    Hi Can you please guied me how to do this. Adding mail ids & Removing mail ids from the last step of process chain. Thanks Subbu

  • Forms 6i and UTF-8

    I think the answer to this is going to be painful, but here I go. I have upstream and downstream systems inserting into and selecting from my database. Every system supports UTF-8 except mine. There is only ONE COLUMN in ONE TABLE that needs to be tr

  • Changing the Gmail address where existing contacts sync

    Hey, My Blackberry has inadvertently decided to sync all of my personal contacts to a work Gmail address. My actual device won't let me change the syncing address directly on the contact edit page. Is there a way to change the Gmail address where the

  • Infocube for infotype 005

    Hi all, Which infocube should i use for infotypes from HR in Business Content 3.5. In fact i need only 0005 infocube thanks, Yigit