Using save_text to change long text of sales

Hi All,
I am trying edit the long text on sales order header using FM save_text , But it does not work ,
the fm is returning subrc  value 0 but the long text does nnot change i have also used commit_text .
data td1 type thead .
data : tdlin1 type table of tline.
data : wa_tdlin1 like line of tdlin1.
td1-TDOBJECT = 'VBBK'.
td1-TDname = '188238'.
td1-tdid = '0002'.
td1-tdspras = 'EN'.
td1-tdtxtlines = '1'.
wa_tdlin1-TDformat = 'U1'.
wa_tdlin1-tdline = 'this chnaged by vinay to test'.
append wa_tdlin1 to tdlin1.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
   CLIENT                = SY-MANDT
    header                = td1
  INSERT                = ' '
   SAVEMODE_DIRECT       = 'X'
  OWNER_SPECIFIED       = ' '
  LOCAL_CAT             = ' '
IMPORTING
  FUNCTION              =
  NEWHEADER             =
  tables
    lines                 = tdlin1
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.
CALL FUNCTION 'COMMIT_TEXT'
EXPORTING
object = 'VBBK'
id = 'ZINT'
language = sy-langu.

Hi Guys ,
I figured out the problem and its working now .
Cheers
vinay

Similar Messages

  • Using variables in message long text ( SE91)

    Hi everyone,
    Does anyone know how we insert the variables passed in the message can also be used to be printed in the long text as well.
    Suppose , say
    message e000 with a b c d.
    where a ,b , c and  d are the variables...
    How do i use these inside the long text.

    message e000 with 'text' '&variable&'.
    To create a message long text in SE91:
    Select to switch to change mode.
    Place the cursor on the corresponding message.
    Click the Long text pushbutton.
    This starts the SAPscript editor.
    Enter the long text.
    Carry out a check in SAPscript editor.
    Save your data.
    eg: create a msg like this.
    Please enter another value. The value may be &.
    then in pgm do this.
    MESSAGE i014(msg_class_name)  WITH variable_value.

  • How to open "change long text" editor on a button click

    Hi,
    I have 4 long text boxes alligned vertically and a button beside them on a screen.
    My client has the following requirement:
    -- When this button is clicked, a "change long text" editor should open, the user will make his changes here and when back button is clicked, all the information in the editor should get transferred to the 4 text boxes.
       (the functionality should to similar to the big custom control box and the "Create Text" button beside it (in the Subject block) in IW52 transaction except that the custom control should be replaced with the 4 Text boxes).
    Please help, How could I achieve this?

    Cheacked the SAP given programs / pakages and solved the problem.
    Thanks.

  • SAVE_TEXT to implement long text for Material, BOM, documents etc...

    Hello,
    we are working on a process to download longtexts from one system and to upload into another system to add missing long text there for different objects.
    We are using SAVE_TEXT and it is working fine for documents in DRAW/DRAT.
    Here we got what we expected. Long texts are uploaded and can be edited in the
    transaction CV02N.
    But then we started with material and with BOMs (bill of material).
    Result of upload:
    STXH is filled with entries but in MM02 and CS02 we cannot see the added long texts.
    Seems that the connection between material and bom and their texts is missing.
    For BOM we are not totally wrong. If there is a longtext in the BOM we can add longtext (we READ_TEXT the existing longtext and add our text. Then we do a update) and can see the added longtext in CSxx transactions.
    But if there is only a short text, our insert via SAVE_TEXT is not working.
    Is there something we are doing wrong or don´t we understand something?
    Any help is appreciated.
    Best regard
    Dirk

    Hello Naren,
    oh, this answer was bringing light into my confusion.
    My problem is that there will be some import files with any long text for any object in R/3 like
    material with x textids , bom, equipment etc...
    Is there any chance to find out easily which text object combination with textid belongs to a specific long text. The TTXID table is only a listing w/o any explanantion???????
    Update longtext in BOM header -> set STZU-LTXSP
    Update longtext alternative in BOM header -> set STKO-LTXSP
    Update longtext in BOM position  -> set STPO-LTXSP
    And what is the text ID DPO for?
    My other problem now is with Material long text import.
    I checked the SDN threats but could not find the answer.
    This is my abap that is not running for material.
    I can see the long text entries from READ_TEXT, but not in STXH and STXL.
    zs_textline_c [ ]  = zs_textline_b [ ] .
    CALL FUNCTION 'INIT_TEXT'
        EXPORTING
          id            = wa_header-tdid
          language = wa_header-tdspras
          name      = wa_header-tdname
          object     = wa_header-tdobject
        IMPORTING
          header   = wa_header_b
        TABLES
          lines    = zs_textline_c
        EXCEPTIONS
          id       = 1
          language = 2
          name     = 3
          object   = 4
          OTHERS   = 5.
      IF sy-subrc <> 0.
      ENDIF.
      CALL FUNCTION 'SAVE_TEXT'
            EXPORTING
              client                = sy-mandt
              header                = wa_header_b
              insert                = 'X'
              savemode_direct       = 'X'
                     owner_specified       = 'X'
              local_cat             = ' '
            IMPORTING
              function              = l_result
            NEWHEADER             =
            TABLES
              lines                 = zs_textline_b
            EXCEPTIONS
              id                    = 1
              language         = 2
              name              = 3
              object             = 4
              OTHERS        = 5
      IF sy-subrc <> 0.
      ENDIF.
      CALL FUNCTION 'COMMIT_TEXT'.
      COMMIT WORK.
    Your help is welcome!
    Best regards
    Dirk
    Edited by: Dirk Meinhard on Mar 31, 2009 4:33 PM

  • Using CATT to update Long Text in Info Records

    I am in a 4.7 environment, and trying to use CATT to update Purchasing Info Records (PIR) to include Long Text.  Does anyone know how I can get the script to work with long text that changes for each PIR?  I have tried several times, but can only get it to work with a single text entry.  Any help would be greatly appreciated.
    Cathy

    Hello Cathy,
    I use tcode OMQ3 to transfer texts. It took me awhile to figure out the easiest way to use and find it very simple now. Read the program documentation on how to use.
    Hope this helps.
    Cheers !

  • Use SQL to get long text

    Hi,
      Is it possible to retrieve the long text in STXH and STXL by SQL instead of READ_TEXT FM??  How can i covert the HEX text back to normal text??
    Regards,
    Kit

    Hi,
    1. Only the way to Read long text is use the function module ‘READ_TEXT’ for which u need to pass TEXTOBJECT, TEXTID, TEXTLANGUAGE AND ONEMORE(I FORGET).
    Because the STXL and STXH these tables are cluster tables in which data stored in ‘LRAW’ field which is in RAW format which u can not understand and our normal SQL can also.
    2. so u can read most of cluster tables by Function modules only.
    3. u can modify or saved by ‘save_text’

  • How to Change Long Text Font Size

    Hi experts,
    I'm working on a standard sapscript form and a standard print program.
    In the print program, there's PERFORM LONG_TEXT.
    so in my form, the long text appear with other font size and font type.
    my question is, how can I change the font size and font type for the long text ?
    so that the long text can hv same font size n font type togehter with other text in my sapscript form?
    Please advise, Thank you.

    Hi,
    First findout the Paragraph format of the text to wich you need to change font size and font type.
    go to the particular window where the font size and type should be changed.
    go to text elements of that window(F9)
    Then change the editor Goto->Change editor
    In the first column give the paragraph format name.
    Activate.
    Regards
    Madhu G S
    Reward points if usefull

  • Using paragraph format for long text...

    Hello,
    When I try to print the long text using include then
    it starts printing from the very first line.
    But I want to use some paragraph format for it. How can I use it because I am using
    /: INCLUDE '200007200000100' OBJECT AUFK ID KOPF
    So where do I mention the paragraph format in the tag column becaue I am already using /: controll command in font of the include ?

    Check this thread...
    SAPScript - Standard Text
    It looks like the PARAGRAPH P2 statement can do that declaration, on the subsequent line.
    This website also has some good examples:
    http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm
    Cheers,
    John

  • Using CMOD to change Keyword Text

    I'm using CMOD to change a field name for a data element.  After I make the changes and select save, I seem to be in an infinite loop of select the appropirate transport request and then hitting save again.... if I back out by choosing cancle after I have already saved, my chnages are lost.
    I think that there should be some king of sctivate step but I don't see the activate icon on the screen or in any of the menu paths.
    Can someone give me some direction?
    Grateful for your help,
    Malissa

    I figured it out. 
    I needed to activate the CMOD project.
    So for others looking for how to's on chaning keyword text.
    1st create a CMOD project then do the goto text enhancements keywords enter the data element that you want  change then save and then activate your project.

  • Cmd  brings up dashboard, can I change it? I used to use it to change the text size in Pages

    Upgraded to lion and all is good. However, cmd+ has been hyjacked by the OS to bring up the dashboard. I use cmd+ and cmd- to change the text size in Pages. Is there a way to change the Lion keyboard shortcuts to get the functionality back for Pages? The cmd- still works to reduce text size in Pages, so it's even more frustrating that cmd+ does something else.
    thanks in advance

    Well on my MBP running Lion 10.7.2 Command+ or - does not do anything, and that is using either Command+ or Command(+ shift)+. I do not have pages installed.
    The point is that Command+ and Command- should control the text size in Pages (we're not talking about any othr program, just Pages). Those are hard-set (programmed in the software) keyboard commands for Pages.
    In Pages, Command+ should increase the text size, and not bring up the Dashboard. And that is the OP's problem - that command is bringing up Dashboard, which it should not do. Apparently there is some setting somewhere that is causing Command+ to do the wrong thing - and that's what we're trying to find.
    So at least on my MBP Command+ certainly does not bring up the Dashboard....
    Good - it's not supposed to, nor is that what the OP wants.
    By the way, if you use Safari and/or Mail, you'll find that Command+ and Command- adjust the text size in those programs. Ditto Numbers, TextEdit, Bean, and many other programs - it's a fairly common assignment, hence not one which usually needs to be added via Keyboard Shortcuts.

  • Z3 changing long texts to mms automatically :-(

    Hi.can anyone tell me how to set phone so that long text messages don't automatically change to mms.other phones I've had in the past have had settings where I can stop this happening automatically .I keep not noticing it's done it until it's sending, and it's costing me a fortune! Thanks

    Hi and welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    I'm afraid i don't know of any setting to change this. How long text messages you can write before a message is converted to MMS also depends on where you bought the phone (country and operator) as this is set on a local level and by the operator.
    What you can try is to download another messaging application. I believe Handcent SMS have a setting that allows you to disable this.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • How to change Long Text of Infoset

    Hi Friends ,
    In one of the infoset I created ,I typed wrong text while creating.
    Can you please help me to change the text .
    Thanks & Regards,
    Praveen

    hi Praveen,
    try RSISET, edit infoset, and menu 'go to' - global properties.
    hope this helps.

  • Need to pull LONG TEXT into Sales Invoice

    Hi All,
    We have a Projects and we maintain some long text for these WBSes of  projects. Now we need to move them to Invoices. Is there any table where in we can store these texts and then we pull in Invoice ? We can also move to Debot Memo request and then to Invoice. How do I store TEXT as its a structure where in it gets stored.
    rgds..Ameet

    Hi,
    Following are some of the tables (PRTX, PSTX, PSTXB, PSTXH) where you can find the references for PS Text in WBS Elements.
    Regards
    Sreekanth

  • Why can't change the long text in Sales text view of materail master data?

    It give me a information: Please read the intructions carefully before you install, connect or switch the pump on.
    my R/3's version is 4.7 of IDES.

    What exactly means "can't"; what happens when you try?
    What is your operating system?

  • Using Javascript to change multiple text field names

    I have a pdf with multiple text fields. I need to change all the text field names (General -> Name) so that they are unique so that when I combine multiple pdfs together, the text fields will stay intact. Is there anyway to do this using javascript? Thanks!

    I'm new to javascript too...it will be very helpfull for me too...Thanks
    poltrone
    prodotti chimici

Maybe you are looking for

  • How can i change the e-mail address on my icloud account?

    I'm trying to change the e-mail on my icloud account as my current e-mail has been hacked... How do i go about doing this?

  • Dock Not Showing on Second Monitor

    Dock is only showing on one of two monitors in setup - when I click to second monitor, it doesn't show up as it has in the past. On Friday after install, it was. Setting somewhere? Any insight is appreciated.

  • Error executing Webdynpro mail program

    Hi, I am using webdynpro code for implementing mail service. I have imported jaxrpc.jar as external jar file. I got this jar from axis.zip. While implementing the code, I get following exception. java.lang.Error: Unresolved compilation problems:     

  • Need help with raw files

    I have reinstalled and updated CS5 but I am unable to open camera raw files for my Canon Rebel T4i. I get the following message: Could not complete your request because the file appears to be from a camera model which is not supported by the installe

  • Can't open .pkg files

    I downloaded some ilife updates and the 10.4.5 intel update on another mac, with broadband; brought home on ipod. They won't install on my intel imac. Double clicking on the pkg file yields "can't find the application". Thanks for any tips.