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!!

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

  • Insert document expiration date in a Word template

    Hello all,
    I have a problem I hope anyone can help me with. I need to include a column in Document Library with the Document expiration date and after that, include that expiration date into the Word templates I have in that library.
    In order to do that, I created a date column (not a calculated one) called "ExpDate" with a default value of Today + 365 as I want the document to expire one year after its creation. After that, I edit the word templates I have associated to the
    document library so as to include the new "ExpDate" column as a Quick part.
    The problem I find is the following: When I create a new document based in the document templates (through content types), the user has the chance to insert an expiration date (as it is metadata) or leave it empty (the column is not defined as mandatory). If
    the user leaves the expiration date empty, the new column is filled with the default value (today + 365 days) but when I open the word document I see the name of the column [ExpDate] instead of the default value.
    Is there a way of forcing the document information panel to be filled with the default value?
    Do you imagine an alternative solution to the requirement of including the expiration date inside the document without having to be defined by the user?
    Thanks a lot.
    Regards.

    Wordsub.llb should be somewhere in your Labview folder on your local drive. The path to it in my install is: C:\Program Files\National Instruments\LabVIEW 8.6\vi.lib\addons\_office\_wordsub.llb
    Also what specific problem are you referring to about 17 bookmarks? Is that the limit on the express style VI for filling them in from LV? If so what you will need to do is to use the lower level function 'Word Insert Field' under Word Advanced VIs. You will need to supply the VI the name of the bookmark and the text you want to insert.

  • 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

  • Material with Expiration date without Batch Management

    Hi,
    Is it possible to give the expiration date for the Material without Batch Management, during GR.
    Aktar

    Hi
    please find below link. It may help you.
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/63349443a211d189410000e829fbbd/content.htm
    regards
    Srinivas

  • Change credit card expiration date in iCloud keychain

    Is it possible to change a credit card expiration date on iCloud Keychain?

    Launch the Settings app from the Home screen of your iPhone or iPad.
    Scroll down and tap on Safari.
    Under the first section labeled General, tap on Passwords & AutoFill.
    At the very bottom, make sure the Credit Cards option is turned to On and then tap on Saved Credit Cards directly beneath it.
    Now tap on Add Credit Card.
    Enter the credit card information and then tap Done in the upper right hand corner.

  • Document Expiration Date Not Updating

    Hi,
    I’ve implemented a document retention policy based upon a custom date field. The custom date field is not for users to edit so it defaults to 1/1/1900 for new documents and I have written a console app that updates the custom date field to an appropriate
    date. The problem is that the expiration date, both for new and existing documents, doesn’t update. This is also the case if I update the document properties manually. In dev updating the custom date field, manually or via code,
     triggers an update in the expiration date but this isn’t happening in UAT. We’re using a content type hub in UAT although I can’t see how that makes a difference as the information management policies have been distributed correctly.
    Does anyone have an ideas as to why the expiration dates are not re-calculating?
    Thanks in advance
    Neil

    It is running and I've run it manually a number of times. But my understanding is that the job only updates new or amended expiration policies, it doesn't re-calculate for existing ones. That aside, the expiration date should update immediately when
    the field upon which is based is updated - at least that's the behaviour I've seen in development.

  • 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

  • Changing credit card expiration date

    I received notice to update my expiring credit card. I see no way to do this. Must I delete and then add back the same card?

    Yes, ad I also have the same problem.  I have no problem with any other payments - the vendor emails me or calls me for updated expiration date.  I guess Microsoft hasn't figured out this basic e-commerce feature yet.  I could lend them my neighbour's high school kid who could help them figure it out.

  • Document expiration date?

    Hi,
    I don´t know if this is possible... I want put a date expiratacion in a document, can i? How?
    Thanks in advance,
    Regardsm

    Hi,
    You can give Valid from and Valid  properties to a document.  Before that its doucment parent folder should be lifetime enabled. You also need to activare the Time dependent publishing services.
    Then people having only read permission can only see only betweenthe valid from and valid to dates.
    People having full rights can see even though the time expires.
    Raghu

  • 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

  • Material Document change

    Dear All,
    Can material document be changed once it's been created? User wants to update Delivery Note in Matetial document, is there any transaction to do that?
    Regards
    SD

    Samier Danish wrote:>
    > Dear All,
    >
    > Can material document be changed once it's been created? User wants to update Delivery Note in Matetial document, is there any transaction to do that?
    >
    > Regards
    > SD
    Hi Samier,
    Try using MB02 it is the TCode to change Material Documents.
    Hope it helps
    Regards
    Abhishek Swarup

  • Change Number Range of Material Document

    Hi Guru,
    We have a requirement to change material document number range that depend on movement type.
    I have check in SPRO and read some document for material document number range.
    I understand that this is a standard SAP.
    - GR from PO or Order         Number Rage will be 5000000000 to 5099999999 and Fiscal Year
    - GR Other, GI, Transfer      Number Rage will be 4900000000 to 4900000000 and Fiscal Year
    My question is Can we change this number range?
    I guess that we have to implement BADI or User-Exit to determine new number rage but I don't know how to do this.
    Please kindly advice or guide me.
    Thank you very much.
    Saiyaman

    Hi,
    Insted of Movemen ttype you can asign seperate number range to a transaction code follow the process as below
       First u need to create seperate document type in OMR4  or OBF4,   then create a new number range in OMBT  assign your new number range to new created document type then in T. code OMBA  assign new created document type to the transaction code  so whenever u will create document with this Transaction code u can get new number range.
    regards,
      zafar

  • WM reversal material document

    Hi all.
    I read in OSS note 173272 that (I include it literally):
    "When you reverse a material document, Customizing data is used in releases earlier than Release 40A in the detail screen of the movement type to specify the source storage bin.This incorrect procedure was changed in Release 40A to the effect that when the source storage bin is determined a basic distinction is made between material document reversal and posting with the reversal movement type.In material document reversal, the storage type and the storage bin are always transferred from the material document to be reversed"
    So, this would mean that when I use MBST to cancel a GR, the OT created for the cancellation should bring the same data as the OT related to the GR. Is this the meaning? In my case this is not working, I have to include manually the source bin during cancellation. My release is prior to 4.0.A
    Any idea??
    Thanks in advance!!!!

    no, this means that your old system does always take the values from customizing and not from the material docuement that got reversed.
    In other words your customizing is not complete to find the source bin automatically for the reversal movement.

Maybe you are looking for