Retrieve item text in SO document

Hi Experts,
How can i retrieve text stored at item level in a Sales Order Document.
Iam able to retreive header text through by table STXH.
But this tables does not show item level text.
Pls suggest?
Thanx in advance.
Rajiv Ranjan

Hi,
You can retrive this using the Fun Module;
READ_TEXT
have to pass 4 paramters for this:
go to the text, double click on it, takes to text editor
from there GOTO -> header
will give the OBJECT, ID, OBJECTNAME(mostly the SO doc no and Item No has to be concatenated and to be passed), and lang.
reward if useful
regards,
Anji

Similar Messages

  • Document line item text in Clearing document

    Dear All,
    Document line item text
    My client want the vendor invoice line item text(BSIK-SGTXT) to be captured in the corresponding clearing document line item text field(BSAK-SGTXT).
    (i.e) The vendor invoice and its payment clearing document should have the same text in the document line item text filed.
    According to me i can use  a substition rule and a user exit to assign the values. but here comes a problem* i have one clearing document against 3 to 4 vendor invoice documents* so my programming logic has got stucked here? like which vendor invoice line item text the clearing document should pick up?
    is there any other enhancements possible or can some one help me with the programming logic to be applied here.
    Thank you
    Regards,
    Vasanth D

    like which vendor invoice line item text the clearing document should pick up?
    is there any other enhancements possible or can some one help me with the programming logic to be applied here
    Why don't you discuss the issue with your client?  As you said, if you pay 5 invoices in a single run, the payment document item text can't carry all of those texts unless you use the long text.  What is the reason for the requirement?  Perhaps there's another solution.

  • Item Text in FI Document

    Hi,
    For FI documents generated from GR (MIGO) and IV (MIRO), can we update the text field with certain values from the material documents?
    In fact, we would like to always populate the text field of FI documents from sub modules.
    What would be the best method?
    I found this thread: Item Text in FBL3N copied automatically from MIRO line item
    Can the method be used for all types of documents? It seem quite tedious?
    Thanks.
    Regards.

    Hi,
    The above given thread is the perfect solution for your requirement.
    Defaulting some data in the text field means, either you can use the the Substitution / BTE.
    Using the substitution, system not allows you to change the text field in case of any modification you want. But with the BTE you can specify only at the time of the document posting.
    BTE is the best option in this case.
    VVR

  • Can't modify line item text in financial document

    Dear all,
    In some cases I'm not able to modify line item text field in financial documents, and I don't know why.
    I've checked customizing and BSEG-SGTXT appears as modificable field in any case.
    As far as i know text field is not a relevant field, so the system should let me modify it if the customizing is right.
    Does anyone know if there could be any other customizing that affects this transaction (FB02)?
    Thanks

    Hi
    Since you indicated the entry is from goods receipt, I understand that you are trying to change the line item text in a GL line item.
    If so, please ensure the following:
    1. in OB32, for Account type S and Field name BSEG-SGTXT, the trasaction type is blank, "Field can be changed" is ticked and "Posting period not closed" and "Line item not cleared" are not ticked. 
    2. In OB32, for Account type S and field name BSEG-SGTXT, no other entry is there along with company code which has a different rule.
    3. You can enough authorization to change the document.
    4. If you can change the text, but cannot save it, then please check whether any validation/BTE is in place which is not allowing to do so.
    Regards

  • Upload item text for FI document using BAPI_ACC_DOCUMENT_POST

    Hi,
    I need to upload FI document posting using BAPI_ACC_DOCUMENT_POST.  However item text that I received is too long and need to store at item long text.  So can we use BAPI_ACC_DOCUMENT_POST to upload long text for item text? If this possible, may I know how to do this.
    Thanks.
    Regards,
    ain

    Hi,
    You cannot pass item long text using this BAPI,  Call the function module SAVE_TEXT after successfull call of BAPI
    Call Save_Text with following parameters.
    Text_ID : 0001 (Notes)
    Text_object : DOC_ITEM (Line Item Text)
    Language : EN
    Text Name : Company code +Document NO + Fiscal Year + Line item ID
    Regards
    Vinod

  • Transfer  item text invoice in Document FI

    Hi developers,
    I wish transfer the item text of the invoice SD in field of Account Document FI  (BSEG-SGTXT ).
    Have you some ideas for help me!!!!!!!!
    Thanks in advance
    Domenico

    use enhancement SDVFX008 to feed the XACCIT-SGTXT field.
    You ca retreive the text using the FM READ_TEXT, normally in the invoice the header text is a VBBK object.
    Roberto

  • Reading Item texts of a document (PO) while it is not yet saved

    Hi Team ABAP,
    i´m a little confused about those item texts.
    I was searching the Forum on this and found thread
    according to this i adopted my Coding, but still it wont, work. Maybe one of you guys has an Idea where i go wrong?
    FORM get_article_basic_text
      USING           ebeln           TYPE ebeln
                      ebelp           TYPE ebelp
                      matnr           TYPE matnr.
      DATA:           ls_header       TYPE thead,
                      lt_lines        TYPE TABLE OF tline,
                      ls_lines        TYPE tline,
                      lv_swap         TYPE c LENGTH 3,
                      lv_line         TYPE char20.
      FIELD-SYMBOLS: <line>           TYPE tline.
      DO 30 TIMES.
        WRITE sy-index TO lv_swap.
        CONDENSE lv_swap.
        CONCATENATE 'W_LONG_TXT' lv_swap INTO lv_line.
        ASSIGN (lv_line) TO <line>.
        IF <line> IS ASSIGNED.
          CLEAR <line>.
        ENDIF.
      ENDDO.
      IF ebeln IS INITIAL.
        ebeln = 'XXXXXXXXXX'.
      ENDIF.
      CONCATENATE ebeln ebelp
      INTO        ls_header-tdname.
      ls_header-tdid      = 'F03'.
      ls_header-tdobject  = 'EKPO'.
      ls_header-tdspras   = nast-spras.
      g_tdname = ls_header-tdname.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          id                      = ls_header-tdid
          language                = ls_header-tdspras
          name                    = ls_header-tdname
          object                  = ls_header-tdobject
        TABLES
          lines                   = lt_lines
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
    I created a new PO using ME21N, added the F03 Text on item level for item 10. Then i pushed print preview and debugged right into my coding.
    Values for LS_HEADER were:
    ls_header-tdname = XXXXXXXXXX00010
    ls_header-tdid = F03
    ls_header-tdspras = D
    ls_header-tdobject = EKPO
    and still i got sy-subrc = 4 and no result.
    Edited by: Florian Kemmer on Jun 9, 2011 9:36 AM

    Florian,  Have you checked the possibility  of using the BADI "ME_PROCESS_PO_CUST" to achieve this ? Most of the methods in this badi uses the parameters of type IF_PURCHASE_ORDER_MM. May be you can use the methods IF_LONGTEXTS_MMGET_TEXTOBJECT,  IF_LONGTEXTS_MMGET_TYPES, IF_LONGTEXTS_MM~GET_TEXT of the interface IF_PURCHASE_ORDER_MM. 
    I didn't tried this with PO, but simliar kind of BADI worked properly with Purchase requisition.  Wiki post  [Purchase Requisition Header Long Text using Badi - ME_PROCESS_REQ_CUST|http://wiki.sdn.sap.com/wiki/display/ABAP/PurchaseReq.HeaderLongTextusingBadi-ME_PROCESS_REQ_CUST] may be helpful.
    Regards, Vinod

  • Function to retrieve long text in FI document for payment file

    Hi
    Is there a function i could use to retrieve the long text in the invoice document for the payment reference field in the payment file?
    Would appreciate your urgetn advice.
    Thanks.

    Possiblity could be that you have passed the wrong object name id or any parameters.
    See below the similar code.
    If you want to know the correct tdobject and correct tdname combinations go to table STXH and under name give the document number ie 1900000000 ie docno then you will come to know the correct tdname and object and tdid from which you can use the read_text function module
    DATA : tdobject TYPE thead-tdobject,
               tdname   TYPE thead-tdname,
               tdid     TYPE thead-tdid,
               tdspras  TYPE thead-tdspras.
      DATA : lines    TYPE STANDARD TABLE OF tline INITIAL SIZE 0,
             wa_lines TYPE tline.
    CONCATENATE bkpf-bukrs bkpf-belnr bkpf-gjahr INTO tdname.
      tdobject = 'BELEG'.
      tdid     = '0005'.
      tdspras  = sy-langu.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
    *     CLIENT                        = SY-MANDT
          id                            = tdid
          language                      = tdspras
          name                          = tdname
          object                        = tdobject
    *     ARCHIVE_HANDLE                = 0
    *     LOCAL_CAT                     = ' '
    *   IMPORTING
    *     HEADER                        =
        TABLES
          lines                         = lines
        EXCEPTIONS
          id                            = 1
          language                      = 2
          name                          = 3
          not_found                     = 4
          object                        = 5
          reference_check               = 6
          wrong_access_to_archive       = 7
          OTHERS                        = 8.
       IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ELSE.
         READ TABLE lines INTO wa_lines INDEX 1.
         IF sy-subrc = 0.
           write at 51(10) wa_lines-tdline.
         ENDIF.
       ENDIF.
    Regards
    Gopi

  • Retrieving html text not html document from RichEditableText control

    Hi,
       I have some html text
    Ex- This is <b> test </b>
    which i am setting to RichEditableText using TextConvert.importToFlow(),I want to format this text just bold and italic and then get back  same html text back with
    only formatting i have done.
    Suppose i have formatted this text in RichEditableText like;
    Ex- This <i>is</i> <b> test</b>
    But when i am trying to get back this from RichEditableText using;
      TextConverter.export(richedittxt.textFlow,TextConverter.TEXT_FIELD_HTML_FORMAT,ConversionT ype.STRING_TYPE);
    It gives a complete html document with <html><body><font> tags, which i dont want. It should not includes all these extra tags.
    Can any one suggest, whether it is feasible or not ? Please reply if any one has solution
    Thanks..

    Leao,
    > I didn't write the original actionscript so I don't
    > really know how to implement what you suggested.
    Aha! Well, that can be a bit like painting yourself into a
    corner. ;)
    > Could you explain a little more?
    Spend a bit of time with the String class. Before you even
    do that, you
    may want to familiarize yourself with the concept of objects
    in general.
    See this introductory article ...
    http://www.quip.net/blog/2006/flash/actionscript-20/ojects-building-blocks
    ... then spend a bit of time in a completely new FLA
    experimenting with the
    String class. Many of its methods are specifically geared
    toward changing
    the value of the text content, including stripping away
    certain characters.
    e.g., you can use String.indexOf() to return the position of
    a particular
    character (or characters) in a string of text. You may then
    use that
    position in cahoots with String.substr() to return a new
    string that as been
    "pruned" of undesired content.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • How to compare Item Text in Purchase Order

    God day Gurus,
    I have a scenario where in I have to compare the saved Item Text to the current edited one in Purchase Oder. I used READ_TEXT function but it only get the saved item text in the document. Is there a way to compare the original and edited item text in P.O.? Here is my sample, I have PO 000001 with Item Text "Sample" and saved it. Then I edited the PO and change the Item text from "Sample" to "Testing". When I use READ_TEXT function, I will get the text "Sample". How will I get the text "Testing" during saving of PO?
    Thanks in advance.

    Hello
    In case you are working already on ERP 6.0 you should have a look at BAdI ME_PROCESS_PO_CUST, interface methods CHECK or CLOSE depending on your requirements.
    Regards
    Uwe

  • Line Item Text not updated in SPL

    Hi All,
    Can anyone help me in this regard.
    When we change the Line Item Text in FI document the same has not been updated in SPL. Can anyone know the required configuration to be done in order to populate the changed items in SPL.
    Any help is highly appreciated.
    Thanks,
    Srini

    HI,
    a text change in general ledger line item will not be forwarded to spec. ledger automatically (as the change of a line item text triggers no posting to spec. ledger).
    But as you know the document relationship from GL doc. to SL doc go to the corresponding SL doc. and change the text if this is really needed (don't understand why the line item text is that important).
    Best regards, Christian

  • 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

  • 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

  • Tcode FV50: How to find long text in FI Document line item Before Saving.

    Hi,
    How to find long text in FI Document line item.
    During Parking of the FI document through Tcode FV50 i m giving the some text in the long text not in the text field.
    I would like to validate the Long Text Before Saving in user exit "U300" under  the  "Sunstitution" .
    Please anybody can be help me out where exactly this long text is going to be stored or in which internal table or memory id.
    Please give me the answer as soon as possible .
    Note:- Read_Text function module is not useful. Because Read_text useful after saving document.

    Hi Amit,
    In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
    Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
    Just try to explore in your system how the other validations are maintained.
    After you are done with all your code, you have to run the regeneration program RGUGBR00.
    Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except  GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS  & TRACE PROG. GENERATE CALLS .
    Hope this make your doubt clear.
    Regards
    Abhii

Maybe you are looking for

  • Disk Utility Refuses to Format drive to GUID

    I purchased a 1 TB wd 10eavs external hard drive, and have tried numerous things to get it to format. Every single time, Disk Utility comes up with an error saying "File system formatter failed" after about 2 minutes. I can format it to NTFS but that

  • Uname -n: couldn't create error file for command: file already exists

    this error message is displayed when executing "uname -n". any clue where it comes from ? thanks in advance

  • Itouch 4th gen jailbreaked n den stuck on apple logo not restoring

    in have ipod touch 5th gen n my brother jailbreaked my ipod n den i removed the cydia from ipod n wen i was trying jailbreak it again it said that stash is detected so i deleted da folder oly.....n den it stuck on apple logo n i putted da ipod in rec

  • Updated to mountain lion

    updated to mountain lion and wifi does not work anywhere except my house. what is the problem. my schools online applications dont work (such as mymathlab). air play in not in the os

  • Link between cProjects and Internal Order

    Hi all, i customized well the integration between my cProject 4.5 and CO of R3. The assignment of an internal order to a project work well. I need to find this link via abap with a bapi or a method. Do someone know how it is possible? Best regards, L