Change Material Document Header Date

Hi SAP,
can we can material document header date ? is there any impact if we change it ?

Hi,
In standard SAP, you can not change document header date in material document.
If you change "posting date" or "entry date" by your own coding, it will cause unexpected
result in MM-IM report. For example, if you change "posting date", it will affect MB5B.
But if you only change "document date", as far as I know, there will be no affect.
Thanks and regards,
Polly

Similar Messages

  • BAPI/FM for change Material Document Posting date

    Hi Experts,
    Is there any BAPI/FM for change a material document posting date.
    Its urgnt.

    Hi You can check the source code of MB02.
    i doubt whether you can change the date , hope so you have to reverse the document asd post it again.
    check & use MB_CHANGE_DOCUMENT at your own risk.

  • Change material document -- Expiration date.

    I have already created a new BADI which contains interface MB_DOCUMENT_BADI. There I use the method MB_DOCUMENT_BEFORE_UPDATE. What I want to do is to modify the expirate date (VFDAT) from MSEG.
    I thought that I could use BAPI_CUSTOMERCONTRACT_CHANGE but I can't because I don't have any <b>order</b>. The parameters I use to create the material document are next: GOODS RECEIP --> OTHERS --> movement 501. After that I enter the information of the material.
    After that I want to check if the expirate date has been insert or not. If it is not, I want to insert 31.12.9999 (dd/mm/yyyy).
    I tried to use this fuction: MB_CHANGE_DOCUMENT also with IN BACKGROUND TASK and after that COMMIT WORK.
    The program doesn't do anything, and it is just because in transaccion SM58 it says "MISSING PARAMETER WITH PERFORM".
    Which BAPI or FUNTION can I use to resolve my problem?? I'm completely locked!
    Thank you very much in advance.
    Best Regards.
    Naiara.
    Message was edited by:
            Naiara Espinosa

    Hello Naiara,
    How did you solve this?
    Thanks!!

  • Substitution for change of document header

    Hi
    I have created a substitution for the change of document header for a company code. I have made it in GGB1 and activated it in the Tcode OBBH.
    However it does not allow me to post the document (Tcode FB01) - I get the syntex error in program 'GBTLEFI0' in include 'GBTLEFIB' in line '1593' - 'The FORM "SUBCON_3ZDEPIND047" does not exist. and the processing is terminated.
    Please provide the solution
    Thanks
    Neeraj

    Hi
    For changing the documents we can use LSMW instead of substitutions.
    Thanks
    Sandesh

  • SAP VBA interfacing - error: FI/CO interface: Inconsistent FI/CO document header data for updating

    Hello,
    Currently I'm working with excel SAP interfacing. For this I am using VBA to call different BAPI functions.
    I have already some interface scripts working, however I have also one which I cannot discover what I'm missing.
    The VBA code is to reach BAPI_ACC_DOCUMENT_POST
    My error is ---> FI/CO interface: Inconsistent FI/CO document header data for updating
    So I'm appealing to you SAP bapi VBA gurus whether you have any ideas how to fix my issue.
    I'm attaching below my code for you to review:
    Option Explicit
    ' Declaration for the necessary objects
    Dim objBAPICortrol, objConnection, objCreateMaterial, objReturn As Object
    Dim objPRFCT, objNTXT, objDTXT As Object
    Dim vLastRow, vRows As Integer
    Dim objMaterial1, objMaterial2, retMess As Object
    Sub Batch()
    ' Getting the last filled Row in Column
    vLastRow = Cells(Rows.Count, "A").End(xlUp).Row
    ' Setting the necessary variables for R/3 connection
    Set objBAPICortrol = CreateObject("SAP.functions")
    Set objConnection = objBAPICortrol.Connection
    objConnection.System = "SYSTEM NAME"
    objConnection.Client = "Client number"
    objConnection.user = "USERNAME"
    objConnection.Password = "PASSWORD"
    objConnection.Language = "EN"
    ' Establish a connection
    If objConnection.logon(0, False) <> False Then
    'MsgBox "Connection Established"
    End If
    On Error Resume Next
    ' Assign the Parameters
    Set objCreateMaterial = objBAPICortrol.Add("BAPI_ACC_DOCUMENT_POST")
    Set objMaterial = objCreateMaterial.Exports.Item("DOCUMENTHEADER")
    Set objMaterial1 = objCreateMaterial.Tables.Item("ACCOUNTGL")
    Set objMaterial2 = objCreateMaterial.Tables.Item("CURRENCYAMOUNT")
    'Set Values
    objMaterial.Value("USERNAME") = "USERNAME"
    objMaterial.Value("HEADER_TXT") = "BAPITEST"
    objMaterial.Value("COMP_CODE") = "0001"
    objMaterial.Value("PSTNG_DATE") = "20140506"
    objMaterial.Value("TRANS_DATE") = "20140506"
    objMaterial.Value("DOC_DATE") = "20140506"
    objMaterial.Value("FISC_YEAR") = "2014"
    objMaterial.Value("DOC_TYPE") = "SA"
    objMaterial.Value("REF_DOC_NO") = "BAPITEST"
    objMaterial.Value("FIS_PERIOD") = "00"
    objMaterial1.Rows.Add
    objMaterial1.Value(1, "ITEMNO_ACC") = "1"
    objMaterial1.Value(1, "GL_ACCOUNT") = "0007180000"
    objMaterial1.Value(1, "ITEM_TEXT") = "BAPITEST1"
    objMaterial1.Value(1, "DOC_TYPE") = "SA"
    objMaterial1.Value(1, "COMP_CODE") = "0001"
    objMaterial1.Value(1, "PROFIT_CTR") = "AZ1111" ---->'profit center is normally having 10CHARS but as there are letters I'm not using zeros at the beginning
    objMaterial1.Value(1, "ITEMNO_ACC") = "2"
    objMaterial1.Value(1, "GL_ACCOUNT") = "0007180000"
    objMaterial1.Value(1, "ITEM_TEXT") = "BAPITEST1"
    objMaterial1.Value(1, "DOC_TYPE") = "SA"
    objMaterial1.Value(1, "COMP_CODE") = "0001"
    objMaterial1.Value(1, "PROFIT_CTR") = "AZ1111"
    objMaterial2.Rows.Add
    objMaterial2.Value(1, "ITEMNO_ACC") = "1"
    objMaterial2.Value(1, "CURRENCY") = "EUR"
    objMaterial2.Value(1, "AMT_DOCCUR") = "-1.00"
    objMaterial2.Value(1, "ITEMNO_ACC") = "2"
    objMaterial2.Value(1, "CURRENCY") = "EUR"
    objMaterial2.Value(1, "AMT_DOCCUR") = "1.00"
    ' Function call
    objCreateMaterial.call
    Set objReturn = objBAPICortrol.Add("BAPI_TRANSACTION_COMMIT")
    objReturn.call
    Set retMess = objCreateMaterial.Tables.Item("RETURN")
    If retMess Is Nothing Then
    MsgBox retMess.Value(1, "MESSAGE")
    End If
    ' Get return parameters & display in excel
    Set objReturn = objCreateMaterial.Tables("RETURN")
    ActiveSheet.Cells(5, 1) = retMess.Value(2, "MESSAGE")
    End Sub

    after some searching I've discovered that once I'm creating next line for accounting document it is not working properly.
    When I debug the BAPI in SE37 after inserting new line it is asking for GL account input, however if I run it using VBA and delete the account from the code, the return message is not giving me any error that GL account is missing.
    I appreciate any ideas.

  • BADI or User Exit - Change Material Document(GL/Account) before posting

    Hi,
    I want to change the MSEG and FI Posting values before the material documet is posted. I am not using the transaction MIGO for the material document posting. The material document which has to be changed was created during the stock adjustment (MI01,MI02,MI07.etc)
    The Details I want to change is "GL Account No" based on
    storage location. Since I cannot solve this requirement throught customization, I need a way to achive this using
    user exits or badis..
    Points will be rewared.
    Prasath
    Edited by: Prasath Kumar R on Jul 24, 2008 1:18 PM
    Edited by: Prasath Kumar R on Jul 24, 2008 1:18 PM

    Hi ,
    What you advised is right, But my customer demands to set the Gl Account at Storage location level.
    Is there any way that i can change GL/Account after Posting....????!!!!  I hope it also not possible..
    Plz advise..abt my assumption.
    Regards
    Prasath
    Dear All,
    Please let me know the possiblity of achiveing the above reqmt. Your suggestions will be helpful..
    Regards
    Prasath
    Edited by: Prasath Kumar R on Jul 25, 2008 9:33 AM

  • No document header data in GL simulation Print preview

    Hi
    When we perform  General Ledger simulation  in transaction FB01, The screen displays both the header data and simulated line item details, however on selecting print preview, the output does not contain the document header information shown on the GL simulation screen
    Any clues on how can we get the header data shown in the GL simulation screen in the print preview?
    Regards
    Sach!n

    I think this should have been just a small fix for SAP to include ALV header in the print
    but they say it's not possible !
    No solution

  • Change Currency in header data agreement (ME32K)

    Hello Friends
    I created a agreement with local currency, but the company's legal issues need to change the legal currency for another currency.  When I tried to change the header currency (ME32K) the currency field is not modifiable.
    I wonder how I can change it. I appreciate your help.
    Best regards

    Hi,
    A report RM06ERVE is available for performing the Currency Conversion
    for Outline Agreements (Euro and Other Currencies).
    However, you cannot change the document currency of outline agreements
    if the agreements contain service items.
    Please see the note 170746 and also the documentation of the
    report RM06ERVE for the usage of this report.
    Best Regards,
    Arminda Jack

  • 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

  • Billing Document - header data

    Hi Experts,
    When i run transaction VF02, in header data (menù GoTO->Header->Header) how can i make editable the field "Dunning block"?
    Thanks so much.

    HI !
    After creating the invoice you can't change the header data of the invoice.  like payment term, partner function etc. . So Dunning block is also a header data. you need to cancel the invoice then make the required changes.
    Coments are welcome.
    Thanks
    Pitabash

  • Bapi or function module to change Material document

    can any one plese tell me the function module or BAPI to chenge the material document.i need to chenge some fields in the material document like XBLNR(Reference document number) after it is created.
    Thanks ,

    Hi,
    try this out.
    SRS_PDC_GR_MATDOC_GET
    <REMOVED BY MODERATOR>
    Thanks,
    Madhura
    Edited by: Alvaro Tejada Galindo on Feb 6, 2008 2:15 PM

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

  • Can BAPI_PO_CHANGE use to change OA's header data

    hi all,
    can i use BAPI_PO_CHANGE to change OA data on ekko-ekgrp? pls advise

    Hi,
    Do you want to change the purchasing group EKKO-EKGRP??
    Thanks,
    Naren

  • Impacts in COPA of changing material and customer master data

    Dear experts,
    In my company we are considering following scenario:
    Currently mySAPerp 6.0 is implemented for all modules for the mother company.
    We have developed a new global template where there are significant changes versus the existing system, especially in the SD processes. Material and customer master also change significantly in terms of content in the tables/fields and/or values in the fields.
    The idea was to build the template from scratch in a new machine and roll-out all group affiliates, but now we are considering the possibility of making an evolutionary of the current system and try to stretch it to the processes defined in the global template.
    The scenario we want to analyze is: Keeping same organizational structure in terms of Company code, CO area and Operating Concern in existing SAP client and make an evolutionary of the existing settings to the global template processes.
    The doubts we are having are the following:
    Changing material & customer master data: Impact in COPA
    Option 1: Material master data and customer master data codes are maintained but content in the tables/fields is changed substantially, both in terms of logical content of specific fields and/or the values in the specific fields. We have following examples of changes.
    Case 1: source field in material master changes logical content. E.g. Material master field MVGR1 is currently used for product series (design line) and the content changes to be the Market Segment. The product series will be moved to a classification field. At least 5 other fields are affected by this. How can data in terms of COPA line items be converted so that they are aligned at time of reporting?
    Case 2: the source field is not changed so that the logical content of the field remains but the values change, i.e. for the same concept there will be different codifications. How can data in terms of COPA line items be converted so that they are aligned at time of reporting?
    Case 3: Characteristics where currently the source material master field is a Z field and the derivation is via table look up and where the Z field changes to a classification field. How can you convert the existing COPA line items to ensure that attributes are aligned? Should new characteristics be created or just change the derivation logic of the characteristic?
    Option 2: Material master data and customer data codes are re-created (codification of records is changed), meaning that new material and customer codes will exist and content in tables/fields is changed (as in option 1)
    Case: material and customer codes are changed. How can data in terms of COPA line items be converted so that they are aligned at time of reporting?
    Iu2019ve never phased a similar scenario and I fear that maintaining operating concern while changing source master data and also SD flows (we have new billing types, item categories, sales doc. Types, order reasons) may lead to inconsistencies and problems in COPA.
    I would like to ask you experts if you have come across a similar scenario and if from your experience, it is something feasible to do or there are many risks involved. What can be the impact of this scenario in existing Operating Concern for both option 1 and 2 and what would be the key activities to perform to adapt the existing operating concern. What will be the impact of the needed conversions on P&L reporting?
    Sorry for the long story. I hope you can help me out.
    Thanks and Regards,
    Eric

    Hi,
       First i think you will need to test if it works for new COPA documents created via billing.
      If it works fine then the issue is if you wish to apply these changes to the historical data already posted.
      Normally there are transactions like KE4S where you can repost the billing document to COPA
      However this may not be viable for bulk postings
      You can perform realignment (KEND) but this only works at the PA segment level (table CE4XXXX)
    regards
    Waman

  • 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

Maybe you are looking for