BAPI or FM to update item texts?

Hi all,
Is there any BAPI or FM that can be used to change the item texts for Accounting Documents?
Regards,
Swathi Ragi

try BAPI_GLX_GETDOCITEMS
try BAPI_ACC_DOCUMENT_CHECK also
try BAPI_DOCUMENT_CHANGE ..seems this BAPI is more relevant.
Edited by: Santosh Battini on Mar 24, 2010 10:53 AM
Edited by: Santosh Battini on Mar 24, 2010 10:56 AM

Similar Messages

  • Updating item text in the outbound delivery

    Hi
    I have a outbound delivery in the system . I want to update some text in the "item text" through a program. how do i do this. sample code would be great.
    thanks
    sankar

    Hi
    thank you very much for your reply.
    Can you explain more about the inport parameters of the FM. lets say for example I need to update "item note" in the item of a outbound delivery with text " I am doind the testing". for this scenario what the are the parameters i need to send to the FM
    thanks
    sankar

  • Urgent: Updating Item Text  Via SAVE_TEXT

    HI Friends,
    I need to update the item text in me22n via some FM.
    Can somebody suggest some FM with eg..
    I have found SAVE_TEXT FM to update the item text.
    i am not sure about the parameters and value could any body help me with some code ..
    I have written a code like this
    I have got a error like the length of the header table passed is higher ...and goes to short dump.
    GW_THEAD-TDNAME   = 'Concatenated value of Ebeln and Ebelp".
    GW_THEAD-TDID     = ?F01?.
    GW_THEAD-TDSPRAS  = SY-LANGU.
    GW_THEAD-TDOBJECT = ?EKPO?.
      IT_LINE-TDFORMAT = ?*?.
      IT_LINE-TDLINE   = ?Test Create Text?.
      APPEND IT_LINE.
    CALL FUNCTION ?SAVE_TEXT?
        EXPORTING
        CLIENT                = SY-MANDT
          HEADER                = GW_THEAD
        INSERT                = ? ?
        SAVEMODE_DIRECT       = ? ?
        OWNER_SPECIFIED       = ? ?
        LOCAL_CAT             = ? ?
      IMPORTING
        FUNCTION              =
        NEWHEADER             =
        TABLES
          LINES                 = IT_LINE
        EXCEPTIONS
          ID                    = 1
          LANGUAGE              = 2
          NAME                  = 3
          OBJECT                = 4
          OTHERS                = 5
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Please help with some code /

    Hi
    thank you very much for your reply.
    Can you explain more about the inport parameters of the FM. lets say for example I need to update "item note" in the item of a outbound delivery with text " I am doind the testing". for this scenario what the are the parameters i need to send to the FM
    thanks
    sankar

  • PROBLEM IN CREATING BOM ITEM TEXT FROM TEXT FILE

    Hi All,
    I am developing interface program for creating BOM based on data it text file. in my text file contain three column(material, qty and longtext). These text i need to upload to BOM TCODE CS01). Using SAVE_TEXT I have generated text object. it don't says any error. But while viewing text in CS03, text is not visible. Give me suggestion or give me any other method for updating item text from textfile.
    Thanks in advance.
    Regards.
    Peranandam.

    Hi Carl,
    Actually problem is SAVE_TEXT updates text but I cant able to view in CSO3 transaction. because while creating BOM I forget for updating language key for long text. After updating language key I can able to view text in CS03.
    Now I am facing another problem. If I am executing program directly without going to debug mode, It is not updates text. Logic everything is correct. Give me some suggestions for solving this issue. I am also tried with commit work, Commit_text and wait up n seconds statement.
    Regards,
    Peranandam

  • Urgent: How to append Item text

    HI Friends,
    I am using SAVE_TEXT Fm to Update the Item text in ME22n.
    Currently i need to append few text to the already existing text using SAVE_TEXT is it possible . If it is possible please give some text.
    Is there any FM which can both append and update Item text please help me with that.
    Reward is sure.
    Thanks,
    Sanjeet

    First read text using read_text FM ,keep the data in internal table,now delete the text using delete_text FM.
    Now you have data in internal table and append your text to this internal table,now use save_text fm to update everything.
    Thanks
    seshu

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

  • LSMW Sales Order BAPI : Header & Item Text

    Hi frenz,
           I'm migrating Sales Order data using LSMW with BAPI method. We got four files...
    one for header, one for item, one for header text, one for item text.
    Now my problem is how do i update both header and item text.
    B'cos while assigning structural relations we got only one text structure(E1BPSDTEXT) common for both header and item. So which source structure(whether header_text or item_text) should be assigned to this segment(E1BPSDTEXT)?
    Else is there any other way to update both header and item texts?
    With regards,
    praveen.

    Unfortunately, you cannot assign more than one source structure to a target structure. But you can still manipulate the code. Here is how.
    Let us say your source structure defined for item texts is ITEM_TEXTS. In your field mapping section for E1BPSDTEXT, double click the '__BEGIN_OF_RECORD__' in change mode. It will pop-up a warning message, say 'yes' and proceed. Remove all the coding that is there in this section, but copy the lines to somewhere(say x buffer) before you do that. You will need those lines below. Just add the following lines there.
    if v_transferred_texts = 'X'.
    *-- all the texts are transferred, don't need to process again.
      skip_record.
    endif.
    You need to define 'v_transferred_texts' in the
    '__GLOBAL_DATA__' section as follows.
    data: v_transferred_texts type c.
    Now double click on '_END_OF_RECORD_' in change mode. It will pop-up a warning, but you can say 'yes' and proceed. This will open up the coding window with one line of code in it 'transfer_record.'. Here you need to add your coding as follows.
    *-- move the header texts
    LOOP AT HEADER_TEXTS.
    *-- This should <b>ALWAYS</b> be there
      g_edidd_segnam = 'E2BPSDTEXT000'.
      g_edidd_segnum = '0021'.         
      g_edidd_psgnum = '000001'.       
      g_edidd_hlevel = '02'.           
      clear E1BPSDTEXT.                
    *-- fill each field of the following fields
      E1BPSDTEXT-DOC_NUMBER = SALESHEADER-ORDERNUMBER.
      E1BPSDTEXT-ITM_NUMBER = '000000'.
      E1BPSDTEXT-TEXT_ID    = HEADER_TEXTS-TEXTID.
      E1BPSDTEXT-LANGU      = SY-LANGU.
      E1BPSDTEXT-LANGU_ISO 
      E1BPSDTEXT-FORMAT_COL
      E1BPSDTEXT-TEXT_LINE  = HEADER_TEXTS-TEXT.
      E1BPSDTEXT-FUNCTION   = '005'.
      transfer_record.
    ENDLOOP.
    *-- Now move the item texts
    LOOP AT ITEM_TEXTS.
    *-- This should <b>ALWAYS</b> be there
      g_edidd_segnam = 'E2BPSDTEXT000'.
      g_edidd_segnum = '0021'.         
      g_edidd_psgnum = '000001'.       
      g_edidd_hlevel = '02'.           
      clear E1BPSDTEXT.                
    *-- fill each field of the following fields
      E1BPSDTEXT-DOC_NUMBER = SALESHEADER-ORDERNUMBER.
      E1BPSDTEXT-ITM_NUMBER = ITEM_TEXTS-ITM_NUMBER.
      E1BPSDTEXT-TEXT_ID    = ITEM_TEXTS-TEXTID.
      E1BPSDTEXT-LANGU      = SY-LANGU.
    *  E1BPSDTEXT-LANGU_ISO  =
    *  E1BPSDTEXT-FORMAT_COL
      E1BPSDTEXT-TEXT_LINE  = ITEM_TEXTS-TEXT.
      E1BPSDTEXT-FUNCTION   = '005'.
      transfer_record.
    ENDLOOP.
    *-- set the flag that the texts have been transferred
    v_transferred_texts = 'X'.
    Please let me know how it goes.
    Srinivas

  • Item text (BSEG-SGTXT) is not getting updated in Payment document generated

    Hi All,
    Item text (BSEG-SGTXT) is not getting updated in Payment document generated through F110.
    After generating the payment document via Transaction Code u2013 F110, system is not updating the
    Text field (BSEG-SGTXT) in the payment document with the text that we have entered in the Invoice (MIRO or FI Invoice).
    In case of manual payment (F-53) we can input the text manually hence that will get updated in
    payment document but this thing is not possible with F110.
    How can I update it?
    Is there any configuration for that?
    Thanks
    Daniel Dorta

    Hi All,
    I've applied the two notes as recommended. However, when I run FBL3N for payment run items, the Text field is update with wrong data, i.e. not from the Text field in FB60
    Thus, I'll like someone to help me with what should exactly be done on the 'Step', 'Pre-requisite' and 'Substitution' side of the Substitution rule (TCode GGB1), I did not fill anything in the Pre-requisite box - is this right?
    Thanx in advance.

  • Item text is not getting updated in Payment document generated through F110

    Hi all,
    After generating the payment document via Transaction Code u2013 F110, system is not updating the Text field in the payment document with the text that we have entered in the Invoice (MIRO or FI Invoice).
    While processing the document via transaction code u2013 F110, in the layout shown for the Invoices to be considered for payment (screen of u201CEdit Proposalu201D), text is not getting updated. When we pressed F1 at the Text field (Which is blank) we came to know that it is a u201CItem Textu201D with u201CTable u2013 REGUEu201D /  u201CField u2013 SGTXTu201D.
    In BSEG (SGTXT field) as well as BSIK (SGTXT field) we are getting the Invoice document with the text maintained in it via MIRO or FI invoice.
    But while processing the invoices through Tcode - F110, in the layout of Edit Proposal (Table - REGUE / Field - SGTXT) we are not getting the u201CText fieldu201D but getting the other data such as Doc. No.( Table - REGUE / Field - BELNR), Fiscal Year (Table - REGUE / Field - GJAHR) etc for processing the proposal which is getting shown in BSEG as well as BSIK.
    In case of manual payment (F-53) we can input the text manually hence that will get updated in payment document but this thing is not possible with F110.
    Can anybody guide me on getting the ItemText (Not Doc. Header text) in FI payment document after F110 execution?
    Regards,
    Shridhar

    Hi Suresh,
    Thanks for the prompt reply. We will be obliged if you guide us in that respect since F110 is a Std. SAP code.
    Have you refer OSS before arriving at the conclusion of developing ABAP program since the Item Text is a std. field of Std. Tcode - F110. Same should had been get updated while making the payment in reference to the Invoice which haves item text in it ?
    Regards
    Shridhar
    FICO

  • Item text of PO print output is not generatiing but text is updated  in PO

    Hello ,
    I am changing the PO through IDOC. When ever there is change in the quantity ,net price and delivery date the print out put is generated autoamtically and changes are appearing the print output.
    when ever there is change in the item text of PO print output is not generatiing but item text is updated in the PO.
    If i change manually print out is generating for item text also but through IDOC print output is not generated . please help to slove this isuue.
    i am passing the value as :
    idoc_data-segnam = 'E1BPMEPOTEXT'.
    e1bpmepotext-po_item = Po line item number .
    e1bpmepotext-text_id = txtid.
    e1bpmepotext-text_form = textform.
    e1bpmepotext-text_line = line item text .
    idoc_data-sdata = e1bpmepotext.
    APPEND idoc_data.
    CLEAR idoc_data.
    CLEAR e1bpmepotext.
    please help me it is urgent
    Thanks
    Venkatesh

    Hi,
    For triggering the output for changes you have to make some changes.
    - Go to SM30
    - Enter view name "<b>VV_T161M_EF</b>".
    - Hit 'maintains' view.
    - Now let's say your outpu type is 'NEU'. For this there will be one entry like this.
    Operat.  Ctyp.  Name            Short text  Update
    1        NEU    Purchase order  New
    Now with this entry add one more entry like this.
    Operat.  Ctyp.  Name            Short text  Update
    2        NEU    Purchase order  Change      X
    You just need to enter Operat. = 2 and  Ctyp = NEU. The 'name' and 'short text' will come automatically.
    - Save your entry and create.
    After doing this, your PO will trigger output on change.
    Let me know if you have any other information.
    Regards,
    RS

  • Enhancement for VL02N to update the item text(BSEG-SGTXT) during PGI

    Hello all,
    Actually, I need your help experts. I am trying to update the item text(BSEG-SGTXT) for accounting documents with the sales order number during their creation(post goods issue) from transaction VL02N, VL01N, VL09.
    I have checked the 17 exits available for these transactions and non of these 17 exits allow me to modify the item text(BSEG-SGTXT). I am currently investigating on the two badi's available for these transactions.
    I am not sure if it possible to make these modifications via Badi's.
    Does anyone have any idea or technique that can help me to find a way to modify/update the item text(BSEG-SGTXT) for any accounting document generated during post goods issue using transaction VL02N, VL01N, VL09?
    Thanks a lot in advance for your help experts.
    Kind Regards,
    Bryan

    Hello Ankur Agrawal,
    Thanks a lot for your help.
    I got the item text from the mentioned BADI.  I will get back to this post if it works.
    Thank again for your quick reply.
    Kind Regards,
    Bryan

  • Update FI item text from PO item text

    Hi all,
                     i am trying to update FI item text(bseg) from PO item text(ekpo).I know that bseg is a culster table therefore inner join is not allow.So is there a way i can join these two tables together so i can retrieve the line item and then i'll do a modify to update into FI item text.I have tried the various codes that are posted within this forum but can never get anything to write:/ out.
                       I've manage to retrieve the various info from PO (ekpo) and also manage to update the FI text field with some random words(but both seperately).What i need now is to create a link between bseg and ekpo.
                       I have attached my coding for better understanding..Thankss
    REPORT  ZSTKLILINTEST3 LINE-SIZE 1023 LINE-COUNT 1023 NO STANDARD PAGE HEADING.
    Table Declaration
    TABLES: ekpo, ekko, bseg, zstkll_1.
    Types Declaration
    TYPES:  BEGIN OF t_bseg,
            ebeln LIKE bseg-ebeln,
            hkont LIKE bseg-hkont,
            END OF t_bseg,
            BEGIN OF t_ekpo,
            ebeln LIKE ekpo-ebeln,
            txz01 LIKE ekpo-txz01,
            bukrs LIKE ekpo-bukrs,
            ebelp LIKE ekpo-ebelp,
            hkont LIKE bseg-hkont,
            END OF t_ekpo.
    Data  Declaration
    *grab data from t_ekpo then append it to zstkcy008
    DATA: ekpo_tab TYPE STANDARD TABLE OF t_ekpo WITH HEADER LINE,
          bseg_tab TYPE STANDARD TABLE OF t_bseg WITH HEADER LINE,
          zstkll_1_tab TYPE STANDARD TABLE OF zstkll_1,
          wa_zstkll_1 LIKE LINE OF zstkll_1_tab.
    Selection-Screen
    SELECT-OPTIONS: s_bukrs FOR ekpo-bukrs,
                    s_ebeln FOR ekpo-ebeln,
                    s_hkont FOR bseg-hkont.
    INITIALIZATION EVENT
    AT SELECTION-SCREEN EVENT
    START-OF-SELECTION
    START-OF-SELECTION.
      SELECT bukrs
      FROM ekpo
      INTO CORRESPONDING FIELDS OF TABLE ekpo_tab
      WHERE bukrs IN s_bukrs.
    IF ekpo_tab[] IS NOT INITIAL.
    SELECT ekkoebeln ebelp bedat txz01 ekkobukrs
    FROM ekpo INNER JOIN ekko
    ON ekpoebeln = ekkoebeln
    INTO CORRESPONDING FIELDS OF TABLE ekpo_tab
    FOR ALL ENTRIES IN ekpo_tab
    WHERE ekko~bukrs = ekpo_tab-bukrs
    AND ekko~ebeln IN s_ebeln.
        WRITE:/ 'Extracted Data:'.
        LOOP AT ekpo_tab.
          MOVE-CORRESPONDING ekpo_tab TO wa_zstkll_1.
          WRITE:/ ekpo_tab-bukrs, ekpo_tab-ebelp, ekpo_tab-txz01, ekpo_tab-ebeln, ekko-ebeln, ekko-bedat.
          AT END OF ebeln.
           APPEND wa_zstkll_1 TO zstkll_1_tab.
          ENDAT.
          CLEAR: wa_zstkll_1, ekpo_tab.
        ENDLOOP.
        SKIP 2.
        TRY.
            CLEAR sy-dbcnt.
    INSERT zstkll_1 FROM TABLE zstkll_1_tab.
          CATCH cx_root.
            WRITE:/ 'Record(s) already exist!'.
        ENDTRY.
        WRITE:/ sy-dbcnt, ' Records are inserted.'.
    ELSE.
    WRITE:/ 'No data Selected.'.
    ENDIF.
    END-OF-SELECTION
    END-OF-SELECTION.
    REPORT  ZSTKLILINTEST13.
    TABLES:bseg.
    DATA:it_bseg LIKE bseg OCCURS 0 WITH HEADER LINE.
    PARAMETERS:p_belnr LIKE bseg-belnr,
               p_bukrs LIKE bseg-bukrs,
               p_gjahr LIKE bseg-gjahr.
    START-OF-SELECTION.
    SELECT * FROM bseg INTO TABLE it_bseg WHERE belnr = p_belnr AND bukrs = p_bukrs AND gjahr = p_gjahr.
    MOVE 'IF THIS APPEAR UPDATE IS SUCCESSFUL' TO it_bseg-sgtxt.
    MODIFY it_bseg FROM it_bseg TRANSPORTING sgtxt where belnr = p_belnr AND bukrs = p_bukrs AND gjahr = p_gjahr.
    LOOP AT it_bseg.
    WRITE:/3 it_bseg-belnr, it_bseg-gjahr, it_bseg-sgtxt.
    ENDLOOP.
    MODIFY bseg FROM TABLE it_bseg.
    COMMIT WORK.
    IF sy-subrc EQ 0.
    WRITE:/3 'BSEG TABLE UPDATED SUCCESSFULLY WITH TEXT'.
    ENDIF.

    self solved

  • Line Item text to updated automatically with current month

    In this trxn, we have to always set the Posting variant every month, in spro.(set up line item text).
    spro->payroll india -> Reporting for Posting Payroll Results to Accounting->Activities in the AC System->Set Up Line Item Text.
    1000     Salary for the month of  June08
    Whatever text, we give at ID 1000, it gets updated in the accounting entries. What we require, that can it be automated , based on the payroll area/period. I mean, if I give Novu201907, then the text should be u201CSal for the month of Novu201907u201D.
    PC00_M99_CIPE - Execute run
    Document Date
    Posting variant                 SAP    Standard variant

    HI,
    a text change in general ledger line item will not be forwarded to spec. ledger automatically (as the change of a line item text triggers no posting to spec. ledger).
    But as you know the document relationship from GL doc. to SL doc go to the corresponding SL doc. and change the text if this is really needed (don't understand why the line item text is that important).
    Best regards, Christian

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

  • Line Item Text not updated in SPL

    Hi All,
    Can anyone help me in this regard.
    When we change the Line Item Text in FI document the same has not been updated in SPL. Can anyone know the required configuration to be done in order to populate the changed items in SPL.
    Any help is highly appreciated.
    Thanks,
    Srini

    HI,
    a text change in general ledger line item will not be forwarded to spec. ledger automatically (as the change of a line item text triggers no posting to spec. ledger).
    But as you know the document relationship from GL doc. to SL doc go to the corresponding SL doc. and change the text if this is really needed (don't understand why the line item text is that important).
    Best regards, Christian

Maybe you are looking for

  • Sales Order Exit For Item Texts

    Hello all, I am having a very wierd issue with sales orders. I am creating an exit to redeterming item category of line item via the item usage field. The item usage field is a user defined field on the "Additional Data B" in the Sales Order. In MV45

  • How to map single context value attribute to multiple value attributes?

    Hello, is there any way to map a single value attribute from view's context into several value attributes in controller's context? The business context of what I want to achieve is the following: I have a view which can be called in two modes: read o

  • How to creating TreeModel of the underlaying drives

    can anybody plz tell me how to creating TreeModel of the underlaying drives. so that we get the entire tree structure of the drives like window explorer.

  • Mod_perl recompile w/9ias(1.0.2.2.2) w/Solaris8(sparc)

    Where and how would you recompile the mod_perl that comes with 9iAS 1.0.2.2.2 on a Sun Sparc running Solaris2.8 (8)? I expect that it would be the same as open source Apache, or am I on cheap caffine? Has anyone done this? Dean Pokotylo

  • ABAP Webdynpro Popup

    Hi, In abap webdynpro when i click save button I want to have a popup with two buttons asking for "do you want to continue"  'yes' or 'no'. if 'yes' navigate to next screen .if 'no' remain in same screen.How to get this done. Please help. Regards, Rh