Item Text in VA01

Hi,
We are making a transaction code similar to VA01 for creating sales order, now whenever user enters a material we get the all the item texts associated with it using the read_text FM.
The issue is  if user enters some texts from his side in any of the nodes in the item texts we are not able to save it when the order is saved.
Please suggest how to save these texts.

Hi u can use FM
save_text
Refer this ex. code
LV_HEAD-TDOBJECT = 'KNA1'.
    LV_HEAD-TDNAME = WA_DATA-KUNNR.
    LV_HEAD-TDID = 'ZREM'.
    LV_HEAD-TDSPRAS = SY-LANGU.
    WA_LINES-TDLINE = WA_DATA-REMARK.
    APPEND WA_LINES TO IT_LINES.
    IF WA_MESSTAB-MSGTYP = 'S'.
      CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
          CLIENT          = SY-MANDT
          HEADER          = LV_HEAD
          INSERT          = 'X'
          SAVEMODE_DIRECT = 'X'
        TABLES
          LINES           = IT_LINES
        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.
Note:This may cange as per the filed LV_HEAD-TDID = 'ZREM'. here it is for remarks.
For getting this u can save a text manually ane checkk the table STXH , how it is storing
Regards

Similar Messages

  • User exit to check item text in VA01

    I want to valicate and create hard error when user create order and did not input certain item text in the order depending on order type.
    The text object is VBBP with textname as order number and item posnr.
    I tried userexit_save_document_prepare but at that time, there is no sales order number created yet, therefore I cannot call function read_text with the text object to check for item text.
    I also tried userexit_save_document, I got order number and item posnr but still function call always return text not found even I input item text during the order creation.
    Does anyone know where to put this exit or any enhancement point to check for item text?
    Thanks

    Hi Brad Bohn,
    I have quite the same issue,
    I have add a new subroutine to be able to change the KUNNR/goods receipt.
    every goods-receipt has a specific text, how can I change the item text when there is no VBELN/doc number based on the new kunnr ?
    Is that also applicable in the user-exit that you mentioned?
    Best Regards,
    Robert

  • Updation of higher level item text to lower level item text

    Hi All,
    while creating sales order VA01   i need to pass the value of higher level item text to lower level item text
    for that i read the text of the higher level item text using the fm read_text
    and pass the text to the lower level items using save_text and commit_text
    this coding works only when the lower order item  text is empty
    my queries are
    1. if the lower level item having some text that text will be replaced by the higher level item text, that is happening but showing error that I/O error , how to solve this
    2. while gone to VA02 and add one more item then also same error is happening how to solve this please help me.
    regards
    krishna

    got the solution

  • Changing sales item texts in userexit_save_document

    Hi Learned folk,
    the problem I have concerns a particular type of sales order item text which we wish to use to store text in addition to any entered by the user on VA01.
    In sapmv45a userexit_save_document I have put a call to function module read_text to get the current text lines and then added my extra line and used save_text to apply the cahnges.
    In debug I can see that save_text is dealing with the extra data, it does an 'úpdate' on STXH to indicate that there are the same number of lines in the text that I expect and then it does an 'éxport' to database STXL(TX) to send the text lines themselves. All the data I want is being exported. These commands are executed with 0 subrc. Shortly after leaving the exit the 'commit' occurs but tables STXH and STXL now have values consistent with how they were before my changed text lines were added. VA03 also shows that my additional text is not present.
    The only thing that I can think is that another use of save_text is occurring somewhere between the user exit and the commit but I haven't been able to find it yet.
    Does anybody have any other ideas why the text changes are not being retained?
    Regards
    Neil

    Hi Neil,
    1. U said u have used SAVE_TEXT
       and it saves.
    2. To check if this happens or not, 
        After that write COMMIT Work.
    3. In DEBUG mode,
       execute till the FM and COMMIT Work,
    4. In another session,
       see the table STXH
       to know whether it REALLY Gets
       updated or not!
    regards,
    amit m.

  • IDOC: Item text issue

    Hi gurus,
    Here's the scenario:
    I created a sales order (VA01) in Box A and automatically passes via IDOC to Box B. From there, I created Delivery (VL01) and Shipment (VT01). Then the 2 document will be copied back via IDOC. So in Box A, it has already Delivery and Shipment.
    The problem is, The delivery item text that I am getting is from the component of a BOM Material. I was thinking if I am getting the IDOCS from a sales order and not from the delivery doc. Since the materials in the delivery doc are not expanded..
    How will I get the IDOCS from the delivery instead from sales order.
    Point will be given...Thanks guys!

    Hi,
    If you wanted to trigger an IDOC from an delivery document follow the below steps:-
    Create a partner profile for that shipto party in WE20 transaction.
    While creating the partner profile use the partner function as SH,
    Basic Type :-  DESADV01
    Message Type:- DESADV
    Output Type :- LD00
    Process Code:- SD08
    Application :- V2
    USe all the things in your partner profile and trigger the output LD00 in your delivery document and check.
    An IDOC will be triggered from the delivery document of your SAP system.
    Thanks,
    Mahesh.

  • Recording 'partners' and 'texts' in VA01 Tcode

    Hi,
    while recording VA01 tcode i'm not able to record partners and also texts.
    can any one tell me how to record the partners and texts in VA01.
    Thanks & Regards,
    Prasad.

    Prasad,
    In regards to Text, you can save text using FM 'SAVE_TEXT' provided you know the ID and OBJECT. For Sales Order Header text usually the OBJECT is 'VBBK' and the NUMBER is '<SO Number>'. For Sales Order Item text usually the OBJECT is 'VBBP' and the NUMBER is '<SO Number><Item Number>'. You will have to find out the ID of the Text from its attributes.
    Thanks

  • 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

  • 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.

  • Report for Vendor line item with GL line item text

    Hello SDN,
    We need to add the GL Line item text to a vendor line item report. I don't think adding a GL field is available option in the FBL1N report. Is there a way to display the Vendor name, Vendor number, Open amount and the GL line item text in a report without ABAP invovlement?
    I would really appreciate your help. Thank you.
    Edited by: nsap_fico on Aug 10, 2011 6:29 PM

    Some alternative is in KSB1 (Cost center line item report) - you can change the layout and include offsetting account and its text.
    But, in vendor line item report, if you want vendor number, vendor number, GL account number (offsetting) account and its text, then you should go with abap development.
    Have a look at the following note, if really serves your purpose.
    Note 1504612 - Line items: Offsetting account info (BAdI FI_ITEMS_CH_DATA)

  • Getting Item Text  from sale order items

    Hi All,
    I am trying to get sale order item text using Include text in smartforms.
    my text object  is VBBP and my text id is 0004.
    What should I pass in Text Name  ?.---Order Number or Item Nunmber or Both.
    If both can you guys explain how to pass both ?.
    will be REVARDED.

    Hi,
    When you see the texts in the line item of va03..
    Double click on the text..
    Then in the menu..Goto -> Header..
    There you can find the Text name..
    Generally if it is Item text..Then the text name will be
    order number + line item
    Thanks
    Naren

  • Sale order item text through BAPI_SALESORDER_CREATEFROMDAT2

    Hi,
    We are creating a sale order through a 'Zprogram'. Uploading the required details from a excel sheet and  passing to a BAPI_SALESORDER_CREATEFROMDAT2.
    We are using the 'order_text' parameter to create the item text. If there are multiple lines in the same item text likes this
    (we are passing it in a single line)
    Order type ORDER_ID   PO number u2026u2026 Item Note - Zi01
    STD                   2                   10                Currency - RS
                                                                       Test order -1
                                                                       Test item - 2                                                                               
    It is creating the sale order with the item text  and the item text when viewed normally its appears one below one. But if we click the 'detail' button and view it through the editor mode it is appearing in the same line with # characters in between.
    TAX_CURRENCY = Rupees #TAX_UNIT_PRICE =0.0000# Test order = 1
    It is replacing the enter statement with '#.' We can split the text where # appears and pass it as a separate line .but this will create a problem when the data itself contains a  # character.
    Please advise how we can avoid this and can create the sale order item text correctly.
    Regards,
    Charumathi Balachandran

    As you said, How are creating single line text from the multi line text.
    I hope you are using a CONTACTENATE statemetn to do so. Please the SEPARATOR being used for this.
    I hope you have copied texts from excel sheet to SE38 editor. Please copy text from Excel to Notepad, then Notepad to SE38.
    Edited by: Priyanka Chowdry on Dec 20, 2010 11:21 AM

  • Report for Item texts in PO

    Hi Gurus,
    Could you please tell  which report (transaction) gives the item text details with respect to PO ??
    regards
    Subbu

    I dont think there is any standard report for the same.  You can however go for an ABAP  development  :
    After entering the item text , save the PO , then go to the PO in display mode and double click on that Text. A new screen will open up for PO text. There in Header Menu select : Goto-> Header . There you will find the text ID and the Text Object which you can pass to tables STXH and STXL and get the texts.
    Raviraj

  • Item text is not appearing in the print output through IDOC?

    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 Venkatesh,
    Check the condition record in transaction NACE. Whether the print output field is present in the condition record.
    Regards,
    Gajendra.

  • Material item text not appearing in PO Print Preview

    Hi experts,
    We have created a new PO type .  We have assigned it with PO text via Spro>Purchasing>Purchase Order > Message > Text for messages > define text for purchase order
    Maintained text for document header
    Maintained  text for document item
    But still in Purchase Order , the material PO text at item level , is not appearing at the time of print preview / print out.
    Please suggest .
    Regards,
    ( Rajneesh Gulati )

    If I understand correctly, you want to copy the purchase order text from the material master directly into the PO's for this material.
    I got the same problem; text appears in PO item text, but doesn't appear on print preview.
    => check your forms first
    => if you can't find an error here, check the copying control in
    SPRO -> Materials Management -> Purchasing -> Purchase Order -> Texts for purchase orders -> Define copying rules for item texts
    go to the text linkages of the text type that you want to see appearing
    => make sure that the entries with source object 'material master' have the Fix value (blank) rather than N or * (if you see the text appearing in the PO but not on the print out, this means that this setting is currently set on *)
    Hope this helps

Maybe you are looking for