BADI/EXIT for MIGO for accounting  document posting

Hi
I am using MIGO where SAP post Mat Document and Accountying document.
This Uses FM  'MB_POST_GOODS_MOVEMENT  < Include LMIGOKG1>, once this FM executed both MKPF and BKPF data gets filled . I can see tha data for MKPF in debug but I am not able to see data for Accounting Document.Even I cant see the Acc. document no assigned by SAP
I need to change some fieds for Acc. Document <BSEG-VBUND>
Can any one help me to find in which structure or table I can get data for Accounting document

am using the method POST_DOCUMENT,
am writing the code like..
sample code..
DATA: wa_mseg type mseg,
wa_mch1 type mch1,
wa_ausp type ausp.
loop at it_mseg into wa_mseg.
*select single * from mch1 into wa_mch1 where matnr = wa_mseg-matnr*
                                                           and charg = wa_mseg-charg.
if sy-subrc is initial.
*select * from ausp into wa_ausp where objek = wa_mch1-cuonj_bm*
                                               and klart = '023'.
if sy-subrc is initial.
if wa_ausp-atwrt EQ 'ACCEPTED'.
continue.
else.
if wa_ausp-atwrt EQ 'REJECTED'.
call function 'popup_to_display_text'.
endif.
endif.
endif.
endif.
endloop.
when i debug ,i find no data in the mch1 table ..
any help..
thanx

