Item Text of PO needs to be populated before it is saved

Hi All,
I have to write Item text of PO to Application server along with other PO details.
So using ME21n I am trying to do this using a BTE, but when BTE is triggered by  that time item text is not saved to PO so I am unable to capture it.
Please suggest the approach or solution for this issue.
Thanks in advance.

hi,
u will not be able to fetch the latest value untill commit take place for me21n..
So u need to get that value at runtime, so u need to debug and find out, I think u will get some method which will give u that current text...
And write enhancement(may be implicit) and write ur data to App. server.

Similar Messages

  • Line Item Text in MIGO: needs to be populated in Material Doc#.

    Hi Friends ,
    Can we  have the solution of this query "When I am doing Goods receipt I am entering some text in the text field in the where tab of the item.
    But this is not creating any corresponding entry in the mseg table.
    Again if go to change mode MB02 and then enter the text it is taking it properly. How it can get reflected directly in Material Document instead of changing Mat.Doc.
    Regards,
    Lalit
    Noida.

    .

  • 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

  • LSMW - Direct Input - Sales order - item text

    Hi,
    I'm having a problem similar to the problem posted by Laurent Guilloteau on 2/3/2006 titled:
    LSMW - Direct Input - Sales order - item texts
    While this thread shows the issue as being answered, I'm not clear on what action to take.
    I'm using an LSMW with program RVINVB10 to load sales orders to SAP.
    I'm successfully loading the orders, including header level text, however the item text is not showing on the order.
    I have source structures defined as follows:
    Source Structures
           REC1                     VBAK - Header
               REC4                     VBPA - Order Partners
               REC6                     BTEXHKOM - Header Text Header
                   REC7                     BTEXLKOM - Header Text Lines
               REC2                     VBAP - Order Items
                   REC8                     BTEXHKOM - Item Text Header
                       REC9                     BTEXLKOM - Item Text Lines
                   REC3                     VBEP - Order Schedule Lines
    In actions 'Read Data' and 'Convert Data', I see text for the two text structures, at the header and item level. But after execution of Direct Input program, I don't see text in at the item level of the sales order, however I do see text at the header level.
    Does anyone have any insight on what's causing the item level text not to show on the order?
    Best regards,
    Stuart

    Hi all,
    Many thanks for the suggestions.  One of our expert developers got involved and provided the solution.
    In order to have item level text populate, the VBAP-PSTYV  (the sales document item category) field also needs to be populated.  The VBAP-PSTYV field value is dependent on the sales document type.  (Or, at least it is for the configuartion set up in my example)  The sales document type is VBAK-AUART.
    Stuart

  • Can we restrict the printing of PO Item text based on PO types?

    Dear Experts,
    We have a requirement related to printing of PO Item Text.
    We need to print a perticular Item text  only for a certaing PO type (ex:  NB only).
    How can we restrict the printing of PO Item text based on PO types?
    Please advise.
    Regards,
    Shashidhar

    Hi,
    In one of my earlier Projects we had a similar requirement and the Best solution we could give to our client was to Create New Output Type and asked our ABAPer to Delete/Deactivate the fields / texts which were not required  for PO printing and the User was asked to select the New Output type for Printing.
    Take help of a ABAPer to change the fields required for Printing  this new Output Type.
    Discuss with your client and see if it works.
    Best regards
    Amit Bakshi

  • Display PO item text before save

    Need to display item text of Purchase Order in print preview before the PO is saved.
    How do I achieve this.
    When PO is saved Iable to get the Item text using FM : Read_Text.
    I have searched the thread mentioned solutions donot satisfy my requirement.

    Hi,
    Use the following sample code in ME_PROCESS_PO_CUST (BADI). for me it is working
      TYPES: BEGIN OF IT1," occurs 0 with header line,
              WORD1 TYPE C LENGTH 10 ,
              WORD2 TYPE C LENGTH 5,
             END OF IT1.
      DATA: IT2 TYPE IT1 ."occurs 0 with header line.
           IT2-WORD1 = '          '.
          IT2-WORD2 = ITM_DATA-EBELP.
          ST1 = IT2.
          TDNAME = ST1.
          OBJECT = 'EKPO'.
          ID = 'F01'.
          EN = 'EN'.
          CALL FUNCTION 'READ_TEXT'
            EXPORTING
              CLIENT                  = SY-MANDT
              ID                      = ID
              LANGUAGE                = EN
              NAME                    = TDNAME "' 00010' "TDNAME
              OBJECT                  = OBJECT
            TABLES
              LINES                   = LINES1
            EXCEPTIONS
              ID                      = 1
              LANGUAGE                = 2
              NAME                    = 3
              NOT_FOUND               = 4
              OBJECT                  = 5
              REFERENCE_CHECK         = 6
              WRONG_ACCESS_TO_ARCHIVE = 7
              OTHERS                  = 8.
    regards,
    sathis

  • HEADER TEXT COPY TO ITEM TEXT

    dear all,
    Can i know whether can we copy the Sales order header text to sales order item text.
    Description:
    While creating sales order, the value which is entered in header text needs to copy to all the line items.
    I have tried in text determination, which is not working. Kindly throw some light on the same
    regards,
    Arun prasad C R

    Header text correspond to the entire document, whereas the Item text is specific to that particular line item in the sales order.
    It is not posible in the standard to copy the Header Text to each of the item text. You need to maitain the text IDs in the text procedure for the item and assign the relavant text procedure to the Item category.

  • Transfer text of VBKD-BSTKD_E into a item text category when creating order

    Hi,
    when creating an order a text should be entered manually in the field 'VBKD-BSTKD_E' . Because the order is a third-party-order and we want to have this information of field 'VBKD-BSTKD_E'  also in the MM-purchase requisition to this order, the manual entered text of 'VBKD-BSTKD_E' should be transfered into a special item-text-category in the sales order (We made already the customizing that this special item-text-category goes automatically into the MM-purchase requisition when saving the SD-order). Now we have tried already to solve this issue with the function module 'change_text' and 'create_text' in the SD-user-Exits (1. Try: userexit_move_field_to_vbap and 2.Try: ZXVVAU05). We were able to change or create the text with these function modules but, although we used afterwards additionaly function module 'Save_text' to save the text, the text wasn't saved by the system.
    Has anybody an idea how this could work?
    Regards
    Stephan

    Read the header lever text using READ_TEXT, and use the SAVE_TEXT to save the text at the item level.  Obviously you have to change the TDOBJECT field before saving it.
    Albert

  • 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

  • Need to display Line item text in PO form...

    Hi,
    I could see some posts already in this regard but could not follow it and hence posting my query.
    In the defaut MEDRUCK PO form I could see that the line item text is displayed with the following statement.
    &TTXIT-TDTEXT&
    INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE &EKKO-SPRAS& PARAGRAPH IX
    I have my customized version of MEDRUCK and in that I want to include the same. How do I achieve this ??
    I tried to include the above statements as it is, but it did not work. The same is the case with my header text requirement. Its corresponding statements in MEDRUCK are
    &TTXIT-TDTEXT&
    INCLUDE &T166K-TXNAM& OBJECT &T166K-TDOBJECT& ID &T166K-TDID&  LANGUAGE &EKKO-SPRAS&
    What could be wrong ??
    Please help.
    thanks

    May be you are using these statements in wrong text elements in PO sapscript.
    Keep in mind that &T166P-TXNAM&, &T166P-TDOBJECT&, &T166P-TDID&.... are variables and there values are filled by sapscript calling program.
    Now it is possible that in your case you are putting this include statement in wrong text element. To check this you can print the variables just before include statement to make sure that values are correctly populated such as
    &TTXIT-TDTEXT&
    Printing Values: &T166P-TXNAM&, &T166P-TDOBJECT&, &T166P-TDID&
    INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE &EKKO-SPRAS& PARAGRAPH IX
    If the values are not populated, you may want to populate these manually by calling an abap routine before include statement and in that abap routine you can populate values for TDOBJECT, ID, and other relevant fields.
    Hope this is helpful to you.

  • Need help to change line item text for 220 Line items

    Hi Specialists,
    The user has posted a reversal entry ( doc type : Manual Accrual) using TCODE FBS1.
    It has 220 line items.
    Is there a way in SAP he can change the text of All Line Items for a particular document number in one shot ( Mass Change).
    Pls note : Header text remains same . Only the line item text needs to be changed in one shot .
    For Eg :
      1 50 2758000047 Accruals for CAS               Accrl - Dec 08 / Nalini Marketing(Door Mats) - Oth
      2 50 2758000047 Accruals for CAS               Accrl - Dec 08 / SKC - M&E Repair
    Changed Description:
      1 50 2758000047 Accruals for CAS               Accrl - Jan 09 / Nalini Marketing(Door Mats) - Oth
      2 50 2758000047 Accruals for CAS               Accrl - Jan 09 / SKC - M&E Repair
    Thanks,
    Abhinav.

    Hi
    This is possible, please follow as below:
    If it is GL (FBL3N), Customer (FBL5N), Vendor (FBL1N) line item use the TCODE' mentioned.
    In the selection screen, if possible give all the document numbers (it is possible with addition selection).
    Once you get the output with the line item, select all line items and go to the menu options  there you can see the mass change option, it will give one popup screen give the new value in the text field and proceed further.
    VVR

  • Service entry short text needs to default in MIGO item text

    Dear SAP Gurus,
    How service entry short text can be default in MIGO item text,
    currently system is defaulting service text in Text filed in MIGO(MSEG - SGTXT )
    can any body let us know.
    Thanks in advance
    Vinod
    Edited by: Vinod Malagi on May 25, 2009 1:58 PM

    Hi Chakrapani,
    The functionality i am awere, in that while passing service entry sheet both service number and backend MIGO transaction will be called for MIGO transaction the service text from the service entry sheet needs to populate in MIGO text ,
    but the standard functionality is defaulting from item service text
    please suggest the same.
    VInod

  • Contract item text to be transferred in PO --Need help

    Hi,
    Need help. Is there any BADI for the following?
    Classic Scenario. Sourced shopping cart. Referring to service contract.
    When PO is created upon approval of sourced SC, then need to have the item text in contract to be copied in PO line item.
    Example: Contract line item 10 with item category D has text  say "testting.."
    When PO is created upon approval, it should also show the same text in PO line item under description.
    BR
    arjman

    Hi,
    There is a configuration for transferring the text from SRM SC to SRM PO, no coding required.
    If you want the code, here is the logic.
    Using FM 'READ_TEXT' you can retrieve the text, then use  BADI BBP_DOC_CHANGE_BADIBBP_PO_CHANGECT_LONGTEXT. Set the Filter for PO.
    If this is the PO in Backend system (ECC), BADI BBP_ECS_PO_OUT_BADI~CT_BAPI_POITEM_TEXT
    Thanks,
    Meenakshi Sundaram R

  • ERS (transaction MRER) - Item text no longer populated

    Hi
    We are upgrading to version ERP 6.0.  We are using ERS (transaction MRER) to auto-post invoices for GR based purchase orders.  In the old version the Item text has always been updated with the text "Evaluated Receipt Settlement" but in the new version the item text is blank.   Does anyone know what I need to do to get the system to populate the item text again?
    Thanks

    Your Template code is incomplete / corrupted. 
    That's why you can't edit it.
    Try opening your .dwt file in a plain text editor like NotePad.  Remove the editable regions from code.  Save.  Open in DW.
    You will need to SaveAs Template (same name as the one used by your child pages).  Add editable regions to match the ones in your child pages.  Save.
    Nancy O.

  • Item text needed in Smartform for Purchase Order

    Dear Friends
    i am creaing a smartform form for a Purchase Order , where i am to show item text , & material po text
    also but i am not getting how to show them , i have tried with Function Module Read_ text but if for any item text is not maintained it throw a error     text xxxxxxxxxx code f01 not found in language en .
    kindly somebody help me with the elaborated steps
    regards
    digvijay rai

    Requirement : Need to display the item text in the scripts Tcode me23n.
    problem: the below subroutine program which i wrote reads the entire paragraph but when the values transfered to the script, the script variable accepts only one line. can you please help to pass  the entire value to scripts.
    Actual output
    th respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the exchoose warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.D
    Displayed  output
          th respect to the materials. The only warranties for SAP Group products and s
    code written in scripts :
    DEFINE &VALUE& TYPE STRING(500)
    PERFORM ITEMTEXT IN PROGRAM ZDISPLAYINGITEMTEXT
    USING &EKKO-EBELN&
    USING &EKPO-EBELP&
    CHANGING &VALUE&
    ENDPERFORM
    Item Text : &VALUE&
    REPORT  ZDISPLAYINGITEMTEXT.
    DATA : name type thead-tdname,
           p_ebeln TYPE ekko-ebeln,            "  Purchase order Number
           p_ebelp TYPE ekpo-ebelp.
    types :strin(450).
    data : p_valu type strin.
       data : p_valu1 type strin.
    data: lines type table of tline with header line.
       data: IT_LINE LIKE STANDARD TABLE OF itcsy INITIAL SIZE 0 WITH HEADER LINE,
    IT_TEXT1 LIKE STANDARD TABLE OF itcsy INITIAL SIZE 0 WITH HEADER LINE,
    W_LINE LIKE IT_LINE.
    Types : stri(450).
    data f_name type stri.
    FORM itemtext TABLES i_intab STRUCTURE itcsy
                           i_outab STRUCTURE itcsy.
    *BREAK-POINT.
        READ TABLE i_intab INDEX 1.
      MOVE i_intab-value TO p_ebeln.
      READ TABLE i_intab INDEX 2.
      MOVE i_intab-value TO  p_ebelp.
    *parameters: p_ebeln type ekko-ebeln,
               p_ebelp type ekpo-ebelp.
    concatenate p_ebeln p_ebelp into name.
    call function 'READ_TEXT'
         exporting
              id                      = 'F01'
              language                = sy-langu
              name                    = name
              object                  = 'EKPO'
         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.
    loop at lines.  "   INTO w_line.
    BREAK-POINT.
    *move w_line to it_text1.
    *append it_text1.
    *write:/ it_line.
    *p_valu = f_name.
    *p_valu1 = w_line.
    concatenate p_valu lines-tdline into p_valu.
    *p_valu = f_name.
    endloop.
    message p_valu type 'I'.
    READ TABLE i_outab INDEX 1.
        MOVE p_valu TO i_outab-value.
        MODIFY i_outab INDEX sy-tabix.
    *loop at lines.
    write:/ f_name.
    *endloop.
    *READ TABLE i_outab INDEX 1.
       MOVE lines TO i_outab-value.
       MODIFY i_outab INDEX sy-tabix.
    endform.

