Get an outbund delivery header text

Hello,
I have the need to get one of the header texts of the outbound delivery to save it in other table too. I'm using the READ_TEXT function in the userexit USEREXIT_SAVE_DOCUMENT, but the function don't return anything because the texts are not saved yet in the corresponding table. This is due to the USEREXIT_SAVE_DOCUMENT is executed before the COMMIT of the outbound delivery.
Is there any way to achieve this without to modify the standard code?
Thank.
Carlos Barragán.

I coded this in USEREXIT_SAVE_DOCUMENT_PREPARE.
DATA:  ENTREGA(70) TYPE c,
       v_texto(40) TYPE c,
       Xline like tline occurs 0 with header line,
      lv_lines TYPE n.
     ENTREGA = 'XXXXXXXXXX'.
     call function 'READ_TEXT'
      Exporting
        id                            = 'Z700'
        language                      = SY-LANGU
        NAME                          = ENTREGA
        object                        = 'VBBK'
      tables
        lines                         = XLINE
      EXCEPTIONS
        not_found = 4.
DESCRIBE TABLE xline LINES lv_lines.
IF lv_lines > 0.
   READ TABLE XLINE INDEX 1.
   v_texto = XLINE-TDLINE.
ENDIF.

Similar Messages

  • Delivery Header text table and feild

    Hi all,
    Can any one guide me where delivery header text is saving i check table STXH ( STXD SAPscript text file header) and field TDID but while i am checking in table i am not getting any text data either based on text or any other combination
    can any one guide me which table its saves .. so
    Thanks
    Rajesh

    Hi,
    It stores in STXH and STXL tables only.
    Which particular header text do you want to find?
    In the delivery; go to the particular header text in edit mode and double click on it to open the text editor.
    The from the menu options Go to-->Header.
    You will get the required information such as
    Text Name
    Language
    Text ID
    Text Object
    Use the same in STXH and STXL table.
    Note that you have to specify the complete delivery number with the initial zeros.
    Regards,
    Ankur Parab

  • Outbound Delivery - Header (Text field - Table Name)

    Hi All,
    In outbound delivery header - Texts tab i notice that we can maintain some texts. May i know which table i should refer to read the text entered.
    I can read the text type key from the table TTXTD, but i need to read the actual text entered by the user.
    Hope my question is clear, await your inputs.
    Regards,
    Vivek

    HI,
    SAP has already provided a various functions for read the text element. So you no need to get the value from table directly!
    There is some example
    CALL FUNCTION 'READ_TEXT'
           EXPORTING
              CLIENT           = SY-MANDT
              ID               = T_TEXT_ID
              LANGUAGE     = 'E'
              NAME          = T_UNIQUE_ID
              OBJECT          = T_TXTOBJ
         IMPORTING
              HEADER          = HTEXT
         TABLES
              LINES          = T_READ_LINE
         EXCEPTIONS
              ID               = 1
              LANGUAGE                    = 2
              NAME                            = 3
              NOT_FOUND                      = 4
              OBJECT                         = 5
              REFERENCE_CHECK     = 6
              WRONG_ACCESS_TO_ARCHIVE = 7
              OTHERS                  = 8.
    Let me explains as below parameters.
    T_TEXT_ID - Text id: example - '08000123', also is the document no.
    T_UNIQUE_ID - Text unique ID: example - 'ZD01'
    T_TXTOBJ - Text Object: example - VBBK
    That information can find it on relevant of document. In your case, you can fount it on the below path:
    VF01n/VF02n > GoTo -> Header -> Text -> detail (is the push small button, then it will go to the next screen) -> Goto -> Header.
    Return Value tales - THEXT and Table Line - T_Read_line
    You must declare this variable before,
    DATA: BEGIN OF HTEXT OCCURS 50.
            INCLUDE STRUCTURE THEAD.
    DATA  END OF HTEXT.
    DATA: BEGIN OF T_READ_LINE OCCURS 50.
            INCLUDE STRUCTURE TLINE.
    DATA: END OF T_READ_LINE.
    READ TABLE T_READ_LINE INDEX 1. "read the line value
    I hope this can help, so remembers reward the points

  • Sales Header Text copy to Delivery Header Text

    Hello,
    We want to copy sales order header text to delivery header text.
    We already did the configuration VOTXN in DEV client and it is working.
    When transported to QA client, we're not able to copy sales order header text to delivery header text.  It is still saying Access Sequence missing.  Checked the configuration in QA, and the access sequence is there attached to the Text Field.
    What else could have been missing?

    Hello,
    Have you created Sales order Header Text by using transaction SO10.
    if Yes,then Run the program 'RSTXTRAN' and attach the Text object to your TR.
    Then Transport this Text to Quality.
    There will be 2 workbench request and 2 Cutomising request.
    Please take care of Sequence in order to move it to QAS(As per Condition Technique Determination)
    Revert if not resolved.
    Regards
    Amit

  • Configuration path for Inbound delivery header text".

    Hi,
    I want separate text type for Inbound delivery, in transaction code VL31N.
    Can any body suggest on "Configuration path for Inbound delivery header text".
    Thanks & Regards
    Sudhansu

    Hi,
    Use Transaction VOTXN.
    *Select the radio button next to Delivery. and select Text types.
    *Go to new entries and create your own text ID after creating text ID go back to the previous screen and select change button.
    Create access sequence.
    select the access sequence you have created and double click ACCESS SEQUENCE FOR TEXT ID folder and Enter sequence number, Text object  and teh text ID you have created.
    Double click text procedure
    Select the text procedure which you are using for teh Delivery document type and double click TEXT ID IN TEXT PROCEDURE Folder.
    Assign the sequenec number TEXT ID and teh ACCESS sequence.
    Afer all teh above configuration steps the you can see the text ID in header text of billing document.
    To retrive teh contents of teh TEXT ID use Fuction module READ_TEXT with TEXT ID, LANG, NAME and TEXT OBJECT as input parameters.
    Note: The contents of the text ID will be in multiple lines of 70 characters each.
    Regards,
    Arun.S

  • How to get the user entered  header text on a delivery

    Hi All,
    I am looking for a internal table which holds the user entered text in header text of the delivery. I was able to find header data in XTHEAD table. But actual lines(entered text)  in which structure it holds. I checked TLINETAB but its empty.
    My requirement is to check the user enterd text to validate at userexi_save .
    Any help will be appreciated
    Thanks
    Sai.

    Hi all,
    Thanks for ur replies.
    I already tried READ_TEXT. but its not giving the current value.
    check the following code:
            CLEAR lv_valid.
            READ TABLE catalog
                  INTO ls_catalog
                  WITH KEY tdobject = c_vbbk1
                             tdname = likp-vbeln
                               tdid = c_z043.
            IF sy-subrc = 0.
              CHECK ls_catalog-function NE 'D'.
              CALL FUNCTION 'READ_TEXT'
                EXPORTING
                  id                      = ls_catalog-tdid
                  language                = ls_catalog-tdspras
                  name                    = ls_catalog-tdname
                  object                  = ls_catalog-tdobject
                TABLES
                  lines                   = lt_tline
                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.
                CLEAR lv_valid.
                READ TABLE lt_tline INTO ls_tline INDEX 1.
                CALL METHOD z2cl_utilities=>is_valid_text
                  EXPORTING
                    p_text  = ls_tline-tdline
                  IMPORTING
                    p_text1 = lv_text1
                    p_text2 = lv_text2
                    p_valid = lv_valid.
                IF lv_valid IS  INITIAL.
                  MESSAGE e504(z2vl) WITH lv_text1 lv_text2.
                ENDIF.

  • Delivery Header Text in SAP Query SQ01

    Hi Friends,
    My requirement is that I need to display the Header Text contents in Outbound delivery in a Query report using SQ01.
    As far as I know, we can pull only table fields in SQ01.
    Is it possible to include Text contents in SAP Query? Can we develop or enhance it?
    Regards,
    AK

    You can add structure and code in a dataset using SQ02, then it will be available to use in SQ01, but a long text can consist of many lines, and so you may require to truncate the text - read [SAP Query|http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/d2/cb3efb455611d189710000e8322d00/frameset.htm] documentation
    - [Creating Additional Structures|http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/d9/9958d4c50a11d396f80000e82de14a/frameset.htm]
    - [Further Code|http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/d2/cb4504455611d189710000e8322d00/frameset.htm] (I suggest record processing or after the query get the table with the text id)
    So create a structure with some text fields, and fill it for every record read in futher code part.
    Regards,
    Raymond

  • BAPI for adding text in the delivery Header Text Tab?

    Dear All,
    We are using the SAP standard BAPI to create the delivery Document by inputing sales order number.
    The issue is that the customer is maintaining the Truck number in the delivery Header Level Text Tab, now he wants that he will give the sales order number and truck number as inputs the BAPI as to create the Delivery document and the truck number should appear in the Deliver header level text tab ("Truck No" text object maintained)
    Please suggest asap.
    Regards,
    Javal;

    Dear Javali,
    Have you tried the function module 'CREATE_TEXT' ?
    Check and revert back.
    Thanks & Regards,
    Hegal

  • Copy delivery header text to shipment header text

    Hi All,
    Please let me know the user/customer exit to copy the header text of delivery to shipment while creation(VT01N) or deletion(VT02N) of shipment for deliveries.
    Please provide the code samples or procedure, if you have any.
    Thanks in advance and points will be rewarded
    -Venkat

    Hi
    Use these User exit and write the code for the same in one perform of its include this is having the delivery details and capture the same into your shipping
    EXIT_SAPLV56F_010
    regards
    Shiva

  • Delivery Header Text Table

    Hi
    Can any one advice how to extract the Delivery Order Header Text?. Any specific table.
    I used the Read_text function module through se37, but not sucessfull.
    can any advice step by step in detail.
    Thanks
    RG

    Check whether text determination procedure and access sequence is proper. The functional module read_text is generally used for printing the text on the form. The table for text is
    STXH: Texts: Header
    STXL: Texts: Line
    And text object is VBBK
    Hope this will help you
    Thanks
    Krushna

  • Modify Delivery header Text

    I have a requirement where I need to modify a header text of delivery and update it . The header text however is copied from STO (we are creating delivery from STO) through a copy routine.
    I need to know the user exit / badi / extension where I can implement this logic. The point where STO header text is copied from Delivery and I can acess this data before delivery save and update it.
    I tried many user exits but the text was not available until that point.

    Hi Neha,
    I would recommend you to create the copy of the routine xxx to 9xx that does the part of copying the text from STO to delivery and then after configuring the same routine in SPRO instead of the standard one.
    In the copied routine i.e. 9xx you can add the code and see the change happen.
    Please validate the same at your end as well, please come back if any inputs from my end are required on this.
    BR/Thanks
    Pranav Agrawal

  • Delivery header text Y104

    here i am doing smart form .in one of field it has been mensioned to take that value as
    from header text y 104
    what does it mean
    i know hoe to take text using read_text but what does it mean by
    from header text y 104

    Hi Ravi
    Proceed as below:
    For reading any texts in SAP we can use FM: <b>READ_TEXT</b>.
    Required parameters will be: <b>Name, ID, Object and Language.</b>
    To retreive these details,
    1. Goto the document texts in change mode.
    2. Double click on the text area
    3. An Editor screen will be opened.
    4. Via Editor screen, use menupath: Goto-> Header
    5. In the next popup screen, we will find the ID, Object, Language and convention for Name.
    6. Use these details for FM: READ_TEXT to capture the same.
    Your code should be something like below:
    DATA: VBELN TYPE VBELN,
          IT_TLINE TYPE TABLE OF TLINE,
          WA_TLINE TYPE TLINE.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        ID                            = 'Y104'
        LANGUAGE                      = SY-LANGU
        NAME                          = VBELN  " <--- Delivery Number
        OBJECT                        = 'VBBK'
      TABLES
        LINES                         = IT_TLINE
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8.
    And for your second part of the question, header text y104 means the one you can see via menupath: Goto->Header->Texts
    Hope this info gives you some idea of retreiving the details. Once retreived use the same to pass to the FORM and printing.
    Kind Regards
    Eswar

  • Delivery Header Text not getting updated using Inbound DELVRY03 IDOC

    Hello,
    I am using inbound iDOC delivery DELVRY03. I am attempting to populate a text field with segment E1TXTH8, but I can not get it to work properly. The iDOC gets posted successfully in status 53, but text does not get updated.
    Does anyone know what the values for field FUNCTION are supposed to be?
    Any other suggestions?

    Following are the values
    E1TXTH8
    Function             001
    Text Object          VBBK
    Text Name            0080000210
    Text ID              Z112
    Language             EN
    Text format
    LANGUA_ISO           EN
    Item
    E1TXTP8                     * 12343468912334445424
    E1TXTP8                     * 12343468912334445423
    E1TXTP8                     * 12343468912334445422

  • Transporting Sales texts to Delivery header text

    Hi All,
    I'm trying copy text from sold to party to delivery.It works fine in DEV client.But when i transported this change to test client it is not working.I've checked in VOTXN and everything looks fine.
    Please advise what could be the cause for this.
    Kind Regards,
    Venkat

    Is it done with Copy control or with some development kind of stuff?
    If from Copy control than get functional person to cross check the configuration between both clients.

  • Report with Delivery number and header text as output

    Hello all,
    I need to create a "quick and dirty" report that which will give me every delivery number, and the corresponding header text, in the month of July for given shipping points.  I am having trouble figuring out how to get the header text for the deliveries.  I have searched and searched but the solutions given just don't make sense to me.
    Regards,
    Davis

    Hi,
    You need to use the function module READ_TEXT to read delivery header text.
    Please go to transaction SE75 and use VBBK as the OBJECT to find the specific ID which is required.
    Regards,
    Ferry Lianto

Maybe you are looking for

  • Mail deleted in server still showing up in iPad inbox

    Hi, I've noticed that when I delete emails from my hotmail account on the web, the items deleted  are still showing up in my iPad inbox marked as unread. But when I click on it, it says "message cannot displayed."  When I go back to the iPad inbox, t

  • New user of Mail

    After many many years of using Eudora I have moved to using Apple Mail. The main drivers for this were better handling of html content messages, long attachment names, integration with address book and a more standard mail format. Overall I think thi

  • Generic icons instead of application icons

    In Finder windows, I regularly get generic document icons instead of those belonging to the associated application, e.g.,  generic PDF icons instead of the Adobe Reader icon (which is what I's like to show up). Solutions? Thank you.

  • Missing method "setfocus"

    I'm getting the Error: hostPsuedoModel does not have a method 'setfocus'   do we have something installed wrong.  Designer version, 8.2.1.....

  • Virtual Machine Not Starting

    Hi All, After creating my virtual machine, and I click start, I get the following errors: An error occurred while attempting to start the selected virtual machines. 'Test Server' could not initialize. I have already enabled the VT of the processor an