Changing Item Text Auto in Purchase Order

Hi All,
   In existing purchase orders, i like to add two text lines to the last line item in the tab 'Texts'.    First i have to read the text lines for the last item.  Then i have to add lines to the item.  Would anyone know what bapi to make the text changes on the bapi ?
thanks
Joyce

Hi Joyce,
  You can use as below:
DATA: lt_lines        LIKE tline OCCURS 0 WITH HEADER LINE,
      lt_header       LIKE thead, " long text
      lc_tdformat     TYPE tline-tdformat VALUE '*',"Tag column
      lv_message(132) TYPE c.
*-SAVE TEXT in - 'Bill of lading Instructions' of Delivery
    lt_header-tdobject = 'VBBK'.
    lt_header-tdname   = gv_delivery.
    lt_header-tdid     = 'Z050'.
    lt_header-tdform   = 'SYSTEM'.
    lt_header-tdspras  = sy-langu.
*-CALL FUNCTION 'SAVE_TEXT' - To save text in the Delivery
  CALL FUNCTION 'SAVE_TEXT'
     EXPORTING
       client                = sy-mandt
       header                = lt_header
       savemode_direct       = gc_x
     TABLES
       lines                 = lt_lines
     EXCEPTIONS
       id                    = 1
       language              = 2
       name                  = 3
       object                = 4
       OTHERS                = 5.
Thanks
Satyasuresh

