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

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.

  • To display standard text in purchase requistion item text.

    Hi,
    My requirement is display standard text in purchase requisition item text(text type 02).  Please let me know where should i write the code and what it the code?
    Thanks
    Alka
    Moderator message: please work yourself first on your requirement, if necessary return with specific problems that have not been frequently solved before, remember these forums are not a replacement for ABAP training.
    Edited by: Thomas Zloch on Dec 1, 2010 11:52 AM

    Hi Kiran,
    As you stated its correct that the deletion indicator has to be set only after the document is closed. But your case is different, how did that deletion indicator got set for that "Purchase Requisitions".
    As per my knowledge is that the deletion flag ca be changed, but not the deletion indicator. In case if I get soem thing I will respond to you.
    Also I got this from SAP:
    Set the indicator if you wish to archive documents using the one-step procedure.
    Do not set the indicator if you wish to carry out your archiving using the two-step procedure.
    --Thanks
    Pankaj.K.S

  • 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

  • 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

  • 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

  • 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

  • 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

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

  • 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

  • Purchase order  item long text

    Hi  to all experts,
    pls.help me of this requrement i need to get  a table of long text of  purchase order  item long text .
    can anybody know where long text will saved .
    Regards ,
    Kiran.

    Here is an example.
    report zrich_0001 .
    data: name type thead-tdname.
    data: lines type table of tline with header line.
    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.
      write:/ lines.
    endloop.
    Regards.
    Rich Heilman

Maybe you are looking for

  • HT6154 Having SERIOUS problems with iOS 7.1 on my iPhone 4S!!!!

    I am having SERIOUS problems here. Let me give you a rundown: I have to reboot my phone (or turn it off and on again) to see the correct battery percentage (but I'll address that in a second), and once I reboot it or bring it back up again, it has to

  • Mail Not Sorting new Folders Added Alphbetically

    Hello! I have tons of sub folders in my inbox, and I would like it to sort them all alphabetically. This was all fine, but recently the last 6 folders I added to the list were appended to the bottom of the list, and not sorted alphabetically with the

  • Web Center Suite/Oracle Content DB

    What is the role of Oracle Content Database in Webcenter Suite? Is that the default repository? I read a lot of documentation but no where it explains the connection. We are in the process of getting a licence for the Web center Suite. As per Oracle

  • Adding addtional field to calculate GST

    Hi , I has created infoset using SQ02 Then created a query in SQ01. With this, I have two valun coumns in the output. e.g. GST_Total = Price +Tax Amount  Now I want an additional field where the calculation will take place for Less Price +Tax Amount

  • Creating Relationships between views, causes writable mapping error

    Hi I'm using the DBAdapter in ESB (10.1.3.3), which uses Toplink and I am trying to create a relationship between a table and a view. None of the objects have any keys or indexes, so I am creating a relationship directly. When I have created the adap