Help About Class CL_CRM_DOCUMENTS

Hi ,
   When I use the class CL_CRM_DOCUMENTS~create_with_table to create a attachment for crm activity , the sy-subrc is 0 ,and I can see the attachment in crm activity ,but i can not browser the file ,the error message is 'open file error' , whether somebody come across same problem , or someone have sample code for create attachment ,thanks very much .
Jialiang.Qiu

DATA: ls_bor type sibflporb,
      lv_bor TYPE SWO_OBJTYP,
      lv_loio TYPE skwf_io,
      lv_phio TYPE skwf_io,
      lv_error TYPE skwf_error.
DATA: wa_result_tab TYPE string,
      result_tab TYPE STANDARD TABLE OF string,
      lin TYPE i,
      long_nombre TYPE i,
      long_total TYPE i,
      desplazamiento TYPE i,
      filename_aux TYPE skwf_descr.
CALL FUNCTION 'CRM_ORDERADM_H_READ_OW'
  EXPORTING
    iv_orderadm_h_guid               = guid
  IMPORTING
    EV_OBJECT_TYPE                   = lv_bor
  EXCEPTIONS
   ADMIN_HEADER_NOT_FOUND           = 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.
MOVE:lv_bor TO ls_bor-typeid,
'BO' TO ls_bor-catid,
guid TO ls_bor-instid.
CALL METHOD cl_crm_documents=>create_with_file
EXPORTING
file_name = filename   
directory = path      
business_object = ls_bor
IMPORTING
loio = lv_loio
phio = lv_phio
error = lv_error.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
Edited by: visheshagarwal1 on Apr 7, 2011 8:36 AM