Similar Messages

  • Item texts copied from purchase order to delivery

    Hi Sales Gurus,
    I am facing the following issue.
    In the intercompany process we create the delivery based on purchased order.
    Our need is to copy the item texts of the purchase order to the item texts of the delivery.
    How can i do that?
    Thank you
    João Fernandes

    João,
    Transaction VOTXN, Delivery, Item.
    Then assign a specific text procedure and Access Sequence with the appropriate text ids.
    Regards,
    (Boa tarde)
    Sérgio

  • User exit to change item level data in purchase order

    Hi,
    Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirment is
    For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked).   now i cant use ME_PROCESS_PO_CUST  because process_item wont get triggered if there is no change in itemlevel data.
    Regards,
    Rahul

    Hi Rahul,
    Probably EXIT_SAPLMEKO_002.
    hope it helps,
    Edgar

  • Help - User exit to change item level data in Purchase Order

    Hi,
    Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirement is For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked).   now i cant use ME_PROCESS_PO_CUST  because process_item wont get triggered if there is no change in item level data.
    Thanks,
    Rahul

    Hi Rahul,
    Probably EXIT_SAPLMEKO_002.
    hope it helps,
    Edgar

  • How to read the text from the item text of the purchase order

    i want to extract the text which is maintained in the purchase order item text. i used the function module read_text but it reads only the header text. can anyone help.

    u have to chek the following parameters  
      ID: this textid
      language:language u maintained the text,this also important
       name: The no in which text-id is maintained
             Usually we make mistake here,the no is          combination of purchase order no and item no.
    Example:420000210000010(Puchase orderno:4200002100 item no:00010)
        Object:it change based on the text-id so u can check it the document no.
        CALL FUNCTION 'READ_TEXT'
             EXPORTING
                  id                      = p_var
                  language                = g_f_langu
                  name                    = g_f_tdname
                  object                  = g_f_obj
             TABLES
                  lines                   = g_t_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.
    Pass the varibles as i have said and let me know if u face any problem.
    Regards

  • Urgent - How to change Item category for Open Purchase Order

    Hi Team,
    Lil bit tricky issue.
    My client has asked us to change the existing Item Category values, Combinations, Category Set etc. Its been changed and uploaded successfully.
    The question here is how we need to handle the category for Open Purchase Order. How to update the same.
    Do we need to do manually or any other way ?
    Please advice
    Regarads,
    John

    Hi John,
    This is reallly a tricky issue!
    I guess you cannot change the category of an existing PO's.
    This field will be greyed out once we save the form...there were no profiles/other setups to enable this field.
    For all new PO's since you have changed the new category value that should not be a issue.
    Lets wait for some of our colleuges opinion.
    I guess PO cancel should be the final option if we dont hear any new work arounds.
    Thanks
    -Arif.

  • 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

  • Changing the Condition type Text in the Purchase Order

    Hi SAP,
    Hi,
    We have a requirement where by we need to change the Description of the condition type text in the Purchase order.
    The condition type is a entered at item level.
    Normally this description comes from the Condition type Definiton i.e., T685T-VTEXT.
    can any one of you suggest a User exit or a method where by we can change this text at PO.
    Has any one of you came across such situation before. if so please provide me with your inputs.
    Thanks
    Best Regards
    ShitalD
    Edited by: Shital Deshpande on Feb 21, 2010 1:07 PM

    Hi,
    I think it is a config setting..Please check with your functioal consultant regarding the same.. I won't suggest to change the standard SAP table T685T but you can keep it as last option .
    From SPRO you can follow the below path
    Sales and Distribution->Basic Functions -> Pricing > Pricing Control -> Define condition types.
    Regards,
    Nagaraj

  • How to configure Sales order item text copy to Purchase requisition item

    Hi,
    How to configure sales order item text copy to Purchase requisition text then copy to PO item text.
    Regards
    Jack

    Hi Rajesha,
    Thanks for your reply, some of the items in sales order are procured externally by us and our customer maintains text related to price and specification in the item details of the sales order, MRP creates planned order for these materials and these planned orders are always converted in pur requisition, we want that text from the sales order item details should be copied in to the purchase requisitions converted from planned orders.
    is there any user exit which can be called at the time of saving a purchase req or user exit for converting planned order in to pur req.?
    if there is any such exit available, then I think I can read the pegged requirement of the planned order where sales order item will be found then read the text in the item then copy this text in pur req then save pur req may work.
    but this will be a bulky development, please let me know if we can shorten the development.
    Thanks again
    Anand

  • Make short text field in Purchase order creation only display..

    Sir,
    Yeah my requirement is quite unusual, but such is the situation.
    I want to make the short text field in purchase order creation "only disply". what is happening is that user while creating PO is able to change the text of material in short text column. I want to make it only for display.
    Can it done on document type level, since for service type, and Text type of account assignment cat, only text field is filled up. so how to do it.
    Please assist...
    Rahul

    Dear Rahul,
    If you want to have the short text display only for standard item but not service item, you may check below customizing.
    Transaction SPRO:
    MM-PUR-PO
    -> Define screen layout at document level
    Field Selection group: Basic Data, Item
    Field Selection Key:  PT0F Standard item purchase order
    Field: Short text -> set as display
    Hope this help.
    Ian Wong Loke Foong

  • How to change material component for a Purchase Order?

    How to change material component for a Purchase Order?
    I need FM .
    PLEASE help

    Dear ,
    Create PO with item category L....There in Item detail you will get tab for material.
    There click in component Button, it will take you to the component screen there you can assign and deassign components.
    Hope this helps.
    Regards
    Utsav

  • Add field to item position overview of Purchase Order

    Dear SRM gurus,
    I'm working on a change request of a customer.
    They want to add a field to the item overview position of Purchase Orders.
    They are using SRM 4.0 in Extended Classic Scenario.
    When displaying the list of Purchase Orders only the headers are shown. When clicking on a header the item positions are shown below the header. In this item overview the customer wants a field to be added.
    The field to be added is the GL Account. The customer wants this field to be visible before opening the item of the Purchase Order.
    We already know which screen should be changed to display the field.
    The screen is SAPLBBP_PO_UI_ITS and screen number 4000.
    Is it possible to add fields to this screen?
    If it is possible, how can this be done?
    Thank you in advance for your support,
    Best regards,
    Jean-Pierre

    Is there a solution yet?
    At my company they also want  to add a column to block Items in Shopping Cart.
    The structures mentioned in the note are all in the item details but not in the overview.
    regards,
    Wim

  • Sales Order - Using Item Category 'TAB' - Individual Purchase Order

    All,
    I am configuring for the first time utilizing Sales Document Item category "TAB" - Individual Purchase Order.  I have a few questions:
    Is there a best practice configuration guide specific for this process?  I have found the 'third party' document/best practice, but nothing so far  on "individual purchase order from sales order'. 
    Is there a way to default Purchase Order Type "UB" stock transfer from the Purchase Requisition NB?  I thought this could be done based on the schedule line "CB" configuration, changing the 'item category' to 7 stock transfer, then this would carry into the mapping for purchase requisition type NB/item category stock transfer to purchase order type UB/item category stock transfer.  However, when I set '7' on the schedule line CB, I then receive a hard error when creating my purchase req to set the supplying plant.  I have more than one supplying plant, so I'm not sure if setting the '7' is the right setting for this process.  From what I've been able to find for documentation, the item category of the schedule line should be set to '0' standard.
    When I perform the post Goods Issue 601 of Special Stock "E" - to the customer (once the stock has been received into the right plant), the system is not creating an Accounting/FI Document to relieve the inventory and charge cost of goods sold.  I have reviewed automatic account assignment entries and these appear correct for 601 E.  Are there special settings for special stock "E" that I need to consider. 
    If you cannot answer all of these questions, but can answer one of them, I am most interested in teh last question above. 
    Regards,
    Sandra Miner

    Hi Reazuddin,
    What I don't understand is why:
    if I don't create PO --> I can create Outobund Delivery in Individual Purchase Order but if I create PO (not MIGO) I cannot create OBD in IPO.  (Note: in both cases I agree PGI is not possible)
    The flowchart is: Sale Order (IPO) --> Purchase Requisition --> Purchase Order (PO) --> MIGO (inbound delivery) --> MIRO (Vendor invoice verification) --> Outbound delivery ( delivery [OBD] + picking + posting[PGI]) --> Sales Invoice
    As per your comments:
    System will not stop you to create delivery, though you customize delivery item cat: as Check min qtty "0" - error message. because system checks for PGI qtty, but not the delivery qtty.
    But then in the case I create Sale order (IPO) + PO (without MIGO) --> the system should not stop me executing Outbound Delivery. It should stop me only if I execute Posting goods issue. But actually in this case, the system is stopping me at outbound delivery.
    I agree with Posting Goods Issue behaviour. It is logical in the following cases:
    Only Sale order (IPO) created --> PGI is not possible
    Sale Order (IPO) created + PO created --> PGI is not possible
    Sale Order (IPO) created + PO created + MIGO executed (inbound) --> PGI is possible.
    Thank you very much for your feedback.
    Regards,
    Alberto Ramos.

  • How to change MOT programaticaly in existing Purchase Order

    Hello Experts,
    Will appreciate your quick reply on the  query as given below.
    Is MOT ( means of transport) assigned to Purchase order somewhere?  .....If yes then...Would like to change  MOT ( TTYPE) by selecting one of the existing MOTs in a particular Tlane based on some logic. Have a plan to put this logic  in CIF related user exit  at APO inbound.
    Its multiple MOT in one tlane scenario. But I am not sure if user exit can be used to change MOT related to a purchase order.
    Kindly share your opinion on the issue.
    Thanks
    Best Regards

    Hi Experst,
    MOT si seeen as attached to Purchase Order once we do right click in Planning book to check details. I am trying to understand if its stored in LC only or in DB table and if we can chaneg it programatically .
    Thanks

  • Terms user query Changes in unit price in purchase order and a/p invoice

    Dear sir
         please give me a term user query for , if any changes in unit price in purchase order and a/p invoice

    Hi,
    Try this:
    SELECT  Distinct ' true'
    FROM adoc T2
    JOIN ado1 T0 ON T2.docentry = T0.docentry AND T2.Objtype = '22'
    JOIN por1 T1 ON T1.docentry = T0.docentry AND T1.Linenum=T0.Linenum
    WHERE  $[$38.14.number] != T0.Price
    Thanks & Regards,
    Nagarajan

