Enhancement for MB1C/MB1A before creation of an Accounting Document

Hello everyone,
Actually I want to get the material document number(MBLNR) before the creation of an accounting document when using the transaction MB1C or MB1A.
I will have to use the value 'MBLNR' to update a field during the creation of an accounting document(the field SGTXT should be updated with the MBLNR).
I have already tested the following BADI's which provide me the value of the material document number:
- MB_DOCUMENT_BADI  (BAdIs During Creation of a Material Document)
- MB_DOCUMENT_BADI_SAP (BADI for Creation and Changing of a Material Document)
and I am using the BaDi 'AC_DOCUMENT' to update the required field with the material document number(MBLNR).
The problem is that the BADI's 'MB_DOCUMENT_BADI ' and 'MB_DOCUMENT_BADI SAP' are call after the creation of the accouting document(after the BADI 'ACDOCUMENT') meaning that I can't used these BADI's as the value MBLNR is not available before.
My idea was to export the value to memory ID before the creation of accounting document and import the value in memory ID in the BADI's 'AC_DOCUMENT' to update the field SGTXT.
I am currently looking for other enhancements or BADI's which can help me to solve this issue.
After much research on the internet, I did not succeed in finding a suitable hint which can help me.
I would be grateful if someone could guide me(even a small hint will help me a lot as am I am new in the world of BADI's) on how to find a suitable way to get the document number(MBLNR) before the creation of an accounting document(before calling the BADI 'AC_DOCUMENT').
Thanks a lot in advance for you help.
Kind Regards,
Bryan

Hi
I had a look through the program and found an enhancement spot ES_SAPMM07M available through out. Sadly i am not able to create a material document in my system some master data issue but there are various enhancement points in this enahcmenet and you need to debug on save and find the right enhancement point to export the value.
Put a break point in the following includes which have only one subroutine in them
MM07MFF9_F_SEGMENTE_BEWERTEN
MM07MFF9_F_SEGMENTE_ERSTELLEN---> In this accounting item are created. If stops here and in debugger change the value if it works then there are various enhancement spot for the same.
MM07MFF9_F_SEGMENTE_ERZEUGEN
MM07MFF9_F_SEGMENTE_GENERIEREN
Hope it helps
Nabheet
Edited by: nabheetmadan09 on Feb 1, 2012 3:49 PM

Similar Messages

  • Table for picking PURCHASE ORDER field corresponding to accounting document

    Dear All
    Table for picking PURCHASE ORDER field corresponding to accounting document.
    Thanks
    Rahul Jain

    Dear Jayram
    I know that Purchase order field can be picked from BSEG table but i am not able to capture the data into it. Whenever i book a invoice through FB60 or MIRO i give the reference PO number which is not getting updated in BSEG, BSAK and other relevant tables.
    Thanks
    Rahul Jain

  • MB1A Missing cost center in Accounting Document.

    Hi All,
    WHile I run MB1A transaction & input the movement type & select the order number & save i get a Material Document generated (MSEG ) & an Accounting Document as well ( BSEG ).
    My requirement is to fill up the corresponding cost center value in the Accounting document which is blank as of now for all.
    Can this be achieved by some Functional setting?
    I searched for all USER EXITS & BADI's but non of them seem to have a place where i can modify the BSEG-KOSTL Value.
    Need your Valuable inputs on this.
    Thanks.
    Kevin.

    Hi Kevin,
    In MB1A the following exits are available,
    MBCF0002
    MBCF0005
    MBCF0006
    MBCF0007
    MBCF0009
    MBCF0010
    MBCF0011
    MB_CF001
    However check by putting a breakpoint on exit EXIT_SAPLFMR4_002 which is accouting document if you can do anything here.
    Thanks and regards
    Kedar

  • CFolder enhancement for predefined collab folder creation

    Hi,
    We are using cFolder for the collaboration of Supply Chain Management-SNC objects as ASN, we have a requirement that an automatic collaboration folder should be created for every SCM -SNC object created in system where SCM-SNC and cFolder have integration. The collaboration folder in cFolder should be created with ASN object number.
    What should be the possible ways to achieve this functionality?
    Best Regards,
    Avinash

    Hello Friend,
    I am facing a similar kind of a problen.
    Were you able to get through this?
    If yes, please share the solution.
    Thanks in Advance,
    Sumit

  • Accounting Document Creation in FB60 with Tax Calculation Enable

    Hello everyone,
    I am currently facing a strange issue. The issue is that I am using transaction FB60 to create an accounting document.
    How I proceed with:
        1. Go to FB60
        2. Enter the necessary details
        3. Click on the "Save" button to post the document.
    To view the accounting document created,
        1. Go to FB03
        2. Enter the document number generated previously to view the document.
    The problem is that, currently I need to update a field in the accounting document during its creation. I know that the BaDi 'AC_DOCUMENT' is called before creation of any accounting document.
    I have hardcoded a break point in the BADI to test whether when clicking on the button 'SAVE' from transaction FB60, whether the BADI 'AC_DOCUMENT'is called, and the debugger was not trigger.
    I don't understand why the BADI 'AC_DOCUMENT'is not trigger, i did activate the 'Update debugger' to test whether the BADI was executed in the background but in vain, the BADI 'AC_DOCUMENT' was not triggered.
    But if I click on 'PARK'(I don't  know a park document is  document in transaction FB60, the BADI 'AC_DOCUMENT' is trigger.
    I would be grateful if someone gives me an idea or a small explanation on what is going on in the back.
    Maybe, I am wrong with the BADI 'AC_DOCUMENT', maybe this BADI's is not trigger every time an accounting document is created.
    Thanks a lot in advance.
    Kind Regards,
    Bryan

    what field do you want to update? did you try FI substitution?

  • 0FI_GL_10 to be enhanced for the Accounting Doc Num and Order

    Hi Gurus,
    We have used 0FI_GL_10  datasource and now we need data for the below two fields:
    1. Accounting Document Number (BSEG u2013 BELNR )
    2. Order Number (BSEG u2013 AUFNR)
    The above both fields are present in the datasource 0FI_GL_04.
    Can 0FI_GL_10  be enhanced for the above two fields? or do we have any simple method of pulling these
    Thanks in advance,
    Upender

    Hi,
    You can do it in 2 ways. Use both the datasources to fill same DSO. In that way, you would be able to update your required fields.
    Alternatively, you can enhance the datasource with these 2 fields and write your code in CMOD to fill these fields. Please refer to the below article for enhancing the datasource.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0af763b-066e-2910-a784-dc6731660f46
    Please note that the article talks about master data, therefore the enhancement EXIT_SAPLRSAP_002 is used. In your case, you need to code under EXIT_SAPLRSAP_001.
    Edited by: Rahul K Rai on Sep 9, 2010 1:36 PM

  • Unable to create Accounting document for my Outgoing excise Invoice

    Dear All,
    I am implementing sales from Factory. I am unable to creat accounting document for my Outgoing excise invoice.  When I click the Utilization button, The excise invoice type is selected Deemed.
    1. How to control which Which Excise invoice type should be selected in J1IIN.
    2. For Deemed exports will system not genererate Accounting document for Excise Invoice?
    3. Where to view the excise invoice document types (Like Billing and order types)
    Thanks & Regards

    For deemed export sales,
    -Accounting documents will not get generated. (ref: Excise Acct Determination in CIN settings, you will not find Excise Tranraction type:ARE3 for which G/L account will not be assigned)
    -Excise Invoice type will be automatically triggered based on configuration : Excise Group / Series Group detetermination.
    - For Deemed Exports , only Quantity will get updated in RG1, but not the value. thats the reason, accounting document will not get generated.
    - This excise invoice is created, for - to update the RG1 registry / ARE3 creation.
    hope it clears
    regards,

  • Urgent: Accounting document for GR

    Hi All,
    The sales order finished goods stock is changed from Non Valuated  stock to Valuated by changing the Requirement Class.
    For the sales orders createdd before this cahnge the accounting document is not getting released for GR on production order.
    Can somebody suggest a way to post this accounting document. The sales orders are already deliverred and billed.
    Regards,
    CD

    Hi.
    GO to VA02 change sales order and delete only material number and press enter then system will ask you to enter material number then enter again the same material no. and save.after this sale order will update the change material.
    Rewasrd if useful.
    Regards,
    Chetan.

  • IR created for Purchase order without accounting document

    Hi all,
    We have a peculiar situation where an IR (Invoice receipt) document has been created for a purchase order where the corresponding accounting document has not been generated. Can you please let us know how can we create accounting document for this IR.
    We tried to reverse this IR by transaction code MR8M but it is throwing the error message "Reversal not possible, accounting document for the ref. does not exist".
    We understand that there is some standard SAP utility which posts the accounting document and in case there is some configuration also for this, please let us know.
    We would be grateful for any information on resolving this issue.
    Regards,
    Santosh

    Hi,
    Please refer to the below links:-
    http://www.sap-img.com/financial/integration-of-fico-with-other-modules.htm
    http://www.sap-img.com/materials/what-is-the-dataflow-of-mm.htm
    Re: FI-MM(Valuation Class)
    Rgds.

  • Separate line item for taxes in accounting document of MIGO

    All SAP Gurus,
    As we can have separate line item for Freight amount (Freight amt credited) in accounting document for MIGO.
    Similarly is it possible to have separate line item for tax amount which is inventoried.
    Regards,

    Hi Rajan,
    Freight is from pricing procedure whereas tax is from taxing procedure.
    Tax cannot be shown in separate g/l in MIGO.
    Reason:
    If u wanna show tax as separate item then we need to debit tax a/c in migo as well as it has to go to inventory which is not possible(double accounting enrty on debit side).
    I too tried to do the same by specifying 2 for posting indicator and selecting non deductible for the nonsetoff account key used in the taxing proceudre in OBCN but it is behaving like setoff tax.
    U can also try doing the same and then check.
    Reg
    Raja

  • No accounting document exist for this excise invoice

    DearAll,
    I have made configuration for the excise invoice in CIN
    I am getting the following error :Message no. 8I345
    No accounting document exist for this excise invoice .
    maintained all the relevant settings and configuration.
    I have checked the forum and i configurations made by me, seems to be correct.
    Please let me know your comments to rezsolve this issue.
    Also, please let me know, how to configure the document type EX to the excise invoice type/billing type.
    thanks
    Then

    Dear ,
    Pls go through following link,
    No accounting document exist for this excise invoice
    no accounting document for excise invoice(please help)
    EXCISE INVOICE ACCOUNTING DOCUMENT
    Rgds,
    AJIT K SINGH

  • Work around to force trigger Accounting documents for Billing documents

    Hi All,
    I have an issue very similar to:
    [Accounting Document not posted for Cancelled Invoice -error in FI interface|Accounting Document not posted for Cancelled Invoice -error in FI interface]
    The invoices number range were changed recently and few documents created during that time range did not create the accounting documents. Now, if I try VF02-> ReleasetoAccounting, it says:
    "Incorrect doc.no.: 98020923. Select document number between 3000000000 and 3999999999."
    Is there a workaround here to re-trigger the accounting documents for these Cancellation documents(Type S1)?
    I've also tried cancelling them, but I get the below error message:
    "For billing type S1, no cancellation billing type is maintained"
    I've found a few hits when i searched the forum but none talked about a workaround.
    Any help would be appreciated.
    Thanks,
    Tabraiz

    Hi,
    Thanks for the reply. I've checked the note, it states the below steps for the solution:
    1) Implement Notes 331771 and 363717 first if they are relevant for your release.
    2) Implement the attached program corrections
    3) Branch to Customizing of the billing document types and enter a cancellation billing document type for the affected billing document type of the cancellation document itself.
    I was wondering if only the step 3 will be enough to cancel the cancellation invoices. I am still not sure what is the significance of point (2) here.
    I haven't implemented a SAP note so far, have you encountered this problem, and have you implemented the whole three steps?
    Thanks,
    Tabraiz

  • Additional Items via Enhancement on MB1A / MB1B / MB1C - Update of Accounting Documents

    Hello all!
    Please, I'm in need of help from community.
    I am working on a Project For México. It's a doubt that has arisen from a functional request.
    They want that we create a development that might check the materials inserted on MB1A / MB1B and MB1C transaction.
    If these materials meet with the functional requirements, then new materials must be inserted at this same document, correcting it.
    We already have searched for User-Exits, BADIs and Enhancement-Points, and our position at the moment is that we already achieved to input the material into the material document, but those new lines aren't been recognized on subsequent Accounting Documents, that are created after the material document and that can be viewed on MB03 transaction, into the material document.
    Anyone has any clue if it's possible to modify Material Documents through Enhancements/BADIs/Exits, adding new lines of materials (XMSEG), and grant the subsequent creation of accounting documents?
    Thanks in advance!
    Some Points that we already tried, but without success:
    EXITs : MB_CF001,  MBCF0002 and  MBCF0005
    BADIS: MB_MIGO_ITEM_BADI, MB_MIGO_BADI, MB_CHECK_LINE_BADI, MB_DOCUMENT_BADI_SAP, MB_DOCUMENT_BADI
    Enhancements in following programs: MM07MFJ1 and MM07MFB9_BUCHEN_NUMMERNVERGABE

    Hello Srilakshmi,
    Thank you for the response, but unfortunately the BADIs you've mentioned don't allow me to modify Material Data tables, such as MSEG and VM07M.
    MB_DOC_BADI_INTERNAL is only for SAP use, and MB_DOCUMENT_UPDATE parameters are Importing only.
    Regards.
    Thiago

  • Badi / Exit / Enhancement for replacing INSMK during PO creation

    Hi Gurus,
    we want to default the INSMK field (stock type) during Purchase Order creation..
    Can someone help me findind the right BAdI / exit / enhancement for it?
    Thanks in advance,
    Regards,
    Alessio

    Hi Alessio,
    You may check these first:
    Re: Negative postings to MVER table
    Re: select stock type
    Thanks,
    Gordon

  • User exit for transaction MB1A

    Hi ....
    Can anybody help me out to find the User Exit For MB1A Transaction ...?

    Hi,
    Following BADI's are available in MB1A.
    ALV_SWITCH_GRID_LIST                            ALV: Customer Exit for Switch Grid to List
    FAGL_PERIOD_CHECK                            Posting Period Check
    MB_CHECK_LINE_BADI                            BAdI: Check Line Before Copying to the Blocking Tables
    MB_CIN_MM07MFB7                            BAdI for India Version exit in include MM07MFB7
    MB_CIN_MM07MFB7_QTY                           Proposal of quantity from Excise invoice in GR
    MB_DOCUMENT_BADI                           BAdIs During Creation of a Material Document
    MB_DOCUMENT_BADI_SAP      BADI for Creation and Changing of a Material Document
    MB_DOCUMENT_BADI_SAP      BADI for Creation and Changing of a Material Document
    MB_DOC_BADI_INTERNAL      BAdIs During Creation of a Material Document (SAP Internal)
    MB_ME_CSGMT_BADI_SAP      BAdI: Consignment Processing - Stock Transfer
    MB_QUAN_CHECK_BADI                           BAdI: Item Data at Time of Quantity Check
    MB_STOR_LOC_BADI_GTS     BADI to Check and Change Storage Location (GTS Fct. Only)
    ME_DP_CLEARING                          Clearing (Offsetting) of Down Payments and Payment Requests
    VB_SLED_MANAGEMENT                          Control of Shelf Life Expiration Date Processing
    W_RETAILSYSTEM_IDENT      Identification of the System Configuration 'SAP Retail'
    and below customer exit
    MBCF0005     Material document item for goods receipt/issue slip
    MBCF0007     Customer function exit: Updating a reservation
    MBCF0010     Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0011     Read from RESB and RKPF for print list in  MB26
    MB_CF001     Customer Function Exit in the Case of Updating a Mat. Doc.
    STATTEXT     Modification exit for formatting status text lines
    PPCO0009     Enhancement in goods movements for prod. process order
    IQSM0007     Serial numbers, user exit for goods movements
    MWMTR001     Exits at the end of transfer rqmnt creation (IM,PP interf.)
    MCB10001     BCO: Statistics update of material movements and inventory
    MGA00003     Material Master (Industry and Retail): Number Display
    MGA00003     Material Master (Industry and Retail): Number Display
    QAAT0001     Inspection type determination different from variant 01
    QAAT0002     Control of acceptance lots/goods receipt
    QPL10007     QM: Inspection lot creation - change QM order type
    SAPLMHD1     Shelf life expiration date
    WBWE0001     Function exits for valuation for structured materials
    MBCF0002     Customer function exit: Segment text in material doc. item
    MBCFC003     Maintenance of batch master data for goods movements
    MBCFC004     Maintenance of batch specifications for goods movements
    MBCF0006     Customer function for WBS element
    MBCF0009     Filling the storage location field
    MBCFC010     Propose batch number on Inventory Management item screen
    Check which one is suitable for you. If BADI then implement in se19 and for customerexit in CMOD.
    Thanks

Maybe you are looking for

  • Embedding an HTML page in a Flash Movie

    I am trying to embed an HTML page in the center of a Flash movie and I was wondering if this is possible, and if so, what is the code to do so. I want it as a small box in the middle of my SWF.

  • Error in POST method of "FIPP".

    Hello friends, Could you please help me to find out what could be wrong with following error. Whenever WF tries to post the FI  document in background through "POST" menthod, it gets following error message. "The transaction was terminated by the use

  • Maintainence view

    Hi, I have created a Ztable.I need to create a maintainance view.Please expain the steps, Is any need to go for table maintainance generator. Thanks, satish.

  • Tiny scratches on the shiny bevel around the screen!

    this one's bugging me: i got my iPhone 6/29 and with it, bought the incase rubber sleeve ( http://tinyurl.com/2cc5wr ). it wasn't until i took the sleeve off that i noticed a series of tiny little scratch-like nicks around the edge of the screen, on

  • How do i delete photo library from my imac

    How do i delete my photo library from my imac?