How to get a long text into the SapScript

Hi.
I need to read text from header field from ME21N. I use to this READ_TEXT function module, which is called from SapScript but the problem is, that this function returns me just about 80 chars and trim rest of string.
First idea was use loop in form, but is impossible, how to solve this problem.
Thanks

Problem was solved :
INCLUDE &EKKO-EBELN& OBJECT EKKO ID F01 LANGUAGE &EKKO-SPRAS&
Edited by: Daniel Duras on Apr 23, 2008 10:51 PM

Similar Messages

  • How to get Requester Login information into the request dataset validator

    Friends,
    I need to check whether the requester is part of a group or not before submitting the request. If not I need to throw an error.
    Can you please let me know how to get Requester information.login into the request validator?

    Hi Thiago,
    I am getting the requester id from the requestData in the request data validator. Here is my full code for your reference.
    Bikash - I even tried with RoleManager service but still same error.
    public void validate(RequestData requestData)
    throws InvalidRequestDataException {
    tcUserOperationsIntf UserOppsIntf =Platform.getService(tcUserOperationsIntf.class);
    try
    tcResultSet result=UserOppsIntf.getSelfProfile();
    result.goToRow(0);
    String requesterID = result.getStringValue("Users.User ID");
    String userKey=result.getStringValue("Users.Key");
    System.out.println("Request Login:"+requesterID);
    if (isMemeber(getOIMGroupKey("testGroup"),userKey))
    System.out.println(requesterID+" is a Member");
    else
    System.out.println(requesterID+" is not a Member");
    String reason = "Note[REQUEST_SUBMISSION_ERROR].text:You are not authorized to submit this request.";
    throw new InvalidRequestDataException(reason);
    catch(Exception e) {
    e.printStackTrace();
    private String getOIMGroupKey(String GroupName) throws Exception
    String groupKey="";
    tcGroupOperationsIntf groupInstanceOps = Platform.getService(tcGroupOperationsIntf.class);
    HashMap searchFor = new HashMap();
    searchFor.put("Groups.Group Name", GroupName);
    tcResultSet results = groupInstanceOps.findGroups(searchFor);
    for (int i = 0; i < results.getRowCount(); i++) {
    results.goToRow(i);
    groupKey = Long.toString(results.getLongValue("Groups.Key"));
    System.out.println("GroupKey:"+groupKey);
    return groupKey;
    private boolean isMemeber(String groupKey,String userKey) throws Exception
    boolean member=false;
    try
    tcGroupOperationsIntf groupInstanceOps = Platform.getService(tcGroupOperationsIntf.class);
    long grpLong = Long.parseLong(groupKey.trim());
    tcResultSet grpResultSet = groupInstanceOps.getAllMembers(grpLong);
    for(int i=0;i<grpResultSet.getRowCount();i++)
    grpResultSet.goToRow(i);
    long usrKeygrp = grpResultSet.getLongValue("Users.Key");
    if (usrKeygrp==Long.valueOf(userKey))
    member=true;
    break;
    catch(Exception e) {
    e.printStackTrace();
    member=false;
    return member;
    }

  • How to get an RSS feed into the phone using Nokia ...

    Is it possible to get an RSS feed into the phone using the Nokia PC Suite? RSS is mentioned in several places in the help files, but I can't find a place that describes how to set it up.

    just as they said in the help:
    "On the Bookmarks section, you can define bookmark and RSS feed synchronisation details. Bookmarks and RSS feeds can be synchronised between a Nokia mobile phone and a supported web browser. Note that bookmark and RSS feed synchronisation is not available for all phone models. "
    What's the law of the jungle?

  • How to get Material long text / Sales Text

    Hi,
    when I have created a service order I have enter Long text in Tab Item Details , i.e in sales Text I have entered some text , So can any one tell me how to get this text as I have to show this text in invoice printing
    Thanks
    Bobby

    600101202274700000001
    For a Particular Text name Of Item Level operations
    1st 3 character denotes client id in this case 600 +
    2nd 10 character denotes AFKO-AUFPL with respect to the production order  in this case
    1012022747 +
    last 8 character denotes the operation line item numebr

  • How to get material long text at user exit EXIT_SAPLMGMU_001

    Dear All,
    I need to pass some material details from SAP to legacy system once user create / edit a material. I have no problems with fields like material no, type, group etc except the long text, I can't find the long text field from the user exit (EXIT_SAPLMGMU_001).
    When I use READ_TEXT function, also can't retrieve the long text because it haven't save to STXH/STXL table yet, I guess.
    Please help
    TQ

    hello Chong ,
    if it havent saved yet , then try to pass  document no as '$0000000001'( in most of cases it will work but i'm not sure abt ur transaction ), it should work..
    regards
    Prabhu

  • How to get grand total text  in the last column of reuse_alv_grid_display ?

    Hi,
    Experts,
    I am able to get the subtotal text but i am not able to get the grand total text please pass some code or idea on it.
    ex:
         2510    gopi       10
         2511   gopi        20
    subtotal                 30
         2521    anand    20
         2522    anand    10
        2523     anand    50
    subtotal                 80
         2512   vikram     30
    subtotal                 30
    (blank----)              140.
    Here i want to get text as 'COMPANY TOTAL'. by using REUSE_ALV_GRID_DISPLAY FM.
    Thanks,
    Shabeer ahmed.

    Hi,
      you can get the 'COMPANY TOTAL' by using the following code:
      LOOP AT i_main INTO w_main.*   Storing the Total text need to be displayed in
      ALV
        w_final-total      = 'COMPANY TOTAL'.
        w_final-field1   = w_main-field1.
        w_final-field2    = w_main-field2.   
        w_final-field3   = w_main-field3 .  
       APPEND w_final TO i_final.  ENDLOOP.
    Regards,
      Santosh

  • How to get audio book files into the audio books library?

    I have recently imported some of my own audio books from cd to iTunes. They are now located in the music library, but I would like to have them in the audio book library. But no matter what I try I can't move them. Can anyone help me?
    I have tried dragging the files and the folders, creating playlists and dragging them, importing files and folders, but nothing works. Is it impossible to do?
    Homebuild     Uses Windows Vista

    It's easy to make audiobooks so long as you start off with AAC files (.m4a). If your books are in MP3 format, either rerip the book from CD into AAC or else convert MP3 to AAC. In iTunes there is an AAC choiced called "Spoken Podcast" that's great for making audiobooks (Edit > Preferences > Advanced > Importing).
    Step-by-step instructions for making an audiobook are here:
    http://discussions.apple.com/message.jspa?messageID=4218783#4218783

  • How to get gmail contacts "groups" into the Touch

    In gmail I have my contacts organized into in groups. When I sync, all the contacts show up but the gmail groups structure is not there. The groups page on the Touch lists "All Contacts", "All from my PC", etc. This is completely useless. Is there a way to preserve Google groups on the Touch? thanks

    How are you accessing gmail on the iPhone?
    If you are simply going to the mobile site, there is no way to accomplish what you want.
    If you have it set up as POP3 or IMAP4, these only pull email, not contacts.
    You can set up Gmail as an exchange account and sync contacts, calendar, and mail.
    http://www.google.com/support/mobile/bin/answer.py?answer=138740&topic=14252

  • How to take annexture [ long text  ] in purchase order in smartforms

    hi all expert's
    [1] i printing P.O in smart form  ....
    can any body tell me how to take annexture [ long text  ] into P.O layout....text will be a page or more pages...
    [2] how to pass mumtiple line item on next susquent page  .....
    e.x suppose i having 10 line items for a P.O [ Purchase Order ]
    on page first it should display 5 lines and on 2nd page it should display 5 lines .....
    while i am printing it is showing all items on same page and breaking footer and printing on next line...
    kindly suggest me ...
    thanx in advance ...

    Hi,
    The method is quite simple, i presume you're quite well versed with doing recording, so the key thing to keep in mind is how to prepare the input file.
    At my end i had about 5 lines of data which needed to be uploaded, hence i had a tab-delimited file with the order nos. in the first column & the five lines of text in five different columns (Refer format below)
    Order No.
    Line - 1
    Line - 2
    Line - 3
    Line - 4
    Line - 5
    12345
    txt - 1
    txt - 2
    txt - 3
    txt - 4
    txt - 5
    67890
    txt - a
    txt - b
    txt - c
    txt - d
    txt - e
    Now provide this input file for your lsmw or bdc program & it will work. You can work with your abaper if you're not so comfortable with LSMW or BDC programming he / she should be able to easily make it work for you.
    Regards,
    Vivek

  • Placing Text into the iOS's Clipboard

    I'd like to be able to copy some text to the iPad clipboard in my app, exit the app, and then paste the copied text into the Native iPad "Notes" application. I can't seem to get my copied text into the iPad's system clipboard though. It doesn't seem to carry over after I exit my app (or maybe it is neveer getting there in the first place, can't tell).
    I've tried this:
    System.setClipboard(myData);
    And this:
    Clipboard.generalClipboard.setData(ClipboardFormats.TEXT_FORMAT, myData);
    Any suggestions?

    I don't have any specific experience with doing this in PFI, but in the Flash Player plugin, don't these calls have to take place in the event handler of a user event like click or key press?  Did you try calling it from an event handler?

  • How to get the long text into text area

    Hi,
    save_text is working fine .
    Now I want to display the text in text area .
    am using read_text fm for this and data is coming into the internal table of the function module.
    how shd I display that long text into text area and that text shld appear has display mode only and how shd I make all other fields in my subscreen as display mode.
    Pls guide me its urgent.
    thanks,
    krishna

    Hai.
    check this.
    Long Texts are stored in tables
    STXH - header
    STXL - details.
    if you want to read the texts you can use Fun Module  READ_TEXT
    Any Application document Header and Item Long texts are stored in STXH table with the 4 parameters OBJECT,ID,NAME and LANG
    These texts are fetched from database using READ_TEXT fun module by passing the above 4 parameters.
    Double click on the text, from the text editor menu GOTO-> HEDAER
    you will find the all above 4 parameters
    so accordingly you have to pass to the fun module READ_TEXT to fetch the texts.
    example:
    Re: upload longtext from excel file  
    REPORT  zupload_excel_to_itab.
    TYPE-POOLS: truxs.
    PARAMETERS: p_file TYPE  rlgrap-filename.
    TYPES: BEGIN OF t_datatab,
          col1(30)    TYPE c,
          col2(30)    TYPE c,
          col3(30)    TYPE c,
          END OF t_datatab.
    DATA: it_datatab type standard table of t_datatab,
          wa_datatab type t_datatab.
    DATA: it_raw TYPE truxs_t_text_data.
    At selection screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    *START-OF-SELECTION.
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
        I_FIELD_SEPERATOR        =
          i_line_header            =  'X'
          i_tab_raw_data           =  it_raw       " WORK TABLE
          i_filename               =  p_file
        TABLES
          i_tab_converted_data     = it_datatab[]    "ACTUAL DATA
       EXCEPTIONS
          conversion_failed        = 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.
    END-OF-SELECTION.
    END-OF-SELECTION.
      LOOP AT it_datatab INTO wa_datatab.
        WRITE:/ wa_datatab-col1,
                wa_datatab-col2,
                wa_datatab-col3.
      ENDLOOP.
    refards.
    sowjanya.b

  • Get the long text into BADI from text editor

    hi all,
    I implemented BADI ME_PROCESS_PO_CUST, before saving the purchase order i am calling the text editor where i am writng
    the long text . but when save the text from the text editor the long text in the editor is not updating to the BADI.
    Can anybody help how can i get the long text to the BADI.
    Regards,
    Madhavi

    Hi
    Have you tried with interface 'IF_PURCHASE_ORDER_MM' with these methods in the BADI?
    IF_LONGTEXTS_MM~GET_TEXTOBJECT
    IF_LONGTEXTS_MM~GET_TYPES
    IF_LONGTEXTS_MM~GET_TEXT
    IF_LONGTEXTS_MM~SET_TEXT
    IF_LONGTEXTS_MM~ADOPT_TEXT
    IF_LONGTEXTS_MM~DELETE_TEXT
    IF_LONGTEXTS_MM~EDIT_TEXT
    Regards
    Eduardo

  • How to get only partial text of a paragraph into the table of content?

    Hi guys,
    currently I'm working on a manuscript based on the publication manual of the American Psychological Association.
    Unfortunately, there is some sort of heading that's placed right in front of further text. Here an example:
    +This is my heading.+ Now ordinary text formatted differently should follow.
    Does anyone here know, how to get the text of the heading (but not the following text) into the table of content? For as far as I know I can't format the heading as a different paragraph than the following text.
    By the way, I use pages'08.
    Thanks for your help

    Hi Dennis,
    thanks for your suggestion, unfortunately I already tried that and it didn't work. I have created several unique styles. Problem is, I need two diferent styles in *one paragraph* - one style for the "heading", which is consistent to the APA manual not an own paragraph (sorry, not my idea...), and another style for the following text. As my example above shows, the heading is followed by usual text and I may not press return after the heading and switch to a new paragraph..
    It has to look exactly like this:
    +heading in italics.+ Now heading is followed by usual text without changing the paragraph or starting a new line. Blurb blurb blurb whatsoever blurb blurb. The text goes on an on and an on you see.
    I can't format the heading differently than the text (because if I try, the whole paragraph is formatted this way) and so I can't add just the heading to the TOC. Do you see what my problem is? Got any other suggestion?

  • Although my ipod shows the number of steps, calories, and time, it no longer is saving it to the history. also when I open the history it takes me to May 2010 instead of the current date. Any ideas on how to get it to start recording the history again?

    Although my ipod shows the number of steps, calories, and time, it no longer is saving it to the history. Also when I open the history it takes me to May 2010 instead of the current date. Any ideas on how to get it to start recording the history again?

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable                     
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar
    The missing apps could have been done by setting the Restrictions that can hid those apps. If the backup was made with those retrictions set the the Restrictions are also restored.
    Thus, if you get it to work restore to factory settings/new iPod, not from backup                               
    You can redownload most iTunes purchases by:        
      Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • How do I get my tabs back into the main window?

    I've had a problem with an add-on displaying a small extra window every time I open a session for some months now: I know you're supposed to try disabling and re-enabling every add-on you've got to find out which one is responsible, but this is a work computer and with all the add-ons I have, it would take too long, so I've just closed the extra window every time and got on with my work. However, for some reason today my forty-odd tabs have all opened in the small extra window, which has no tab bar, navigation bar or menu button. How do I get my tabs back into the main window of Firefox, or alternatively get that window to behave like a normal Firefox window so I can use it?

    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    *http://kb.mozillazine.org/Multiple_profile_files_created
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder

Maybe you are looking for

  • How to hyper link the text that comes from database ?

    Hi all, Jdev Ver :11.1.1.4.0 I have one usecase like, to highlight(using af:commandlink) the keywords from some content.. And i have some set of keywords, and where ever the keywords appears in the content i need to show those words as a af:commandli

  • How to send only email from workflow

    Hi Guys, I want to send an email from a workflow without sending a notification ... how do i do it ? Thanks In advance Tom.

  • DVD movie help please

    Hi I hope someone can spare some time to help me resolve a problem I have. My wife has made a file in imove consisting of pictures, video and music. We then burned a DVD in toast 7 ( DVD video setting). It plays fine on PC but wont in front row ( the

  • Php to plsql

    can some one help me in converting this php code to plsql procedure to handle response code from authorize.net' gateway's response so that i can call it like http://mysite.com/!my_proc < ?php // Get the subscription ID if it is available. // Otherwis

  • Opening AR on a Mac

    How can I get my installed Adobe Reader to open up on my Mac OSX 10.7?