Create, Edit and Display Longtexts

Hi All,
I have a question about creating, editing, displaying and deleting longtexts (like sapscript longtexts).
I am creating a custom transaction (Module pool program) for BUDGET DISTRIBUTION REQUEST where in i need to give the user a provision to enter longtexts for PROJECT OBJECTIVE and JUSTIFICATION.
What i know is we can save and read the texts using SAVE_TEXT AND READ_TEXT FM's but it needs object id/object name. As we are storing all the data for this transaction in custom tables i dont know how to have this OBJECT NAME/ID.
How do you do this?
Please help me out...
Thanks in advance,
Vijay

HI,
    use below code
REPORT ZTEST102.
DATA IT_LINES LIKE  TLINE OCCURS 0 WITH HEADER LINE.
IT_LINES-TDFORMAT = '*'.
IT_LINES-TDLINE = 'text'.
APPEND IT_LINES.
CALL FUNCTION 'CREATE_TEXT'
     EXPORTING
          FID         = 'ST'
          FLANGUAGE   = SY-LANGU
          FNAME       = '09999'
          FOBJECT     = 'TEXT'
        SAVE_DIRECT = 'X'
        FFORMAT     = '*'
     TABLES
          FLINES      = IT_LINES
     EXCEPTIONS
          NO_INIT     = 1
          NO_SAVE     = 2
          OTHERS      = 3.
FREE IT_LINES.
CALL FUNCTION 'READ_TEXT'
     EXPORTING
        CLIENT                  = SY-MANDT
          ID                      = 'ST'
          LANGUAGE                = SY-LANGU
          NAME                    = '09999'
          OBJECT                  = 'TEXT'
        ARCHIVE_HANDLE          = 0
   IMPORTING
        HEADER                  =
     TABLES
          LINES                   = IT_LINES
     EXCEPTIONS
          ID                      = 1
          LANGUAGE                = 2
          NAME                    = 3
          NOT_FOUND               = 4
          OBJECT                  = 5
          REFERENCE_CHECK         = 6
          WRONG_ACCESS_TO_ARCHIVE = 7
          OTHERS                  = 8.
LOOP AT IT_LINES.
WRITE:/ IT_LINES.
ENDLOOP.
<b>text will be stored in table stxh,stxl.</b>
Regards
amole

