Item text in Purchasing order

Hi all,
  I have developed a smart form for Purchase order in that i am displaying header and item texts by passing text name, text object, text ID and language to include text.
My problem is when i am looking in print privew for just creating document (Which is not saved yet so then document number is not generated) then header text is commping perfectly(I am passing the document number to Text name but presently it is initial but it is comming perfectly) but item text is not comming (I am passing the concatinated value of document number and item number to text name).
Please suggest me how to display newly creating purchase documents item texts(No yet saved purchase orders).
If it is not possible why the header text is comming perfectly???
Thanks in advance,
Mahi.

Hi kesav,
  The text is not storing in STXH table because the document is not saved yet and the purchase document number is not generated yet. In the STXH table Text Name(Document number) is the key field so the text is not storing in that table.
My problem is not solved yet any body please suggest me how to display the item text in pring privew.
If it is not possible to display the text with out saving the PO why the header test is coming fine???
Mahi

Similar Messages

  • Item text in Purchase Order getting updated with info. record Purchase Order Text

    Hello All,
    I am working in a roll out project and facing issue in text repeating twice for the line item in the Purchase Order for the new company code for which rollout is happening
    Issue:
    Item text in Purchase Order getting updated with info. record Purchase Order Text
    01) PO Text is maintained in the material master under "Purchase Order Text" tab
    02) The PO text that is maintained in material master is getting updated in the Purchase Info. Record
    03) When Purchase Order is created, the "Item Text" gets updated in the Purchase Order automatically only for the new company code for which rollout is happening. when printed, this results in the text getting duplicated twice
    03.1) this behavior is not observed in the Plants/ Company code that is already Live
    Configurations in the system:
    The copying rules for the "Texts for Purchase Orders" is
    Source Object = "Info Record", Source Text="Purchase Order Text", Fix="*"
    We have modified the Purchase Order form to print one of  the condition types maintained for calculating the tax. Other than this there is no change to the plants that are already live.
    I could not locate any "Purchase Organization" / "Company Code" / "Plant specific configuration.
    Am I missing any configuration or where can I look in what is causing this error.
    Request help from the experts in the forum.
    with Regards,
    Dhandapani R

    There is no company/purchasing/plant specific customizing for purchase order text.
    The customizing copying rules for the "Texts for Purchase Orders" affects all equally .
    If the text in the purchase order in ME23N is already filled different to other plants, then you either have a modification in place, or the texts are differently maintained in the referenced data (vendor, material, info record, contract)

  • How 2 Copy Header & Line Item Text from Purchase Order 2 Out Bound Delivery

    Hi SD Gurus,
    I want to copy header and line item text from Purchase Order to Out Bound Delivery (This is required in Stock Transfer Process).
    I have been able to do successful config. for copying header and line item text from Sales Order to Outbound Delivery but config. doesn't seems to be same for copying text from PO to OBD.
    Is there any way to achieve the same? Can some expert show the way to achieve this.
    Thanks in advance.
    Warm regards,
    Rahul Mishra

    Hi Ravikumar thanks for u quick reply.
    This is wht is currently coded.
    concatenate values to get item text for read text function
       invar3+0(10) = invar1. "PO number
       invar3+10(5) = invar2. "PO line number
       SELECT SINGLE * FROM stxh WHERE tdobject = 'EKPO'
                                   AND tdname   = invar3
                                   AND tdid     = 'F01'
                                   AND tdspras  = sy-langu.
       IF sy-subrc = 0.
         invar4 = invar3.
    reading the text for the document items.
         CALL FUNCTION 'READ_TEXT'
           EXPORTING
             id       = 'F01'
             language = sy-langu
             name     = invar4
             object   = 'EKPO'
           TABLES
             lines    = it_itab.
    I have seen some PO's which have info rec texts in that, which gets pulled by the above code...first thing is its id is F02 which exist in STXH table also there is other text with F01 id, and hence the table it_itab gets both these text hence no pbm.
    but i came across a PO which has only one text which is info rec text with id F05 and is not store in stxh and hence doesnot get pulled by read_text fm. How do i change my cod to get this text which should not hamper other PO's as well.
    As mentioned in above msgs, this F05 could be retrieved by providing object name as EINE.
    anyhelp will be appreciated and rewarded.
    thanks

  • Transaction to Mass Update Header and Item text in Purchase Order

    Dear All
    Whether any Transaction in SAP to mass update the Header and Item text in Purchase Order.
    One Single Text For Ex :" This is a Dummy PO" .
    This text needs to be updated in large number of POs.
    Please let me know your views
    Reg
    Shyam

    Hi Shyam,
    You can make use of BAPI_PO_CHANGE for this. See the documentation of this BAPI in SE37 for more information.
    "You can transfer header and item texts in the PoTextHeader and PoTextItem tables. You import texts
    for services in the PoServicesText table. Texts can only be replaced complete."
    Regards,
    Purnima.

  • Item text for Purchase order

    Hi All,
      I Wants to pick the item text for Purchase Order. in my prog i already picked the header text by Read_text FM .i wants to used the same FM for item pickup . Can you please tell the FM parameter Value, so that i can pick proper Item text value.
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Thanks in advance
    Moni
    Edited by: Alvaro Tejada Galindo on Sep 1, 2008 5:09 PM

    Hi Moni
    We can use the same procedure to retrieve texts of any document, just that the Name, Object and ID varies.
    To find the required parameters for each object and document do as below:
    1. Open an existing document
    2. Go to the required Text
    3. Double click on the same
    4. It takes you to the editor screen.
    5. Now use menupath: Goto->Header
    6. In the popup screen you will find the required paramters.
    For item texts the Name will be (PO Number + Item Number).
    Using the details, you can pass the same to FM: READ_TEXT and retreive the texts in programs.
    Regards
    Eswar

  • Change item text in purchase order

    Hi folks,
    I'm trying to change some item text in the purchase order through the BAPI_PO_CHANGE
    with the following test code:
    REPORT zprueba_bapi_po_change.
    DATA:
      itab_text LIKE TABLE OF bapiekpotx,
      wa_text   LIKE bapiekpotx,
      itab_lines LIKE TABLE OF tline,
      wa_lines   LIKE tline,
      itab_items LIKE TABLE OF BAPIEKPO,
      wa_items   LIKE BAPIEKPO.
    DATA: name LIKE thead-tdname,
          id   LIKE thead-tdid,
          object LIKE thead-tdobject,
          v_result LIKE itcer.
    DATA: itab_return LIKE TABLE OF BAPIRET2.
    data: poorder like BAPIEKKO-PO_NUMBER.
    poorder = '4500058923'.
    CALL FUNCTION 'BAPI_PO_GETDETAIL'
      EXPORTING
        purchaseorder                    = poorder
       ITEMS                            = 'X'
    *   ACCOUNT_ASSIGNMENT               = ' '
    *   SCHEDULES                        = ' '
    *   HISTORY                          = ' '
       item_texts                       = 'X'
    *   HEADER_TEXTS                     = ' '
    *   SERVICES                         = ' '
    *   CONFIRMATIONS                    = ' '
    *   SERVICE_TEXTS                    = ' '
    *   EXTENSIONS                       = ' '
    * IMPORTING
    *   PO_HEADER                        =
    *   PO_ADDRESS                       =
    TABLES
    *   PO_HEADER_TEXTS                  =
       PO_ITEMS                         = itab_items
    *   PO_ITEM_ACCOUNT_ASSIGNMENT       =
    *   PO_ITEM_SCHEDULES                =
    *   PO_ITEM_CONFIRMATIONS            =
       po_item_texts                    = itab_text
    *   PO_ITEM_HISTORY                  =
    *   PO_ITEM_HISTORY_TOTALS           =
    *   PO_ITEM_LIMITS                   =
    *   PO_ITEM_CONTRACT_LIMITS          =
    *   PO_ITEM_SERVICES                 =
    *   PO_ITEM_SRV_ACCASS_VALUES        =
    *   RETURN                           =
    *   PO_SERVICES_TEXTS                =
    *   EXTENSIONOUT                     =
    COMMIT WORK AND WAIT.
    name = '600007545900001'.
    id = 'A01'.
    object = 'EKPO'.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    *   CLIENT                        = SY-MANDT
        id                            = id
        language                      = sy-langu
        name                          = name
        object                        = object
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        =
      TABLES
        lines                         = itab_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.
    ENDIF.
    LOOP AT itab_lines INTO wa_lines.
      CLEAR wa_text.
      wa_text-po_number = poorder.
      wa_text-po_item = '00001'.
      wa_text-text_form = wa_lines-tdformat.
      wa_text-text_line = wa_lines-tdline.
      wa_text-text_id = 'F03'.
      APPEND wa_text TO itab_text.
    ENDLOOP.
    SORT itab_text BY po_item text_id.
    CALL FUNCTION 'BAPI_PO_CHANGE'
      EXPORTING
        purchaseorder                = poorder
    *   POHEADER                     =
    *   POHEADERX                    =
    *   POADDRVENDOR                 =
    *   TESTRUN                      =
    *   MEMORY_UNCOMPLETE            =
    *   MEMORY_COMPLETE              =
    *   NO_MESSAGING                 =
    *   NO_MESSAGE_REQ               =
    *   NO_AUTHORITY                 =
    *   NO_PRICE_FROM_PO             =
    * IMPORTING
    *   EXPHEADER                    =
    TABLES
       RETURN                       = itab_return
    *   POITEM                       =
    *   POITEMX                      =
    *   POADDRDELIVERY               =
    *   POSCHEDULE                   =
    *   POSCHEDULEX                  =
    *   POACCOUNT                    =
    *   POACCOUNTPROFITSEGMENT       =
    *   POACCOUNTX                   =
    *   POCONDHEADER                 =
    *   POCONDHEADERX                =
    *   POCOND                       =
    *   POCONDX                      =
    *   POLIMITS                     =
    *   POCONTRACTLIMITS             =
    *   POSERVICES                   =
    *   POSRVACCESSVALUES            =
    *   POSERVICESTEXT               =
    *   EXTENSIONIN                  =
    *   EXTENSIONOUT                 =
    *   POTEXTHEADER                 =
       POTEXTITEM                   = itab_text
    *   POPARTNER                    =
    COMMIT WORK AND WAIT.
    However this code isn't updating the text. Does anyone could tell me what i'm missing?
    Thanks for your help.
    Kind Regards,
    Gilberto Li

    Hi,
    Please check this code..It worked for me..Instead of 00001 try giving 00010
    PARAMETERS: p_ebeln TYPE ebeln OBLIGATORY.
    PARAMETERS: p_text(50) OBLIGATORY.
    PARAMETERS: p_textid TYPE bapimepotext-text_id OBLIGATORY.
    DATA:
            lt_poitem         LIKE bapimepoitem OCCURS 0 WITH HEADER LINE,
            lt_poitemx        LIKE bapimepoitemx OCCURS 0 WITH HEADER LINE,
            lt_return         LIKE bapiret2      OCCURS 0 WITH HEADER LINE,
            lt_bapi_itemtext  LIKE bapimepotext OCCURS 0 WITH HEADER LINE.
    <b>lt_poitem-po_item = '00010'.</b>
    APPEND lt_poitem.
    <b>lt_poitem-po_item = '00010'.</b>
    APPEND lt_poitem.
    lt_bapi_itemtext-po_number = p_ebeln.
    <b>lt_bapi_itemtext-po_item   = '00010'.</b>
    lt_bapi_itemtext-text_id   = p_textid.
    lt_bapi_itemtext-text_line = p_text.
    APPEND lt_bapi_itemtext.
    call the BAPI.
    CALL FUNCTION 'BAPI_PO_CHANGE'
         EXPORTING
              purchaseorder = p_ebeln
         TABLES
              return        = lt_return
              poitem        = lt_poitem
              poitemx       = lt_poitemx
              potextitem    = lt_bapi_itemtext.
    LOOP AT lt_return WHERE type = 'A' OR type  = 'E'.
      EXIT.
    ENDLOOP.
    IF sy-subrc = 0.
      WRITE: / 'Error'.
    ELSE.
      COMMIT WORK.
      WRITE: / 'Success'.
    ENDIF.
    Thanks,
    Naren

  • TEXT_ID for Item Text of Purchase Order

    Hi,
    i want to fill a item text of a purchase order via BAdI BBP_PO_INBOUND_BADI. The BAdI is called, that's tested.
    Transaction ME23, Item / Texts / Text overview.
    I tried with
      data:
        lw_TEXT type BBPS_IF_BAPIMEPOTEXT.
        lw_TEXT-PO_NUMBER = '4400001659'.
        lw_TEXT-PO_ITEM   = '00001'.
        lw_TEXT-TEXT_ID   = '0001'.
        lw_TEXT-TEXT_FORM = '* '.
        lw_TEXT-TEXT_LINE = 'strike'.
        append lw_text to BBP_POTEXTITEM.
    and hoped to see "strike" as text - no success. Of course the values should be found later dynamicly.
    In my point of view the parameter TEXT_ID is the problem. I tried 01, 0001, L01, K01, A01 and F01 but without success.
    How can i find out the right TEXT_ID?

    Hello Udo,
    I have exactly the same requirement, I need to fill the item text via (BBP_PO_INBOUND_BADI, method: BP_MAP_BEFORE_BAPI).
    In my case I have to write some values in BAPI_POTEXTITEM.   However, it seems that the badi is not saving the data.  At least I cannot see the text values in ME23N, Item / Texts.
    Would you give me an advice ?
    Thank you !
    best regards,
    Diego

  • Item Text of Purchase Order

    Hi,
    i want to read a (long) text of a purchase order item.
    Transaction ME23, Item/Texts/Text overview
    In my user-exit i have access to po-no (EBELN), item-no (EBELP) and some other parameters of the purchase order.
    Does somebody know a function module or the way how to select that text?
    Regards,
    Udo

    Check this sample.
    report zrich_0002.
    data:  id like  thead-tdid,
           name like  thead-tdname,
           object like  thead-tdobject.
    data: lines type table of tline with header line.
    parameters: p_ebeln type ekpo-ebeln,
                p_ebelp type ekpo-ebelp.
    start-of-selection.
      id = 'F01'.            " Item Text
      object = 'EKPO'.
      concatenate p_ebeln p_ebelp into name.
      call function 'READ_TEXT'
           exporting
                id       = id
                language = sy-langu
                name     = name
                object   = object
           tables
                lines    = lines.
      loop at lines.
        write:/ lines-tdline.
      endloop.
    Regards,
    Rich Heilman

  • 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

  • Display Item texts in Purchase Order items layout as nested table

    Hi to all,
    my issue is the following: I have to display on a form (using transaction SFP) Purcahse Order items and their texts. I built a context in which I put item texts table as a nested table of items table. I followed example "FP_TEST_NESTED_TABLE" in SE38 but I can't diplay item texts under item row. I try to explain: I want my output similar to the following
    Order  Item   |   Quantity  |    Price Uom |  Unit Price
    00010                2500              ST                0.30
                                                                 | This is first row of item texts for item 00010
                                                                 | This is second row of item texts for item 00010
                                                                 | This is third row of item texts for item 00010
                                                                 | This is ..........
                                                                 | ........
    00020                234              ST                0.80
                                                                 | This is first row of item texts for item 00020
                                                                 | This is second row of item texts for item 00020
                                                                 | This is third row of item texts for item 00020
                                                                 | This is ..........
                                                                 | ........
    Any suggestion? please?
    thank you very miuch
    Enrico

    Hi Enrico,
    I have worked on a similar requirement. I have created the whole fields including the item text in a single internal table
    Following was my approach
    I have distinguished the Table body content into two subforms which will be wrapped into one main subform ( representing table body say sub_body). Whose property is set to flowed ( With West Text  property) and repeat each item
    1. Enclose the table columns into subform say sub1, set its propert to flowed with west text property. Alighnment of the columns embaed in Sub1 should be made by adjusting its width and spacing .
    2. Enclose the Corresponding item text ( Which will be one of the colums of the internal tabel mapped ) into Sub2.
    As far as standard text display is concerned which can be displayed in two ways as explained in one of my earlier posts.
    Re: Adobe forms ..Table passing to Form and Display
    Hope this helps,
    Regards,
    Murthy

  • Item Text in Purchase Order Transfer to GR (Material Document)

    Hi,
    Is there a way tro transfer the Item text in the PO to the GR or Material Document.
    Thanks,
    jograd

    Hi,
    Thanks. But will this also apply for  R/3 4.5. The transaction used for GR is still MB01 and MB1m and not Migo.
    Thanks,
    Jograd

  • Printing Item text in Purchase order

    Hi,
    Iam creating a PO...for each line item i have to print the text..
    suppose if there are five text for each line item Eg :
    SAP1 = a, SAP2 = b, SAP3 = d, SAP4 = e.
    SAP1 to 4 are text,
    a to e is the value that i have to print.
    The probelm is user may or may not enter any value in this field.
    my requirement is only if the user givs text in this fields it shoild print. and all text shud print on the same line
    For Eg:
    SAP1 = a, SAP3 = d.
    SAP2 = b, SAP3 = d,

    Assuming the variables are called &SAP1& &SAP2& &SAP3& &SAP4&
    Put the text inside the && in single quotes before the variable name as below:
    AS &'SAP1 = 'SAP1& &'SAP2 = 'SAP2& &'SAP3 = 'SAP3& &'SAP 4 = 'SAP4&
    The text only prints if the variable is not initial.

  • Item text from sales order to purchase requisition

    Hi Experts,
    I have below queries ,
    1. What are the controls to generate/create a purchase requisition from a sales order.
    Is this possible that a Pur. req generated from a sales order but sales order is not its account assignment.
    How item text from the sales order can be copied to purchase Requisition, does settings in purchase requisition in SPRO (Purchasing Purchase req-text for purchase req----define copying rules) works only for automatically created Pur req.??
    item text from sales order can be copied for PR created through MRP or planned orders converted to PR.??
    I will appreciate if someone can provide me documentation on basics of sales and distribution at my email
    [email protected]
    Thanks in advance
    anand

    hello, friend.
    i can only answer part of your question as i am not sure of the others.  however, yes... you can automatically create a purchase requisition from the sales order. 
    one example is third party sales.  because of the item category group that you specified in the material master, the sales document determines an item category (and schedule line) that controls the creation of the purchase requisition.  here, the system knows that you must source the material from your vendor for delivery to your customer.
    further, as in the above case, when your company creates the PO with reference to the PR, your company appears as the buying entity but the ship-to address is that of your customer.
    i did not understand your question on account assignment.  please elaborate and we'll see if we can come up with the answer.
    if you wish to see documentation, you could refer to SAP's article on Third Party Sales.  other scenarios such as just-in-time inventory for trading companies or make-to-order companies may also apply.
    regards.

  • Item text in Purchase request is not copied to Purchase orders.why?

    que1:Item text in Purchase request is not copied to Purchase orders.why?
    que.2:where this item text is get stored, i mean to ask which table.
    please reply asp.
    SAP Learner.

    hi
    >que1:Item text in Purchase request is not copied to Purchase orders.why?
    spro >mm>Purchase Order>Texts for Purchase Orders>Define copying rules for item(line item) texts.
    spro >mm>Purchase Order>Texts for Purchase Orders> Define copying rules for header text.
    >que.2:where this item text is get stored, i mean to ask which table.
    use function module  READ_TEXT and table STXL
    regards
    KI

  • Uploading sales text and Purchase order text for material master

    Hi,
      I have created, material master with LSMW  byt not updated SALES TEXT and Purchase order text with LSMW  now i want to uplaod the sales and po text for material master can you give some link or ref. code to upload the text i have near 1000 items for which i want to uplaod text  when i have done the recording with SHDB  i have not found filed in recording.
    regards,
      zafar

    Hi,
    I have made the code in se38
    as below but still it is not working
    REPORT  ZTEST_TEXT.
      data: headerl like thead occurs 0 with header line.
      data itab3 like tline occurs 0 with header line.
    headerl-tdobject = 'MATERIAL'.
    headerl-tdname = '00000000000LSMW123'.          "(Material : 000000000300000560, Sorg : 0001, Dist channel: 01)
    headerl-tdid  = 'BEST'.
    headerl-tdspras = 'E'.
    append headerl.
    move '*' to itab3-tdformat.
    move 'Testing PO text' to itab3-tdline.
    append itab3.
    call function 'SAVE_TEXT'
      exporting
        header                = headerl
      insert                = ' '
       savemode_direct       = ' '
      tables
        lines                 = itab3
    exceptions
       id                    = 1
       language              = 2
       name                  = 3
       object                = 4
       others                = 5.
       IF SY-SUBRC = 0.
         CALL FUNCTION 'COMMIT_TEXT'
           EXPORTING
                OBJECT   = headerl-tdobject
                NAME     = headerl-tdname.
       ENDIF.
       break-point.
    regards,
    zafar

Maybe you are looking for

  • Camera Raw 5.2.0.65 opens in German in Photoshop CS4

    Hi, Mac OS X 10.5.6 MBP. I installed the Camera Raw 5.2.0.65 plug-in a while back but since I do most of my image processing in LR 2.2 I hadn't used Camera Raw in PSCS4 or Bridge until tonight when I opened a JPEG from PSCS4 and it opened in Camera R

  • How to display/edit timestamp in a Form Field ?

    Hello, i have a table which has a TIMESTAMP column and i have a form based on this. What i want is to be able to have a user see it during displaying in a form and be able to insert or modify these timestamp values. I looked through the various DATE

  • PDF Download From Servlet

    Hi guys, I'm having issues creating a file download servlet to download pdf files. I can successfully download text files using this code. For some reason however I cannot download a pdf using the same code. On execution, the browser will present me

  • How to call Sun server from Tomcat

    Hi I have EJB running on SUN J2EE server on different machine. I want to access EJB from Tomcat running on my machine through JSP page. Properties p = new Properties(); p.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");   

  • How do i get an .msi for my Adobe x std/pro versions so I can deploy through SCCM?

    How do i get an .msi for my Adobe x std/pro versions so I can deploy through SCCM?