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

Similar Messages

  • How to create a long text

    Want to create a long text field in Module pool table.
    How to create object, Object id? As text description for the Object id is to be copied into report.
    Ex. Form Header text is maintained in sales documents.This text is copied when description for object idis copied into report, if selected.

    Hi ABHISHEK,
    long texts can be created using FM SAVE_TEXT. Because text handling goes through special text memory, you need additional COMMIT_TEXT to store it on database.
    Object an ID are created in customizing.
    SAVE_TEXT will take ID, OBJECT, NAME, LANGUAGE and the textlines for import.
    Regards,
    Clemens

  • 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 in webdynpro for abap?

    Hi Experts,
                      I am new to Web Dynpro for ABAP, I have a requirement for Grievance workflow. For this we have developed a Webdynpro application which appears in portal. Here my issue is user wants to enter a long text on the screen and I have to save this text as standard text. Is it possible to create a text box which we can insert number of lines?
    If so can anybody please suggest me how to resolve this issue.
    Thank You.
    Ranganadh.

    hi ,
    u can use the TEXT EDIT UI element , procced like this :
    1 Right click on Root Element UI container , insert elemnt TEXT EDIT
    2 create a context attribute of type string or string_table
    3 bind value property of ur UI to this attribute
    4 u can get the values entered in the text UI by user , by get_attribute method
    press CNTRL + F7  , select the radio button read context node/attribute , select the corresponding attribute
    The attribute to be bound can be of type STRING or STRING_TABLE. With STRING_TABLE rows from TextEdit are stored as table rows. A line break is always stored as a line feed in a STRING (CL_ABAP_CHAR_UTILITIES=>NEWLINE, ASCII decimal 10). The Web Dynpro framework carries out the conversion for the client platform.
    Note that a string to be displayed in TextEdit, must only use a line feed as a line break.
    refer this online help :
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/06/45ee412e5e6324e10000000a1550b0/content.htm
    regards,
    amit

  • How to create customized long text in IDOC status record in WE02?

    Hi,
    In WE02 you can see the status of the idoc. If you double click on the short text that is coming in the status, you can see the long text. How do i customized my long text to that screen?

    To create a message long text in SE91:
        1. Place the cursor on the corresponding message.
        2. Click the Long text pushbutton.
        3. Enter the long text.
        4. Save the data.
    Edited by: YTL on Jun 27, 2011 5:51 PM

  • How to create a long text in VF01 before saving the document

    Hi,
      Im tring to create a perfama invoice with the help of delivery number and document type (F8) , by pressing the enter key im going to the second screen, once i get into the second screen im suppose to get the Header text and Item text, i.e long text for both header and item..
    Can u please help me to solve this issue.
    Thanks,
    Reni

    Hi
    Generally in the Sales Flow all the Header and Item texts from sales order are copied into Delivery when it is created and when you create a Invoice using that delivery all those texts are copied into the invoice. check with functioanl consultant once and see.
    We can also create/upload  the texts explicitely using the fun modules
    CREATE_TEXT and SAVE_TEXT .
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to create a long text in phrase

    The text in phrase allows only certain limit. How can we enable to have long text and how to open it and put long description .
    Regards,
    M D

    Dear M D
    this is a very basic  question in use of EHS. PLease check: SAP EHS Management for Beginners
    You will find may be some help
    C.B.

  • Creating a long text using ABAP code.. fm SAVE_TEXT

    When you create an order via IW31 one of the options is to click on the text button and create a long text. I am basically trying to mimic this action from within my ABAP code.
    The text id details are as follows:
    Text Name       500000015000046  which is (5000000 + order number)
    Language        EN
    Text ID            KOPF         Order header text
    Text Object      AUFK       Order text
    If i manually create the text within the transaction i am then able to view and update it via function modules READ_TEXT and SAVE_TEXT. But if the text has not already been created READ_TEXT obviously returns nothing as it does not exist and SAVE_TEXT does not seem to created it!
    Anyone know how i would go about creating this text using ABAP code?
    Hope this make a bit of sense
    Thanks in advance
    Mart

    I have implemented the code as i think it should be. See below, can any see what is wrong. If i add init_text it makes no difference and adding the commit_text just makes it hang
    DATA: IT_TEXTS type standard table of TLINE,
           wa_texts like line of it_texts,
           wa_txtheader type THEAD.
    wa_txtheader-TDID     = 'KOPF'.
    wa_txtheader-TDSPRAS  = 'EN'.
    wa_txtheader-TDNAME   = '500000015000056'.
    wa_txtheader-TDOBJECT = 'AUFK'.
    wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
    wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
      wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
    wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
    wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
      wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
    CALL FUNCTION 'SAVE_TEXT'
      EXPORTING
        CLIENT                = SY-MANDT
        HEADER                = wa_txtheader
        INSERT                = 'X'
       SAVEMODE_DIRECT       = ' '
       OWNER_SPECIFIED       = 'X'
      LOCAL_CAT             = ' '
    IMPORTING
      FUNCTION              =
      NEWHEADER             =
      TABLES
        LINES                 = IT_TEXTS
    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.

  • How to create a OTR Text in Web Dynpro ?

    Hi All,
    Please help, How to create a OTR Text in Web Dynpro ?
    Urgent.
    Thanks in advance.
    Kaleem.

    Hi Kaleemullah,
    To create OTR Text, T-Code is SOTR_EDIT. If you run this transaction then one screen will appear. There you can choose Long Text or Short Text based on your
    Text. You can choose language also. In Text field you can enter your text. You can put WDYV in your Object Type field. In Text block Length can be increased to 25 as it may be problem if language conversion of Text happens. You must fill your package field and save the OTR.
    I hope you can be able to create OTR Text now.
    Best Regards,
    bansidhar

  • Is it possible to Create a Long Text Field (more than 255 Char Long)?

    Is it possible to Create a Long Text Field (more than 255 Char Long) as like Description field in Service Request Object??
    Thanks!

    Hi
    User can only create custom Long text field (255 Charcter) . Currently system does not support custom note creation

  • In DeskI, what's the maximum for "Limit size of long text objects"? 2000?

    In Universe Designer, we have a setting which is "Limit size of long text objects", it can control how many characters can be displayed for long text objects.
    The problem is that in DeskI, we can only display 2000 characters even we set 2500 or more in Universe Designer by "Limit size of long text objects". But if we use the same Universe & same Database, WebI can show 2500 or more characters for long text objects.
    So does it mean in DeskI the maximum value for "Limit size of long text objects" is 2000?

    Hi Jason,
    Check that the object in the universe is set to data type "long text".
    Also check that the object itself is not limiting the length of the string, as well as that the entire string is actually in the database... the data type here could also be the issue.
    Hope this helps
    Jacques

  • HELP! PDF objects - How to create a program line object?

    Hi Experts,
    I would like to know how to create a Program lines object (icon cog wheels). I need to create additional coding inside the context tab but when I try to right click on a folder --> create -->graphic,address,text,alternative...single record... No
    program lines can be created.
    Hope someone could help me.
    Thanks,
    Jeff

    There are two ways of doing it, depending on what you want to accomplish. Both require that you edit the file ~/.bashrc (I assume you use bash)
    1) If the application places all the executable files in a given directory (let's say /opt/Application/bin/), you can access all those executables directly by simply telling your shell where to look (in the same way the shell automatically looks for executable files in eg. /usr/bin). In ~/.bashrc, you would have to add a line that looks like this:
    PATH="$PATH:/opt/Application/bin"
    2) If you just want to make a traditional "shortcut" that executes a given command, this can be done with alias. Add this command to your ~/.bashrc:
    alias shortcut="some command"
    In this case, typing shortcut into a terminal will be interpreted just like if you had typed some command instead.
    In order to try out these changes, either restart your terminal or run this command:
    source ~/.bashrc
    [EDIT]
    I was obviously beaten to it
    Last edited by Peanut (2009-05-26 23:12:47)

  • How to create transport request in object transport

    How to create transport request in object transport from server to server
    thanks in advance
    arya

    hi,
    when ever u r creating any object in devlopment and saving it will ask for request.create request and release in se09.
    put mail to basis people to transport ,thy will transport using STMS transaction.

  • How to create Using Formatted Text Field with multiple Sliders?

    Hi i found the Java Sun tutorial at http://java.sun.com/docs/books/tutorial/uiswing/components/slider.html very useful, and it tells how to create one Formatted Text Field with a Slider - however i need to create Formatted Text Field for multiple Sliders in one GUI, how do i do this?
    my code now is as follows, and the way it is now is scroll first slider is okay but scrolling second slider also changes value of text field of first slider! homework due tomorrow, please kindly help!
    // constructor
    label1 = new JLabel( "Individuals" );
    scroller1 = new JSlider( SwingConstants.HORIZONTAL,     0, 100, 10 );
    scroller1.setMajorTickSpacing( 10 );
    scroller1.setMinorTickSpacing( 1 );
    scroller1.setPaintTicks( true );
    scroller1.setPaintLabels( true );
    scroller1.addChangeListener(this);
    java.text.NumberFormat numberFormat = java.text.NumberFormat.getIntegerInstance();
    NumberFormatter formatter = new NumberFormatter(numberFormat);
            formatter.setMinimum(new Integer(0));
            formatter.setMaximum(new Integer(100));
    textField1 = new JFormattedTextField(formatter);
    textField1.setValue(new Integer(10)); //FPS_INIT
    textField1.setColumns(1); //get some space
    textField1.addPropertyChangeListener(this);
    //React when the user presses Enter.
    textField1.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),  "check");
            textField1.getActionMap().put("check", new AbstractAction() {
                public void actionPerformed(ActionEvent e) {
                    if (!textField1.isEditValid()) { //The text is invalid.
                        Toolkit.getDefaultToolkit().beep();
                        textField1.selectAll();
                    } else try {                    //The text is valid,
                        textField1.commitEdit();     //so use it.
                    } catch (java.text.ParseException exc) { }
    label2 = new JLabel( "Precision" );
    scroller2 = new JSlider( SwingConstants.HORIZONTAL, 0, 100, 8 );
    scroller2.setMajorTickSpacing( 10 );
    scroller2.setMinorTickSpacing( 1 );
    scroller2.setPaintTicks( true );
    scroller2.setPaintLabels( true );
    scroller2.addChangeListener(this);
    textField2 = new JFormattedTextField(formatter);
    textField2.setValue(new Integer(10)); //FPS_INIT
    textField2.setColumns(1); //get some space
    textField2.addPropertyChangeListener(this);
    //React when the user presses Enter.
    textField2.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),  "check");
            textField2.getActionMap().put("check", new AbstractAction() {
                public void actionPerformed(ActionEvent e) {
                    if (!textField2.isEditValid()) { //The text is invalid.
                        Toolkit.getDefaultToolkit().beep();
                        textField2.selectAll();
                    } else try {                    //The text is valid,
                        textField2.commitEdit();     //so use it.
                    } catch (java.text.ParseException exc) { }
    // State Changed
         public void stateChanged(ChangeEvent e) {
             JSlider source = (JSlider)e.getSource();
             int fps = (int)source.getValue();
             if (!source.getValueIsAdjusting()) { //done adjusting
                  if(source==scroller1)   {
                       System.out.println("source ==scoller1\n");
                       textField1.setValue(new Integer(fps)); //update ftf value
                  else if(source==scroller2)     {
                       System.out.println("source ==scoller2\n");
                       textField2.setValue(new Integer(fps)); //update ftf value
             } else { //value is adjusting; just set the text
                 if(source==scroller1)     textField1.setText(String.valueOf(fps));
                 else if(source==scroller2)     textField2.setText(String.valueOf(fps));
    // Property Change
        public void propertyChange(PropertyChangeEvent e) {
            if ("value".equals(e.getPropertyName())) {
                Number value = (Number)e.getNewValue();
                if (scroller1 != null && value != null) {
                    scroller1.setValue(value.intValue());
                 else if (scroller2 != null && value != null) {
                    scroller2.setValue(value.intValue());
        // ACTION PERFORMED
        public void actionPerformed(ActionEvent event) {
        if (!textField1.isEditValid()) { //The text is invalid.
            Toolkit.getDefaultToolkit().beep();
            textField1.selectAll();
        } else try {                    //The text is valid,
            textField1.commitEdit();     //so use it.
        } catch (java.text.ParseException exc) { }
             if (!textField2.isEditValid()) { //The text is invalid.
            Toolkit.getDefaultToolkit().beep();
            textField2.selectAll();
        } else try {                    //The text is valid,
            textField2.commitEdit();     //so use it.
        } catch (java.text.ParseException exc) { }
    ...

    if :p3_note_id is null
    then
    insert into notes (project_id, note, notes_month, notes_year) So, p3_note_id is NULL.
    Another option is that you have a trigger on table NOTES that generates a new note_id even for an update.

  • How to create and read text file using LabVIEW 7.1 PDA module?

    How to create and read text file using LabVIEW 7.1 PDA module? I can not create a text file and read it.
    I attach my code here.
    Attachments:
    File_IO.vi ‏82 KB

    Well my acquisition code runs perfect. The problem is reading it. I can't seem to read my data no matter what I do. My data gets saved as a string using the array to string vi but I've read that the string to array vi (which I need to convert back to array to read my data) does not work on the pda. I'm using version 8.0. So I was trying to modify the program posted in this discussion so that it would save data from my DAQ. I did that but I still can't read the data after its saved. I really don't know what else to do. All I need to do is read the data on the pda itself. I can't understand why I'm having such a hard time doing that. I found a possible solution on another discussion that talks about parsing the strings because of the bug in the "string to array" vi. However, that lead me to another problem because for some reason, the array indicators or graphs don't function on the pda. When i build the program to the pda or emulator, the array indicators are faded out on the front panel as if the function is not valid. Does this kind of help give a better picture of what I'm trying to do. Simply read data back. Thanks.

Maybe you are looking for

  • Help me identify problem for slow export on a powerful machine

    Hi, I am exporting an interview in Premiere Pro CC. It is 1:45:00 long and it has been 20 hours since, but the export is only 94% complete. Project & Footage: The footage is a combination of DSLR footage - 5D Mark III, GH3, 650 & 550D. The edit is al

  • 1st gen ipod shuffle is recognize by PC but not in Itunes 10.4.

    i was not using my 1st gen for a year now and decided to resurrect it now, when i plug it in my PC,itunes says that i should update it and reset,so i did.but after updating and resetng my shuffle, itunes cannot recognize it anymore.i tried all the st

  • After 10.6.4 update no connection to external drives

    After I installed yesterday's MacOS update release 10.6.4 (coming from 10.6.3) my iMac doesn't connect to any external hard drives, like my WinXP bootcamp partition or USB hard drives. USB sticks still work. Anybody experienced something similar?

  • Selection Sort and arrays

    Hey im trying to pass a selection sort into an array. Here is my code.... public class SortTest {      public static void main(String args[]) {           int[] array = new int[20];           SelectionSort ss = new SelectionSort();           Insertion

  • BlackBerry Curve 8520 BIS not connected

    Hi, I got a BlackBerry Curve 8520 at work and for some reason my BIS is not working, it says not connected and I cannot manage to fix it. The below is what I did so far. 1. Verified with my carrier (MTEL.BG) that I have all necessary data serivices e