Unable to create text using SAVE_TEXT FM

Dear Experts,
I' m trying to automaticly create a text in Create measurement Document (IK11 in PM) when notification is created . For this in program IMRC0004 on exit i put FM SAVE_TEXT but its not working as it should.
BAPI_ALM_NOTIF_CREATE & BAPI_ALM_NOTIF_SAVE is used to create notification & in order to create text SAVE_TEXT  is used.
But when the document is saved the specific text is not created. In debug the FM returns with no error.
Can anyone help me?

Hi,
try to check the FM READ_TEXT by passing the same parameters used in SAVE_TEXT and check.whether read text is working.
if read text is workingthen save text is working.
and also see the parameter    SAVEMODE_DIRECT import parameter in save_text if it is X it will save every tiome if it is space it will save at LUW(when Logical unit of work executes)
Prabhudas

Similar Messages

  • I am unable to create pdf using adobe printer to a redirected folder on a server running windows server 2003

    I am unable to create pdf using adobe printer to a redirected folder on a server running windows server 2003

    In the app-server-ant.xml file, as indiacted in the error message i am getting, at line 145 it is suppose to get the path to \bin\asadmin.bat from the value of a paramater called 'asadmin'. This value is being set in the beginning of the file.
    The parameter value of 'asadmin' is further referring to value of another parameter called 'javaee.home' which is being set in tut-install/javaeetutorial5/examples/bp-project/build.properties
    I have checked the values of both these parameters and they are set correctly, so since it is still giving me problems, at line 145 i hard coded the path instead of the parameter name:
    I replaced line
    <exec executable="${asadmin}" failonerror="${failonerror}" dir="${javaee.home}">
    with
    <exec executable="c:/sun/appserver/bin/asadmin.bat" failonerror="${failonerror}" dir="${javaee.home}">
    This works.

  • Unable to create delivery using ADSUBCON

    Hi Gurus,
    I am unable to create delivery using ADSUBCON transaction for the PO which has material with different Order Unit. My base unit of measure is EA where as the Order unit is Roll. If I delete the order unit system allows me to create delivery where the PO.
    Why the system does not allow me to create the delivery when the order unit is different than base unit of measure.
    Thanks in advance,
    Shashidhar
    Edited by: Shashidhar on Jan 29, 2011 5:19 AM

    HI,
    Its already been  maintained.
    Shashi

  • Upload Task List Operation long Text using SAVE_TEXT-Urgent

    Hi ,
    I am trying to create Task List Operation Long text using the function module ..
    SAVE_TEXT .I am passing the following keys
    Text Name       300ATEST057 0000000900000009
    Language        EN
    Text ID            PLPO Long Text
    Text Object     ROUTING    Texts for task list types
    But the long texts are not getting updated in the Task lists operations .
    Can anyone please suggest whether SAVE_TEXT will work for Operation long Texts or not Are we missing something
    .This is pretty urgent requirement .Award points are assured.
    Regards
    Sam

    hi,
    use function module create text
    check the sample code
    DATA: BEGIN OF itab OCCURS 0,
          asnum LIKE asmd-asnum, " Service No
          text(5000)  TYPE c, " Long Text
          END OF itab.
    *DATA: itab1 LIKE itab OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF itab1 OCCURS 0,
          asnum LIKE asmd-asnum, " Service No
          sequ  type i,          " Text Sequence
          text(5000)  TYPE c, " Long Text
          END OF itab1.
    To create Long Text lines for CREATE_TEXT function module
    DATA:BEGIN OF dt_lines OCCURS 0.
            INCLUDE STRUCTURE tline. " Long Text
    DATA:END OF dt_lines.
    Variable declarations for CREATE_TEXT function module
    DATA : dl_name TYPE thead-tdname, " Object Name
           dl_lan TYPE thead-tdspras. " Language
    Constants
    Object ID for Long Text of Service Master
    CONSTANTS:c_best TYPE thead-tdid VALUE 'LTXT',
              c_material TYPE thead-tdobject VALUE 'ASMD'. " Object
    for file splitting.
    DATA: start TYPE i,
          len   TYPE i VALUE 92,
          totlen TYPE i,
          n TYPE i.
    PARAMETERS p_file LIKE rlgrap-filename."input file
    At selection-screen on Value Request for file Name
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    Get the F4 Values for the File
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
        IMPORTING
          file_name     = p_file.
    Start Of Selection
    START-OF-SELECTION.
    *To Upload Flat file
      CALL FUNCTION 'UPLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'DAT'
        TABLES
          data_tab                = itab
        EXCEPTIONS
          conversion_error        = 1
          invalid_table_width     = 2
          invalid_type            = 3
          no_batch                = 4
          unknown_error           = 5
          gui_refuse_filetransfer = 6
          OTHERS                  = 7.
      LOOP AT itab.
        itab1-asnum = itab-asnum.
        CLEAR: totlen,n, start.
        totlen = STRLEN( itab-text ).
        n = totlen / len.
        n = n + 1.
        DO n TIMES.
          itab1-text  = itab-text+start(len).
          itab1-sequ  = sy-index.
          start = start + len.
          APPEND itab1.
        ENDDO.
      ENDLOOP.
      delete itab1 where text is initial.
      SORT itab1 BY asnum sequ.
      LOOP AT itab1.
        dt_lines-tdformat = '*'.
        dt_lines-tdline = itab1-text.
        APPEND dt_lines.
    Call the Function Module to Create Text
        AT END OF asnum.
          dl_lan = sy-langu.
          WRITE : / itab-asnum.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = itab1-asnum
            IMPORTING
              output = itab1-asnum.
          MOVE itab1-asnum TO dl_name.
          CALL FUNCTION 'CREATE_TEXT'
            EXPORTING
              fid         = c_best
              flanguage   = dl_lan
              fname       = dl_name
              fobject     = c_material
              save_direct = 'X'
              fformat     = '*'
            TABLES
              flines      = dt_lines
            EXCEPTIONS
              no_init     = 1
              no_save     = 2
              OTHERS      = 3.
          IF sy-subrc <> 0.
            WRITE:/ 'Long Text Creation failed for Service No'(001),
            itab1-asnum.
          ELSE.
            WRITE:/ 'Long Text Created Successfully for Service No'(002),
            itab1-asnum.
          ENDIF.
          REFRESH dt_lines.
        ENDAT.
      ENDLOOP.
    in text file give first field records in capitals
    regards
    siva

  • Unable to create text

    This is my first go at using Photoshop and after downloading PS6 on my home computer and laptop last night through Adobes subscription, I immediately ran in to an issue on both systems which run windows 7.  Issue:  I am unable to create any type of visible text or get the lines or curser to appear which show I am typing.  I have messed with the font (making it bigger/smaller) and my text color is different than my background and still no luck.  Once I type something however and start a new layer I can then see my text show up in the layers window on the previous layer.  Any suggestions on how to fix it would be appreciated.  I apologize if this question has already been asked and answered and I missed it.  Thanks in advance. 

    Try the following steps:
    Open 'Performance Preferences' as shown above. On Windows, this setting will be available under 'Edit' tab.
    See the 2 highlighted boxes on the screenshot above. Check if the 'Use Graphics Processor' option is enabled. If it is, click on '1' Advanced Settings.
    Choose 'Basic' as shown in the screenshot.
    Click OK and try creating text.
    If it still doesn't work, go back to 2nd screenshot, disable 'Use Graphics Processor' option by unchecking the box next to (2) as shown in screenshot and see if that fixes it.

  • Unable to create JVM using JNI

    Hai,
    I am new to java programming. I am trying to invoke native application using JVM. I have a written a pilot code in C using JNI. I am getting the following error when I try to run the binary. I think that the problem is from the fact that 1.2.2 is installed in
    /usr/bin directory (and is the default on the server). But I have set both
    LD_LIBRARY_PATH, PATH and path
    so that it points out 1.4.2. Here is the error
    unable to create JVM
    There was an error trying to initialize the HPI library.
    Please check your installation, HotSpot does not work correctly
    when installed in the JDK 1.2 Solaris Production Release, or
    with any JDK 1.1.x release.
    while building the binary I am using JDK1.4.1 header and lib files
    These are my compilation arguments
    g++ -g -I/opt/BES/jdk/jdk1.4.1/include/ -I/opt/BES/jdk/jdk1.4.1/include/solaris/ -L/opt/BES/jdk/jdk1.4.1/jre/lib/sparc/ -ljvm -ljava jniTest.C
    Help Needed
    Thanks
    Sunil

    I haven't seen this before. Could it be a disk space issue?
    Are you using JDevStudio or JDevStudioBase? And do you have your JAVA_HOME set? If you are using JDevStudio, try running JDev in a command window where JAVA_HOME is not set - I'm pretty sure JDev does NOT get confused about this but I haven't done extensive testing.
    Also you should try deleting and unzipping JDev again.
    Finally, search the JDev TP forum - there are some discussions there about this error and you may find an answer to your specific configuration - it doesn't seem to be a TP4 specific issue.
    JDeveloper and OC4J 11g Technology Preview
    Heidi.

  • Unable to create DC using software component

    Hi,
    I have created Software component, and later downloaded track into my NWDS but while I am trying to create DC using above Software Component which is in gray out.
    The software component does not support the selected development component type. At least one required DC is not visible.
    I am working on CE7.2,  NWDS v7.2 SP04 PAT0008
    Please let me know how to fix the issue. Appreciate your quick response.
    Thanks in advance.
    cheers
    dev

    Hi Dev,
    Please check required dependancy for the software component which you have created for CE7.2 track and make entries in the Name reservation for custom development. Once you modify then stop/start SLD server. then in the landscape configurator, do the update CMS.
    Please check all the required parameters in CMS are updated properly and you have checkin and imported component in checkin and development tab repestively in transport studio.
    Best Regards,
    Arun Jaiswal
    Edited by: Ervin Szolke on May 17, 2011 3:23 PM

  • Unable to create WebService using Wizard

    XML experts,
    I am following the 'How to...Send XML Data to BW' guide.  In Step 26, for BW 3.5, I start to create WebService using SE37 and use the Wizard.  I go thru all the steps as follows:
    Virtual Inteface:  Myservice
    Short Description:  Myservice
    Endpoint Type:  Function Module
    Check  Name Mapping box
    Function Module:  /BI0/QI6ASENDXMLDATATOBW_RFC
    Name:  Myservice
    Short Description:  Myservice
    Profile:  Basic Authorization: SOAP Pro
    If you select Complete, the following objects are created in the Object Navigator:
    The virtual interface Mydemo
    The Web service Mydemo
    The address of the Web service is default_host/sap/bc/srt/rfc/sap/Mydemo
    In addition, the Web service definition is released for the SOAP runtime.
    To find the address of the Web service, use the transaction WSCONFIG, which supports you when you publish a Web service in the UDDI.
    WHEN I PRESS COMPLETE, I get a message 'Object can only be created in SAP Package'.  I SELECT OK and get the CREATE OBJECT DIRECTORY ENTRY popup for entering package info for transport.
    <b>Question:  Is this normal?  I tried local object ($tmp) and ZBIW, but it does not take it.  Says, test object cannot be created in foreign namespaces.  What do I need to do to bypass this?</b>
    Thanks a lot!!

    Hi
    <a href="/people/baris.buyuktanir2/blog/2007/02/12/how-to-create-dynamic-configurable-web-services-easily-with-netweaver-development-components-part-i 1</a>
    <a href="/people/baris.buyuktanir2/blog/2007/02/12/how-to-create-dynamic-configurable-web-services-easily-with-netweaver-development-components-part-ii 2</a>
    Regards
    Abhijith Ys

  • Saving the Text using save_text FM

    Hi Abap gurus,
           i have to save the text in FB03 transaction.  i found the option called in the menu bar EXTRAS - > TEXTS. i have written the code as :
    *UPDATING THE DOCUMENT NUMBER
        l_header-tdobject = c_object.
        CONCATENATE s_bukrs w_output-belnr s_gjahr INTO l_name SEPARATED BY space.
        l_header-tdname   = l_name.
        l_header-tdid     = c_id.
        l_header-tdspras  = sy-langu.
        CONCATENATE 'GR NUMBER'
                    'GR ITEM NO'
                    'GR QTY'
                    'GR ASSIGN QTY'
                    'RUN DATE'
                    'LTL DATE'
                    INTO l_notes
                    SEPARATED BY space.
        ULINE.
        CONCATENATE w_output-mblnr
                    w_output-buzei
    *               w_output-gr_qty
    *               w_output-gr_assign_qty
                    sy-datum
                    t_ltldate
                    INTO l_notes
                    SEPARATED BY space.
        t_line_save-tdformat = '*'.
        t_line_save-tdline   = l_notes.
        APPEND t_line_save.
    *    CLEAR  t_line_save.
        CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
           client                 = sy-mandt
            header                = l_header
    *   INSERT                = ' '
           savemode_direct        = 'X'
    *   OWNER_SPECIFIED       = ' '
    *   LOCAL_CAT             = ' '
    * IMPORTING
    *   FUNCTION              =
    *   NEWHEADER             =
          TABLES
            lines                 = t_line_save
         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.
      ENDLOOP.
    my requirement is that
    i have to save header as  GR NUMBER',   'GR ITEM NO' ,     'GR QTY',     'GR ASSIGN QTY' ,   'RUN DATE',        LTL DATE'
                                               10                     20                       30                      15                         02..3.2012          03..03.2012
                                               20                     40                       50                      13                         02..3.2012          03..03.2012 
    how to print the header ?   i am not able to geting using the concatenate statement.

    should be done like the below, shouldn't it?
    data: lv_Gr_qty type char15,
             lv_gr_assign_qty type char15,
             lv_today type char10,
            lv_ltldate type char10.
    CONCATENATE 'GR NUMBER'
                    'GR ITEM NO'
                    'GR QTY'
                    'GR ASSIGN QTY'
                    'RUN DATE'
                    'LTL DATE'
                    INTO t_line_save-tdline
                           SEPARATED by space.
        t_line_save-tdformat = '*'.
        APPEND t_line_save.
       loop at some table into w_output.
          lv_gr_qty = w_output-gr_qty." (put it into char 15 or so).
          lv_gr_assign_qty = w_output-gr_assign_qty. "conver to char field
         write: sy-datum to lv_today mm/dd/yyyy,  "put into correct format.
                    w_output-ltldate  to lv_ltldate mm/dd/yyyy.
        CONCATENATE w_output-mblnr
                                   w_output-buzei
                                   lv_gr_qty            
                                   lv_gr_assign_qty      
                                  lv_today               
                                  lv_ltldate  
                    INTO t_line_save-tdline
                       SEPARATED BY space.
        t_line_save-tdformat = '*'.
         APPEND t_line_save.
        CLEAR  t_line_save.
       endloop.
    then call your save_text.

  • Append text using SAVE_TEXT

    I'm trying to append text lines to the existing data for a given text id. And it seems to replace it each time.
    Is there a way to do it?
    This did not work....call replaces the text data.
        call function 'SAVE_TEXT'
          EXPORTING
            header   = thead
            insert   = 'I'
          TABLES
            lines    = tline
          EXCEPTIONS
            id       = 1
            language = 2
            name     = 3
            object   = 4
            others   = 5.
        if sy-subrc <> 0.
        endif.
        CALL FUNCTION 'COMMIT_TEXT'.
        COMMIT WORK.
    Thank you,
    Pam

    Hi Pam,
    You need to use FM READ_TEXT and FM EDIT_TEXT then use FM SAVE_TEXT.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Creating text using outlines and gradients/fills

    I've been using pages awhile, and I make a lot of posters with it for my classroom. I know it has some limitations.
    I really want to take text, make a bold black outline of it (format > font > outline), and then fill it with a gradient, or at least a fill color. I am able to color, or outline, but not both, and I cannot find the option to make gradients except on backgrounds or shapes. Is there a way to do that in 2.0, before the next update?

    Welcome to the forums.
    This can indeed be done, but it is a very cumbersome process, because the text needs to be made into an object, and that can't be done from within Pages.
    The process involves creating the text in some external drawing application (such as Illustrator or the free Inkscape, saving the file as an SVG file, using svg2key to convert the SVG file into Keynote objects, then copying those from Keynote into Pages (which uses the same object format as Keynote).
    Once you have these as objects, you can reuse them as you like, changing their colour, stroke, and size like any other object, so you may only need to do this once for an "alphabet" that you reuse.
    I certainly do hope that the next update lets one create outline text directly within Pages.

  • Unable to create DSN using SQLConfigDataSource on windows 64bit

    Hi all,
    I have a 32bit application that needs to be ported and installed on to 64bit Win2k3 server.
    During installation of the product, Install script is failing to create a DSN using SQLConfigDataSource API on 64bit windows2k3 server.
    I installed 32 bit Oracle client(10.2) on the 64bit m/c, despite this, I am getting an error "ORA-12154: TNS:could not resolve the connect identifier specified, Driver's SQLSetConnectAttr failed"
    But when I invoke odbcad32.exe from "C:\windows\syswow64\", I am able to see all 32bit drivers and I am able to create the DSN and Test the connection successfully to a 64bit ORACLE 10g DB installed on the same m/c. I am even able to connect to the same database from the COMMAND PROMPT through the command "sqlplus" with same credentials and SID.
    Based on observations from the debug, I feel the Installer is picking up odbcad32.exe from "C:\windows\system32\" folder. Hence what I did was, I copied the 32 bit odbcad32.exe from "c:\windows\syswow64" folder into the above folder. At this juncture, the product Installer was able to create the DSN, but it is still failing to TEST the connection successfully and my Installer quits giving the above error.
    Can somebody help me out in this regard, about how I can overcome this problem. Is there something that I am missing ?
    Thanks in advance for your help.
    Regards,
    Murali.

    Thanks for your prompt reply.
    If I access the SQLPLUS from the below 3 locations and connect through the same user credentials(test/test@orcl) and same SID, the connections are successful.
    C:\oracle\product\10.2.0\db_1\BIN\sqlplusw.exe(64 bit DB server)
    C:\oracle\product\10.2.0\client_1\BIN\sqlplusw.exe(64 bit Client)
    C:\oracle\product\10.2.0\client_2\BIN\sqlplusw.exe(32 bit Client)
    The TNSNAMES.ORA file in all the below 3 locations have the same content !!
    C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN (64 bit DB server)
    C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN (64 bit Client)
    C:\oracle\product\10.2.0\client_2\NETWORK\ADMIN (32 bit Client)
    Hence my concern turned over to the error details which point to " Driver's SQLSetConnectAttr failed".
    When I debugged my code, I could see the SQLConfigDataSource() is getting called with params (NULL, "ODBC_ADD_SYS_DSN", "Oracle in OraClient10g_home2", "DSN=DSNTemp;UID=test;PWD=test")
    The above values suggest, Oracle 32bit driver is used to create the above TEMP DSN. I think my setup's runtime is picking up 64bit ODBC DATA SOURCE ADMINISTRATOR from "C:\windows\odbcad32.exe" by default, which cannot find the specified 32 bit driver !!
    Do you think my assumption is valid/true ? If so, how can I make my SETUP's runtime to pick up 32 bit ODBC DSA from "C:\windows\syswow64\odbcad32.exe"?
    Can you suggest me what might create the above error(Driver's SQLSetConnectAttr failed). Do you think there is some problem with the Connection string ?
    Thanks for you help,
    Murali

  • Unable to Create Website using "Create Web Site" action component in Release Management

    Hi Team,
    I am trying to use Release Management to Deploy my Website along with DB in staging servers.
    I have set-up 2 Staging Servers SIT & UAT Both 2012 Servers with IIS 8.5 Configured.
    Defined Release Path and Release template.
    Deployment Sequence is something like this : 
    Deployment Sequence - Server Name - Create Folder - XCopy - Create Website - Configure Website
    Build is successful, drops the output to Output folder and RM gets initiated with it's work.
    It creates folders as mentioned in the "Create Folder" activity.
    It copies the whole content from _PublishedWebsites to the mentioned location.
    It gets stuck with the "Create Website" step.
    Initially I have provided details as follows : 
    AppPoolName
    IsPreloadEnabled
    IsAutoStart
    SiteName FabrikamSIT
    PortNumber 80
    PhysicalPath c:\FabrikamRM\WebSite\SIT 
    Later, I tried providing 
    AppPoolName DefaultAppPool
    IsPreloadEnabled 1
    IsAutoStart 1
    SiteName FabrikamSIT
    PortNumber 80
    PhysicalPath c:\FabrikamRM\WebSite\SIT 
    Then also no luck.
    Deployment gets rejected and the error that you can see when you hover the mouse is : 
    Task failed with the exit code -2146232576".
    No much info available with this eror code in net also.
    Any help in getting this simple site created is highly appreciated.
    Thanking you in advance,
    Regards,
    TFS Queries

    Hi,
    For the deployment sequence, you might need add the action of "create application pool" before creating a website.
    Another method is check whether the build output can be deployed manually. If yes, then you can trobleshoot the problem in your deployment sequence and parameters. You can create the website manually and deploy your build output to the website. If you have
    any other concerns about the deployment, you can also open a new thread in IIS forum for a better response.
    If the issue persists, please elaborate more details about your scenario with sceenshots.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • HELP!!! Creating Text using script

    Hi there,
    I am writing a script which creates a text frame and adds text in it. The problem is, I want to add some information below everytime on many documents. Instead of copying from other sources everytime, I thought of writing a scirpt which by clicking creates a text frame and puts text in that because it is the same for all. Now two issues:
    1) It is coming but in the first page. I need that in the working page, for example clicking that it should come in page 2 or 4 and not in the first page.
    2) The text has a word should be in quotes giving like that the script shows error. My example code is given below:
    var myDocument = app.activeDocument;
    var myTextFrame = myDocument.textFrames.add()
    myTextFrame.geometricBounds = ["11.2in", "8in","10.99in","0.5in"];
    myTextFrame.contents = "This is a "sample" text.
    Please try without quotes first. Without quotes for sample word it is coming in the first page. With quotes it shows error.
    What is the solution. 1) need to add on the current working page. 2) should also include a word within quotes.
    Help really appreciated!

    Hi Prasant,
    1) Add a text frame to the active page
    2) Escape quotes in the string \"
    var myDocument = app.activeDocument;
    // Ruler origin should be set to Page
    myDocument.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;
    var myTextFrame = app.activeWindow.activePage.textFrames.add();
    myTextFrame.geometricBounds = ["11.2in", "8in","10.99in","0.5in"];
    myTextFrame.contents = "This is a \"sample\" text.";
    Kasyan

  • Unable to create Confirmations using Portal

    Hi All,
    When we are trying to create a Confirmation and trying to search for a particular PO the following error message is being shown
    "No documents correspond to search criteria"
    But all the POs the created in the backend.
    Can anyone give a solution.
    Regards,
    Rahul.

    Check if you have enough auth. If you are using SRM, run BBP_GET_STATUS_2 once for the relevant SC and then try. Make sure the PO is open in backend.
    Regards
    TGB

Maybe you are looking for