Maybe you are looking for

  • There is an error with your web service settings that cannot be repaired automatically. Please Contact Product Support

    I get the above error message (in the title of this post) when I try to setup my remote website.  When I try to access the remote website, I receive the error message below. Please let me know what I need to do to correct the error.  Thanks! When acc

  • Display problem in capacity levelling table-CM27

    Hi folks, i am facing a typical problem & let me explain briefly. some T.Code like ( CM27 ) where the end user is not able to see the capacity load in the capacity table and the order,operation details it's happening with few system in the client sit

  • COMMIT_IN_POSTING error when sending PO as PDF attachment through me23n.

    I am sending PO smartform  as PDF attachment which is created  when print preview option is selected in ME23n . Problem is when i use CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1' EXPORTING DOCUMENT_DATA = WA_DOC_CHNG PUT_IN_OUTBOX = 'X' COMMIT_WORK

  • Tracking documents in B2B

    Hi, There are a couple of questions pertaining to B2B that I have 1) Is it possible in B2B to keep track of documents based on the Interchange Control Number (ISA13 segment). Say if a TP was to send documents control number 1000,1001,1002 and misses

  • Online chat, August 6, on J2ME Personal Profile

    The J2ME Personal Profile (JSR 62), which is now available as a proposed final draft, is a CDC-based profile for small devices that require a high degree of Internet connectivity and web fidelity. It's intended as the follow-on to the PersonalJava en