Change Accounting Document header text

I want to change the Accounting document header text (BKPF-BKTXT).
I dont want to use Call transaction for this.
Please tell me if there is any function module or BAPI available?

>
lavanya koduganti wrote:
> I want to change the Accounting document header text (BKPF-BKTXT).
Do you want to change the A/c'ing doc. header text for an existing doc? I think that CALL TRANSACTION would be easier. Why do you think otherwise?
Any specific reason for this?
BR,
Suhas

Similar Messages

  • Accounting document header text field

    Gurus
    I need some help pulling a header text field from an accounting document. I need to run a report on that. Header text is not stored in a table, can anyone suggest what the best way to do that is?
    thanks!

    Thanks for the tip on those tables. I was able to get some data in STXL -
    FF06010102028000343130320000000063010000121F9D021D331F030303230F90606065C00642187C183C19FC185CD74254AE028BB28029468E7510C17D5033
    It seems like its in hex, i entered "Error Code :1" in the text field and got this stored in the table!

  • BAPI to change Accounting Document Header

    Hi Folks,
    I have a requirement to go into an existing document (Billing Doc.) and change the Reference field (XBLNR).  The business requirement is specifically to modify the BKPF-XBLNR field to contain a new reference.  Is there a BAPI that can be used to modify accounting header details?  All the accounting BAPI's I can find seem to be for posting a new record.
    Points will be rewarded for helpful answers
    Cheers,
    Steve

    Hi,
    Check this example code
    TABLES: bapiache08, bapiacgl08,bapiaccr08, bapiret2.
    DATA: t_bapiache08 LIKE TABLE OF bapiache08 WITH HEADER LINE,
    t_bapiacgl08 LIKE TABLE OF bapiacgl08 WITH HEADER LINE,
    t_bapiaccr08 LIKE TABLE OF bapiaccr08 WITH HEADER LINE,
    t_bapiret2 LIKE TABLE OF bapiret2 WITH HEADER LINE,
    ct_bapiret2 LIKE TABLE OF bapiret2 WITH HEADER LINE.
    t_bapiache08-obj_type = 'BKPFF'. "BKPFF
    t_bapiache08-obj_key = '010000000000062005'.
    t_bapiache08-obj_sys = 'T90CLNT800'. "T09CLNT800
    t_bapiache08-username = 'SSI4'.
    t_bapiache08-header_txt = 'DOCUMENT POSTING'.
    t_bapiache08-comp_code = '1000'.
    t_bapiache08-fisc_year = '2005'.
    t_bapiache08-doc_date = '20050805'.
    t_bapiache08-pstng_date = '20050805'.
    t_bapiache08-fis_period = '07'.
    t_bapiache08-doc_type = 'SA'.
    t_bapiache08-compo_acc = 'FI'. "GL
    APPEND t_bapiache08.
    t_bapiacgl08-itemno_acc = '031'.
    t_bapiacgl08-gl_account = '160000'.
    t_bapiacgl08-comp_code = '1000'.
    t_bapiacgl08-pstng_date = '20050805'.
    t_bapiacgl08-doc_type = 'SA'.
    t_bapiacgl08-fisc_year = '2005'.
    t_bapiacgl08-fis_period = '07'.
    t_bapiacgl08-stat_con = 'X'.
    t_bapiacgl08-vendor_no = '1920'. "ACCOUNTING NO.FOR VENDOR/CREDITOR.
    t_bapiacgl08-item_text = 'LINE ITEM TEXT BY VIN'.
    APPEND t_bapiacgl08.
    t_bapiaccr08-itemno_acc = '031'.
    t_bapiaccr08-currency_iso = 'EUR'.
    t_bapiaccr08-amt_doccur = '2000'.
    APPEND t_bapiaccr08.
    CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST'
    EXPORTING
    documentheader = t_bapiache08
    * IMPORTING
    * OBJ_TYPE =
    * OBJ_KEY =
    * OBJ_SYS =
    TABLES
    accountgl = t_bapiacgl08
    currencyamount = t_bapiaccr08
    return = t_bapiret2
    * EXTENSION1 =
    LOOP AT t_bapiret2.
    WRITE :/ t_bapiret2-type, t_bapiret2-id, t_bapiret2-number,
    t_bapiret2-message,t_bapiret2-parameter,
    t_bapiret2-row, t_bapiret2-field, t_bapiret2-system.
    ENDLOOP.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    wait = ' '
    IMPORTING
    return = ct_bapiret2.
    LOOP AT ct_bapiret2.
    WRITE :/ ct_bapiret2-type, ct_bapiret2-id, ct_bapiret2-number,
    ct_bapiret2-message,ct_bapiret2-log_no, ct_bapiret2-parameter,
    ct_bapiret2-row, ct_bapiret2-field, ct_bapiret2-system.
    ENDLOOP.

  • FB02 does not allow to change Document Header Text

    Hi,
    We are upgrading to ECC 6.00. In T Code FB02 we are not able to change the document header text (BKPF-BKTXT). This feild is grayed out.
    We have done the necessary configuration in Document Change Rules, Document Header- allowing BKPF-BKTXT for change.
    We can see the entry in Table V_TBAER. Please help me to solve this problem. We need to have this feild available for change.
    Regards
    Santosh Hegde

    hi Santosh,
    I understand that you can see the entry (BKPFT-BKTXT) in V_TBAER, but there are two small things to consider: if you doubleclick the line (in V_TBAER), there are two checkboxes, where the first one has to be ticked (field is changable), if the second checkbox is ticked as well, it means the field can be changed if the posting period is open. pls. check just in case...
    if it does not help, I would suggest to open an OSS call about this problem (I did search on my own, but no luck), could be some special SAP error.
    ec

  • FI document Header text formation using tcode F110 (Automatic payment )

    After completion of tcode F110 i.e. completion of a cycle of automatic payment transaction
    Then we can see header text of created FI document number by using tcode fb03.
    But the header text created through F110 has a concatenation of Run Date and Identification.
    There is problem that how it can happen?
    I have gone through all program code; there is no such direct coding for concatenation of header text, rather concatenate happens at different level of coding.
    We can create FI document using FB01 also and there is choice to enter Header text manually as well as we can select it using F4 help.
    Any one has any IDEA regarding this?
    Thanks,
    Suyog

    Hi
    I'm not sure it's helpful answer. The code below shows the way to change FI document header text (BKPF-BKTXT).
    tables: bkdf, bkpf, bsec, bsed, bseg, bset.
    constants:  c_bukrs type bkpf-bukrs value '11',
                c_belnr type bkpf-belnr value '1900000001',
                c_gjahr type bkpf-gjahr value '2011'.
    data: t_bkdf  type standard table of bkdf with header line,
          t_bkpf  type standard table of bkpf with header line,
          t_bsec  type standard table of bsec with header line,
          t_bsed  type standard table of bsed with header line,
          t_bseg  type standard table of bseg with header line,
          t_bset  type standard table of bset with header line.
    start-of-selection.
    * BKDF
      select *
        from bkdf
        into table t_bkdf
        where bukrs eq c_bukrs and
              belnr eq c_belnr and
              gjahr eq c_gjahr.
    * BKPF
      select *
        from bkpf
        into table t_bkpf
        where bukrs eq c_bukrs and
              belnr eq c_belnr and
              gjahr eq c_gjahr.
      loop at t_bkpf.
        concatenate t_bkpf-bktxt '-R'
        into t_bkpf-bktxt.
        modify t_bkpf.
      endloop.
    * BSEC
      select *
        from bsec
        into table t_bsec
        where bukrs eq c_bukrs and
              belnr eq c_belnr and
              gjahr eq c_gjahr.
    * BSED
      select *
        from bsed
        into table t_bsed
        where bukrs eq c_bukrs and
              belnr eq c_belnr and
              gjahr eq c_gjahr.
    * BSEG
      select *
        from bseg
        into table t_bseg
        where bukrs eq c_bukrs and
              belnr eq c_belnr and
              gjahr eq c_gjahr.
    * BSET
      select *
        from bset
        into table t_bset
        where bukrs eq c_bukrs and
              belnr eq c_belnr and
              gjahr eq c_gjahr.
    end-of-selection.
      call function 'CHANGE_DOCUMENT'
        tables
          t_bkdf           = t_bkdf
          t_bkpf           = t_bkpf
          t_bsec           = t_bsec
          t_bsed           = t_bsed
          t_bseg           = t_bseg
          t_bset           = t_bset
    *   T_BSEG_ADD       =
    hope it's help.
    Peerasit

  • Document number, reference, document header text

    my name is venkat in f-02 there are 3 fields. 1) document number 2) reference 3) document header text what purpose we use with example

    HI,
    1. Accounting Document Number
    The document number is the key the system uses to access the accounting document.
    The document number is unique per company code and fiscal year. When entering an accounting document, you can specify the number manually or it can be determined by the system from a pre-defined area (number range).
    The relevant area of the document numbers (number range) is determined in each company code per document type.
    2. Reference Document Number
    Definition
    The reference document number can contain the document number of the customer/vendor. However it may contain a different value.
    Use
    The reference document number is used as a search criterion when displaying or changing documents. In correspondence, the reference document number is sometimes printed in place of the document number.
    Procedure
    Enter the number specified by the business partner. If the document was created in-house and you do not know the business partner document number, you can copy the document number into the reference number field by entering "*".
    3. Document Header Text
    The document header text contains explanations or notes which apply to the document as a whole, that is, not only for certain line items.
    reg
    Madhu M

  • Populate document header text in SES by bapi BAPI_ENTRYSHEET_CREATE

    Hi,
    I am using BAPI BAPI_ENTRYSHEET_CREATE to create a service entry sheet. But I am not able to populate the document header text (bktxt) in acceptance tab in service entry sheet header in ML81N.
    Can anybody help me what I need to pass to this BAPI in order to populate this field.
    Thanks,
    Mainak

    Hey Mainak,
    I am aware that the question was posted by you long back, but I am replying so that other readers probably can benefit from the answer below -
    I faced the similar issue recently in one of the projects. The solution that i have opted is as below -
    1. I leveraged the changing parameter 'ESSR' work area of the user exit 'EXIT_SAPLMLSR_010'. This user exit is internally called via BAPI_ENTRYSHEET_CREATE.
    2. You can export the value of 'ESSR-BKTXT' field to memory ID from the calling program and import it within this user exit and pass it to changing parameter ESSR.
    Hope this helps to other readers!
    - Thanks,
    Urvi.

  • Document header text in Tcode FBl3n

    hello
    Plz help me regarding this issue.
    Our fico consultants demanded to display the document header text in the tcode FBL1n,FBL3n and FBL5n
    So through SPRO by using this path Financial Accounting (new)->General ledger Accounting->Master Data->G/L Acounts -> line items ->Define Special fields for line item Display.
    In this i made the new entry BKPF BKTXT ,
    Now after this field start coming in the above tcodes by setting the layout but the problem is that data inside is not coming and when i go to details the data is there.
    I am not gettting problem to get the data also.
    Now it is showing extra column with header Document header text but it is not showing the data inside it.
    and similar if i doing for someother field both things are coming data and field also.
    WHy this problem for document header text only.
    Plz let me know and give the solutions as soon as possible.
    Thanks a lot.

    Hi,
    You can use READ_TEXT to retreive header text.
    READ_TEXT provides a text for the application program in the specified work areas.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    You have to used the READ_TEXT functions to read the SAP long text. e.g. Sales Order, Purchase Order Item text etc.
    To check your long text header, go into the long text. Click Goto -> Header
    This will give you OBJECT, NAME, ID, and LANGUAGE.
    Pass them in the FM, you will get the header text that you want.
    Also go through the below link:
    http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8c8494511d182b70000e829fbfe/content.htm
    Hope this will help.
    Thanks&Regards,
    Naresh kumar.

  • How can i add Document Header Text for s_alr_87012357

    Hi Gurus
    How can i add Document Header Text for  s_alr_87012357(Advance Return for Tax on Sales/Purchases).do i need change the standard program or is there any alternate to do this please  help me  out.

    i found it .its in output list and i did change the layout settings.thanks

  • BAPI/Function to change Accounting Document

    Hi All,
    I have requirements to change Assignment field and text field in the accounting document for each item.
    Anyone know BAPI/Function to do that?
    Thanks,
    Victor.

    Hi Sandipan,
    I can't find Change accounting document BAPI from the link that you gave.
    Manually, how user change  the text and assignment fields is using FB02 t-code and double click each line item, from there we can change the text and assignment fields.
    I tried to record those steps and will create BDC program for that. But the problem is for each line item the subsequent screen can be vary and i think it depends on the G/L account that tied for each line item.
    So i don't think BDC is a good idea to do this.
    Any suggestion guys to do this?
    Best Regards,
    Victor.

  • BADI to change the document Tendering Text of Bid Invitation

    Hi Experts...
    Im need a BADI to change the document Tendering Text of Bid Invitation. Anybody knows?
    Thanks.
    Victor

    Hi,
    You can use the badi "BBP_DOC_CHANGE_BADI" to chnage the value for the long text "Tendering text".
    In the EXPORT  table ET_LONGTEXT,just pass the text ID deatils and the new content  for this text.
    The text ID for the longtext "Tendering text" is "HTXT"(for  header level) and ITXT(for item level).
    BR,
    Disha.
    Do reward points for useful answers.

  • Transfer document header text from billing document to FI document

    Dear all,
    Where do I specify that the document header text out of the billing document should be transferred to the corresponding FI document?
    Currently, the FI document header text (BKPF-BKTXT) remeans blank after transfer from billing document. We need this field to be filled in, but I haven't found how to have this filled in.
    In copy control from sales doc to billing doc, there is the possibility to transfer the Reference number & Assignment, but nothing about document header texts.
    Some say that it would only be possible via coding, but anybody has any idea if it might be possible via standard SAP?
    Many thanks!
    Best regards

    Hi,
    We also had a bit same requirement, which is to copy the billing header text to FI item text (BSEG-SGTXT). The solution we took is to use FI Substitution (t-code GGB1), so that every time a FI document created from SD... the substitution reads the billing header text and put it in the FI item text. I think the same method could be used for FI header text (BKPF-BKTXT). Below is the solution for your reference.
    Prerequisite:
    Document Type = 'RV' AND Reference <> '' AND
    ( Transaction code = 'VF01' OR Transaction code = 'VF02' OR
    Transaction code = 'VF03' )
    Substitution:
    Using exit which coding is as below.
    *&      Form  u900
          Copy Billing Header Text to SGTXT
         -->P_SGTXT    FI Item Text
    FORM u900 USING p_sgtxt TYPE bseg-sgtxt.
      DATA: lv_name TYPE thead-tdname,
            lt_line TYPE STANDARD TABLE OF tline,
            lw_line TYPE tline.
      lv_name = bkpf-xblnr.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          id                      = 'Z001'
          language                = sy-langu
          name                    = lv_name
          object                  = 'VBBK'
        TABLES
          lines                   = lt_line[]
        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 EQ 0.
        READ TABLE lt_line
          INTO lw_line
          INDEX 1.
      In Billing Header Text, the sign '&' (ampersand) is automatically
      added some characters so it becomes '<(>&<)>'.
      The logic below is to fix that issue.
        REPLACE ALL OCCURRENCES OF '<(>' IN lw_line-tdline WITH space.
        REPLACE ALL OCCURRENCES OF '<)>' IN lw_line-tdline WITH space.
        p_sgtxt = lw_line-tdline.
      ENDIF.
    ENDFORM.
    Regards,
    Teddy Kurniawan

  • Document header text in Fb03

    Hi all,
    In ml81n transaction there is a field called external number which is stored in ESSR table.
    Now when i go to mrrl and display the fi document i will be taken to Fb03 transaction. If i click the documnet header i will get another window which has documen header text. Now in this document header text i need to display the external number that was used in ml81n transaction.
    I tried with enhancement points at some points. but it was not helpful.
    Hope somebody would reply to this post.
    Thanks in advance
    Veda
    Helpful answers would definitely rewarded.

    Hi,
    You can use READ_TEXT to retreive header text.
    READ_TEXT provides a text for the application program in the specified work areas.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    You have to used the READ_TEXT functions to read the SAP long text. e.g. Sales Order, Purchase Order Item text etc.
    To check your long text header, go into the long text. Click Goto -> Header
    This will give you OBJECT, NAME, ID, and LANGUAGE.
    Pass them in the FM, you will get the header text that you want.
    Also go through the below link:
    http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8c8494511d182b70000e829fbfe/content.htm
    Hope this will help.
    Thanks&Regards,
    Naresh kumar.

  • Unable to view document header text in MB51

    When creating a stock transport order in MB1B we are entering information into a field labeled "document header text". Then when running MB51 in the column labelled document header text nothing appears unless we enter under a specific movement type.  If we use another movement type the text does not transfer.
    Please assist.
    Thank you.

    Try using SELECT_TEXT in place of READ_TEXT.
    Hope this helps.
    Regards
    vinayak

  • Document Header Text in BKPF

    Hello
       In BKPF the document header text is case-sentive.If we search for eg. test* then it would return all the texts starting with test(in small) and if we search for TEST* it would return the texts starting with TEST and not test also.I have a select option(Document Header Text) on the selection screen and irrespective of the case it should select all the texts which i give the search for.For e.g if I give test* then it should return texts starting with (test as well as TEST).How can this be achieved?
    Thanks.

    Hi,
    There is no simple solution to this. Either you build up a select-option yourself with all possible combinations of "test", "Test", "TEST" etc., or you would select all BKPF records in an internal table (usually not a good idea since this is normally a DB-table with many entries) and translate the BKTXT field to upper case and then select your records.
    Regards,
    John.

