Change field for an invoicedocument item (MM)

Hello,
Is there a way (function module for instance) to change an item, in particular to change the field SGTXT (field DRSEG-SGTXT) of an invoicedocument made in MM (transaction MIRO or MIR7).
For the specific group who will want to change this field, it is not advisable to give them transaction MIR4 to change the document-item.
Any help is welcome.
Bert

Hi,
The item text field which you have mentioned  it gernally comes from FI application (i.e. invoice).You need to check in your system which item text from invoice should appearin MM document.
find out the  text object(invoice+item),text id ,language.
Then use function read_text using the same to read the current contents of the text & then change the text using save_text function.
Hope I understood your requirement .
Thanks.
Mark points if helpful.

Similar Messages

  • How to find out Last Changed Fields for a line item of a PO

    Dear All,
    Pls let me know is there any FM or procedure to find the last changed fields for each line item of a PO. I should be able to get the details on the basis of Last changed Date. Can u pls guide me in this?

    Hello,
    Check the table CDHDR,CDPOS for PO items,
    Check this code:
    REPORT ZV_GET_LATEST_SO .
    DATA: BEGIN OF ITAB OCCURS 0,
            OBJECTCLAS TYPE CDHDR-OBJECTCLAS,
            OBJECTID TYPE CDHDR-OBJECTID,
            CHANGENR TYPE CDHDR-CHANGENR,
            USERNAME TYPE CDHDR-USERNAME,
            UDATE TYPE CDHDR-UDATE,
            UTIME TYPE CDHDR-UTIME,
            TCODE TYPE CDHDR-TCODE,
            TABNAME TYPE CDPOS-TABNAME,
            TABKEY TYPE CDPOS-TABKEY,
            FNAME TYPE CDPOS-FNAME,
            CHNGIND TYPE CDPOS-CHNGIND,
          END OF ITAB.
    TABLES: CDHDR,CDPOS.
    DATA: LT_CDHDR LIKE CDHDR OCCURS 0 WITH HEADER LINE,
    LT_CDPOS LIKE CDPOS OCCURS 0 WITH HEADER LINE.
    *REFRESH AUSG.
    CLEAR CDHDR.
    CLEAR CDPOS.
    CDHDR-OBJECTCLAS = 'EINKBELEG'.
    CDHDR-OBJECTID   = '0000001784'.  " Purchase order number
    **SELECT A~OBJECTCLASS A~OBJECTID A~CHANGENR A~USERNAME A~UDATE A~UNAME
    **B~TCODE
    **B~TABNAME B~TABKEY B~FNAME B~CHNGIND INTO TABLE ITAB FROM CDHDR AS A
    **INNER JOIN CDPOS AS B ON A~OBJECTCLASS = B~OBJECTCLASS
    **                         A~OBJECTID    = B~OBJECTID
    **                         A~CHANGENR    = B~CHANGENR
    **                    WHERE OBJECTCLAS = 'VERKBELEG'
    **                      AND OBJECTID = '0000001784'.
    *SELECT * FROM CDPOS INTO TABLE LT_CDPOS WHERE OBJECTCLAS = 'VERKBELEG'
    *                                    AND OBJECTID = '0000001784'.
    *IF NOT LT_CDPOS[] IS INITIAL.
    *  SELECT *
    *  INTO   TABLE LT_CDHDR
    *  FROM   CDHDR
    *  FOR    ALL ENTRIES IN LT_CDPOS
    *  WHERE  OBJECTCLAS = LT_CDPOS-OBJECTCLAS
    *  AND    OBJECTID = LT_CDPOS-OBJECTID
    *  AND    CHANGENR = LT_CDPOS-CHANGENR.
    *ENDIF.
    **  SORT ITAB BY OBJECTCLAS ODJECTID DESCENDING.
    *LOOP AT ITAB.
    *  WRITE: ITAB-UDATE."ITAB-UNAME.
    *ENDLOOP.
    *--- Interne Tabellen -------------------------------------------------
    DATA: BEGIN OF ICDSHW OCCURS 50.       "Ausgabeaufbereitung
            INCLUDE STRUCTURE CDSHW.       "Zwischendatei
    DATA: END OF ICDSHW.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
         EXPORTING
              DATE_OF_CHANGE    = CDHDR-UDATE
              OBJECTCLASS       = CDHDR-OBJECTCLAS
              OBJECTID          = CDHDR-OBJECTID
              TIME_OF_CHANGE    = CDHDR-UTIME
              USERNAME          = CDHDR-USERNAME
         TABLES
              I_CDHDR           = LT_CDHDR
         EXCEPTIONS
              NO_POSITION_FOUND = 1
              OTHERS            = 2.
    LOOP AT LT_CDHDR.
      CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
        EXPORTING
    *   ARCHIVE_HANDLE                = 0
          CHANGENUMBER                  = LT_CDHDR-CHANGENR
    *   TABLEKEY                      = '00000000 '
    *   TABLENAME                     = ' '
    * IMPORTING
    *   HEADER                        =
       TABLES
         EDITPOS                       = ICDSHW
    *   EDITPOS_WITH_HEADER           =
    * EXCEPTIONS
    *   NO_POSITION_FOUND             = 1
    *   WRONG_ACCESS_TO_ARCHIVE       = 2
    *   OTHERS                        = 3
      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 ICDSHW.
        IF ICDSHW-TABKEY+3(10) = '0000001784'
           AND ICDSHW-TABKEY+13(6) = '000001'.
        ENDIF.
      ENDLOOP.
    ENDLOOP.
    Vasanth

  • Open field for customer line item

    Hi Guru
      I have some problem about open field for customer line item  post with posting key 09 and special GL , I open field at posting key 09 but the field still hidden  . How I can open field for used . Thank you

    Dear,
    Use transaction FBL5N and select Special G/L Transactions only and execute.....here bring posting key and filter the posting with 09.
    REgards,
    Chintan Joshi

  • Get the Change log for ALV line items

    Hello Experts,
    I am using editable ALV table to display/change data. When user modifies data from ALV line items manually (direct entry), this change is recorded in get_context_change_log method of context node. Also in the screen I have one button, on click of this button I do some calculation for selected line items in action method and update the context node with new values. But with this second approach (button action) though values gets changed this is not recorded in to get_context_change_log of context node. I tried to use method add_context_attribute_change  in button action method to add attribute changes to change log tabel but it's not adding entries to change log. Does method add_context_attribute_change only works with OVS search helps and freely programmed value helps? And is there any other way for capturing changes(done by using action method and not manually) for ALV line items?
    Thanks & Regards
    Jayant

    Here is code:
    METHOD.
    This method is in component controller, which gets called from View Action method (on click * of button).
      FIELD-SYMBOLS:<lfs> TYPE  Data.
    *Data Declaration
      DATA lo_nd_cn_apc_item TYPE REF TO if_wd_context_node.
      DATA lit_apc_item TYPE wd_this->elements_cn_apc_item.
      DATA lo_el_cn_apc_item TYPE REF TO if_wd_context_element.
      data: l_component type ref to if_wd_component,
            l_context type ref to if_wd_context,
            lfd_added type abap_bool.
      CLEAR:lo_nd_cn_apc_item,lo_el_cn_apc_item.
      navigate from <CONTEXT> to <CN_APC_ITEM> via lead selection
      lo_nd_cn_apc_item = wd_context->get_child_node( name = wd_this->wdctx_cn_apc_item ).
      REFRESH:lit_apc_item.
      @TODO handle non existant child
      IF lo_nd_cn_apc_item IS NOT INITIAL.
        lo_nd_cn_apc_item->get_static_attributes_table( IMPORTING table = lit_apc_item ).
    get element via lead selection
        lo_el_cn_apc_item = lo_nd_cn_apc_item->get_element( ).
      ENDIF.
            l_component = wd_this->wd_get_api( ).
            l_context = l_component->get_context( ).
    Calculate Cost
      LOOP AT lit_apc_item ASSIGNING  <lfs>.
            <lfs>-cal_amount = ( <lfs>-cost_percent * <lfs>-sec_amount ) / 100.
            lfd_added = l_context->add_context_attribute_change(
                element              = lo_el_cn_apc_item
                attribute_name       = 'CAL_AMOUNT'
                new_value            = <lfs>-cal_amount
      ENDLOOP.
    Bind Table.
      lo_nd_cn_apc_item->bind_table( new_items = lit_apc_item set_initial_elements = abap_true ).
    ENDMETHOD.

  • Changing template for "email work item "

    Hi,
    TFS Web Access has the possibility to send the work item in an e-mail. (The enveloppe on action bar).
    By clicking on this Icon, a new window opens with some basic work item information.
    I suppose the content of the e-mail is based on a template.
    My question is: Is it possible to update this template (red box)?
    Jeppen Twitter: @DoSTHGreat

    Hi Jeppen, 
    Thanks for your post.
    As far as I know there’s no default way to change that template, please refer to the discussions in this similar post:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/2a63b27d-4bfd-413f-bff9-825d6bdc99fe/how-do-i-change-the-ides-send-work-item-to-outlook-email-template?forum=tfsworkitemtracking.
    But you can add the required column in work item query result, then select work item from query result to send email. Please refer to the workaround in this post:
    http://stackoverflow.com/questions/10518254/can-i-modify-the-email-thats-created-from-a-wi-when-i-click-the-send-work-item.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Change template for Form Checkbox Item?

    I would like to remove the <label> tag from the template for Form Checkbox items and replace this in the list with my own label tag
    E.g. something like this
    select '<label onmouseover...>'||reference||'</label>', table_id r
    from tabel
    order by 1
    Is this possible?
    Thanks & regards
    Edited by: rw on May 3, 2012 6:10 AM

    Checkbox is <input> HTML tag with type="checkbox"
    The Label that wraps this Input is generated by Apex while rendering and stores important information.
    It is not advisable to play with that area even if someone gives you a technically feasible solution like "use a jquery selector to change the tags" in onload event,etc.
    Please find a more elegant solution to your problem.
    E.g. look at APEX_ITEM API
    Regards,

  • Reinit/Reload for added/changed fields in PO line item and GL ODS

    Hi all,
    Probably this is usual process in SAP BW.
    I have changed 2Lis_item data source and added few fields in 0Pur_o1 ods.
    In ods there is data from 2006 to till date.
    Now I have to move my changes to Production system. I have to delete and reload compele data again then only I will get values for added fields.
    Similar way I have changed 0fi_gl datasource and added few new fields in GL field.
    What is the best approach I should follow to get all history data with all new values and start delta ?
    thanks

    Ok,
    Just do this:
    You've your GL ODS with data from 2006, 2007 and 2008.
    You've deltas running.
    Before transporting your changes to productive run all the deltas.
    Then transport your changes.
    After that if you want the history to be updated with your changes you should delete your delta and create a new one without any data (delta init without any data). That should mark the flag init from that point.
    This means the next delta will bring any changes created from that new init to front. To load the history you can do full repairs until you have load all your data.
    Diogo.

  • Expand Table Control with Fields for Purchase Order Item Overview

    Hi Gurus.
    Hereu2019s something easy for you, I hope/ think. We just want to additionally show the field u201CMFRPNu201D in the purchase order item overview. See structure MEPO1211 for the table control.
    How can we do this? Is it possible without a modification? Is there anything to pay attention to?
    Lot's of questions, because we donu2019t find any complete solutions yet. It seems there are no official SAP suggestions for this issue.
    Thanks in advance!
    Regards
    Patric

    Is there no one out there who can answer my question?

  • To Insert Header Field for  Vendor Line Item Display FBL1N

    Hai All,
    I got a requirement that i have to add a Header item in the standard Tcode FBL1N. The client requirement is to add the Balance Carry Forward Amount Field in the Header level of the Output display.
    I have inserted the Header Text in the output display by going through Settings =>Layout => Current Header Rows but iam not able to pass a variable to that pertaining output text.
    Pls provide me the solution regarding ....

    Please note that most vendor line items wont have a PC assigned to them.
    I am not sure if you are refering to classic view or new GL data.
    Anyway you can use the sum button, and sub total for your levels.
    If you want to get the information sub totalled by PC, then I guess you are using the new GL and document splitting.
    If that is the case you cannot use FBL1N for this.
    There is however a set of reports in Accounts Payable, called new Gl reports and they will provide you the general ledger view and not the entry level view, and you can use the sum and sub total option.
    Please award points if this is useful.
    Come back if you need further help.

  • What values do I enter in the program change field for EXS24 ?

    I am using YaMAHA WX5 WIND CONTROLLER to play instrument sin Logic. I can get 'next settings' and 'previuos settings' to work with cc values. However, because of the setup of the WX, it wouls work better for me if I coud use its program change buttons.
    What value should go in the program change box ?
    OPEn EXS24
    click edit
    navigate edit>preferences>select previous instrument or next instrument
    afer that what value will allow EXS24 to change instruments using my WX5.
    I have used MIDI monitor to find what value the WX sends and the only think that shows up is 'program'
    I have tried learn assignment in Logic. When I press the program change button, Logic reads it as program change but provides no value.
    Thanks

    any one?

  • SRM 7.0 Custom Fields for Shopping Cart Item

    Hi
    We are upgrading from SRM 4.0 to 7.0. Can you please help how to migrate the custom fields logic. We created fields in following shopping cart structure INCL_EEW_PD_ITEM_CST_SC and INCL_EEW_PD_ITEM_CST during upgrade. IncludesINCL_EEW_PD_ITEM_CSF_SC and INCL_EEW_PD_ITEM_CSF already have fields from SRM 4.0 Implementation. In SRM 4.0 BADI BBP_CUF_BADI_2 was used to populate values. In SRM 7.0 we tried to use Enhancement Spot /SAPSRM/BD_PDO_FIELD_EXTENSN that has BADI's /SAPSRM/BD_PDO_FE_FILL_HEADER and /SAPSRM/BD_PDO_FE_FILL_ITEM in it. During shop transaction these BADI's are not getting triggered. Is this the right way of populating data or do we need to use Webdynpro Enhancement concepts of custom views to populate custom fields .
    Thanks in Advance.

    I have the same problem that Dhivya Baskaran
    The window is:
    dynpro: / SAPSRM/WDCC_FPM_DO_SOCO_GAF_3
    Window: IV_L_FPC_GAF_CA
    View: V_AO_SOCO_GAF_3
    I need to add a customer field in the header and I know the parameterization it is for this screen
    anyone can help me?
    thank you very much

  • Changing additional field in FI line item

    Hi,
    I have added a additional field for FI line item,
    how could i change it in FB02, or FBL3N,etc
    Is there are any user exit/ screen enhancement?
    or it can be done by config?
    or i have to mod it?
    thx a lot
    John

    Hi
    You have to add Purchase Document (PO) as a special field in the line layout variant through  customizing  to view PO in the FBL3N Line layout,
    Go to SPRO Settings - **** - GL Accounting - GL Accounts - Master Records - Line Items - Line Item Display - Define Special fields for finding and sorting data"
    A message will be displayed that it is a cross client change. Presse nter
    Before adding the special field PO, the line layout variant does not have the field PO
    Click on New Entries button
    Give the Table as BSEG and Field as EBELN.
    And save.
    Assign points if useful.
    thanks
    radhika

  • Documentary Batch Field for Line item when calling BAPI_GOODSMVT_CREATE

    hi all,
    Iam unable to locate the Documentary Batch Field for each line item while posting a Goods Issue using BAPI BAPI_GOODSMVT_CREATE.
    BAPI2017_GM_ITEM_CREATE structure has got no field to enter the DB number against each line item. Although its not a mandatory field while posting a goods issue when calling the BAPI, but there shud be a input field for the same. When doing a similar posting in SAP using MIGO transaction it's mandatory to enter a Documentary Batch number(SAP Field name DOCUBATCH_CHARG). Does anyone have come across this situation. Is there a field with different name in the  BAPI2017_GM_ITEM_CREATE structure ? Appreciate your thoughts !
    Regards,
    Gilmour

    Hi Vindy,
    bapi2017_gm_item_create-batch is the field for the Batch.
    However Iam looking for a field called DB No which is basically a Documentary batch ensure the traceability of a material, without it being necessary for the stock of the material to be managed in batches. If you look at the Item section in MIGO you would have Batch and DB No for each line item and Iam looking for the DB no and not the primary Batch.
    Thanks,
    Gilmour

  • 8i+WebDB HELP:How to make longer fields for "News items"

    8i+WebDB
    How do I create longer fields for my "News items"?
    If I try to publish long sized News I receive an Error:
    "Ora-02005: Implisit(-1) Length not valid for this bind or define
    data type". I HAVE chosen "long field" settings in the DB
    (8.1.5.0.0)
    Are there any parameter settings in WebDB to allow longer
    fields??
    PLEASE HELP!!
    null

    Hi, Lu:
    If I understand your question correctly, you want to modify the FSG of recociliation account of Vendor/Customer to make sure Cost Center/WBS field display in transaction F-22/F-43 for example, right?
    I am not sure whether it is possible, I also tried in ECC6.0 but failed to show these two fields. And I think that doesn't make sense to assign CO object to AP/AR reconciliation account, but assign it to Revenue/Expense account in following line items.
    And You can use New General Ledger functionality Document Splitting to derive corresponding CO object information to Reconciliation Account line item, but it is enabled only in General Ledger level, not in subledger level.
    If you find any other meaningful solution, please also share with us.
    Thanks & BR, Lawrence

  • NEw Field for enhancement

    hi,
    can anyone will tell me steps to add a field to a purcahse order screen...
    and my version is ECC  5.0...
    its and urgent....
    immediate answer is appreciabel
    anjali

    check MM06E005...
       With the enhancement, you can
       o   Maintain/supply your own customer fields in the headers and items of
           all purchasing documents except purchase requisitions
       o   Update your own customer-specific tables
       You cannot:
       o   Change standard fields
       o   Change data that depends on the document header in the items
       o   Change data that depends on an item in the document header
    INCLUDES
       You incorporate your customer fields for the document header in the
        INCLUDE CI_EKKODB (in table EKKO).
        You incorporate your customer fields for the document item in the
        INCLUDE CI_EKPODB (in table EKPO).
      Dynpro areas
        If you use the enhancement, you must create and generate the following
        dynpros (even if the dynpros are not going to be used):
        o   SAPLXM06    0101    Subscreen header purchase order
        o   SAPLXM06    0201    Subscreen header outline agreement
        o   SAPLXM06    0301    Subscreen header RFQ
        o   SAPLXM06    0111    Subscreen item purchase order
        o   SAPLXM06    0211    Subscreen item outline agreement
        o   SAPLXM06    0311    Subscreen item RFQ
        You must identify all dynpros as subscreens. It is not necessary that
        they contain fields, but it is essential that they exist in order that
        no program abend occurs.
      Function exits
        The dynpros are linked to the standard program via function modules.
        There are function modules that provide your subscreen with data
        (export) and function modules that fetch data from your subscreens
        (import).
        o   Header screens:
            -   EXIT_SAPMM06E_006   Export data to customer subscreen for header
                (PBO)
            -   EXIT_SAPMM06E_007   Export data to customer subscreen for header
                (PAI)
            -   EXIT_SAPMM06E_008   Import data from customer subscreen for
                header
        o   Item screens:
            -   EXIT_SAPMM06E_016   Export data to customer subscreen for item
                (PBO)
            -   EXIT_SAPMM06E_017   Export data to customer subscreen for item
                (PAI)
            -   EXIT_SAPMM06E_018   Import data from customer subscreen for item
        You can set or supply your own data fields in the PBO function modules.
        You receive the current (possibly changed viz a viz the PBO call) data
        of the standard program in the PAI function module.
        You can return your fields to the standard program in the import
        function modules.
        There is also sufficient data available to supply the customer fields
       from the material master record, info record, reference documents, RFQs,
       contracts, or vendor master record. This is sufficient to fill customer
       fields in normal dialog transactions.
       The same function modules are also invoked when purchase orders are
       created via function modules (function group EINC) (recognizable by the
       import parameter I_NO_SCREEN, which is then set to 'X').
       If you wish to update your own tables, you can invoke function module
       EXIT_SAPMM06E_013. This is invoked directly prior to "commit work" with
       all available data. You can carry out further checks prior to saving via
       the function module EXIT_SAPMM06E_012. This is processed in the case of
       the functions "Check document" and "Save".
       If you wish to read your own tables as well, you should use function
       module EXIT_SAPMM06E_014. This is invoked when the purchasing document
       is read from the database.
       To re-initialize your own data, it is essential that you also use
       function module EXIT_SAPMM06E_009. This function module is always
       invoked when the next purchasing document is processed (when POs are
       created via function module).
        In the header modules, you obtain the SAP transaction category via the
        parameter I_TRTYP:
        o   A   Display
        o   V   Change
        o   H   Create
        You obtain the relevant transaction/event from the SAP transaction table
        (e.g. quotation, scheduling agreement delivery schedule) via the
        parameter I_VORGA. The possible values are not stored as fixed domain
        values.
        In the item modules, you obtain the activity category via the parameter
        I_AKTYP:
        o   A   Display
       o   V   Change
       o   H   Create

Maybe you are looking for