[JS] Found text is not a text?

Hi,
Could you help me to find a reason of 'undefined is not an object' error, pls?
app.findTextPreferences = NothingEnum.nothing;
app.findTextPreferences.appliedParagraphStyle = myParaStyle;
mFound = myStory.findText();
if (myFound.length > 0)
     mStart = myFound[0].insertionPoints[0];     // here is error 'undefined is not an object'
this is a part of preety long code and I wouldn't paste it here, but:
I checked some variables properties:
mFound.length  = = 1 so InD found some text, I guess;
mFound[0].constructor.name = = "Array";
mFound[0].length = = 0;
so what is found by ID (which .appliedParagraphStyle = = myParaStyle) and why this is not a text?
If I run this part of code manually, starting from point where script ends ==> mFound.length = = 0.
I know that I made mistake(s) somewhere, but I have not idea what should I look for...
Has 0-element Array some property to check and discover, where it came from?
Help me pls.
Thx

Now to your question:
1) Usually, myArea.findText() will return an Array of zero, one or more Text objects. In other words, provided that myFound.length > 0, each myFound[i] should be a Text specifier. This is what happens if myArea is the Application, a Document, a Story, or any singular Text specifier.
2) BUT, if for some reason myArea is a plural specifier—such as myStory.paragraphs.everyItem()—then myArea.findText() will return an Array of Array(s) of Text(s). The outer array reflects the plural behavior of the specifier, while the inner arrays reflect the return type of the findText() method. In that case you may have empty arrays within the outer array. Indeed:
   myStory.paragraphs.everyItem().findText()
will send the findText() command to every paragraph, so any paragraph that does not match the query will produce an empty array.
Maybe your script leads to something similar. We'd need to see more code to figure it out.
@+
Marc

