Trouble in creating text objects

OPTION 1:
var doc = app.activeDocument,
    i, j, k, l, a, _rows, _cells, content="", myText, myStory;
content += doc.stories.everyItem().tables.everyItem().cells.everyItem().contents;
alert(content);
myStory = doc.stories.item(0);
myText = myStory.item(0).texts.itemByRange(0, content.length);
var myTable = myText.convertToTable();
OPTION 2:
var doc = app.activeDocument,
    i, j, k, l, a, _rows, _cells, content="", myText, myStory;
content += doc.stories.everyItem().tables.everyItem().cells.everyItem().contents;
alert(content);
myStory = doc.stories.item(0);
myText = doc.stories.item(0).texts.itemByRange(0, content.length);
var myTable = myText.convertToTable();
OPTION 3:
var doc = app.activeDocument,
    i, j, k, l, a, _rows, _cells, content="", myText, myStory,
    myFrame=doc.pages.item(0).textFrmaes.add();
   myFrame.geometricBounds=["6p", "6p", "12p", "12p"];
content += doc.stories.everyItem().tables.everyItem().cells.everyItem().contents;
alert(content);
myFrmae.contents=content;
myText:Text = doc.stories.item(0).texts.itemByRange(0, content.length);
var myTable:Table = myText.convertToTable();
I have tried these 3 options written above. Here I am experimenting on how to create a table from text. I have a document which already has a table so I am copying all data from that table into a variable content. But still I am stuck. Help me out.

@malhar1991 – if you need all contents from a table, you could use the contents property of that table. It will return an array of the contents (unformatted) of all cells of that table.
Try the following and have fun. Select all cells of a table (that is: select the table) and run this script:
//A table object has a contents property:
//Will return an array of all cells contents
//Select a table:
var mySourceTable = app.selection[0];
var myContentsArray = mySourceTable.contents;
//Adding a text frame and a table (in this case a table with 1 cell):
var newTable = app.documents[0].textFrames.add
        {geometricBounds:[0,0,"100 mm","200 mm"]}
    insertionPoints[0].
    tables.add
            bodyRowCount:1,
            columnCount:1,
            contents:myContentsArray
Change the numbers of rows and columns at your will. If the number of cells of your source exceeds the number of cells in your target, you'll get some empty cells. If not, no new cells will be added to the new table. Cells are filled with contents, if possible.
Uwe

