Urgent: Updating Item Text  Via SAVE_TEXT

HI Friends,
I need to update the item text in me22n via some FM.
Can somebody suggest some FM with eg..
I have found SAVE_TEXT FM to update the item text.
i am not sure about the parameters and value could any body help me with some code ..
I have written a code like this
I have got a error like the length of the header table passed is higher ...and goes to short dump.
GW_THEAD-TDNAME   = 'Concatenated value of Ebeln and Ebelp".
GW_THEAD-TDID     = ?F01?.
GW_THEAD-TDSPRAS  = SY-LANGU.
GW_THEAD-TDOBJECT = ?EKPO?.
  IT_LINE-TDFORMAT = ?*?.
  IT_LINE-TDLINE   = ?Test Create Text?.
  APPEND IT_LINE.
CALL FUNCTION ?SAVE_TEXT?
    EXPORTING
    CLIENT                = SY-MANDT
      HEADER                = GW_THEAD
    INSERT                = ? ?
    SAVEMODE_DIRECT       = ? ?
    OWNER_SPECIFIED       = ? ?
    LOCAL_CAT             = ? ?
  IMPORTING
    FUNCTION              =
    NEWHEADER             =
    TABLES
      LINES                 = IT_LINE
    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.
Please help with some code /

Hi
thank you very much for your reply.
Can you explain more about the inport parameters of the FM. lets say for example I need to update "item note" in the item of a outbound delivery with text " I am doind the testing". for this scenario what the are the parameters i need to send to the FM
thanks
sankar