Similar Messages

  • Create Separate Views for New,Edit and Display forms in Infopath

    Hi,
    I need to create a separate views for New, Edit and Display forms in infopath.
    For ex : I need a Submit Button on Display form and not in New/Edit forms.
    I tried, but i amnot able to get the changes.
    Regards, Shreyas R S

    I just validated my approach in a 2013 farm, this is precisely how it's done!
    Step 1) List > Display Form
    Step 2) Change the View within the Web Part Properties. In your screenshot it looks like you simply went to View Item on the single item, which is not the direction I gave =P.
    **Assuming you've already created the multiple views within InfoPath, this allows you to set them up as distinct defaults for New, Edit and Display, let's make that clear. If you are not even to the point of having separate views, that is just in InfoPath,
    Page Design tab, far left, New View button

  • What is tthe Best practice for Variant List, Add, Edit and Display Forms?

    Requirement:
    I have single list.  The list has a large number of columns and a large number of items (lets say 20,000).
    I want to show users a different view of the list based on clicking on a different left-hand navigation option.
    Lets say I have four types of users:  Sales, Manufacturing, Shipping and Finance. I would like to have four options in the left-hand navigation.
    All of them would be pointing at the same list, BUT, I want each of them to have a customer list form.  The only difference between the custom list forms would be:
    Each would have its own set of views, and hence its own default view.
    Each would have its own New, Edit and Display Forms.  The only difference between the forms in one variant list and another would be: The order of the columns and which columns are modifiable.
    I would like to achieve this in SharePoint Designer in such a way that the "users" could still add/modify views and could even modify the forms from the SharePoint Menu.  BTW, I don't want to use InfoPath for obvious reasons.
    What is the best approach to meeting this requirement?  I have at least 20 sites and 70 lists overall that need variant forms made.
    HELP!!
    Savin
    BTW We are using SharePoint 2013 and I selected the wrong forum *sigh*.  But I think its probably the same answer.
    Cheers, Savin Smith

    Hi,
    I understand that you want to have different forms based on different view.
    Per my knowledge, there are no out of box method to achieve it.
    As a workaround, you can add the JavaScript code to the different view page.
    For example, to open different new form based on different view, you can get the windows.location, and then judge the view, then change the onclick event of the "New item" button.
    For more information, you can refer to:
    http://css-tricks.com/snippets/javascript/get-url-and-url-parts-in-javascript/
    http://samsharepoint.wordpress.com/2013/05/01/change-the-default-sharepoint-ok-and-cancel-button/
    Thanks,
     Linda
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Can VMD_EI_API handle Create, Edit, and Delete Vendor Master records?

    Hi Everyone,
    I have a development that requires to create, edit, and delete vendor master records through a webportal ui. Technically, it will be a background process in SAP because it must not have a dialog screen. In my search so far, there is no standard BAPI or Function module that can handle this one.
    Can the class VMD_EI_API handle the requirements?
    Regards,
    John

    Hi,
    Yes, You can use this class to create/modify/delete vendor master data. You can find in SCN documents with example how use it.
    Jarek

  • Edit and display XML in an efficient way

    Hello,
    for quite some time now I searched the internet, this forum and some other forums but I couldn't really find an answer.
    My first question is, which 'technology' should one use to build an XML-Editor, i.e. how can XML-files be efficiently loaded, displayed, in a JTree or JTable, and edited (i.e. add and remove elements and save the XML-file again)?
    The only 'technology' I can think of is DOM/JDOM (that's what I've read on many websites) because one needs the XML-file in memory to edit it. So SAX doesn't help here, does it? But DOM/JDOM is very inefficient because the DOM-tree has to be build and is quite big in memory, at least it's said to be, because I have XML-files which are several MB big. And actually I want to display more than one file in the application (e.g. with a JTabbedPane) so that they can be displayed and edited simultanously. But that means the tree for each file has to be in memory so, I thought this would consume to much memory. And I think it's not a good idea to write the file back when it's not displayed.
    Another thing is that I want to be able to search the XML-file so, I think, it's only possible with DOM/JDOM because you can use XPath. I don't know how to search an XML-file fast with an other 'technology'.
    If the XML-Schema is know, I could use JAXB, but then I don't really know how to search the XML.
    Which 'technology' do the 'professional' XML-editors use?
    My 2. question is, if there's maybe an library etc. that already implements editing and displaying for XML-files, which one can use in an application.
    I'd really appreciate any ideas.

    What you could do is use a SAX parser to parse the XML document and build the JTree. Tree the JTree like an XMl Tree. when the user want yo save the Tree, then write the Tree out to an XML file. THere is no need to have the DOm for the XML; however, to let user have the ability to perrform XPATH, you have to write code for it.
    14 MB is not a lot, so i would stick with using a JTree and have each TreeNode associated with an Element in the DOM. Parser are pretty fast..it shoiuld probably not takes more than one or two seconds to parse a 14 MB XMl file. Now, if the user have a 100+ MB file, then it may become a problem. In all, your application will probably require at least 100MB just to render the XML tree.
    You can also write a class that will parse the XML document...and serialize the DOM to a file. you can break up the dOM into sevral document object (and store them in a file)..to allow you to traverse faster. Your application (class) will read in the necessary document and work with it. THere are two problem here:
    1. IO operations are very expensive. however, most of the time, the application will not be calling for the document file. It takes time for user to type than it would for the application to save user update to a file..so during this time, a Thread can be spawn to perform updating the document (synchronization required)
    2. The code is complex..you have to make sure the serialized document is updated. you have to come up with an algorithm (design) on fetching these document object, etc..
    Many XML editor I see use the simplier approach..loading the whole XML document to a DOM. .. so 100MB document will require 100+ MB of memory space available..This approach is easy..fast..bt require memory.
    There is a trade off..speed, easy vs memory.
    It's upto you to determine which path you want to go..you can't have everything.

  • IPAD and Powerpoint (PPT) create, edit, and email

    I am an independent consultantant and would like to give up my computer for travel.  I create, edit, and email Powerpoint presentations often.  How does this work on the ipad now?  Is this feasible/seamless now?  I love iphone but concerned about PPT use.

    As far as I know there is no powerpoint app but you could check out keynote. Then just use the adapter to mirror the device.
    http://www.apple.com/ca/ipad/from-the-app-store/keynote.html

  • How to create links and display information dynamically depending on search

    hi everybody
    I have a search textbox in which the user has to give the search string like date of birth. For the search string , records will be retrieved from the database. The number of recordds will vary. Only the names of the corresponding person has to be displayed. Each one will have a hyperlink and on clicking the hyperlink the other information like name,address should be displayed.
    I have displayed the names in JSP. How to create a link for each name and display the other details corresponding to same person? The number of records retrieved will vary depending on the date of birth. Thanks in advance.

    Hi,
    what i had done in my project was, getting the collection of results for the search query i.e By giving the date of birth, you will get the matching names as collection and iterate this collection like
    <%
    Collection nameCollection = (Collection) request.getParameter("NameCollection");
    Iterator ite = nameCollection.iterator();
    String name = "";
    for (int i = nameCollection.size(); i > 0; i--)
    name = iterator.next();
    %>
    <A HREF = "http://MyWebSite/destination.jsp?name = <%name%> "><%name%> </a>
    <%}%>
    For the above code, in Href i am using name in two places. one is for display. i hope you dont have any problem in this
    Another one for getting the information about the particular name. use request.getParamter method in the destination Jsp and do one more DB call by using the input parameter.
    Note: This is working only unique Name. otherwise use HashMap for getting the userId and Name. By passing the userId in the backend we can get the information.
    I hope this will helpful to get out of the issue
    Regards
    Balakrishnan.R

  • How to Create, Edit, and delet Alerts in sharepoint using COM or REST API

    I need to create,Delete and  Alerts using Client object model or REST API , I know It's available on server objetc model , but in client side how do it , 
    Anu ideas 

    Hi,
    According to your description, my understanding is that you want to create, delete and edit SharePoint alerts using Client Object Model or Rest API.
    In SharePoint Client Object Model, there is very little that you can achieve when it comes to alerts.
    For changing alerts, there is a ChangeAlert class:
    change alert class
    For Deleting alerts, you can call deletealert web service:
    DeleteAlerts
    For creating new alerts, it seems no such API support this, a workaround is call the new alert form "SubNew.aspx" using JavaScript to achieve it.
    More information:
    http://www.learningsharepoint.com/2013/09/17/client-object-model-doesnt-support-creating-sharepoint-2013-alerts/
    Thanks
    Best Regards,
    Jerry Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • XML Creating, editing and saving! ;D

    Hey!
    So, here's what I want to do:
    When the users loads the Flash File, I want the ActionScrip to create an XML file that says:
    <id="000000" tutorial="no" name="000000" coins="3000">
        Now, I want the flash file to see that the user hasn't completed the tutorial.. and if it says NO it should load: tutorial.swf
    Then, once the tutorial.swf end, after the final button is clicked I want it to edit the XML file so that tutorial="no" is replaced with tutorial="yes" and it loads 'user.swf' And when the FlashFile is reloaded, it checks that the tutorial="" says yes, and it skips out tutorial.swf and it goes straight to user.swf..
    If it's not clear I'll show it below:
    Load tutorialcheck.swf
    If tutorial="" says no load tutorial.swf
    If tutorial="" says yes load user.swf
    Load tutorial.swf
    If tutorial is complete, on final button click edit XML and say tutorial="yes", then load user.swf
    Thanks!

    Hi
    Although not directly related to your problem, you can find an example of loading, editing and saving xml here.
    I have created a demo of Loading,Editing & Saving XML To/From Flash.
    You can find the Demo here http://demo.thefeldkircher.org/flashxml/xmlles/xmlls.htm
    You can find the How-To here http://blog.thefeldkircher.org/?p=262
    Hope it helps.

  • Collaboration - Creating rooms and displaying to a specific group

    Hi,
    I am new to enterprise portals. Can anybody guide me in this context?
    I want to create some collaboration rooms which would be specific to groups. Eg. The Students should be able to see rooms specific to their subject. The professionals should be able to view the collaboration specific to subjects that they have selected in their profile. Administrator should be the only user who can create rooms and manage it.
    I see about the roles in the book but i am a bit confused.
    How do i do that?

    Ramachandran Reddy,
    Just goign through the forums found the question unanswered. i have done the process what you have asked for.
    1)      If you want to create Collaboration Rooms and assigning member's to the room created you should have a role assigned to you i.e. eu_role.
    2)      To assign those roles go to User Management and assign to your User or can ask the System Administrator to do it.
    3)      After assigning the role you will see New WorkSet assigned to you in the Portal i.e. Home.
    4)      In the top Navigational area go to Content Administration. Click it
    5)      Go to Collaboration Content. Click it.
    6)      On the left side Detailed Navigational area you will find Room Creation link. Click it.
    7)      That will open a New view on right side panel where you provide the details to create a Collaboration Room like
                 a) Name : Collaboration Room Name
                 b) Description : Give some description about the room you are creating
                 c) Owner: Generally as you are logged in, so the Owner will be you, but if you want to change the user you can also do it.
                d) Categories: Select any one of the categories.
                e) Template: There are Meeting templates, Project Template & Team template, depending upon the requirement you select the required template.
                    You can also create your own template
    Process to Create Room Template: On left side navigational area you will find a link "Room Template Administration". Click it.
                  I. You will see a New Template tab, click it
                  II.      A view is displayed where you need to give the details for the creation of Room template. In the Workset option box choose the option where you want to create the template. Click next.
                 III.      Add the role and give the required page permissions. Click next.
                 IV.      Incase you want to extent the then you can also extent the template. Here you can select the user's who can use the template you have created.
                 f) Choose the Room Type, it can be a Public, Private and Restricted and also in the add the members.
                 g)      When you click the Select button a new window is opened, just enter the user's name and add them to the room created. Click next.
    8)      A New Collaboration room is created and members are added to them.
    9)      Now if you want to send some messages or documents to the member's then go to the Top level Navigational and there you will find Home tab. Click it
    10)  Goto the Work in the navigation panel select the room you have created.
    11)  Choose the member from the memberlist , now depending upon the requirement send email or instant message to the user.
    if you feel the process is useful please reward points.
    regards
    Anil Dichpally

  • Switch between Edit and Display mode in an input layout?

    Hi,
    I want to create a button in my planning layout which is input ready,  that makes it able to change between display mode and edit mode.
    I'm on BI 7.0. And I am using Analyzer/Workboook.
    Is this possible using 'SET_DATA_ENTRY_MODE' command?
    If Yes,  Where should I put this  command ? I can't  find this in Button Properties.
    Please explain in detail.
    Thanks,
    Srini.

    Hi,
    This is the correct command. In the button properties, you need to select 'command via command wizard'. There you should select this command and customize it according to your requirement (on/off).

  • JFormattedTextField with edit and display formatter for date

    How can I have a date display formatter and a edit mask date formatter for JFormattedTextField instance.
    When I do
                   DateFormatter dateFormatter = new DateFormatter(new SimpleDateFormat("dd/MM/yyyy"));
                   JFormattedTextField.AbstractFormatterFactory factory = new DefaultFormatterFactory(dateFormatter, dateFormatter, dateFormatter);
                   jFormattedTextField_2.setFormatterFactory(factory);
    all is okie but I wanna a mask formatter and if I do
                   DateFormatter dateFormatter = new DateFormatter(new SimpleDateFormat("dd/MM/yyyy"));
                   MaskFormatter editFormater = new MaskFormatter();
                   try {
                        editFormater.setMask("##/##/####");
                   } catch (ParseException e) {
                        e.printStackTrace();
                   editFormater.setPlaceholderCharacter('_');               
                   JFormattedTextField.AbstractFormatterFactory factory = new DefaultFormatterFactory(dateFormatter, dateFormatter, editFormater);
                   jFormattedTextField_2.setFormatterFactory(factory);
    jFormattedTextField_2 accepts invalid date.
    What can I do to have a date edit mask and a date display mask for a
    JFormattedTextField instance.
    Thx a lot, Tony.

    txtdatnalzaproizvoid = new JFormattedTextField(datformater("##/##/##"));
    txtdatnalzaproizvoid.setValue(datumformat());
    public static MaskFormatter datformater(String formatnavnes){
    MaskFormatter formatter = null;
    try {
    formatter = new MaskFormatter(formatnavnes);
    formatter.setValidCharacters("0123456789");
    } catch (java.text.ParseException exc) {
    System.err.println("formatter is bad: " + exc.getMessage());
    System.exit(-1);
    return formatter;
    public static String datumformat(){
    Date dddd = new Date();
    SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yy");
    datumformat = formatter.format(dddd);
    return datumformat;
    }

  • Date and Time Edit and Display - allowable entries

    Greetings!
    I have the following issue:
    I am converting IBM Filenet e-forms to Adobe Livecycle XFA forms.
    In the xml package that is currently being delivered to the Filenet e-forms is the following Date/Time element data:
    1972-09-01 12:00:00.0
    In the Patterns... for either Data or Display there does not seem to be a setup that includes the ".0" on the end of the Time data. The best that I can seem to do is {HH:MM:SS}.
    Does anyone know if there is the ability to add the ".0" to the end of a Data or Display Pattern?
    Thanks in advance.
    Best regards,
    Rick Kuhlmann

    Hy,
    try this pattern
    date{YYYY-MM-DD} time{HH:MM:SS'.0'}

  • How to make create, edit, display form in a page fragment ?

    Hello everyone,
    I have a problem when I want to make create, edit,display in a page.
    Ok let's say we have created two pages,
    In page A we have 3 buttons, CreateEmp, EditEmp and DisplayEmp button and one text field as a parameter field to edit and display (let say employeeId).
    In page B we have form employee to create new employee, edit employee and display and a button AddMoreEmp (to add more employee without back to page A)
    in this case if button EditEmp is pressed in page A, so button AddMoreEmp in page B will be enabled
    if button DisplayEmp in page A is pressed , so button AddMoreEmp in page B will be disabled.
    Thanks in advance,
    samantha

    I think what you are looking for is a comb field. It acts like a regular field but puts the vertical lines in between each character. You can turn the comb on in the object palette and indicate how many chars will appear in the field (so that it knows how many lines to draw).
    Paul

  • Create Edit Delete in Oops ALV

    Hi Experts,
    I need to create an ALV which will provide all the functionality of Create, Edit, Save and Delete records and update the Custom table accordingly.
    I want to design it as follows -
    1. Display should be in non-ediatble mode initially (because I don't want to make it completely ediatble at all times)
    2. When the user clicks Create button a new line appends at the bottom and the ALV has to be made editable, for the values to be entered at the new row appended.
    3. When the user presses Save, again the ALV goes into non-ediatble mode.
    4. When the user presses Edit Button, the ALV is open for editing and again the whole ALV is editable. After Editing, the user will select those particular lines through Box Button and Press on Save Button to enable those particular lines to be modified and saved in ALV. Again at the press of Save button, the ALV will switch to Non-modifiable view.
    5. For Deletion, select the particular line/lines through Box Button and Click on Delete.
    This is how I plan to achieve the Create, Edit, Delete Functionality.
    Can you please confirm the feasibilty of this Design, whether it is achievable.
    There is some option of dynamically changing the Field Catalogue. If it is there, I'm thinking of utilising it for switching the modes on click of Create, Edit and Save Buttons. Click/Edit --> Modifiable. Save --> Non-modifiable.
    Please do give your comments on the above functionality and feasibility. If you are knowing a different or easy approach please do share it. If you have done it then please do share it.
    Thanks & Regards
    Tanu

    Plz ask your specific requirement otherwise mosarator will block the thread...

Maybe you are looking for

  • Use of xdofx:Instr function in a RTF template

    I'm trying to use the xdofx:Instr function within a RTF template but am running into problems because the code produces an error. The following code worked before the data changed: <?if:number(DS_SEQ)=1 and( M_TRANTYPE='F')?> Now my M_TRANTYPE comes

  • Selection screen :data retrieval

    how to pass the contents of each individual input fieldfrom the selection screen to the ABAP program.My selection screen is SELECTION-SCREEN BEGIN OF BLOCK ID WITH FRAME TITLE TEXT-001.    SELECT-OPTIONS:                     EBELN  FOR EKKO-EBELN NO

  • Guest portal using ACS to authenticate against AD

    Running ACS 5.3, I have a Wireless Access policy that authenticates wireless users either by mac address, AD user name or computer name, depending on what AD groups the accounts belong to.  My Network Authorization policy has rules because only certa

  • GAHHHH! Dead line coming up really fast! HELP PLEASE!

    I finished a project on imovie 09 and I imported it into idvd. I watched it through the idvd application before burning it and there is audio playing on top of my actual audio from clips in my library that I'm not even using on the project. I need he

  • Adobe Illustrator 7.0 install on Mac.

    I purchased old Adobe Illustrator 7.0, but I can not install it on Mac mini.  Could you tell me how to install it on my Mac Mini? Because when I tried to install it, but after insert the CD-ROM one window comes out as follow as: you can't open the ap