Maybe you are looking for

  • How do you make the icloud contacts folder the default contacts

    I have set up iCloud Contacts on my PC running Windpws 7, with MS Office 2010.  Whenever I add a name in an email, it goes and looks for that name in my old contacts foler, not the new iCloud folder that was created when I added iCloud.   How do I ge

  • Imessage won't work on my mac

    Everytime I try to sign in to Imessage it say it doesn't have the appropiate credidentials. It use to work. I don't know what has happened. Can anyone help me with this? Thanks so much

  • Premiere 8 crashes (BSOD) when I try to render video

    I finally finished my video project, but I'm unable to create a DVD image.  As soon as I click the requisite buttons, my system crashes to a page fault/BSOD, dumps the memory, and reboots. My system is a Dell Studio XPS with an i7 processor, 9GB of R

  • Substitution in New Ledger

    Dear experts, One of companies is using new ledger, 0L is leading ledger, and anther ledger is ZL. Right now ,we have a requirement .We hope ,for example ,during we book a FI document with G/L account 1160,we want to it is replaced with 9260 into ZL

  • Hi! I have an iPod Touch 2nd Generation videos in iTunes won't copy?

    Hello! I have an iPod Touch 2nd Generation, and I've been trying to put some videos on it, but whenever I try to sync it with my videos on iTunes, I get a message that says ''__' Was Not Copied to the iPod "__'s iPod because it cannot be played on th