Similar Messages

  • Why can i send imessage texts but not sms texts ?

    why can i send imessage texts but not sms texts ?
    When i try to send an sms text ..i get a 'not delivered' message...no error code...imessage works fine...

        Very strange, [email protected] Let's get this figured out. Make sure that SMS messages are turned on. Go to Settings>Messages>Send as SMS. Please let me know if this works.
    ChaunceyM_VZW
    Follow us on twitter @VZWSupport

  • Text is not displayed / Text wird nicht angezeigt

    Working with FM 11 I've got a longer text written with an older FM-version with some headings and paragraphes that are not displayed. It's just free space or lines and in some cases it's underlined like misspelled words but the characters are not visible. Paragraph- and character-formats look normal (that is black text on white background) and the text is not conditional. BUT the text is displayed in the Markers-Pod, when I mark a passage and it's even possible to find words in these paragraphs searching for them. I would appreciate any hint, how to deal with this problem.
    Georg

    Hi Georg,
    Sometimes I encounter a bug (FrameMaker 11.0.2.348) which also hides some text. I have a two-column layout with columns balanced. Usually some text is hidden at the end of the second column. When I add some empty paragraphs after the hidden text, the text appears again.
    MIF washing does not help.
    Luckily pages with hidden text have the Overflow property set. The bottom line of the text frame is solid. I wrote a FrameScript which checks for such pages.
    I do not know, if your problem has the same cause.
    Best regards
    Winfried

  • How can i change bookmarks text colors, not toolbar text color.

    I know how to change color of toolbar text but still want to change the text color of bookmarks.

    You can experiment with code like this in the userChrome.css file.
    *http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #personal-bookmarks .bookmark-item > .toolbarbutton-text {color:#000!important; background-color:-moz-dialog!important}
    </nowiki></pre>
    The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.
    *http://kb.mozillazine.org/Editing_configuration

  • I can recieve but not send texts

    I have a new iPhone 4s on the sprint network I can receive texts but not send texts. It says sending gets almost to the end and then message failed

    contact sprint

  • Can only imessage and not regular text.

    Upgraded from an iphone 4 to iphone 6. I can only send and recieve imessage (blue text) and not regular text (green text). I have sms/imessages toggle switched on. and i'm signed into my apple id. any help?

    iOS: Troubleshooting Messages - Apple Support  if the link doesn't help then contact your cell phone provider as SMS is a carrier feature.

  • RABAX_STATE -Text 005 Not Found -/sap/bc/webdynpro/sap/wd_sise_main_app was

    Transaction : SOLMAN_SETUP
    When I click on Managed system configuration tab,I get the following error.How to fix this error?
    Error when processing your request
    What has happened?
    The URL http:///sap/bc/webdynpro/sap/wd_sise_main_app was not called due to an error.
    Note
    The following error text was processed in the system SOL : Text 005 Not Found
    The error occurred on the application server and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_COMPONENT_ASSISTANCE~GET_TEXT of program CL_WD_COMPONENT_ASSISTANCE====CP
    Method: READ_SYSTEMS of program /1BCWDY/70D7KZS94S5DWFPCDGGM==CP
    Method: READ_SYSTEMS of program /1BCWDY/70D7KZS94S5DWFPCDGGM==CP
    Method: SUPPLY_ELEMENTS of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: IF_WD_CONTEXT_NODE~GET_SELECTED_ELEMENTS of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_TABLE_DATA of program CL_WDR_TABLE_DATA_PROVIDER====CP
    Method: GET_VISIBLE_TABLE_DATA of program CL_WDR_TABLE_DATA_PROVIDER====CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C3STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    ST22 Log details
    Runtime Errors         UNCAUGHT_EXCEPTION
    Exception              CX_WD_MODEL_TEXT
    An exception occurred which is explained in detail below.
    The exception, which is assigned to class 'CX_WD_MODEL_TEXT', was not caught
    and
    therefore caused a runtime error.
    The reason for the exception is:
    Text 005 Not Found
    Termination occurred in the ABAP program "CL_WD_COMPONENT_ASSISTANCE====CP" -
    in "IF_WD_COMPONENT_ASSISTANCE~GET_TEXT".
    The main program was "SAPMHTTP ".
    In the source code you have the termination point in line 40
    of the (Include) program "CL_WD_COMPONENT_ASSISTANCE====CM003".
    Thanks and Regards

    Hi Steven,
    1. Check in SICF whether the following service is active - -/sap/bc/webdynpro/sap/wd_sise_main_app
    2. Apply note 1371792
    By doing these two steps the issue got solved.
    Regards
    Shailaja

  • Solman_setup error: Text NL9 Not Found

    Hello Experts,
    I perform a fresh solution manager installation, and applied SPS20 and finally SPS23
    Then when try to run SOLMAN_SETUP a dump is raised with the following information:
    The following error text was processed in the system SLM : Text NL9 Not Found
    The error occurred on the application server solman_SLM_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_COMPONENT_ASSISTANCE~GET_TEXT of program CL_WD_COMPONENT_ASSISTANCE====CP
    Method: SUPPLY_NL_REL_LINKS of program /1BCWDY/SEVJ79UM4LBSJJZ7IXDN==CP
    Method: SUPPLY_NL_REL_LINKS of program /1BCWDY/SEVJ79UM4LBSJJZ7IXDN==CP
    Method: SUPPLY_ELEMENTS of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_ELEMENTS of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: IF_WD_CONTEXT_NODE~GET_ELEMENTS of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/CPATTERN================CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/CPATTERN================CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    So far Iam unable to find any suitable information in order to solve this.
    I already execute:
    SGEN
    SIAC_PUBLISH_ALL_INTERNAL
    activate all services in SICF
    I really appreciate your help on this
    thank you

    Thank you for the quick answer, even though your information solved this particular problem, later on while running solman_setup I got similar dumps, therefore i realized that there was an error else were.
    Problem was I imported English language (usually you don't do it) in TC SMLT, and the language part of support packages were missing, any way. I restored a backup I made just before Spanish language import was performed.
    Then I start over again. I imported Spanish language, then supplementation for spanish and finally import language part support packages and everything went fine during solman_setup
    thank you for your valuable information

  • I have followed all the steps to fix this problem, but I do not receive texts on my new Galaxy 4 from iPhone users.  I tried everything I was told and found in these forums.  Still no luck.

    I switched to Verizon in March 2014, from AT&T.  I traded in my old iPhone4 for a Galaxy 4.  Ever since, I am not getting text messages from anyone who has an iPhone unless they WORK for Verizon.  I have deleted my phone from my apple profile and I don't own any other apple products.  I switched to an Android because I was tired of Apple's proprietary ways.  It seems not matter what I do, and I have done EVERYTHING suggested here on these forums.  No luck. I am so frustrated.  I have a very large family and almost everyone else has an iPhone.  Even if they don't, I am not getting all their messages.  I like the new Galaxy, but believe I have made a huge mistake switching carriers and phones, even though I hate Apple products.

        Welcome to the Verizon family irishlass82! I know how important it is to stay in touch and we'll make sure that you don't regret your decision! Before trading in your device, did you turn off iMessage? In effort to correct this issue, text the word STOP to 48369.
    AshleyS_VZW
    Follow us on Twitter @VZWSupport

  • Text will not wrap around a photo in indesign cs3?

    we have tried EVERYTHING. we use adobe indesign for our school newspaper and for the past 3 days we have been trying to get one of the articles (text) to wrap around a photo.
    the photo is a simple rectangle shape. for all of the other pages, the text wraps around photos perfectly fine. but for some reason on this one page it will not wrap around any picture at all.
    of course "text wrap" is selected for the photo and we also tried going to the text frame options and unchecked ignore text wrap. that still didn't work.
    we tried putting it on "detect edges" and that also did not work. ):
    please please please if you have any suggestions, add them!!! we really need to fix this issue because this page needs these pictures!

    I just encountered the same problem, the text did not wrap around the image whatever i did. I found the solution on my problem, that i had an imagebox underneath the image, which i was not aware of. I discovered it when i deleted first the textframes and the image. After i deleted the second imagebox the text wrapped around the image as i wanted it!

  • Text Fields Not Showing in Design or Live View

    Hello Everyone,
    I have run into a problem trying to create a simple contact form through Dreamweaver CS6.  I have two text fields for Name & Email, and 1 text area for Comments.  The issue I am running into is that the text fields are not showing in Design or Live view.  I have set-up all variables required for the server for the form to work... but that should not have any effect on the text field showing...  I tried uploading my contact page with the same result of no text fields showing...
    What is really laughable is that the "text area" I placed in my form for Comments shows up in Design & Live view just fine.  I am thinking that I am missing something, but just do not know what exactly.  The form is styled through CSS.
    Here is the form code:
         <div id="CRDForm">
           <form action="http://www.sweetformimi.com/formmail/formmail.php" method="post" enctype="application/x-www-form-urlencoded" name="contact" target="_self" id="contact">
        <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER">
        <input type="hidden" name="recipients" value="[email protected]" />
        <input type="hidden" name="subject" value="Contact Form" />
             <label><p>Your Full Name
               <input name="Name" type="text" id="Name" size="40" /></p>
             </label>
             <label><p>Email
             <input name="email" type="text" accesskey="2" tabindex="2" title="Email" value="Email"></p>
             </label>
             <label>Comments<br />
             <textarea name="comments" cols="40" rows="10" accesskey="3" tabindex="3" title="Comments"></textarea>
             </label>
             <input name="submit" type="submit" accesskey="4" tabindex="4" title="submit" value="submit">
           </form>
        </div>
    Are there other variables I should be thinking about in the rest of my site?  I am using a fluid grid layout.  I have CSS for desktop, tablet, and phone devices.  I also have a primary CSS file that imports all three.  The sites structure was done by using <header>, <article>, <footer>, and of course <div> tags. 
    Has anyone ever experienced the "text fields" not showing up before? Is it a simple fix as reinstalling Dreamweaver CS6?  Finally, another thing I should mention is that I did have a previous version of Dreamweaver on my comp, which was CS3.  I did not uninstall that before installing the newer version.  I assumed (and I could be wrong here) that it would automatically replace the older version.
    I apoligize for it being long winded, but I am looking for some help on this issue...
    Thank You

    Hey thank you osgood for the reply!
    When I look at code for long hours it sort of blurs together, and I miss things... I think that happens to the most of us
    Ya I found what was blocking my text fields in my desktop.css
    I primarily work through code view, and currently working on quite a few projects kind of makes your eyes miss the small errors.
    Thanks again!

  • How to pass text to Material Sales text, item note, while creating a sales

    hi ,
       i tried my level best with the help of friends (SDN).
       but i am unable to reach the target.
       my requirement is to enter text into
        1) material sales text
        2) item note
        3) packing note
        4) delivery text
        5) purchase order text
        6) production memo
        in sales order using bapi. here i am submitting the code i wrote.
      kindly some one help me.
       thanks in advance
    regards,
    pavan
    <i>report  zmybapi1        .
    data : my_order_header_in like bapisdhd1 occurs 0 with header line,
           my_order_header_ix like bapisdhd1x occurs 0 with header line.
    data : my_orderitemsin like bapisditm  occurs 0 with header line,
           my_orderitemsix like bapisditmx occurs 0 with header line.
    data : my_order_partners like bapiparnr occurs 0 with header line.
    data : my_return like bapiret2 occurs 0 with header line.
    data : w_vbeln like bapivbeln-vbeln.
    data:
         my_orderschedulesin like bapischdl occurs 0 with header line,
         my_orderschedulesinx like bapischdlx occurs 0 with header line.
    data : my_orderconditionsin like bapicond occurs 0 with header line,
           my_orderconditionsinx like bapicondx occurs 0 with header line.
    <b>data : my_ordertext like bapisdtext occurs 0 with header line.</b>
    start-of-selection.
    this is to assign values to internal table my_order_header_in
      my_order_header_in-doc_type   = 'TA'.
      my_order_header_in-sales_org  = 'JNJ1'.
      my_order_header_in-distr_chan = '02'.
      my_order_header_in-division   = 'J1'.
      my_order_header_in-sales_off  = 'JNJ1'.
      my_order_header_in-purch_no_c = 'testbapipo'.
      my_order_header_in-purch_date = sy-datum.
      my_order_header_in-req_date_h = sy-datum.
      append my_order_header_in.
    this is to assign values to internal table my_orderitemsin
      my_orderitemsin-material      = '000000000000000727'.
      my_orderitemsin-plant         = 'JNJ1'.
      my_orderitemsin-target_qu     = 'EA'.
      my_orderitemsin-target_qty    = '10'.
      append my_orderitemsin.
    this is to assign values to internal table my_order_partners
      my_order_partners-partn_role = 'AG'.
      my_order_partners-partn_numb = '0000000011'.
      append my_order_partners.
      my_order_partners-partn_role = 'WE'.
      my_order_partners-partn_numb = '0000000011'.
    append my_order_partners.
    This is to assign values to internal table my_orderschedulesin
      my_orderschedulesin-itm_number = '10'.
      my_orderschedulesin-itm_number = '000010'.
      my_orderschedulesin-req_qty   = '10'.
      my_orderschedulesin-SCHED_LINE = '0001'.
      append my_orderschedulesin.
    *This is to assign values to internal table my_orderconditionin
      my_orderconditionsin-itm_number = '000010'.
      my_orderconditionsin-cond_type = 'ZPR1'.
      my_orderconditionsin-cond_st_no = ''.
      my_orderconditionsin-cond_count = '1'.
      my_orderconditionsin-cond_value = '40'.
      my_orderconditionsin-cond_p_unt = '1'.
      my_orderconditionsin-currency = 'INR'.
      append my_orderconditionsin.
    <b> my_ordertext-itm_number = '00010'.
      my_ordertext-text_id = '0002'.
      my_ordertext-langu = 'EN'.
      my_ordertext-langu_iso = 'EN'.
      my_ordertext-text_line = 'This is for item note'.
      my_ordertext-format_col = '*'.
      my_ordertext-function = '009'.
    *</b>  <b>append my_ordertext.</b>
      my_order_header_ix-updateflag = 'I'.
      my_order_header_ix-doc_type   = 'X'.
      my_order_header_ix-sales_org  = 'X'.
      my_order_header_ix-distr_chan = 'X'.
      my_order_header_ix-division   = 'X'.
      my_order_header_ix-sales_off  = 'X'.
      my_order_header_ix-purch_no_c = 'X'.
      my_order_header_ix-purch_date = 'X'.
      my_order_header_ix-req_date_h = 'X'.
      append my_order_header_ix.
      my_orderitemsix-updateflag    = 'I'.
      my_orderitemsix-material      = 'X'.
      my_orderitemsix-target_qty    = 'X'.
      my_orderitemsix-plant         = 'X'.
      my_orderitemsix-target_qu     = 'X'.
      append my_orderitemsix.
      my_orderschedulesinx-updateflag = 'I'.
      my_orderschedulesinx-sched_line = '0001'.
      my_orderschedulesinx-req_qty    = 'X'.
      append my_orderschedulesinx.
    my_orderconditionsinx-itm_number = '000010'.
      my_orderconditionsinx-cond_type = 'ZPR1'.
      my_orderconditionsinx-cond_st_no = 'X'.
      my_orderconditionsinx-cond_count = 'X'.
      my_orderconditionsinx-updateflag = 'U'.
      my_orderconditionsinx-cond_value = 'X'.
      my_orderconditionsinx-cond_p_unt = 'X'.
      my_orderconditionsinx-currency = 'X'.
      append my_orderconditionsinx.
      call function 'BAPI_SALESORDER_CREATEFROMDAT2'
        exporting
      SALESDOCUMENTIN               =
          order_header_in               = my_order_header_in
          order_header_inx              = my_order_header_ix
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
        importing
          salesdocument                 = w_vbeln
        tables
          return                        = my_return
          order_items_in                = my_orderitemsin
          order_items_inx               = my_orderitemsix
          order_partners                = my_order_partners
        ORDER_SCHEDULES_IN            =  my_orderschedulesin
         order_schedules_inx           = my_orderschedulesinx
       ORDER_CONDITIONS_IN           =  my_orderconditionsin
       ORDER_CONDITIONS_INX          =  my_orderconditionsinx
      ORDER_CFGS_REF                =
        <b>ORDER_TEXT                    = my_ordertext</b>
                 if sy-subrc ne 0.
        write: my_return-message, my_return-number, my_return-type.
      else.
         call function 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           WAIT          =
         IMPORTING
           RETURN        =
          write: my_return-message, my_return-number, my_return-type.</i>

    hi prashant,
        i tried the save_text but , i am unable find the exact value which i have to enter for the field tdobject.
    this is updated program as per u r instruction.
    <b>Text object not found</b>
    the code now is
    <b>report  zmybapi1        .
    data : my_order_header_in like bapisdhd1 occurs 0 with header line,
           my_order_header_ix like bapisdhd1x occurs 0 with header line.
    data : my_orderitemsin like bapisditm  occurs 0 with header line,
           my_orderitemsix like bapisditmx occurs 0 with header line.
    data : my_order_partners like bapiparnr occurs 0 with header line.
    data : my_return like bapiret2 occurs 0 with header line.
    data : w_vbeln like bapivbeln-vbeln.
    data:
         my_orderschedulesin like bapischdl occurs 0 with header line,
         my_orderschedulesinx like bapischdlx occurs 0 with header line.
    data : my_orderconditionsin like bapicond occurs 0 with header line,
           my_orderconditionsinx like bapicondx occurs 0 with header line.
    data : my_ordertext like bapisdtext occurs 0 with header line.
    data : my_header like thead occurs 0 with header line.
    data : my_tline like tline occurs 0 with header line.
    start-of-selection.
    this is to assign values to internal table my_order_header_in
      my_order_header_in-doc_type   = 'TA'.
      my_order_header_in-sales_org  = 'JNJ1'.
      my_order_header_in-distr_chan = '02'.
      my_order_header_in-division   = 'J1'.
      my_order_header_in-sales_off  = 'JNJ1'.
      my_order_header_in-purch_no_c = 'testbapipo'.
      my_order_header_in-purch_date = sy-datum.
      my_order_header_in-req_date_h = sy-datum.
      append my_order_header_in.
    this is to assign values to internal table my_orderitemsin
      my_orderitemsin-material      = '000000000000000727'.
      my_orderitemsin-plant         = 'JNJ1'.
      my_orderitemsin-target_qu     = 'EA'.
      my_orderitemsin-target_qty    = '10'.
      append my_orderitemsin.
    this is to assign values to internal table my_order_partners
      my_order_partners-partn_role = 'AG'.
      my_order_partners-partn_numb = '0000000011'.
      append my_order_partners.
      my_order_partners-partn_role = 'WE'.
      my_order_partners-partn_numb = '0000000011'.
    append my_order_partners.
    This is to assign values to internal table my_orderschedulesin
      my_orderschedulesin-itm_number = '10'.
      my_orderschedulesin-itm_number = '000010'.
      my_orderschedulesin-req_qty   = '10'.
      my_orderschedulesin-SCHED_LINE = '0001'.
      append my_orderschedulesin.
    *This is to assign values to internal table my_orderconditionin
      my_orderconditionsin-itm_number = '000010'.
      my_orderconditionsin-cond_type = 'ZPR1'.
      my_orderconditionsin-cond_st_no = ''.
      my_orderconditionsin-cond_count = '1'.
      my_orderconditionsin-cond_value = '40'.
      my_orderconditionsin-cond_p_unt = '1'.
      my_orderconditionsin-currency = 'INR'.
      append my_orderconditionsin.
    my_ordertext-doc_number = '0000008632'.
      my_ordertext-itm_number = '00010'.
      my_ordertext-text_id = '0002'.
      my_ordertext-langu = 'EN'.
      my_ordertext-langu_iso = 'EN'.
      my_ordertext-text_line = 'This is for item note'.
      my_ordertext-format_col = '*'.
      my_ordertext-function = '009'.
      append my_ordertext.
      my_order_header_ix-updateflag = 'I'.
      my_order_header_ix-doc_type   = 'X'.
      my_order_header_ix-sales_org  = 'X'.
      my_order_header_ix-distr_chan = 'X'.
      my_order_header_ix-division   = 'X'.
      my_order_header_ix-sales_off  = 'X'.
      my_order_header_ix-purch_no_c = 'X'.
      my_order_header_ix-purch_date = 'X'.
      my_order_header_ix-req_date_h = 'X'.
      append my_order_header_ix.
      my_orderitemsix-updateflag    = 'I'.
      my_orderitemsix-material      = 'X'.
      my_orderitemsix-target_qty    = 'X'.
      my_orderitemsix-plant         = 'X'.
      my_orderitemsix-target_qu     = 'X'.
      append my_orderitemsix.
      my_orderschedulesinx-updateflag = 'I'.
      my_orderschedulesinx-sched_line = '0001'.
      my_orderschedulesinx-req_qty    = 'X'.
      append my_orderschedulesinx.
    my_orderconditionsinx-itm_number = '000010'.
    my_orderconditionsinx-cond_type = 'ZPR1'.
    my_orderconditionsinx-cond_st_no = 'X'.
    my_orderconditionsinx-cond_count = 'X'.
    my_orderconditionsinx-updateflag = 'U'.
    my_orderconditionsinx-cond_value = 'X'.
    my_orderconditionsinx-cond_p_unt = 'X'.
    my_orderconditionsinx-currency = 'X'.
    append my_orderconditionsinx.
      call function 'BAPI_SALESORDER_CREATEFROMDAT2'
        exporting
      SALESDOCUMENTIN               =
          order_header_in               = my_order_header_in
          order_header_inx              = my_order_header_ix
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
        importing
          salesdocument                 = w_vbeln
        tables
          return                        = my_return
          order_items_in                = my_orderitemsin
          order_items_inx               = my_orderitemsix
          order_partners                = my_order_partners
        ORDER_SCHEDULES_IN            =  my_orderschedulesin
          order_schedules_inx           = my_orderschedulesinx
      ORDER_CONDITIONS_IN           =  my_orderconditionsin
      ORDER_CONDITIONS_INX          =  my_orderconditionsinx
      ORDER_CFGS_REF                =
        ORDER_TEXT                    = my_ordertext
                 if sy-subrc ne 0.
        write: my_return-message, my_return-number, my_return-type.
      else.
         call function 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           WAIT          =
         IMPORTING
           RETURN        =
          write: my_return-message, my_return-number, my_return-type.
    my_header-tdobject = ''.
    my_header-tdname = ' '.
    my_header-tdid = '0002'.
    my_header-tdspras = 'EN'.
    append my_header.
    my_tline-tdformat = '*'.
    my_tline-tdline = 'This is for item note'.
    append my_tline.
    call function 'SAVE_TEXT'
      exporting
      CLIENT                = SY-MANDT
        header                = my_header
      INSERT                = ' '
      SAVEMODE_DIRECT       = ' '
      OWNER_SPECIFIED       = ' '
      LOCAL_CAT             = ' '
    IMPORTING
      FUNCTION              =
      NEWHEADER             =
      tables
        lines                 = my_tline
    EXCEPTIONS
      ID                    = 1
      LANGUAGE              = 2
      NAME                  = 3
      OBJECT                = 4
      OTHERS                = 5
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    endif.</b>
      thanks in advance
    regards,
    pavan

  • How to create a plugin to stamp texts and not an image into a pdf document

    How to create plugin to stamp texts and not an image.. i just want it to work like the stamper plugin found in sdk sample but here i need text to be stamped instead of an image.. Is it possible? kindly give me some ideas?how to go about it.. can this be done by modfying the stamper sample code?
    Thank you

    This is possible, but it is a serious project, not something to be cut around from sample code. You will need to study the "graphics" and "text" chapters of the PDF specification in some detail to understand the PDF graphics model, including colour spaces, graphics state, and transformation matrixes; if working with annotations understand them and the requirement for appearance stream. There are various ways to add content to a PDF, but the PDFEdit API is probably the most accessible.

  • PDF with white text, or not?

    OK, so I have and PDF file with some white text according to my own programm, and it seems to be set to overprinting.
    I have asked about this subject before, but failed to make myself clear enough. This question will be more clear, at least I hope.
    This is the file in question: http://www.4shared.com/document/Sn7nSydh/error_detected.html
    In  that file the Adobe PreFlight is NOT detecting white text that is set to overprint, but my own code does...
    And this file the Adobe PreFlight and my own code agree, there is white text that is set to overprint: http://www.4shared.com/document/S9-3F59t/GWG_test_file.html
    So now for my question. Were am I going wrong? I think I must seek the error in the colors. So we have two colors when puting out text in a PDF; stroking and non-stroking. When the stroking is set to CMYK(0, 0, 0, 0) and the non-stroking is set to CMYK(0,0,0,1) then we really have white text, and when the Graphic State op (overprint) is set to True, the text is set to overprint...
    When the stroking is set to CMYK(0,0,0,0) and the non-stroking is set to somthing like CMYK(0.1, 0.4, 0.5, 0.9) the text is not white, so we are done checking??
    I you can bare with me one this one. Thanks!

    You are correct that each object can have two colors - a stroking color and a fill color - but the only color(s) that are relevant are the one(s) needed by the specific drawing operators.  If you set the stroke color to be something in RGB (for example) and the fill in CMYK, and just fill the object, then RGB is never used and wouldn't be found by a check.  Same is true for things like white overprint.  The text in that PDF is filled and not stroked, so the stroke color isn't relevant.
    In addition, for that file, I don't see OP being set to true at any point related to the text.

  • Safari 4.0.3 not displaying text correctly

    Hi all, I recently upgraded to Snow Leopard (along with everyone else) and ever since certain code will NOT display correctly.
    This is what is displayed by safari when viewing text from a "code" tag.
    http://i32.tinypic.com/15qyt5i.png
    This is what is supposed to be displayed: (as viewed on firefox)
    http://i28.tinypic.com/4zzxps.png
    I have tried troubleshooting and fixing this problem by reinstalling both Safari 4, and Snow leopard to no avail, I have also verified and repaired permissions.
    Note that not ALL text is displayed incorrectly, this is the rest of the page as displayed by Safari:
    http://i30.tinypic.com/o0cuqg.png
    Please help

    SOLUTION FOUND!
    I searched the forums and found our solution here:
    http://discussions.apple.com/thread.jspa?threadID=2132585&tstart=120
    Basically, go to your Applications and open Font Book. If this is the case, you have two sets of Courier running. Scroll down to where Courier is and click the drop down triangle to see it's different styles. I then sort of just guessed and checked this next move but it did the trick. Find the Courier Regular that does NOT give a sample display of our beloved ABCs. Right click that "bad" version of Courier Regular and choose the Remove or Delete Option and verify with an OK. It should get rid of all the bad versions and the warning triangles. Try out a page in Safari and it should look as good as any other browser now.

Maybe you are looking for

  • External Hard Drive Sync Issue with Deletion

    So I recently set up my external hard drive to be my main music folder. The external HD runs continuously on my Mac Pro desktop. I've set it up so the external HD is mounted remotely on my laptop, so I can get all my itunes music without having to ph

  • Sync Data etween a PC and Mac

    Here is the situation: I have a MacBook running OSX and a Desktop running Windows XP with an extended partition with all of my data on it - (pictures, music, office documents). I want to be able to automatically sync this data on the Mac. This way wh

  • Can't import songs from iTunes

    I want to import songs from my iTunes library. When I click on the audio button, I can see my library of songs but I can't click and import them. I can drag the photo to desktop and then into iMovie but that feels like Windows. I am having similar is

  • Material document cannot be processed ( Message no. M7130 )

    Hi all. Recurring inspection lot is created automatically through tcode QA07. But i will cancel the recurring inspection. it is stock relevant, because i cann't cancel directly from QA02> function> cacel inspection lot. So i was reversed the material

  • 4.1 setup for x

    I have had my X-Fi Extreme Music for a few days and I am very pleased with the improvement over my Audigy, particularly the much lower noise levels. I am running the card with analog out to two pairs of speakers powered with one stereo amplifier each