Similar Messages

  • Need help about class package

    Hi All,
    I need one help.
    I have one java class under package com.abc and other java class under default package.
    How do I access java class under default package from java class under com.abc package?.
    Waiting for reply.
    Thanks

    Just add default package in your CLASSPATH seting.
    But it is recommened that all classes must belong to any package. You should avoid to use default package.

  • Help about .class  !!!!

    Hello,
    I'm trying to compile FruitMap.java, which code is :
    public class FruitMap extends java.util.HashMap{
    ...thanks to : javac FruitMap.java
    ...and i can't succed in that.
    Is this code suffisant ?!
    Here's what i obtain from Internet Explorer:
    "Class java.util.HashMap not found in cast."
    100 thanks if you can help [email protected]

    Hello Dr !!
    Thanks for the answer.
    My computer has I E 6; i thought it was allright with Java2 ?
    Is there a possibility, anyway, to obtain my .class ?
    Thanks Tolsam, France.

  • Help about location based classes

    Helo. i need some help about location classes(i use J2ME). i want to develop a gps compass application. when i connected to gps, orientation is shown on a compass.(for example if i go to northeast direction, compass indicator shows the direction between nort and east).
    I made connecting GPS. Now i must draw a compass and show the direction informations on it. For doing this, which location classes i can use?
    (i do search about this,but i didn't decide which class i should use. I thought that i can use Orientation class for this. I found a source code and tried it. According to this snippet source code about orientation class, my phone doesn't support Orientation class.But i found an application about gps compass, it works on phone. )

    i write this question CLDC{MIDP part.
    Thanks...                                                                                                                                                                                                               

  • Learning about classes

    Hi,
    I'm working my way through "The Java Programming Language, Fourth Editition" by Sun Microsystems. There are exercises through the book, but they don't give the solutions (which is helpful!!!).
    They show a simple class, then ask you to produce an identical one to keep track of vehicles. Based on their sample code this should be the code:
    class Vehicle {
         public int speed;
         public String direction;
         public String owner;
         public long idNum;
         public static long nextID = 0;
      }Then then ask you to write a class called LinkedList giving no coding examples 'that has a field type Object and a reference to the next LinkedList element in the list. Can someone help me to decipher what this means and the appropriate code?
    They then show how to create objects linked to the vehicle class, which based on their sample code should be
    Vehicle car = new Vehicle();
    car.idNum = Vehicle.nextID++;
    car.speed = 120
    car.direction = "North"
    car.owner = "Metalhead":
    This is the bit that next confuses me. They ask you to write a main method for your Vehicle class that creates a few vehicles and prints their field values.
    The next exercise is to write a main method for LinkedList class that creates a few objects of type vehicle and places them into successive nodes in the list.
    Is'nt it correct that the above code starting 'Vehicle car' would be the code used to create the object which would go in the LinkerList calling on the Vehicle method which has already been defined? For example, successive entries could be for bus, bike etc in the LinkerList. What does it mean though to place these into successive 'nodes' on the list? And why would you create vehicles in the main method of the Vehicle class. Shouldn't they just be created in the LinkerList?
    I'm only learning about classes and I'm confused already?
    Any help (and code) would be great!!!!
    Thanks for any help,
    Tim
    p.s. I know what I have written sounds vague, bu the book doesn't really give much extra helpful info.

    First of all, the variables of the "Vehicle" class should all be private.
    You should not be able to directly retrieve each variable from this class
    Example:
    Vehicle car = new Vehicle();
    car.idNum = Vehicle.nextID++;
    car.speed = 120
    car.direction = "North"
    car.owner = "Metalhead"You should have methods that can change this data as well as retrieve the data.
    Example:
    class Vehicle {
         private int speed;
         private String direction;
         private String owner;
         private static long nextID = 0;
            public Vehicle() {
                speed = 0;
                direction = "";
                owner = "";
                ++nextID;
            // These methods retrieve the attributes
         public int getSpeed() { return speed; }
            public String getDirection()  { return new String(direction);}
            public String getOwner() { return new String(owner);}
            public long getidNum() { return idNum; }
            // These methods change the attributes
         public int setSpeed(int i) { speed = i; }
            public String setDirection(String s)  { direction = new String(s); }
            public String setOwner(String s) { owner = new String(s); }
    }Now, they want you to create another CLASS that shows what your Vehicle class can do.
    Example:
    public class SomeRandomExampleClass {
        public static void main(String[] args) {
            Vehicle v1 = new Vehicle();
            // Now let's fix up our vehicle
            v1.setSpeed(100);
            v1.setOwner("Zeus");
            v1.setDirection("North");
            // Do note that since idNum is a static variable, it will be increased everytime you create
            // an instance of a Vehicle, and works with the class rather than the object.
            // For instance, if you create Vehicle's v1, v2, and v3, then v1's idNum = 1, v2's idNum = 2;
            // and v3's idNum = 3.
            Vehicle v2 = new Vehicle() ;
            v2.setSpeed(500);
            v2.setOwner("Ricky Bobby");
            v2.setDirection("NorthEast");
            System.out.println(v1.getSpeed()); // prints v1's speed.
            System.out.println(v1.getOwner()); // prints Owner
            System.out.println(v1.getDirection); // Prints Direction
            System.out.println(v1.getidNum());  // prints idNum
            System.out.println(v2.getSpeed()); // prints v1's speed.
            System.out.println(v2.getOwner()); // prints Owner
            System.out.println(v2.getDirection); // Prints Direction
            System.out.println(v2.getidNum());  // prints idNum
    }A linked list is what it sounds like. It can hold a list of (let's say vehicles) and you can print their
    attributes from there.
    For instance, let's say we have a list called list1.
    list1.add(vehicle1);
    list1.add(vehicle2);
    Then you can iterate(move) through your list and print the attributes of each vehicle, instead of having to
    call v1.doThis() v1.doThis(), v2.doThis().
    I find it amusing they want you to create a LinkedList when you are first using/learning classes.
    To understand how to create a linked list, you can visit:
    http://leepoint.net/notes-java/data/collections/lists/simple-linked-list.html
    Or you can use:
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/LinkedList.html
    *Note: I wrote the code from nothing so some of it could have syntax errors.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • HELP about analog output video

    Hello, I´m need help about analog output video in Premiere CS5 using Matrox RTX2. I need to crop a video with resolution in 1440x1080 to 4:3 in output analog. But what happens is wrong (I think). My video is in format anamorphic and the other option is 16:9 letterbox. Is there any way to crop the video without using effects. Thanks a Lot and sorry my bad english (my native language is Portuguese).

    There are no 4:3 HD specifications.  You'll have to put the video into a normal SD sequence, and scale it down till the top and bottom of the video meet the frame.  That way the sides will be cut off.

  • Help about Warning Security IE 8.0

    Hello Guys,
    I need help about warning security IE 8.0.
    When I try install a software from my webserver is display the following message:
    I can't check the publisher.Are you sure install the software?
    This file does not have a valide digital signature that verifies its publisher.
    You should only install software from publishers you trust.
    Well, I already enable:
    Download signed ActiveX controls
    Download unsigned ActiveX controls
    Allow active content from CDs to run on user machines Enabled 
    Allow software to run or install even if the signature is invalid Enabled 
    Check for server certificate revocation Disabled 
    Check for signatures on downloaded programs Disabled 
    Is there somewhere I disable all settings warning's about IE or one specific GPO I need disable for this warning don't display for me?
    In the same installation a lot of about file .cab are installed, only one specifc I don't have sucess.
    I try some troubleshootings too:
    https://social.technet.microsoft.com/Forums/windows/en-US/8f8293c4-0920-462f-9c69-0a8e3f92aa02/unknown-publishers-warning
    https://www.youtube.com/watch?v=UknQn6tZZis
    http://windows-3322.blogspot.com.br/2011/02/how-to-repair-activex-error.html
    Thanks a lot who answer me or about any idea about my issue.

    This file does not have a valide digital signature that verifies its publisher.
    Did you see your result
    https://social.technet.microsoft.com/Forums/windows/en-US/8f8293c4-0920-462f-9c69-0a8e3f92aa02/unknown-publishers-warning
    <quote>
    Changing the time zone actually worked.
    </quote>
    Robert Aldwinckle

  • I installed teh update a few days ago but when I open Firefox it says :"You're not on the lastest version . . ", but at "Help" & "About Firefox" it shows 9.0.1 "latest release". There's a glitch somewhere.

    This is the message when I Open Firefox:
    "You're not on the latest version of Firefox. Upgrade today to get the best of the Web!"
    At <Help> & <About Firefox>, it shows
    Firefox
    9.0.1
    "Firefox is up to date"
    "You are currently on the release update Channel"
    One of those messages must be wrong. Either way Firefox seems to work fine otherwise. Thanks and regards, Peter Spielman

    Is your homepage set to www.google.com/firefox? If so, that page is wrong. You should change your home page to about:home or some other site instead. The google.com/firefox page is no longer supported.

  • Can we use more than one Help Provider class in a same project in ADF11g

    Hi All,
    There are two help providers i want to use .They are "ResourceBundleHelpProvider","OHW Help Provider"
    In adf-settings.xml file
    <help-provider>
    <help-provider-class>oracle.adf.view.rich.help.ResourceBundleHelpProvider</help-provider-class>
    <property>
    <property-name>baseName</property-name>
    <value>com.symmetry.dashboard.panels.Help</value>
    </property>
    </help-provider>
    if try to register both help providers confliction occurs. Is it possible to register and use more than one help provider.?
    Thanks in advance.:)

    Thanks Frank,
    In adf-settings.xml file
    <help-provider>
    <help-provider-class>oracle.adf.view.rich.help.ResourceBundleHelpProvider</help-provider-class>
    <property>
    <property-name>baseName</property-name>
    <value>com.symmetry.dashboard.panels.Help</value>
    </property>
    </help-provider>
    <help-provider prefix="RB_">
    <help-provider-class>oracle.help.web.rich.helpProvider.OHWHelpProvider</help-provider-class>
    <property>
    <property-name>ohwConfigFileURL</property-name>
    <value>/myHelpset/config.xml</value>
    </property>
    <property>
    <property-name>baseURI</property-name>
    <value>http://127.0.0.1:7101/Dashboard_workflow/myHelpset/%3c/value>
    </property>
    </help-provider>
    I differentiated the help providers with the "prefix" attribute in the <help-provider> tag. So now confliction is not occuring between those.
    I used this prefix in the "helpTopicId" property of the adf components like "input text box" . I got the result. :)

  • I have three user accounts on one computer. On only one account when I when I check Help - About fire fox only one user account says apply update and won't apply. The other two work fine.

    One of three user accounts on the same computer appears to not be updating to 8.0.1 correctly. One admin and one none admin user account says it is up-to-date. The other non-admin user account, under Help About Firefox says apply update, but won't.

    As long as you installed MS Office into its default location (the top level /Applications folder) it will be available to all user accounts on the Mac.
    As far as licensing is concerned you only have to enter the license code once, which you should do right after installing MS Office, in the same admin account you installed it from, by opening any one of the MS Office applications.  There is no additional licensing required for additional user accounts on the same Mac.
    Each user account is able to run the Office apps.  The only thing you will have to do is go through an initial setup screen in each user account (but this setup does NOT involve entering any additional license codes).
    You may have problems if you installed MS Office in a particular user account (i.e. NOT in the top level /Applications folder).

  • Not able to view Forms Server version in Help: About Oracle Applications after the forms upgrade 10.1.2.3.0

    Hi all,
    DB:11.2.0.3.0
    EBS:12.1.3
    O/S: Sun Solaris SPARC 64 bits
    I am not able to view Forms Server version in Help: About Oracle Applications after the forms upgrade 10.1.2.3.0 after the forms upgrade 10.1.2.3.0 as per note:Upgrading OracleAS 10g Forms and Reports to 10.1.2.3 (437878.1)
    Java/jre upgraded to 1.7.0.45 and JAR files regenerated(without force option). Able to opne forms without any issues.
    A)
    $ORACLE_HOME/bin/frmcmp help=y
    FRM-91500: Unable to start/complete the build.
    B)
    $ORACLE_HOME/bin/rwrun ?|grep Release
    Report Builder: Release 10.1.2.3.0 - Production on Thu Nov
    28 14:20:45 2013
    Is this an issue? Could anyone please share the fix if faced the similar issue earlier.
    Thank You for your time
    Regards,

    Hi Hussein,
    You mean reboot the solaris server and then start database and applications services. We have two databases running on this solaris server.
    DBWR Trace file shows:
    Read of datafile '+ASMDG002/test1/datafile/system.823.828585081' (fno 1) header failed with ORA-01206
    Rereading datafile 1 header failed with ORA-01206
    V10 STYLE FILE HEADER:
            Compatibility Vsn = 186646528=0xb200000
            Db ID=0=0x0, Db Name='TEST1'
            Activation ID=0=0x0
            Control Seq=31739=0x7bfb, File size=230400=0x38400
            File Number=1, Blksiz=8192, File Type=3 DATA
    Tablespace #0 - SYSTEM  rel_fn:1
    Creation   at   scn: 0x0000.00000004 04/27/2000 23:14:44
    Backup taken at scn: 0x0001.db8e5a1a 04/17/2010 04:16:14 thread:1
    reset logs count:0x316351ab scn: 0x0938.0b32c3b1
    prev reset logs count:0x31279a4c scn: 0x0938.08469022
    recovered at 11/28/2013 19:43:22
    status:0x2004 root dba:0x00c38235 chkpt cnt: 364108 ctl cnt:364107
    begin-hot-backup file size: 230400
    Checkpointed at scn:  0x0938.0cb9fe5a 11/28/2013 15:04:52
    thread:1 rba:(0x132.49a43.10)
    enabled  threads:  01000000 00000000 00000000 00000000 00000000 00000000
    Hot Backup end marker scn: 0x0000.00000000
    aux_file is NOT DEFINED
    Plugged readony: NO
    Plugin scnscn: 0x0000.00000000
    Plugin resetlogs scn/timescn: 0x0000.00000000 01/01/1988
    00:00:00
    Foreign creation scn/timescn: 0x0000.00000000 01/01/1988
    00:00:00
    Foreign checkpoint scn/timescn: 0x0000.00000000 01/01/1988
    00:00:00
    Online move state: 0
    DDE rules only execution for: ORA 1110
    ----- START Event Driven Actions Dump ----
    ---- END Event Driven Actions Dump ----
    ----- START DDE Actions Dump -----
    Executing SYNC actions
    ----- START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async) -----
    Successfully dispatched
    ----- END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK'
    (SUCCESS, 0 csec) -----
    Executing ASYNC actions
    ----- END DDE Actions Dump (total 0 csec) -----
    ORA-01186: file 1 failed verification tests
    ORA-01122: database file 1 failed verification check
    ORA-01110: data file 1:
    '+ASMDG002/test1/datafile/system.823.828585081'
    ORA-01206: file is not part of this database - wrong
    database id
    Thanks,

  • How to Disable Check for updates button in Help/About in firefox 5.0

    Hi the user should not manually check for updates so we want to disable the Check for updates button also in Help/About.
    Thanks in advanced

    You can hide that button with code in userChrome.css below the @namespace line.
    * http://kb.mozillazine.org/userChrome.css
    * http://kb.mozillazine.org/Editing_configuration
    You can use the ChromEdit Plus or Stylish extension to have easier access to the customization files.
    * ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #aboutDialog #updateBox { display:none!important; }</nowiki></pre>
    You can also choose to lock the related update pref(s) to false if you want to make sure.
    See:
    * http://kb.mozillazine.org/Locking_preferences
    * http://kb.mozillazine.org/about:config

  • Questions about classes

    Hi,
    I finally upgraded from Flash 5 to CS3 - big difference :-)
    Reading the first half of an ActionScript 3 book left me
    quite confused about classes - what they are, how you handle
    multiple classes, how you use one class from within another etc.
    Are there any simple-speak tutorials out there that explain
    more about how to use classes?
    Specifically:
    I am trying to use classes to run multiple animations at the
    same time, i.e. using randomized movement for multiple objects on
    my stage.
    First issue is: If I do what I learnt in the book and simply
    create one .as file and have that be the document class, how can I
    prevent it from being run before all the elements on the stage have
    been loaded through a slow network connection?
    Second issue: I'd rather have "dormant" classes sitting
    around and call them once my stage is ready, but I have no idea how
    to handle multiple classes. I played with it for a while and then
    gave up and put my code into a frame, but that caused further
    issues. Again, any tutorials out there or any other advice you can
    give me? I am trying to start some class code at a certain time and
    use it to attach a Frame Event listener to a Sprite that I create
    inside the class.
    It looks easy in the book, but when I try to do my own stuff,
    it just won't do it...
    The book assumes (so far) that you want to run your code
    immediately once your movie starts, but I don't want that...
    Thanks!

    Yes, I realized later that _root etc. is actually as1 code
    from my days of Flash 5 :-)
    All I need is to know how to access a movieclip on the stage
    that was placed using the IDE from within a class, and how to
    access a class and call its methods from within another, and I can
    teach myself the rest...
    So, if I place something with the IDE, doesn't it show up in
    the display list? I should be able to control those elements, too,
    shouldn't I?
    Or do I have to use Actions rather than classes for those
    elements?
    I probably read 5 different articles/ebooks on the topic of
    classes and OOP in AS3 already, and none gave me the answer I
    needed.
    But I will have a look at the site you mentioned.
    Thanks!

  • Help about W2K Apache plug-in for WLS

    Hi,everybody.
    I want to use the W2K apache http server for redirect the dynamic request to
    WLS. But i don't have the corresponding plug-in. Who can help me? or Who can
    give me some hint about this?
    Thanks in advance.
    BR
    Steven Zhao

    Hi Steven,
    as far as I know there is no Apache Plugin for Windows Platform. Your
    choice is either Unix->Apache or Windows->IIS. I think there is a
    Netscape Plugin as well, but I don't know for which platforms.
    Daniel
    -----Original Message-----
    From: Steven Zhao [mailto:[email protected]]
    Posted At: Friday, October 20, 2000 6:02 AM
    Posted To: management
    Conversation: Help about W2K Apache plug-in for WLS
    Subject: Help about W2K Apache plug-in for WLS
    Hi,everybody.
    I want to use the W2K apache http server for redirect the dynamic
    request to
    WLS. But i don't have the corresponding plug-in. Who can help me? or Who
    can
    give me some hint about this?
    Thanks in advance.
    BR
    Steven Zhao

  • Need help about Hidden Markov Model model

    I want to make classification for EEG signal using Hidden Markov Model
    algorithm based on neural network.
    plz need help about how to implement this algorithm using LABVIEW.
    if not I want another thing to make classification.
    any one know information about this topic, send me a reply
    thanks

    Have you derrived the HMM that you want to implement?
    If so, post the algorithm and we can provide comments on how to implement it using LabVIEW.
    Message Edited by Ray.R on 04-12-2010 12:54 PM