Similar Messages

  • How to use Bapi BAPI_ACC_DOCUMENT_POST for g/l account document posting

    Hi all,
    I am using BAPI_ACC_DOCUMENT_POST bapi for g/l account documents posting.as I am first time using BAPI in my program.can anyone give details about how to use this BAPI for document postings.what importing parameters need to be passed , which exporting parameters need to be passed and which tables need to be used.  
    Thanks in advance.
    Regards,
    Harshada

    Moderator message - Please search before asking - post locked
    Rob

  • BAPI for Accounting Document Posting

    What is the name of BAPI for Accounting Document Posting and how can I run it?

    Hi ,
    Can you send me the code how to use the BAPI_ACC_DOCUMENT_POST.
    Regards,
    L Srikanthan.

  • BADI for MIGO for restricting User to entered other MVT types?

    Hi All,
    BADI for MIGO for restricting User to entered other MVT types?
    I want to restrict some of user not to use 501 Movement type ..I already created a Ztable for checking User for 501 type.
    Please let me know any Enhancement to be used to restrict user ?
    Thanks and Regards
    Steve

    Hi Steave,
    You can use this enhancement exit MB_CF001, this exit will be called every time before posting, you can use your logic in this exit. see its documentation first before implementing.
    Regards
    Ahsan

  • Error occurs, BAPI_ACC_DOCUMENT_CHECK for creation of accounting document

    Hi Experts,
    I am creating accounting document using BAPI_ACC_DOCUMENT_CHECK  Bapi F.M.  Profit segment number  is mandatory ( T.code KEDR)  for G/L account 411103 .when i am using this G/L account for creation of accounting document, occurs below error message.
    1.Field  Prof. Segmt  is required field  for G/L account 0495 411103
    2. Account 411103 requires an  assignment  to a CO Object.
    Please let me know how i can resolve this problem using with BAPI.
    Thanks
    Jaya Reddy

    The BAPI you have mentioned is used to check whether a posting to accounting is possible.  You can use the Bapi "BAPI_ACC_DOCUMENT_POST" for posting accounting documents.  Depending on the GL account configuration you have to pass PROFIT CENTER / COST CENTER to the BAPI.
    Regards
    vinod

  • Table for link between Accounting document and Billing document

    Which is the table for link between Accounting document and Billing document ?
    Thanks & Regards

    Ø Go to SE16N, enter table BSAD
    Ø In the Reference Field (VBELN) enter the Billing Document no. 
    Tips:
    Ø Make sure that only those billing documents will be considered whose accounting documents actually exists
    Ø No Accounting documents will be displayed for Credits, Free of charge orders and those acc. Documents which have been cancelled.

  • Text in accounting document posted against Excise invoice

    Hi,
       We have a requirement that the accounting document posted against excise invoice ( J1IEX) should display a text ( Vendor name and PO No.).
      We have tried entering the text at the time of capture and posting the excise invoice.But this does not reflect in the accounting document text field.
    However we can maintain the same afterwards from transaction FAGLL03.
    Is there any option that we can maintain the same at the time of capturing and posting the excise invoice.
    Also,if I think of defaulting the same ( Vendor name and Po no) is ther any user exit OR BAPI.
    Rajesh

    hi
    yes is their in this go to spro->img->Logistics - General->Tax on Goods Movements->India->Basic Settings->Maintain Excise Groups
    in this for your excise group in *migo settings please put the tick mark in post ei in migo the at the time of migo only the excise invoice will be posted. no need of doing the ji1ex here.
    Thanking you

  • Accounting Document Post with Ledger Group

    Hi,
    I am trying you post accounting document using 'BAPI_ACC_DOCUMENT_POST', But my requirement is to post the acc documents with 'Ledger Group', I couldn't find any parameter in the  above mentioned BAPI. If anyone come accross same requirement please share your knowledge and suggest me how to proceed with this.
    Before posting this thread I searched for the threads with same category, but i couldn't find sufficient information.
    Regards,
    Narayan

    Hi Navitha,
    I am doing migration as It's a one time activity, If I implement BADI  it will be triggered whenever accounting document posting happens, Is there any other way to pass Ledger group like other BAPI / FM etc ?
    Regards,
    Narayan
    Edited by: narayanasamy rajagopal on Sep 30, 2009 11:08 AM

  • 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 posted in FI for ML81N

    Dear All Experts,
    I am having scenario for Services in MM. We create the Service PO --> then ML81N service entry sheet. Here the document is getting posted in MM but not getting posted in FI.
    I have maintained the GL accounts in BSX & WRX for service & SR/IR account. (Is this the correct account determination configuration ? ) If not please correct me.
    What else can be the possible causes for not generating FI document ?
    Experts help & guidance will appreciable on this. If anybody has gone through the same issue earlier please comment.
    Thank you all.
    Regards,
    Sharvari Joshi.

    Hi Vishnu,
    Good Morning ! And thank you for such helpful answer !
    1 ) If we keep the Valuation Class BLANK how system will determine the accounts ?
    2 ) Here we are talking about only SR/IR ( Service ) Clearing account what about the service received a/c ? same as Stock A/c in BSX ? ( Please clear the concpet if I am wrong ! )
    3 ) As you said in Second thing BSX is not required ! Then what would be the accounting entry for Services Receipt from ML81N ?
    4 ) How the different services receipt will  be determine if valuation class is keeping BLANK ? E.g : cleaning, plumning, Electrification etc.
    Expert guidance will be appreciable !
    Thanks alot for your time and valuable replies.
    Regards,
    Sharvari Joshi.

  • No accounting documents posted for Make to Order Scenario

    Hi!
    We are following the make to order scenario, but for product costing following product cost by order.
    When goods receipts/goods issue are posting ( movement types: 101E & 601E), there are no accounting documents got generated.
    can you suggest any one what I have to do?
    I am OBYC settings are ok.
    regs,
    ramesh

    Hi
    Check the account assignment category in the PO and check for the relevant GL account assignment.
    It is purely the assignment.
    Also check the field status settings for the movement types.
    Reg
    Suresh

  • Report for Material and accounting document

    Hi all,
        Is there any report to show the fields as listed below:
    Mvt type         Material Doc        Accounting doc   Posting date   Quantity         Ammount 
    thanks & regards
    Chaitanya

    hi,
    You can check with the many reports like MB5B, MB51 etc...as suggested above...
    But along with this you can check the table also like MSEG for your requirement... and MKPF for the material document...
    Pls check ...
    Hope it helps...
    Regards
    Priyanka.P

  • MM automatic account assignment for MIGO (additional accounting lines)

    Hi MM Experts!
    I created a PO (only 1 material in it), and after that I did a GR goods receipt in MIGO for this.
    Movement type: 101
    When I did this the accounting lines looks like that:
    Itm PK Account    Account short text   Assignment...........................Amount
                                                                                    1 89 21411000   Vás. villamosenergia      XXXX...........................................3.000.000
      2 96 29700000   Tech.acct.purch.stoc 450000012800010...................3.000.000-
    I run the transaction OMWB, and did a simulation, and it ok:
    Inventory posting                   0002  -e-       SEVV  89 21411000    99 21411000 
    GR/IR clearing account          0002            SEVV  86 29700000    96 29700000 
    So the MIGO 101 movement type for GR goods receipt did a BSX (Stock posting) and a WRX (GR/IR clearing) accounting.
    I need the following:
    If I do a MIGO with 101 movement (GR goods receipt), not just this 2 accounting line created, but I need +4 additional line (these lines are special taxes).
    So if I do a MIGO I have to see:
    1 89 21411000   Vás. villamosenergia      XXXX...........................3.000.000
    2 96 29700000   Tech.acct.purch.stoc  450000012800010 ..3.000.000-
    3 89 53471000   T.........................................................................1.500.000
    4 96 46382100   K1......................................................................1.500.000-
    5 89 51420000   T2.........................................................................750.000
    6 96 47999421   K2.........................................................................750.000-
    Is it possible? How can I do it?
    I search in OBYC, but I canu2019t find appropriate solution.
    Thanks for the answers.
    Peter

    Hi,
    In 1st case, you have entry in Goods Receipt of inventory value debited(3.000.000 +) and GR/IR clearing(3.000.000 -). As all value flow from purchase order which with NET VALUE with pricing elements( condition type/types).
    As in 2nd case you wanted.....with addition of above accounting entries, extra 4 lines needed but what are the two amounts represents ( 1.500.000 &   750.000)?
    If so needed you should have two extra condition types in PO for amount representing 1.500.000 &   750.000.The condition types must be there in MM pricing procedure in M/08, maintain the  account keys  with a accrual key for each condition type. For condition types for both in M/06 , maintain condition category is must( do not keep blank, keep as B)& also select accrual check box in control data.In OBYC, maintain the  two different G/L accounts for two  accrual keys.
    Also activate the Purchase account management in the Company code in following path:
    SPRO> Materials Management> Valuation and Account Assignment> Account Determination> Account Determination Without Wizard> Purchase Account Management> Activate Purchase Account in Company Code
    After above setting, Create a PO and do goods receipt and check accounting entries.
    Regards,
    Biju K

  • User Exit for MIGO for  batch

    Hi expert
    I am looking for user exits .at the time of migo when batch is generated into want the batch field to get grey, so the end user wont able to change the Batch no. and i want the grey field to be done for certain material. like ROH
    Can anyone of you suggest me a more appropriate User exit to work on. Please dont give me a list of user exits out there for migo as I have seen all those in Different threads.
    Thank You.
    Nabil

    Check with your ABAP person for BAdI MB_DOCUMENT_BADI ...here use the logic that system will check the MATNR...then for those MATNR their individual MTAT & if found MTAT = ROH then the CHARG field will be disabled.
    Also through the same logic check whether exit MBCFC003 can be used.
    Regards,
    Indranil
    Edited by: INDRANIL BHATTACHARYYA on Oct 1, 2010 9:49 AM

  • Filling alloction field for a subledger account by posting invoice by MIRO

    Hi, at this moment I am struggling with a problem concerning filling the field Allocation at line item of an GL account. When I am posting invoice by MIRO, I want to see certain information on line item of an GL Account. When I am posting an invoice by MIRO, this field is for P&L accounts and balancesheet accounts filled with the value such a determined in FS00, tab Control data, field Sort Key. So therefore all my accounts has the sort key Purchase order. When posting invoices by MIRO, the posting in FI, is showing me on line item level the PO-number in the field Allocation.
    However, when I am posting an invoce by MIRO on an reconcilliation account for asset, the allocation field is empty, MIRO is not filling this field automatically. Although the settings of the sort key is the same as for other balance or P&L accounts.
    Has anybody an idea how the allocation field can be filled automatically for an reconcilliation account for assets

    Hi
    Run the program RM07CUFA
    in SE38 Tcode and check the inconsistencies.
    Also in FS00 go to details of the GL account and double click on field status group under create bank interest tab and then double click material management/additional assignments.
    You can see the required or suppressed fields

Maybe you are looking for

  • How do I access Camera Raw editing program

    The Photoshop and Bridge tutorials show Camera Raw editing program...how do I access this program...Thanks.

  • Error in Report Execution

    Hi I am getting an Error as '"ALPHA" and "IT-F2" are type-incompatible.' Can anyone solve it. Report abc. data: begin of it occurs 5,          f1 like sy-index,          f2,       end of it,       alpha(5) value 'ABCDE'.       do 5 times varying it-f

  • Error when building gyachi [finally SOLVED]

    now when i go to issue the command makepkg -s i get the following error configure: error: cannot find include files for libpulse-simple.  Perhaps you need to install the libpulse or libpulse-simple development package? make: *** No targets specified

  • HP Pavilion g6-2239dx: Looking for USB Drivers 3.0

    Hi, I changed my operating system from windows 7 to windows 8 a while back, and I had to reinstall most of my drivers. I have been able to get everything except for: 1) SM Bus Controller PCI\VEN_1022&DEV_780B&SUBSYS_1849103C&REV_14 PCI\VEN_1022&DEV_7

  • Sales Order Blocked Release History Report

    Dear Guru, I want a Sales order block release history report as in who released order. Regards, shahzad