Read header text before saving delivery during creation

Dear All,
Could you please suggest, how to read the header text before saving the delivery during creation.
Regards,

I dont think you can do it before saving the delivery but you can after saving the delivery.
Check out the program MV50AFZ1 - There are two user exits "userexit_save_document" and "userexit_save_document_prepare" .
To read the text (as far as i know), you will need the document number (user READ_TEXT function module).
Document number is not available in user exit  "userexit_save_document_prepare" but it is available in "userexit_save_document" .
I dont know what is your requirement but you can choose from the above options. You can read the text from save_document user exit but the delivery was already saved.
good luck

Similar Messages

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

  • Prin preview of item text before saving PO

    Hello,
    when I create a PO I can use the print preview of the PO before actually creating/saving the PO. However if I do this I can't see the item text. The item text is only visible in the print preview after the PO is saved.
    Do you know if it is possible to change this so I can see the item text before saving in teh print preview?
    Thanks
    Sofia

    You need to take ABAPer help and see the Print pre-view parameters maintained for the Script/Smartform for the PO Output Type you are using..
    If possible try to include the Item text into those parameters..
    As far as I know only for MEDRUCK script, we can see the print pre-view..

  • Javascrip to read Header text in pdf

    Hi all
    I'm new to use javascritp in PDf , i used javascript in Photoshop and illustrator i'm new to PDF
    i need a script to read header text in all pages of pdf where font, fontsize must be same
    Please anyone help me to develop script

    JS has no access to the type face information of text in a file. Best you
    can do is get the font size by analysing the coordinates (quads) that
    define each word on the page.

  • Read Header Text  From VF03 Transaction

    Hi Frds,
                  I want to Read Header Text  From VF03 Transaction
    Read Transport Number and Transport Date From Vf03 Transaction.
    Guide Me Briefly
    How to pass the varaibles to the function Module
    Regards,
    Kabil

    hi Kabil ,
        Your issue completely accepted just keep in mind
    1) if you have to read both text you have to use read_text 2 times
    2) in that for first read_text
    CALL FUNCTION 'READ_TEXT'
         EXPORTING
          CLIENT                =       SY-MANDT
           ID                       =       '0002'
           LANGUAGE        =       SY-LANGU
           NAME                =        '             '          "" YOUR VARIABLE THAT CONTAINS Invoices number
           OBJECT             =        'VBRK'
          TABLES
           LINES                =         TLINE
       IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF. 
        is ok for Header note 1 .(means first text ) but for second text your ID is change other thing is same .
    CALL FUNCTION 'READ_TEXT'
         EXPORTING
          CLIENT                =       SY-MANDT
           ID                       =       '0013'
           LANGUAGE        =       SY-LANGU
           NAME                =        '             '          "" YOUR VARIABLE THAT CONTAINS Invoices number
           OBJECT             =        'VBRK'
          TABLES
           LINES                =         TLINE
       IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    Hope this will help you
    Thanking You,
    shrikant padwale.

  • PLEASE HELP!! Need some way to read header text in advanced datagrid using QTP

    I am writing a function to read column names in advanced data
    grid. There is no operation for that and any of the properties that
    I can use to read the column names.
    Please suggest any way that I can get the names of columns in
    the advanced data grid.
    Thanks

    I hope to hear something from adobe folks...I am providing
    more info.....
    I am using QTP 9.2 and Flex 3 add-in available from Adobe.
    My application has flex Advanced datagrid object and I am
    trying to read column names for the datagrid.
    I have contacted developers and they told me that column
    names for flex advanced datagrid are stored in "Header Text"
    I have tried reading "Header Text" using
    GetROProperty("HeaderText") but it doesn't return anything.
    I have tried the following code:
    x =
    Browser("app").FlexApplication("flexapp").FlexCanvas("Canvas").FlexAdvancedDatagrid("esti mategridid").GetROProperty("Header
    Text")
    msgbox x
    I have also tried getting value for column names using other
    available properties for webtables like outerhtml, outertext, alt
    etc. but I don't get any data.
    Part of the problem may be because none of the above
    mentioned properties are supported by Flex Advanced datagrid.
    I have also tried getting child objects but I always get the
    data in datagrid as values but not the column names.
    My primary reason for getting column names is to write a
    function to update cell in datagrid independent of application. So,
    I want to pass column name as a parameter to the function and get
    the corresponding columnIndex in the function by comparing the
    parameter value against column names.
    Thanks to all for you help...

  • How can i read header text?

    how can i read header text?
    ie, i want to read two values that are stored as header text in purchase order.
    how can i retrieve that values?

    Hi,
    The long texts of a document are stored in a encrypted format in the STXH and STXL tables, where STXH stores the header information of the
    long text like TDOBJECT, which indicates which text object the long text belongs to, TDID which indicates the Text ID and TDNAME which is
    the actual name of the long text.
    As these texts are stored in a encrypted format, the text cannot be read using a SELECT statement. You will have to use the function READ_TEXT. The easiest way of getting to know the parameter values is to go to a document, open the long text in a full screen mode. For example, when you wan to see the long text for a Purchase order, go to transaction ME23n. Assume, you want to see the parameters for the Header Text. In the first Tab Strip Control, click on the Texts tab and select the Header Text node on the left hand side, which will display the text on the right hand side. Now, double click on the text editor on the right hand side. This will open the text in the full screen mode. In the menu Go To --> Header, you should be able to see the values for all the three parameters we discussed above. We will have to do the same thing for whichever text parameters we want to see.
    TREC-TDSPRAS = SY-LANGU.
    TREC-TDID = 'ECCS'.
    TREC-TDOBJECT = 'ZECCS'.
    TREC-TDNAME = Z_ACCOUNT.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    ID = TREC-TDID
    LANGUAGE = TREC-TDSPRAS
    NAME = TREC-TDNAME
    OBJECT = TREC-TDOBJECT
    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.
    Details:
    Language DE
    Text ID F01 Header text
    Text Object EKKO Purchasing doc. header texts
    Regards,
    Shiva Kumar

  • How to read header text in MM contract (ME31K/ME32K) before saving record?

    Hi All,
    In ME31K / ME32K (Contracts), before saving the contract I would like to check if the user has entered header text in the contract or not.
    I am using customer exit MM06E005.
    Can anybody help me with this?
    Thanks in advance.

    Try creating dummy text id which will be part of text determination procedure @ Customers sales text & document header text.
    else, maintain the SO10-text against this text ID. whenver user createds quotation this text will be defaulted irrespective of the cusotmer.
          then based on if user want to modify the text they have to enter manually in this text id. print this text in header.
    Regards,
    Reazuddin MD

  • ME32K: read text before saving

    Hi everybody,
    I have checked some threads that I think could help me with my problem but I have no luck. My be somebody can help me...
    I need to check a specific header text at ME32K transaction before saving. If the user complete it everything is ok, if not an error message appears. I solved this with an exit, but the problem is that the text is not saved at this point, I need to get it from memory and I'm not solving this point.
    Do you have any ide to solve this?
    Kind regards!

    Uhm ok
    That exit is developed for PO, so I've inserted my code in that exit:
    DATA: L_NAME TYPE THEAD-TDNAME.
      DATA: TLINES TYPE STANDARD TABLE OF TLINE.
      MOVE I_EKKO-EBELN TO L_NAME.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
    *     CLIENT                        = SY-MANDT
          ID                            = 'K01'
          LANGUAGE                      = 'I'
          NAME                          = L_NAME
          OBJECT                        = 'EKKO'
    *     ARCHIVE_HANDLE                = 0
    *     LOCAL_CAT                     = ' '
    *   IMPORTING
    *     HEADER                        =
        TABLES
          LINES                         = TLINES
    *   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.
      ENDIF.
    Now I'm go to the header text, do a modification to the text ID K01 and press the CHECKING in order to trigger the exit.
    If I run the process above in debug way, in table TLINES I can see the current text (so all modifications I've done)
    Max

  • Save text in a PO during creation

    Hi All,
    I need to save text in PO during PO creation. I am using the BADI ME_PROCESS_PO_CUST method:PROCESS_ITEM. My EBELN is blank here. I do have other required fields like text id, text name to use in SAVE_TEXT.
    Text needs to be saved before the PO is saved.. User can edit the text. So BADI during PO save is not an option.
    How do i save the text in my PO header during creation and during the line item is entered?
    Do have any other procedure to add the text in the text editor?
    This is my code:
    Please suggest, if we have any alternate procedure to show the text in PO.
    METHOD if_ex_me_process_po_cust~process_item.
       DATA :  ls_mepoitem TYPE mepoitem,
                ls_mepoaccount TYPE purchase_order_accountings,
                ls_mepoacc TYPE purchase_order_accounting,
                ls_mepoaccountdata TYPE mepoaccounting,
                ls_mepoheader TYPE REF TO if_purchase_order_mm,
                ls_mepoheaderdata TYPE mepoheader.
        DATA: gt_lines TYPE STANDARD TABLE OF tline,
              gwa_line TYPE tline,
              g_tdname TYPE thead-tdname,
              g_poname TYPE thead-tdname.
        DATA: header TYPE STANDARD TABLE OF thead,
              wa_header TYPE thead.
        DATA: lines TYPE STANDARD TABLE OF tline.
        CONSTANTS : gc_z056(4) TYPE c VALUE 'Z056',
                    gc_f06(4) TYPE c VALUE 'F06',
                    gc_ekko(4) TYPE c VALUE 'EKKO'.
        ls_mepoheader = im_item->get_header( ).
        ls_mepoheaderdata = ls_mepoheader->get_data( ).
        ls_mepoitem = im_item->get_data( ).  "Table
        ls_mepoaccount =  im_item->get_accountings( ).   "Table
        LOOP AT ls_mepoaccount INTO ls_mepoacc.
          CLEAR ls_mepoaccountdata.
    * Get the newly updated PO item data
          CALL METHOD ls_mepoacc-accounting->get_data
            RECEIVING
              re_data = ls_mepoaccountdata.
        ENDLOOP.
        IF ls_mepoheaderdata-bstyp = 'F' AND ls_mepoitem-knttp = 'M'
        AND ls_mepoitem-matnr <> ' ' AND
        ( ( ls_mepoheaderdata-bsart = 'UB' OR ls_mepoheaderdata-bsart = 'NB' ) AND ls_mepoheaderdata-lifnr <> ' ' ).
          REFRESH gt_lines.
          g_tdname = ls_mepoaccountdata-vbeln.
          CALL FUNCTION 'READ_TEXT'
            EXPORTING
              id                      = gc_z056
              language                = sy-langu
              name                    = g_tdname
              object                  = 'VBBK'
            TABLES
              lines                   = gt_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 IS INITIAL.
            DELETE gt_lines WHERE tdline = space.
          ENDIF.
    *      g_poname = ls_mepoitem-ebeln.   *"ls_mepoitem-ebeln is blank here*
          wa_header-tdobject = gc_ekko.
          wa_header-tdname   = g_poname.
          wa_header-tdid     = gc_f06.
          APPEND wa_header TO header.
          CALL FUNCTION 'SAVE_TEXT'
            EXPORTING
              client                = sy-mandt
              header                = header
              insert                = 'X'
              savemode_direct       = 'X'
            TABLES
              lines                 = gt_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.
        ENDIF.
      ENDIF.
    Thanks,
    Senthil.
    Edited by: senthil kumar on Jun 11, 2009 3:02 PM

    I haven't used this method myself, but when I look at method PROCESS_ITEM, the import parameter IM_ITEM  is of type (REF TO) IF_PURCHASE_ORDER_ITEM_MM. This has interface method IF_LONGTEXTS_MM~SET_TEXT (description: set long text per text id). This sounds like a good method to use.

  • How to  read header texts in the on save user exit of VA01

    Hi Experts,
    I have a requirement to read the header texts in the on save user exit.
    I have to check whether departmental code in header text is not initial or not.
    Can any one please pour in some points of how it can be done......
    Thanks in Advance.
    Prem

    Hi
    U can use fm READ_TEXT:
    DATA: THEAD LIKE THEAD,
          TLINES LIKE STANDARD TABLE OF TLINE WITH HEADER LINE.
    THEAD-TDID     = <text id>.
    THEAD-TDSPRAD  = <language>.
    THEAD-TDOBJECT = 'VBBK'.
    THEAD-TDNAME   = VBAK-VBELN.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        ID                            = THEAD-TDID
        LANGUAGE                      = THEAD-TDSPRAD
        NAME                          = THEAD-TDNAME
        OBJECT                        = THEAD-TDOBJECT
      TABLES
        LINES                         = TLINES
    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.
    ENDIF.
    U can use it in all situations ( inserting and updating) because that fm returns the buffered text.
    Max

  • 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

  • MIGO change header data before saving

    Hi all,
    I want to update header data (budat) before saving the material document with MIGO.
    Has anybody an idea?
    I tried with Badi: mb_document_badi or similar user-exit
    MB_CF001 but with none of these I can CHANGE header data.
    Is it possible?
    Thanks a lot!

    check this
    MB_DOCUMENT_UPDATE
    regards
    Prabhu

  • How to read header text from VF03 into smartfrom

    Hi all,
    i want to print header text from vf03 in smartforms
    bye

    Hi,
    Tcode VF03 enter Billing Doc no -
    >goto header-----> select header texts
    When you get the values Textname, text id, textobject to the smartform.
    call the FM read_text in the programing lines to get the long text in the internal table. Another way to retrieve the long text is to use INCLUDE but for your requirement is better to uses READ_TEXT function module.
    Once you get the data in the internal table.
    Create table and loop the long text internal table. Now in the table when create a text node, keep a condition on the text node in the conditions column that when sy-tabix = 3. Which means you are skipping two lines (Administrative data).
    Procedure:
    1. Right click > create-> programming lines.
    2. In the Input parameters pass TEXT NAME, TEXT ID, Text Object and Interanal table(itab) and In output paramaeters the Internal table (itab).
    3. call function Read_text and pass the values.
    4. create a table for Itab.
    5. create a text node.
    6. Keep a condition on the text node sy-tabix = 3 in the condition tab of the text node.
    7. &itab-line&
    <b>Check this link for sample program</b>
    long text in smartform
    Regards,
    Maha

  • Save text in a PO during creation  from APO

    Hi All,
    I need to save SO text in PO during PO creation from APO.
    I am using the BADI ME_PROCESS_PO_CUST method:PROCESS_ITEM.
    This works perfectly when PO created from ECC - ME21N. However when a PO is created from APO (by converting PR) this BADI did not trigger or works.
    Then I have tried using Purchase order CIF user exit CIFPUR02 ->EXIT_SAPLCPUR_001->ZXCIFU06
    It didnot brings in the purchase order number to be created. Hence I could not able to copy the sales order text to purchase order.
    Kindly let me know the user exit or BADI triggers during PO creation from APO to copy sales order text to purchase order.
    Thanks,
    Senthil Kumar

    Hi,
    Use this.
    ME_PURCHDOC_POSTED
    Regards,
    Shamma

Maybe you are looking for

  • 521 Rejeição: CFOP não é de Operação com Exterior e UF destinatário é EX

    Olá, Bom Dia a Todos Foi criada uma nota fiscal writer com a categoria I1, saindo de São Paulo para um cliente do Rio de Janeiro, na operação foi utilizado um CFOP incorreto, de dentro do estado, ou invés do interestadual. Neste cenário a SEFAZ retor

  • Mainstage 2.1.3 crashes during performance

    Lately Mainstage 2.1.3 has stopped running during the middle of a performance.  I am suing an Apogee Duet 1 with an Apogee breakout box, an MAudio Axiom61 connected via usb and my Macbook Pro 2.4 GHz Intel Core I5 with 8 GB of ram.  Any ideas?

  • Need help with update statement with multiple joins

    I've got the following select statement that is pulling 29 records: SELECT PPA.PROJECT_ID, PPA.SEGMENT1, peia.expenditure_item_id, peia.expenditure_type, pec.expenditure_comment FROM PA.PA_PROJECTS_ALL PPA, pa.pa_expenditure_items_all peia, pa.pa_exp

  • Can't autofill songs to Gen 2 shuffle

    I'm using a normal pc with win XP now with itune 7.3 installed. Its able to sync my shuffle when dock but always show error message of can't copy songs into shuffle with some numeric code kind of error. I have tried all ways to re install, re format,

  • FCS Antimalware Engine Deployment Status shows non-compliant

    We have Forefront Client Security as the enterprise antivirus solution. We see that all the computers are updated with the latest virus definition files through WSUS with no issues. When I generate the compliance report, (deployment summary) I find t