Maybe you are looking for

  • Xpressmusic 5800 will no longer connect to the int...

    I have an xpressmusic 5800 and have been using wireless through my home router (and others access points) with no problems for months. I cleared my page history a few days ago and since then (not sure if it related or not) I have been unable to conne

  • Help! Mac vs PC:  Save As... dialog not working the same

    Hi everyone need some quick help here please. I have a friend on a Mac running CS2, trying to take a folder of TIFFs, and do a Save As to create JPGs. 1. For a single file, he opens the TIFF, hits File/Save As. 2. He selects JPG from the format dropd

  • Logic 7.1 MIDI problem (Digi 002)

    A year ago, I bought a dual G4, a Digi 002, and started recording. After realizing I was using GarageBand more than ProTools, I bought Logic Pro. Of course, the 002 isn't a supported interface, but I could still use it as an input device - I could ha

  • File Adapter Queries

    Hi Experts, I am facing issue with huge files while fetching from source, so please suggest me,  what is a maximum file size range PI file adapter can poll from source ? Is ther any range and limitation ? . Regards Raja

  • Creating different instances of one class

    Hi everyone thanks so much for all the help so far! I want to create a new instance of class coauthorship everytime the loop goes around to a new record! However thats not whats happening it only creates 1 instance of coauthorship and it is overwritt