Similar Messages

  • Error message while creating text object

    I am trying to create a text object and text id's for an application. I go to se75 to do this and make a text object called ZABC and upon save I get an informational message saying the following:
    Observe name ranges: Y,Z for customers, J_NC for partners, A..X for SAP
    When I click the green checkbox, it pops up another box saying the object is not within the valid name range. Save anyway?
    I tried creating one with Z_ABC and that came up with the same thing. What am I doing wrong here?
    Thanks,
    Josh

    Read the information message carefully. Then proceed, if you intend to have custom  "standard" texts (sort of an oxymoron, but everyplace I've been does this)...
    If you are working in a customer system, only create standard texts using the following naming convention:
    Initial letter Y or Z in the text name with any text ID
    or
    Initial letter Y or Z in the text ID with any text name

  • Odd messages when creating text object (se75)

    I am trying to create a text object and text id's for an application. I go to se75 to do this and make a text object called ZABC and upon save I get an informational message saying the following:
    Observe name ranges: Y,Z for customers, J_NC for partners, A..X for SAP
    When I click the green checkbox, it pops up another box saying the object is not within the valid name range. Save anyway?
    I tried creating one with Z_ABC and that came up with the same thing. What am I doing wrong here?
    Thanks,
    Josh

    duplicate post
    Error message while creating text object

  • Trouble on Create Entity Object from AS400/DB2 version 5 rev 4

    Hi, hope any1 can help..
    I using jt400.jar (com.ibm.as400.access.AS400JDBCDriver) with
    jdbc url : jdbc:as400://host
    to create connection.
    However, when I try to create entity or business component based on the connection, it gave me "Attribute list error":
    java.lang.NullPointerException
         at oracle.jbo.dt.jdevx.db.DBApiUtil.fillAttributeListInternal2(DBApiUtil.java:1249)
         at oracle.jbo.dt.objects.JboDBUtil.fillAttributeListInternal2(JboDBUtil.java:87)
         at oracle.jbo.dt.objects.JboUtil.fillAttributeListInternal2(JboUtil.java:2749)
         at oracle.jbo.dt.objects.JboUtil.fillAttributeListWithException(JboUtil.java:2711)
         at oracle.jbo.dt.objects.JboUtil.fillAttributeListInternal(JboUtil.java:2687)
         at oracle.jbo.dt.objects.JboUtil.fillAttributeList(JboUtil.java:2626)
         at oracle.jbo.dt.objects.JboUtil.fillAttributeList(JboUtil.java:1059)
         at oracle.jbo.dt.ui.main.DtuUtil.createEntityFromThread(DtuUtil.java:562)
         at oracle.jbo.dt.ui.pkg.PKEntityThread.createEntity(PKEntityThread.java:898)
         at oracle.jbo.dt.ui.pkg.PKEntityThread.createEntity(PKEntityThread.java:719)
         at oracle.jbo.dt.ui.pkg.PKEntityThread.doEntityViewCreation(PKEntityThread.java:537)
         at oracle.jbo.dt.ui.pkg.PKEntityThread.createObjects(PKEntityThread.java:470)
         at oracle.jbo.dt.jdevx.ui.pkg.XPKComponentWizardEntityThread.createObjects(XPKComponentWizard.java:491)
         at oracle.jbo.dt.ui.pkg.PKEntityThread.run(PKEntityThread.java:447)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    I had refer other posts, but i might miss out some important piece. Beside, I able to create ViewObject based on sql query. Any1 able to show me some direction..perhaps..thanks

    Thanks ...I tried both SQL92 and db2...and tried both Java & Java Extended for Oracle.. too..I able to connect to the dbase, browse thought the db2 schema n tables, even able to create view object with sql query..just stuck in entity object creation..feel weird n cant find much of documentation on the web to describe this behaviour too..

  • Re: text objects

    Hi,
             I had to save my text into sap by using read_text while save texteditor. But i want to save my text into my created text objects and id's. I could able to create,but i could not able to see after creating text in stxh and stxl.what is the problem.
    rgds
    p.kp

    Hi P.KP ,
    have u seen the documentation of that FM SAVE_TEXT , pamas- <b>SAVEMODE_DIRECT</b> , first see these things . Its not committing work.
    there should be a COMMIT work then only tables get updated.
    check ur TEXT ID settings with any Standard Ones in SE75.
    Regards
    prabhu

  • Linking work order operations to a text object

    Hi all,
    I have a function module that creates text objects from a table.
    this text object is getting created in STXH table.
    but when I go to transaction IW37 there is a field (LTx) against each operation telling if the operation has long text.
    I have to update this field if the text object is created. How do I do that?
    I am using SAVE_TEXT to create/ modify the texts.
    This is kinda urgent. pls help.
    goldie

    Hello Goldie,
    you have to update field AFVC-TXTSP with the language in which you have created the text with SAVE_TEXT. Key of the AFVC are AUFPL and APLZL - the same you use to create the longtext. In IW37 only a "X" will be show, if a longtext has been maintained.
    Best regards
    Stephan

  • How to create a text object at runtime?

    Hi,
    I am using crystal reports for visual studio 2010 and using c# to programming.
    I need to create  a text object in a specific section like section 2. and also I need to control the text object's position and text.
    I tried to move a object like:
    reportDocument1.ReportDefinition.Sections[j].ReportObjects<i>.Left = 0x8760;
    but object's position doesn't change at all.
    How can I do these (create a text object and change a object postion)?
    Thanks

    Hi Don,
    Thank you.
    I have downloaded a RAS ( report application Server ) sample.
    The sample uses the Business Objects Enterprise XI release 2. I am using win 7 and crystal reports for vs2010. Can I use this version of crystal reports to create  a text object at runtime? If not, what is the lowest version I have to purchase to achieve what I want?
    Basicly I need following capabilities at runtime:
    1) craete text objects, line objects, image objects.
    2) change text object, line object and image object positions, sizes, values of text object. If can I like to be able to change font as well.
    3) supress objects, sections. 
    4) change section's height

  • Create hyperlink in a General Text Object

    Hi,
    using transaction SE61 I want to create a hyperlink to an external site in General Text Object BBP_PRIV_STMNT_EXTERNAL.  The objective is to hav this link showing instead of the confidentiality agreement in the self-registration page.
    Anyone kwows how to do that?
    Thanks.

    I'm in the same boat as you, inasmuchas I taught myself LC. I've tried to replicate your issue. I'm trying to understand where the issue actually lies.
    First, I created a new document to test. I dragged the text field onto the document and stretched it to accomodate what I was going to type and entered: http://www.google.com/something
    This works as intended.
    Next I tried a link similar to yours in our own intranet: http://intranet/WebPages/support.aspx
    That also worked.
    Now, for what you're actually working with: a SharePoint document.
    I tried to paste a link to a document that I created on our Sharepoint site. The link failed! I noticed that the end of the link was truncated (something like 7 characters). So, I tried a shorter link. That worked!
    What else is happening when they click the link? Are they simply being asked to "check out" the document? Are you getting an error message like "an error has occured while opening the page"?
    Message was edited by: jasotastic81 (apparently "lnik" is not a word)

  • How to create a new Text Object to be used for SAVE_TEXT FUNCTION

    hi,,
    can anyone tell how can i create a new text object and text id for saving text by using function SAVE_TEXT.
    Thanks

    hi,.
    try out this 
    DATA: header LIKE thead.
    DATA: newheader LIKE thead.
    DATA:lines LIKE tline OCCURS 0 WITH HEADER LINE.
    header-tdobject = 'VBBK'.
    header-tdname = delivery number.
    header-tdspras = language.
    lines-tdformat = '*'.
    header-tdid = text id. "for example: Z022
    lines-tdline = your text that you want to write .
    APPEND lines. CLEAR lines.
    CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
    client = sy-mandt
    header = header
    savemode_direct = 'V'
    IMPORTING
    newheader = newheader
    TABLES
    lines = lines
    EXCEPTIONS
    id = 1
    language = 2
    name = 3
    object = 4
    OTHERS = 5.

  • How to create a LONG TEXT object in BAPI_ALM_NOTIF_CREATE

    Dear experts,
    Would you please give me a hand how to create a LONG TEXT object when creating a new Notification using BAPI_ALM_NOTIF_CREATE.
    The snapit of my code is below. The Notification is created but without a long text.
    THANK YOU!!
    Data:
        lv_it_longText type STANDARD TABLE OF BAPI2080_NOTFULLTXTI,
          lv_st_longText like LINE OF  lv_it_longText,
      lv_st_longText-OBJTYPE = 'QME'.
      lv_st_longText-TEXT_LINE = DESCRIPTIONLONG.
    CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'
      EXPORTING
      EXTERNAL_NUMBER          =
       notif_type               = 'M1'
        notifheader              = lv_header
      TASK_DETERMINATION       = ' '
      SENDER                   =
      ORDERID                  =
    IMPORTING
       NOTIFHEADER_EXPORT       = lv_header_import
    TABLES
    *NOTITEM                  =   lv_it_item
      NOTIFCAUS                =
      NOTIFACTV                =
      NOTIFTASK                =
      NOTIFPARTNR              =
       LONGTEXTS                = lv_it_longText
      KEY_RELATIONSHIPS        =
       RETURN                   = lv_it_return.

    Hi
    Make sure you have filled OBKEY.
    OBJKEY must have the corresponding sort field for the values named below :-
    1. QMEL - Notification header
    2. QMFE - Notification item
    3. QMUR - Notification cause
    4. QMSM - Notification task
    5. QMMA - Notification action
    The combination of sort field of item/cause, item/task and item/action must be unique within a notification. If you leave the sort field empty and the OBJTYP = QME, then a long text is created for the notification header.
    Regards
    Abhii

  • Trouble selecting and moving objects near text in Adobe Illustrator? Try this.

    It's been 4 years since I left Corel DRAW for Adobe Illustrator. One thing I could never get used to is the crazy way text has an impenetrable invisible sheet over it making it hard to select objects near or behind it.
    With Corel DRAW I was used to be able to select text by simply clicking on the visible area of the text. Selecting stuff behind the text by clicking between letters or right next to a decender was never a problem. But Illustrator is a different story.
    Tonight I finally found a way to make selecting text in Illustrator behave more like Corel DRAW.
    I wrote it up here: http://www.johnstanowski.com/blog/trouble-selecting-and-moving-objects-near-text-in-adobe- illustrator-try-this/
    Just thought I'd share! 

    It's not spam, but thanks for assuming.
    I was up really late writing that blog post. Posting a link was the quickest way to share and be able to go to bed.
    Plus it's rather lengthy. I thought that would be rude to use an Adobe forum for my articles.
    If you saw my blog you will have seen there's not much going on there at all, and no calls to action to hire me. I don't have anything to gain by getting traffic.
    And, yeah, layers work for selecting, but that slows you down. Who would want to look away from their work to find and select a layer when they're trying to tweak positions of objects? Layers suck for selecting quickly.
    And there must be something wrong with me but I find using Type Object Selection by Path Only by itself hard to use. I'd really just like to click on the text itself rather than an invisible hairline you have to probe to find.
    Here's the post. I hope people who had trouble like me find it helpful.
    Do you have trouble selecting objects near Point Type in Adobe Illustrator? You’ve been there. You want to select an object. Problem is, it’s really close to piece of Point Type. All too often we try to select objects that wind up being unreachable because they lie too close to a piece of Point Type, which we wind up selecting instead. Luckily, after years of angst, I discovered a solution.
    Point Type in Adobe Illustrator is funny. There’s this invisible “shield” around it. This shield is much larger (at least it seems that way) than the text itself. It prevents you from selecting objects behind text by clicking between letter and words. This shield is particularly meddlesome with lowercase letters and decenders because we think surely we can click on that blue box (or whatever) because it seems far enough away from that Point Type. But the lowercase “g” in the Point Type’s territory.
    Okay, now that we know we’re talking about the same thing, let’s move on to the solutions.
    Step 1. Check ‘Type Object Selection by Path Only’ in Preferences
    You’ll find this option in Preferences/Type. Click it and that nasty text shield goes away. But there’s a price to pay. With this option activated, the only way you can select your text is by clicking on the text path, a super, tiny, thin baseline thingy under all the letters, but above decenders. It’s really hard to grab. To do it right you need to slowly approach the text path with your cursor. When you’re right over it, Illustrator will let you know by adding a small black square to your cursor. Now, you can click, hold and move your text. But this workflow can really slow you down and break your rhythm, maybe even more so with it turned off.
    Step 2. Add the ‘Outline Object’ Effect
    Select your Point Type and, from under the Effects Menu/Path/, select Outline Object. This effect does something really sweet to text in Illustrator: it lets your Point Type objects be treated as if their were converted to Outlines. You can still edit the text, but as far as selecting it, Illustrator now considers it outlines and shapes instead of a text object. Basically, it now considers the Path of the text to be the text itself! Now, since we’ve already checked ‘Type Object Selection by Path Only’ we can now click on the text to select it. Just the text. Not the baseline, not the wacky invisible shield surrounding it.
    And now… you can select things behind the text by clicking between words and letters. And the ONLY way to select Point Type is to click on the visible parts of the text itself! Problem solved.
    Potential Problem:
    Too much of a good thing could be a bad thing. Let’s say you have some Point Type set in a very light face and it’s pretty small or you’re zoomed way out. Selecting that text could be a problem since you have to actually click on the text itself. Actually it isn’t that hard, it may just require an extra click to grab it. If you have a set of smaller, light-faced bits of text, you can elect to just not apply the Outline Object effect to these. They’ll get their ‘shield’ back and be easier to click on. And since they’re so small, they don’t pose a problem with selecting things behind them anyway.
    Applying this technique to your old files
    Now that you’ve learned this awesome new way to work around type in Illustrator, you may be anxious to open yesterday’s project and get back to work. But you may be not be looking forward to applying the Outline Object effect to each and every piece of type. For this you can use Illustrator’s “Select Same” feature. Select one piece of text. Then from the Select Menu click on Object/Text Objects. Now ALL of your text objects will be selected, and you can apply the Outline Object effect to all of them at once!
    That’s it. If you build ads or work with a lot of type in Illustrator, you’re about to be able to work a lot faster… and happier.

  • Customer Specific long text object to be create

    Hi all,
    I have to create and maintain Long text in my module pool program , just like some std. transaction have it at header.
    I know new text object can be created at SE75 with textid. But don't know how to call MS-editor create, save and display
    long text , just like most of std. transaction in SAP.
    Please help me with some sample codes and steps in this regards.
    Thanks in advance,
    Vinit

    hi Vineet,
    Not sure this wud wrk or not but give it a try...
    Use some message no of a message class created in txn se91 if that message gets display where u need to show the long text. Just remove the tick from the checkbox which says self explainatory goto longtext and write the remarks over there
    I hope i am clear..

  • Trouble creating an object where I want within a layer in CS3/CS2

    Whenever I create an object it will go to the top of the layer. I click on the name of the object I want it to be on top of, but 99% of the time it goes to the top of the layer. I know I can move it after I make it, but it's kind of a drag. Threw out prefs. This is on a G5, system 10.4.11, 4.5 gigs ram. Don't know about CS4.
    Seems like this shouldn't be an issue. Am I doing something wrong?

    Actually, if you think about it, it would make much more sense to have some control over the location of a newly drawn object in the layer stack. In fact, if you think about it, the only time it would make sense for a newly drawn object to appear at the top is when there is no way of specifying otherwise, as in Illustrator.
    If I know where in the stack I want an object, it is inefficient (and strange) to have to draw it, select it, cut it, select the object that I want in front or behind it, then paste it... if you think about it.
    Long aware of the Paste Behind, Paste in Front commands. But I've thought about it: they're an inefficient way to place new objects in the layer stack. Better to hightlight an existing object, start drawing and have that new object appear above the selected one.
    And if you think about it even more, if I can select an object and paste in front of it, why shouldn't I be able to select an object and draw in front of it? Same idea, but far more elegant and parsimonious, don't you think? We dispense with all the selecting and cutting and selecting and pasting this way.

  • TOC and text objects

    Hello,
    I am having trouble with my Table of Contents. I have a 140 page doc with approximately 70 sections (some sections are a single page, while others are many pages). Each section has a different first page. In this first page I used a text object to hold the section title and subtitle. I did this to place the title over the header area. Everything had worked out fine until I went to create the Table of Contents. It says that the styles Section Title and Section Sub-Title have not been used in the document! Obviously they have, but every occurance is in a text block (object). Is there a way to make the TOC engine see these styles? Is there another way to place text over the header area on section first pages? Any help is much appreciated.

    Hello Christopher,
    you can use a work-around. Insert the headers, subheader, etc. you want to use in your TOC in the main text are of the title pages (this is the only way you will get them into the TOC) and adjust them as a 1pt and 100% transparent text (or tweak the header texts in other ways to make them invisible). Now you can see them in the TOC. And try to place the headers etc. near the top of the title pages so the link in the TOCs will jump to the top of the title pages.
    I hope this helps you to get what you want. If you need further help with this, a better description of the title page layout will be helpful.

  • Creating Activity object for a Service Request object...

    <b>[This thread was migrated from the On Demand Developer Forum in the old Siebel Community] </b>
    drangineni
    New Contributor
    Ho do we use Activity object of a Service Request object. I am trying to
    create an Activity object for a existing Service Request object.
    I am looking for some sample code.
    I greatly appreciate your help.
    Product: CRM OnDemand
    11-26-2006 12:40 PM
    Re: Creating Activity object for a Service Request object...
    BigSlick
    Valued Contributor
    drangineni, What programming language are you using?
    BS
    12-04-2006 10:56 AM
    Re: Creating Activity object for a Service Request object...
    drangineni
    New Contributor
    Hi, I am using C# .
    12-04-2006 07:40 PM
    Re: Creating Activity object for a Service Request object...
    BigSlick
    Valued Contributor
    drangineni, assuming you know the service requestid or externalId of the
    Sr you are dealin gwith you would first set that value.
    ServiceRequest1[] objSRList =new ServiceRequest1[1];
    objSRList[0] = new ServiceRequest1();
    objSRList[0].ServiceRequestId = <YourSRId>;
    Then you create an array of activities and initialize the first one:
    objSRList[0].ListOfActivity = new Activity[1];
    objSRList[0].ListOfActivity[0] = new Activity();
    Now set the data fields
    objSRList[0].ListOfActivity[0].Subject ="My Subject";
    objSRList[0].ListOfActivity[0].Description ="My Description";
    objSRList[0].ListOfActivity[0].Display = "Task"; //valid values are either
    "Task" or "Appointment"
    Then call the ServiceREquestInsertOrUpdate method on the ServiceRequest
    WebService and pass in the above variable.
    BS
    12-06-2006 12:36 PM
    Re: Creating Activity object for a Service Request object...
    drangineni
    New Contributor
    Thank you BigSlick.
    The following error is thrown when I use the
    ServiceRequestInsertOrUpdate(objInput)
    "No user key can be used for the Integration Component instance 'Service <br/>
    Request_Action'.(SBL-EAI-04397)"
    When I use the prxySrvcRequest.ServiceRequestInsert(objInput), no error is
    thrown and the Activity gets added, but a new Service Request object is
    created, but the Activity gets added to an existing Service Request
    object. I greatly appreciate your help.
    The following is the code:
    int ActivityLength = 0;
    WSOD_ServiceRequest.ServiceRequest1[] ServiceRequest = new
    WSOD_ServiceRequest.ServiceRequest1[1];
    ServiceRequest[0] = new WSOD_ServiceRequest.ServiceRequest1();
    ServiceRequest[0].ServiceRequestId = this.Request.QueryString["id"];
    ServiceRequest[0].ListOfActivity = new
    WebSelfService.WSOD_ServiceRequest.Activity[ActivityLength + 1];
    ServiceRequest[0].ListOfActivity[0] = new WSOD_ServiceRequest.Activity();
    ServiceRequest[0].ListOfActivity[ActivityLength].Description =
    this.txtDescription.Text;
    ServiceRequest[0].ListOfActivity[ActivityLength].Display = "Task";
    ServiceRequest[0].ListOfActivity[ActivityLength].Subject = "My Subject";
    WSOD_ServiceRequest.ServiceRequest prxySrvcRequest = new
    WebSelfService.WSOD_ServiceRequest.ServiceRequest();
    WSOD_ServiceRequest.ServiceRequestWS_ServiceRequestInsertOrUpdate_Input
    objInput = new
    WebSelfService.WSOD_ServiceRequest.ServiceRequestWS_ServiceRequestInsertOrUpdate_Input();
    WSOD_ServiceRequest.ServiceRequestWS_ServiceRequestInsertOrUpdate_Output
    objOutput = new
    WebSelfService.WSOD_ServiceRequest.ServiceRequestWS_ServiceRequestInsertOrUpdate_Output();
    objInput.ListOfServiceRequest = ServiceRequest;
    Session objSession;
    objSession = (Session) Application["Session"];
    prxySrvcRequest.Url = objSession.GetURL();
    try
    objOutput = prxySrvcRequest.ServiceRequestInsertOrUpdate(objInput);
    catch(Exception e)
    12-09-2006 09:53 AM
    Re: Creating Activity object for a Service Request object...
    drangineni
    New Contributor
    Thank you BigSlick.
    The following error is thrown when I use the
    ServiceRequestInsertOrUpdate(objInput)
    "No user key can be used for the Integration Component instance 'Service <br/>
    Request_Action'.(SBL-EAI-04397)"
    When I use the prxySrvcRequest.ServiceRequestInsert(objInput), no error is
    thrown and the Activity gets added, but a new Service Request object is
    created, but the Activity gets added to an existing Service Request
    object. I greatly appreciate your help.
    The following is the code:
    int ActivityLength = 0;
    WSOD_ServiceRequest.ServiceRequest1[] ServiceRequest = new
    WSOD_ServiceRequest.ServiceRequest1[1];
    ServiceRequest[0] = new WSOD_ServiceRequest.ServiceRequest1();
    ServiceRequest[0].ServiceRequestId = this.Request.QueryString["id"];
    ServiceRequest[0].ListOfActivity = new
    WebSelfService.WSOD_ServiceRequest.Activity[ActivityLength + 1];
    ServiceRequest[0].ListOfActivity[0] = new WSOD_ServiceRequest.Activity();
    ServiceRequest[0].ListOfActivity[ActivityLength].Description =
    this.txtDescription.Text;
    ServiceRequest[0].ListOfActivity[ActivityLength].Display = "Task";
    ServiceRequest[0].ListOfActivity[ActivityLength].Subject = "My Subject";
    WSOD_ServiceRequest.ServiceRequest prxySrvcRequest = new
    WebSelfService.WSOD_ServiceRequest.ServiceRequest();
    WSOD_ServiceRequest.ServiceRequestWS_ServiceRequestInsertOrUpdate_Input
    objInput = new
    WebSelfService.WSOD_ServiceRequest.ServiceRequestWS_ServiceRequestInsertOrUpdate_Input();
    WSOD_ServiceRequest.ServiceRequestWS_ServiceRequestInsertOrUpdate_Output
    objOutput = new
    WebSelfService.WSOD_ServiceRequest.ServiceRequestWS_ServiceRequestInsertOrUpdate_Output();
    objInput.ListOfServiceRequest = ServiceRequest;
    Session objSession;
    objSession = (Session) Application["Session"];
    prxySrvcRequest.Url = objSession.GetURL();
    try
    objOutput = prxySrvcRequest.ServiceRequestInsertOrUpdate(objInput);
    catch(Exception e)
    12-10-2006 08:49 AM
    Re: Creating Activity object for a Service Request object...
    BigSlick
    Valued Contributor
    Ah yes, I forgot you also need to specify a unquie Id for the activity.
    It's kinda strange.
    Try adding this:
    ServiceRequest[0].ListOfActivity[ActivityLength].ActivityId = "DummyId";
    //OD will overwrite this with a real Id
    Or if you have a unquie ID for your Activities you can use:
    ServiceRequest[0].ListOfActivity[ActivityLength].ExternalSystemId = <Your
    Unique Value>;
    Hope that helps,
    BS
    12-11-2006 10:52 AM
    Re: Creating Activity object for a Service Request object...
    surgientweb
    New Contributor
    Hi all,
    I have a similar problem, but mine is returning a message that field
    "Display" is required. Looking at this post and the documentation it is
    obvious that Display is a required field, but my WSDL did not include a
    field called "Display", so my proxy did not generate one.
    I tried adding a field called Display to the WSDL and the proxy class, but
    I get a different error... I figure I maybe cannot add it manually like
    that - but I think the bigger problem is it is not part of the WSDL that
    Siebel OD generates for me in my admin account.
    On top of that Display is not shown in the list of fields for Activity
    through the admin interface.. is it possible my account is bugged? Am I
    missing something simple here? BigSlick, I see you mention a .Display in
    your code sample so I thought you might understand what is wrong. Here is
    my code (I am trying to add a activity to a lead).
    Thanks for any insight into this!
    private void InsertLeadActivity(Session session, NameValueCollection data,
    string leadID)
    try
    if (blnDebug)
    Response.Write("Setting up Activity<br>";
    // instantiate the proxy service
    Activity_Service.Activity activityProxy = new Activity_Service.Activity();
    // set up the target URL
    activityProxy.Url = session.GetURL();
    activityProxy.CookieContainer = session.GetCookieContainer();
    // set up input argument
    ActivityNWS_Activity_Insert_Input input = new
    ActivityNWS_Activity_Insert_Input();
    input.ListOfActivity = new Activity1[1];
    input.ListOfActivity[0] = new Activity1();
    if (blnDebug)
    Response.Write("Getting Data<br>";
    // dg note: name value
    // input.ListOfActivity[0].MrMrs = data["MrMrs"];
    input.ListOfActivity[0].LeadId = leadID.ToString();
    input.ListOfActivity[0].Description = DataToString(data);
    input.ListOfActivity[0].Subject = "Website Submission Activity";
    input.ListOfActivity[0].Priority = "3-Low";
    //input.ListOfActivity[0].DueDate =
    DateTime.Now.AddDays(7).ToShortDateString();
    input.ListOfActivity[0].Owner = this.defaultLeadOwner;
    input.ListOfActivity[0].Type = "Call";
    //input.ListOfActivity[0].Display = "Task";
    input.ListOfActivity[0].ActivityId = "DummyId";
    input.ListOfActivity[0].ExternalSystemId = "web";
    activityProxy.Activity_Insert(input);
    catch (Exception exInsertActivity1)
    if (blnDebug)
    Response.Write("<br>Error inserting activity.<br><br>" +
    exInsertActivity1.ToString() + "<br>";
    01-06-2007 05:05 PM
    Re: Creating Activity object for a Service Request object...
    surgientweb
    New Contributor
    Figured it out.. the field "Display" is also known as "Activity"........
    Here are some notes for other people.. good luck and feel free to write me
    at raskawa-at-gmail-com if you want a code sample.
    Some unpublished nice to knows for Siebel On Demand Activities....
    In summary:
    - .Activity is also known as Display in documentation and on the error
    messages coming back from the WS. Also, it appears based on these boards
    some people actually have a .Display field. Maybe different accounts
    generate different WSDL's.... buggy.
    - If a error message is thrown saying "Description is required" it really
    means "Subject is required" (make sure .Subject has a value)
    - If a error message is thrown complaining that ActionType is not right..
    that is really .Type.. make sure it's lookup value is valid for the
    dropdown values in your CRM OD system.
    My code/values that worked..
    input.ListOfActivity[0].LeadId = leadID.ToString();
    input.ListOfActivity[0].Description = DataToString(data);
    input.ListOfActivity[0].Subject = "Website Submission Activity";
    input.ListOfActivity[0].Priority = "3-Low";
    //input.ListOfActivity[0].DueDate =
    DateTime.Now.AddDays(7).ToShortDateString();
    input.ListOfActivity[0].Owner = this.defaultLeadOwner;
    input.ListOfActivity[0].Type = "Call";
    input.ListOfActivity[0].ActivityId = "DummyId";
    input.ListOfActivity[0].ExternalSystemId = "web";
    //input.ListOfActivity[0].Display = "Task"; //doesn't work
    input.ListOfActivity[0].Activity = "Task"; //does work.
    01-06-2007 05:17 PM
    Re: Creating Activity object for a Service Request object...
    raskawa
    First Time Contributor
    Hi,
    This is surgientweb (under my own login now..)
    Anyway, I wanted to add that I figured out that there are two ways to add
    a Activity to a Lead. Via the Lead object (by getting a ListOfActivities)
    OR by creating a Activity directly and just adding your "LeadID" to it (or
    you can also add a "ContactID" to relate the activity to a Contact.)
    Feel free to email me for a code example (raskawa....at....gmail)
    -David
    01-09-2007 02:58 PM

    Hi Stephane,
    You can definitely read the categories using Tables in CRM. The logic is a bit complicated though.
    Use the following steps to retrieve Categories using Std. CRM Tables:
    1. Pass transaction GUID in field GUID of table CRMV_REPORT_SUBJ and get KATALOGART, CODEGRUPPE and CODE field values in lv_catalog, lv_codegrp and lv_code.
    2. Now you need to concatenate these 3 fields values carefully like this:
    CONCATENATE lv_catelog lv_codegrp '    ' lv_code into lv_category1.
    Remember there are 4 spaces between lv_codegrp and lv_code.
    3. Now pass this lv_category1 in field OBJEXT in table CRMC_ERMS_CAT_OK and get OBJGUID in field lv_objguid.
    4. Pass this lv_objguid in field OBJ_GUID and LNK_TYPE = 'IS_CODE' in table CRMC_ERMS_CAT_LN and get value of CAT_GUID in lv_cat_guid.
    5. Pass this lv_cat_guid in field CAT_GUID in table CRMC_ERMS_CAT_CA and get value of CAT_ID in field lv_cat_text.
    Remember this lv_cat_text is the text value of your last level of category of transaction.
    6. To get its upper cateogry level value, simply use table CRMC_ERMS_CAT_HI and get parent guid value and pass this as CAT_GUID again in table CRMC_ERMS_CAT_CA to get its text.
    Alternatively, you can also use class method cl_crm_ml_category_util=>get_parse_all to get all levels of categories.
    Hope this helps.
    Thanks
    Vishal

Maybe you are looking for

  • Determine Profit center in FI postings in Vendor rebate processing (MEU2)

    Hi ,     We are processing vendor rebates settlement using Tcode - MEU2 , the profit center getting assigned to FI document line is  common profit center and not the one specifically assigned to the material being processed in the Setllement document

  • Dynamic form in Webdynpro for ABAP - Context Cardinality question

    Hello - I have an adobe form in a webdynpro for ABAP application which I want to be able to be dynamic. Basically I want to be able to use a Webdynpro context node with a cardinality of 1-N and the form will take each node of the context and create a

  • Issues "seeing" PC

    I have a few macs, and a PC. On my intel iMac, which is connected to my home network via an ethernet cable, I can see the PC in devices in Finder, and exchange files with it. However, on my iBook and old iMac, which are connected to the network via a

  • Sort option in Repetitive Area on AR Invoice PLD is disabled / greyed out

    Hi Experts, I have an issue whereby in my PLD the sort option under Print Layout Design Manager -> Repetitive Area -> Sort is greyed out / disabled in the AR Invoice PLD. Does anyone know why this might be? I've not seen this before and I can't find

  • Retrieve line items of g/l account

    Hi experts, while creating the G/L account, i just forget to put the tick mark on line item display, and i made many transaction on that particular G/L. how can retrieve those line in the T.Code fbl3n ? regards, Sanju M S