Similar Messages

  • Updating item text in the outbound delivery

    Hi
    I have a outbound delivery in the system . I want to update some text in the "item text" through a program. how do i do this. sample code would be great.
    thanks
    sankar

    Hi
    thank you very much for your reply.
    Can you explain more about the inport parameters of the FM. lets say for example I need to update "item note" in the item of a outbound delivery with text " I am doind the testing". for this scenario what the are the parameters i need to send to the FM
    thanks
    sankar

  • BAPI or FM to update item texts?

    Hi all,
    Is there any BAPI or FM that can be used to change the item texts for Accounting Documents?
    Regards,
    Swathi Ragi

    try BAPI_GLX_GETDOCITEMS
    try BAPI_ACC_DOCUMENT_CHECK also
    try BAPI_DOCUMENT_CHANGE ..seems this BAPI is more relevant.
    Edited by: Santosh Battini on Mar 24, 2010 10:53 AM
    Edited by: Santosh Battini on Mar 24, 2010 10:56 AM

  • Urgent: How to append Item text

    HI Friends,
    I am using SAVE_TEXT Fm to Update the Item text in ME22n.
    Currently i need to append few text to the already existing text using SAVE_TEXT is it possible . If it is possible please give some text.
    Is there any FM which can both append and update Item text please help me with that.
    Reward is sure.
    Thanks,
    Sanjeet

    First read text using read_text FM ,keep the data in internal table,now delete the text using delete_text FM.
    Now you have data in internal table and append your text to this internal table,now use save_text fm to update everything.
    Thanks
    seshu

  • PROBLEM IN CREATING BOM ITEM TEXT FROM TEXT FILE

    Hi All,
    I am developing interface program for creating BOM based on data it text file. in my text file contain three column(material, qty and longtext). These text i need to upload to BOM TCODE CS01). Using SAVE_TEXT I have generated text object. it don't says any error. But while viewing text in CS03, text is not visible. Give me suggestion or give me any other method for updating item text from textfile.
    Thanks in advance.
    Regards.
    Peranandam.

    Hi Carl,
    Actually problem is SAVE_TEXT updates text but I cant able to view in CSO3 transaction. because while creating BOM I forget for updating language key for long text. After updating language key I can able to view text in CS03.
    Now I am facing another problem. If I am executing program directly without going to debug mode, It is not updates text. Logic everything is correct. Give me some suggestions for solving this issue. I am also tried with commit work, Commit_text and wait up n seconds statement.
    Regards,
    Peranandam

  • TEXT_ID for Item Text of Purchase Order

    Hi,
    i want to fill a item text of a purchase order via BAdI BBP_PO_INBOUND_BADI. The BAdI is called, that's tested.
    Transaction ME23, Item / Texts / Text overview.
    I tried with
      data:
        lw_TEXT type BBPS_IF_BAPIMEPOTEXT.
        lw_TEXT-PO_NUMBER = '4400001659'.
        lw_TEXT-PO_ITEM   = '00001'.
        lw_TEXT-TEXT_ID   = '0001'.
        lw_TEXT-TEXT_FORM = '* '.
        lw_TEXT-TEXT_LINE = 'strike'.
        append lw_text to BBP_POTEXTITEM.
    and hoped to see "strike" as text - no success. Of course the values should be found later dynamicly.
    In my point of view the parameter TEXT_ID is the problem. I tried 01, 0001, L01, K01, A01 and F01 but without success.
    How can i find out the right TEXT_ID?

    Hello Udo,
    I have exactly the same requirement, I need to fill the item text via (BBP_PO_INBOUND_BADI, method: BP_MAP_BEFORE_BAPI).
    In my case I have to write some values in BAPI_POTEXTITEM.   However, it seems that the badi is not saving the data.  At least I cannot see the text values in ME23N, Item / Texts.
    Would you give me an advice ?
    Thank you !
    best regards,
    Diego

  • Item text (BSEG-SGTXT) is not getting updated in Payment document generated

    Hi All,
    Item text (BSEG-SGTXT) is not getting updated in Payment document generated through F110.
    After generating the payment document via Transaction Code u2013 F110, system is not updating the
    Text field (BSEG-SGTXT) in the payment document with the text that we have entered in the Invoice (MIRO or FI Invoice).
    In case of manual payment (F-53) we can input the text manually hence that will get updated in
    payment document but this thing is not possible with F110.
    How can I update it?
    Is there any configuration for that?
    Thanks
    Daniel Dorta

    Hi All,
    I've applied the two notes as recommended. However, when I run FBL3N for payment run items, the Text field is update with wrong data, i.e. not from the Text field in FB60
    Thus, I'll like someone to help me with what should exactly be done on the 'Step', 'Pre-requisite' and 'Substitution' side of the Substitution rule (TCode GGB1), I did not fill anything in the Pre-requisite box - is this right?
    Thanx in advance.

  • Item text is not getting updated in Payment document generated through F110

    Hi all,
    After generating the payment document via Transaction Code u2013 F110, system is not updating the Text field in the payment document with the text that we have entered in the Invoice (MIRO or FI Invoice).
    While processing the document via transaction code u2013 F110, in the layout shown for the Invoices to be considered for payment (screen of u201CEdit Proposalu201D), text is not getting updated. When we pressed F1 at the Text field (Which is blank) we came to know that it is a u201CItem Textu201D with u201CTable u2013 REGUEu201D /  u201CField u2013 SGTXTu201D.
    In BSEG (SGTXT field) as well as BSIK (SGTXT field) we are getting the Invoice document with the text maintained in it via MIRO or FI invoice.
    But while processing the invoices through Tcode - F110, in the layout of Edit Proposal (Table - REGUE / Field - SGTXT) we are not getting the u201CText fieldu201D but getting the other data such as Doc. No.( Table - REGUE / Field - BELNR), Fiscal Year (Table - REGUE / Field - GJAHR) etc for processing the proposal which is getting shown in BSEG as well as BSIK.
    In case of manual payment (F-53) we can input the text manually hence that will get updated in payment document but this thing is not possible with F110.
    Can anybody guide me on getting the ItemText (Not Doc. Header text) in FI payment document after F110 execution?
    Regards,
    Shridhar

    Hi Suresh,
    Thanks for the prompt reply. We will be obliged if you guide us in that respect since F110 is a Std. SAP code.
    Have you refer OSS before arriving at the conclusion of developing ABAP program since the Item Text is a std. field of Std. Tcode - F110. Same should had been get updated while making the payment in reference to the Invoice which haves item text in it ?
    Regards
    Shridhar
    FICO

  • Item text of PO print output is not generatiing but text is updated  in PO

    Hello ,
    I am changing the PO through IDOC. When ever there is change in the quantity ,net price and delivery date the print out put is generated autoamtically and changes are appearing the print output.
    when ever there is change in the item text of PO print output is not generatiing but item text is updated in the PO.
    If i change manually print out is generating for item text also but through IDOC print output is not generated . please help to slove this isuue.
    i am passing the value as :
    idoc_data-segnam = 'E1BPMEPOTEXT'.
    e1bpmepotext-po_item = Po line item number .
    e1bpmepotext-text_id = txtid.
    e1bpmepotext-text_form = textform.
    e1bpmepotext-text_line = line item text .
    idoc_data-sdata = e1bpmepotext.
    APPEND idoc_data.
    CLEAR idoc_data.
    CLEAR e1bpmepotext.
    please help me it is urgent
    Thanks
    Venkatesh

    Hi,
    For triggering the output for changes you have to make some changes.
    - Go to SM30
    - Enter view name "<b>VV_T161M_EF</b>".
    - Hit 'maintains' view.
    - Now let's say your outpu type is 'NEU'. For this there will be one entry like this.
    Operat.  Ctyp.  Name            Short text  Update
    1        NEU    Purchase order  New
    Now with this entry add one more entry like this.
    Operat.  Ctyp.  Name            Short text  Update
    2        NEU    Purchase order  Change      X
    You just need to enter Operat. = 2 and  Ctyp = NEU. The 'name' and 'short text' will come automatically.
    - Save your entry and create.
    After doing this, your PO will trigger output on change.
    Let me know if you have any other information.
    Regards,
    RS

  • Enhancement for VL02N to update the item text(BSEG-SGTXT) during PGI

    Hello all,
    Actually, I need your help experts. I am trying to update the item text(BSEG-SGTXT) for accounting documents with the sales order number during their creation(post goods issue) from transaction VL02N, VL01N, VL09.
    I have checked the 17 exits available for these transactions and non of these 17 exits allow me to modify the item text(BSEG-SGTXT). I am currently investigating on the two badi's available for these transactions.
    I am not sure if it possible to make these modifications via Badi's.
    Does anyone have any idea or technique that can help me to find a way to modify/update the item text(BSEG-SGTXT) for any accounting document generated during post goods issue using transaction VL02N, VL01N, VL09?
    Thanks a lot in advance for your help experts.
    Kind Regards,
    Bryan

    Hello Ankur Agrawal,
    Thanks a lot for your help.
    I got the item text from the mentioned BADI.  I will get back to this post if it works.
    Thank again for your quick reply.
    Kind Regards,
    Bryan

  • PR item text to be updated on Process order release

    Hi Experts,
    The scenario is mentioned below :
    The purchase requisitions would be created on the release of PRocess order.
    My requirement is to update the item text of the Purchase requisition ( with the process order data such as BATCH & Material ) on release.
    I have already tried quiet a few user exits, but beacuse the PR number is not yet generated in these exits,hence  I cannot use create_text or save_text.
    Please let me know if someone has any idea on how this can be solved.
    Hoping for a quick response.
    Warm Regards

    Hi
    Check the exits related to PR for Process order
    COZF0001
    COZF0002
    Try to fetch the Long texts of the PR's using the READ_TEXT and use the fun module
    CREATE_TEXT for saving the same in Process order by using the Right parameters like OBJECTName,ID,OBJECT and LANG in bothe cases for PR and process order.
    The tables link between the PR and the order is
    AFKO-AUFNR  = EBKN-NPLNR  ( process order number) in PR account assignment table
    use this link and try to save the text as mentioned above
    Reward points if useful
    Regards
    Anji

  • About updating  long text  in the document item  with bdc of fb02

    HI,
    I have a question about updating  long text  in the document item of sap:
    Can I directly updating the long text information with the fuction save_text?
    The long text is in :
    tcode: fb02 -->input document no ... --> Document overview --> select one document
    long text --> updating the value.
    Becaust I want to update some items in a G/L Account with bdc or other technique, but I found I can't   choose the items in the G/L Account with bdc automatically .That means I can't get the selected items and update them.So I try to update them with the function save_text  directly (I know the doc no,bukrs,fiscal year ,item no which will decide the long text item).
    Who can help me ?Or is there any way to solve the problem? Thanks very much.

    Yes, you can update directly using SAVE_TEXT.
    Check this for the same.
    [update long text in FB02|https://forums.sdn.sap.com/click.jspa?searchID=22194840&messageID=5418662]

  • Problem in populating PO item text using FM:SAVE_TEXT

    Hi All,
    I am having an issue with SAVE_TEXT FM,
    I need to populate the item text field:
    This FM works fine if the Item text field is blank and i am populating it with text, say "This is a test case",
    How ever if the text field is already populated say the item text field has "Testing", my requirement is i will append the new text to the previously existing, in this case it should come as "Testing This is a test case",
    For doing this i am reading the existing text using READ_TEXT FM and concatenating both the texts separated by space, and passing this to i_lines, how ever the O/P which i get in the text field is "Testing".
    Please advice.
    The cod is shown below:
    CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
        CLIENT                = SY-MANDT
         header                = t_head
         insert                = 'X'
         savemode_direct       = 'X'
        OWNER_SPECIFIED       = ' '
        LOCAL_CAT             = ' '
      IMPORTING
        FUNCTION              =
        NEWHEADER             =
        TABLES
          lines                 = i_lines
       EXCEPTIONS
         id                    = 1
         language              = 2
         name                  = 3
         object                = 4
         OTHERS                = 5.

    hi,
    once u use the save_text also
    with save_text u are updating the STXH table .
    there is one field in stxh table which is once updated shows the text in the sceen.
    or u can run a bdc put the default text where u want to put and afterwards when u use create_text and commit_text,u ll be able to see the text in the screen.
    regards
    kanishak

  • Updating text field in VF01 (header and item text)

    Hi,
           Consider the scenario given:
                                                   A report program in which the selection screen consists of the
           invoice no for example "Fom - 1 to - 10"  range .It also has the fields given below :-
    1.No of package - 10
    2.Header Invoice description  - aaa
    3.Item Invoice description  - aaa          
    4.Insurance  - aaa                    
    5.Transformer - aaa               
    6.Accessories  - aaa     
    7.LR Number  - 999     
    8.Committed Date of Deliver - xx.xx.xxxx     
    9.Transporters Name - aaa
    If the input value for all the above 8 fields are given in the report selection screen as above for the invoice range then it should get stored in the respective texts in the T.Code VF01 for all the invoices given.The header text and the item texts in VF01 should get updated. Suggest a solution for this scenario.
    Your help will be greatly appreciated.
    Thanks,
    P.S.Chitra
    <THREAD LOCKED. This is a question and answer forum, not a do-my-job-for-me forum. Please read the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] on how to ask a good question.>
    Edited by: Mike Pokraka on Sep 9, 2008 10:03 PM

    Hi,  
    CALL FUNCTION 'SAVE_TEXT'
      EXPORTING
       CLIENT                = SY-MANDT
        HEADER               =                              "What should be given here?
       INSERT                = SPACE
       SAVEMODE_DIRECT       = 'X'
      OWNER_SPECIFIED       = ' '
      LOCAL_CAT             = ' '
    IMPORTING
      FUNCTION              =
      NEWHEADER             =
      TABLES
        LINES               =                                 "What should be given here?
    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.
    Will this update the text's for the given range of invoices?
    How do we relate the text to the invoices using DB table/fields/Structure/fields?
    Thanks,
    P.S.Chitra

  • Change log needed when item Text is changed via a customised tab in PO

    Hi all,
    In ME21N, ME22N and ME23N we have added a tab CUSTOMERDATA which contains input to enter no. of batches. When ever we enter something, say 1 in the field for no. of batches, this will trigger a FM which will create a batch and update the TEXTS tab at item level with the batch created. This functionality is achieved using the exit EXIT_SAPMM06E_013.
    Now the requirement is whenever the TEXTS tab is updated by means of CUSTOMERDATA tab, I can see that some text is added to the TEXTS tab. Now I want to see this in the change log at item level that text is updated.
    I can see the change log when i manually go to TEXTS tab and change/add something but not when i do it via the CUSTOMERDATA tab.
    Could you please help me how to achieve this.
    Thanks in advance!
    BR,
    Aravind.

    Ok, looks like you haven't received good replies yet, so here's what you need to do.  The difference is that CHANGEDOCUMENT_TEXT_CASE is being called for the application transaction entry but not for your exit-based entry of the texts inside EINKBELEG_WRITE_DOCUMENT.  This means that UPD_ICDTXT_EINKBELEG was not set - you need to make sure the field value is set to 'U' for the call.

Maybe you are looking for

  • Network problem with PowerMac in my office

    In the office I work at we have a PowerMac - I'm not sure if it's G4 or G5 but it's the white one with the clear plastic accents. We use this computer to clock in and out because it's the only one connected via ethernet instead of wireless and you ha

  • Windows Installer Error when I attempt to install BlackBerry Desktop Software XP Pro

    When I attempt to install Desktop Manager I get the following error... Windows ® Installer. V 3.01.4000.1823 msiexec /Option <Required Parameter> [Optional Parameter] Install Options </package | /i> <Product.msi> Installs or configures a product /a <

  • I cannot select a previous page without scrolling through all of them

    The latest version 4 does not seem to have an option to select a previous page from a drop down list, alongside the forward/back buttons top left of page

  • Use of interface, abstract

    Hi all A simple question, I have been read some books or web sites about the use of interface, abstracts, but I still don't quite get it such as when should we use it, how should we apply it in terms of programming design.. Can someone teach me or sh

  • Looping through to  the last child in the ADG groupedColumn

    I have a ADG with groupedColumns with varying depth(Some AdvancedDataGridColumnGroup having more nested groupings inside while others may or may not have nested groupings).My requirement is that i need to loop through to the last elements (AdvancedDa