Maybe you are looking for

  • New Hard Drive and OS Install

    Need some advice. I have a 60 GB Macbook, Intel chip set, Tiger, that I want to upgrade to Snow Leopard and install the new SL OSX. So, I purchased the $169 box set and a new 320 GB HD and a sleeve for the old Internal HD. My thoughts are 1. Take out

  • [Solved] Keep the last button pressed with a custom style

    Hello, I have a VBox with 20 buttons and I have this style applied (menu.css) (only for VBox wrapper): .button:focused {     -fx-background-color: #0768A9;     -fx-text-fill: #FFFFFF; But when I pressed other button outside the VBox the style disappe

  • Lenovo N500 NS74APB and corrupted sound via HDMI

    Hello. I have connected the laptop to TV LCD (Philips PFL7403D/12) with HDMI cable and I noticed corrupted sound. There are noises (crackles) and vanishing sound for seconds. Also when i.e. moving the window between the screens, the crackles occure.

  • I no longer see my CD-ROM/DVD at My Computer. How do I fix this?

    I started Regedit and I see the CD ROM and I see {4D36E965-E325-11CE-BFC1-08002BE10318}, but do not see upper nor lower limits in the right pane. I checked Device manager and I see the WDC WD2500 BEVS -60UST0 ATA Device. Would you advise me? Thanks

  • Can't start MTA service

    I have installed "ims-5.2-zh.x86-intel-winnt4.0" in win2000 server(SP2), but I can't start both "iPlanet Job Controller" and "iPlanet Dispatcher" service, the system error code is 1067. thanks! I print out the conf here:" alarm.diskavail.msgalarmdesc