Report- material document for allocation- adding transfers

Hi!
Can anyone help me in cretainmg this small report to use for adding transfers to allocation table please?
Its a small report but somehow I am not reaching the target
--new block
Selection Screen:
Material Document of Original Transfer Posting (101/311): __________ (ZALLOC- ZMBLNR)
Receiving Plant/S.Loc. Item of Original Transfer Posting (101/311): ____ (ZALLOC- ZZEILE)
Material Document of Pro-rationed Transfer Posting (901/911): __________ (ZALLOC-ZMBLNR_PRO)
Receiving Plant/S.Loc. Item of Pro-rationed Transfer Posting (901/911): ____ (ZALLOC- ZZEILE_PRO)
--end block
--new block
Issuing Plant: ____ (ZALLOC-ZWERKS_ISS)
Issuing Storage Location: ____ (ZALLOC-ZLGORT_ISS)
Receiving Plant: ____ (ZALLOC-ZWERKS)
Receiving Storage Location: ____ (ZALLOC-ZLGORT)
Batch: TRANSFERS (ZALLOC-ZCHARG non-changeable default ‘TRANSFERS’)
--end block
Program Flow:-
- Find the material document lines of the pro-rationed transfer posting. 
- Check to see if the pro-rationed document is a 901 or a 911 material document.  Display hard error ‘Pro-rationed document item is not a 901 or 911 movement type’
- Check to make sure that the MSEG-WERKS and LGORT match the receiving plant and storage location ZWERKS and ZLGORT.  Display Hard Error – ‘Provided pro-rationed item plant and storage location does not match the provided receiving plant and storage location.’
- Check the material document ZMBLNR_PRO and ZZEILE_PRO for MSEG-SHKZG = ‘S’.  Display hard error ‘Item Line is not an Inbound Item into Receiving Facility. Check for correct item line in pro-rationed material document (901/911)’
- Check to see if this key has already been entered into the ZALLOC table.
- If it is grab the volume from the item line, populate all fields
- Use the Posting Date as the date.
- Insert it into the table.
- Provide success/error report to show the record entered.
Basically this updates the allocation table as the recoerds are entered i this report. Kindly help please.
Thanks
Aarav

>
suresh kumar wrote:
> Dear All
>
>
>  Thanks For All Replys
>
>
>  BKPF-AWKEY this field stored material document and year but this field is not a key field so we are facing performence issue what can i do?
>
>
>
> Thanks and Regards
> Suresh
Hello Suresh,
What are the input parameters to the report? May be you can add some fields to the selection-screen like Company Code, Fiscal Year etc.
Hope this helps.
BR,
Suhas

Similar Messages

  • Creation of material Documents for RMPM adjustments using BAPI

    Hi
    can any one help me Creation of material Documents for RMPM adjustments using BAPI...
    i should be grateful to you...
    advance thank you
    with regards
    venkat

    You can check MB_CREATE_GOODS_MOVEMENT which has mkpf as inporting parameter.

  • Material Document for Scrap consumption not Found

    Dear Friends
    During order confirmation, molten material / raw material is consumed by 261 MT and dross SH100002 is generated by MT 531 along with the finished product with MT 102. I reversed finished product through 102 MT and Raw material through MT 262. Thus do I need to reverse dross through MT 532, against order?
    When I went to MB51, I found the material document for finished Material production with MT 101 and raw material consumption with MT 261. But in MB51when I tried to find out dross generation with MT 531, I did not get any material document for that particular order no.
    In the production order though total quantity: 88000 and delivered quantity is only 26000. When user is trying to confirm the production order only for 200 units, system is giving the following error message:
    Overdelivery is not permitted (Check entry)
    Message no. RU139
    Diagnosis
    The total yield and scrap confirmed exceeds the overdelivery tolerance defined in the order header.
    Procedure
    You can either
    u2022 reduce the confirmed quantity
    u2022 deactivate the tolerance check during confirmations (customizing),
    u2022 increase the overdelivery tolerance in the order header and then enter the confirmation again
    Please tell me why Material movement of dross/ scrap is not visible and why production order is not getting confirmed
    Thanks
    Chandra

    Chandra,
    When you say te movement is with order confirmation then I assume that it is backflush of the components & byroduct.
    If you do not find the material document in MB51 then it is not posted yet.
    In that case excute T code COGI & process the same.
    Regarding the order confirmation error, kindly check the 'Goods receipt' tab page in the order header.
    The delivery completed indicator must be marked. Unmark the same & save.
    Now try to process the confirmation.
    Anyhthing else please let me know.
    Hope this helps you.
    SmanS

  • How to see the material document for Blocked stock

    Hello Experts
    I having some blocked stock in plant X , How to see the material document for this stock.
    Thanks in Advance
    Prashanth.v
    Edited by: prashanth.venkategowda on Aug 11, 2010 7:38 PM

    which material documents do you want to see?
    Material documents can be found and displayed in MB51 transaction.
    in MMBE you can put the cursor onto your stock line and then choose from menu Environment > material documents and SAP will list all relevant material documents.
    block stock status is not a selection criteria, material number, plant storage location, batch number are selection criterias.
    if you want only documents to block stock, then you need to select by movement type, e.g. 343 and 344 are movements that change status from unrestricted to blocked or vica versa.

  • Material Documents for Unplanned Services?

    Dear All
    I have created a service entry sheet for services against a PO. In the PO, provision was maintained for unplanned service (maintaining some amount in limits.)
    Now, while creating service entry sheet, it has been observed that material document created against planned service only. Although the cost of unplanned service is appearing in services entry sheet but no material document created against unplanned service. The payment section is therefore not allowing payment against unplanned services as no material document appearing in PO history against unplanned service.
    Can any one help me out what is the solution.
    Regards,
    Abdullah

    Hi all,
    For dispaly of Material Document we have Transaction Code : MB03,
    this with the Document No & Year,
    like wise for dispaly of Material Document for a date range i want to know the Tranasction Code.
    Thanks

  • MATERIAL DOCUMENTS FOR POSTING DATE TCODE ?

    HI ALL,
    CAN SOMEBODY GIVE ME THE MATERIAL
    DOCUMENTS FOR POSTING DATE TRANSACTION CODE.
    THANKS,
    KSR

    Hi all,
    For dispaly of Material Document we have Transaction Code : MB03,
    this with the Document No & Year,
    like wise for dispaly of Material Document for a date range i want to know the Tranasction Code.
    Thanks

  • 'BAPI_GOODSMVT_CREATE' takes more time for creating material document for the 1st time

    Hi Experts,
    I am doing goods movement using BAPI_GOODSMVT_CREATE in my custom code.
    Then there is some functional configuration such that, material documents and TR and TO are getting created.
    Now I need to get TO and TR numbers from LTAK table passing material documnt number and year, which I got from above used BAPI.
    The problem I am facing is very strange.
    Only for the 1st time, I am not finding TR and TO values in LTAK table. And subsequent runs I get entries in LTAK in there is a wait time of 5 seconds after bapi call.
    I have found 'BAPI_GOODSMVT_CREATE' takes more time for creating material document with similar issue, but no solution or explanation.
    Note 838036 says something similar, but it seems obsolete.
    Kindly share your expertise and opinions.
    Thanks,
    Anil

    Hi,
    please check if some of following OSS notes are not valid for your problem:
    [Note 838036 - AFS: Performance issues during GR with ref. to PO|https://service.sap.com/sap/support/notes/838036]
    [Note 391142 - Performance: Goods receipt for inbound delivery|https://service.sap.com/sap/support/notes/391142]
    [Note 1414418 - Goods receipt for customer returns: Various corrections|https://service.sap.com/sap/support/notes/1414418]
    The other idea is not to commit each call, but executing commit of packages e.g. after 1000 BAPI calls.
    But otherwise, I am afraid you can not do a lot about performance of standard BAPI. Maybe there is some customer enhancement which is taking too long inside the BAPI, but this has to be analysed by you. To analyse performance, just execute your program via tr. SE30.
    Regards
    Adrian

  • BAPI_GOODSMVT_CREATE to create a material document for consumable goods

    Hi All,
    I am using a BAPi  (BAPI_GOODSMVT_CREATE) to create a material document using a PO. Please note that the PO contain no material number. It contains short text. The account assignment is being copied in to the MIGO from PO (when i am doing the process manually without BAPI). But when i am using the BAPI at that time i am getting an error as:
    E M7                   036 No goods receipt possible for purchase order 45XXXXXXXXXX 00010 .
    Logically this should not happen as  when i do it manually i am able to post MIGO.
    Under goods movement header i am giving :
    posting date
    doc date
    text
    goods movement code :
    01
    GOODSMVT_ITEM
    plant
    mov type
    po number
    vendor
    line item
    short text
    cost cenrtre
    order no(int ord no)
    mov indicator: B
    GL account
    base unit of measure
    Where i am going wrong?

    Hi Jurgen
    In response to my post where i wrote my observations :
    As you have suggested i have removed the account assignment objects and now i am not getting the error as mentioned in my post but at the same time i notice in export parameters  in the bapi the following things which was not present earlier.
    GOODSMVT_HEADRET                   50000xxxxx2014
    MATERIALDOCUMENT                    50000xxxxx
    MATDOCUMENTYEAR                     2014
    Now another thing is i am not getting any entry in return table.... which i should get. Please note that my test run contains no values(X).
    i think i am near to the solution. Could you suggest any more crucial points i might be missing?"
    for this i found out that there is a way to solve this issue. My concern was why the material document was not updating .  Well this is how SAP behaves.
    To update it we have to run simultaneously another fm " BAPI_TRANSACTION_COMMIT".  This will update it in the mseg table which in turn will reflect it PO history. So my requirement is answered and fulfilled.
    Thank you so much for the replies and cooperation.
    Thank you all.

  • User exit for different Material Document for different company code

    Hi,
    We want to have different no. range for Material document (GR) for different compnay code. Presently we have no. range at client level. Can we do with any userexit. If so pls. give the details.
    Regards
    Sai Krishna

    [user exit for generating external serial;
    [BADI MB_DOCUMENT_BADI;
    [user exit or any other enhancements during good receipt;

  • Exact Material document for particular material with serial number

    Hi,
    One serial number is assigned to material
    and this matreial is having more than one material document numbers. How do i know exact material document assigned for material and serial number combination.

    Try MASE. it hold the last serial number.

  • Fixing automatic printing of material document for goods movement type 101

    Hi experts,
    I have a situation, where I want to fix automatically printing of material documents good receipt and transfer posting related to movement type :
    101- GR for plant XYZW to the printer AB12 with output type WE03 " GR note version 3" Language EN.
    311 - transfer posting plant XYZW to the printer AB12 with output type ZUGT language EN.
    Please provide pointers!!

    Hi Biju,
    Thanks a lot for the information. But I a facing a problem, I have maintained the Plant/Storage/Condition type in OMJ3 with printer also maintained in it.
    But, I am not able to generate output when I am doing MIGO for the Purchase order.
    I have to go MB02, maintain output type 'WE03' and printer-PL56 in the message tab of material document and then only i can see the spool is generated in SP01.
    My output condition type is maintained in MN21, with following parameters; Trans/Event type: WE,  Print Version: 3, Print Item: 6 for output type WE03.
    Moreover, Do I need to maintain the new printer in the printer settings.
    Please help me in getting the material document print output at MIGO only.

  • How to cancel Material document for a Return PO

    Hi,
    I need to cancel a material documet for a retun PO. Can you please tell me how to do it?
    Regards,
    Prasanna.

    Hi,
    If the material document has been created through SD documents.
    For Ex: For an stock transfer between 2 plants using 2 step procedure, Goods Issue document is posted when you complete the shipment in VT02N. This material document can only be reversed using T-code VL09.
    Thanks and Regards,
    Maheshwari

  • COPA document is not visible for a material document ?? Why

    Hi Experts,
    We have a material document, for which we have accounting doc and CO document respectively. But we don't have a PA document(not Visible). Any Idea why it is not visible.
    Moderator: Please do not ask basic questions

    Hi ,
    I am really very much appreciate your cooperation for the issue.
    When i try the same through KE4S in test run system is showing the below lines.....
    Number of billing documents read:                        1
    Number of line items to be transferred:                  0
    No. of billing doc. items already transferred:           0
    Number of billing docs with errors:                      0
    Note:- Number of line items to be transfered  0  then there is nothing to transfer to COPA.
    Please suggest.

  • Excise duty for some line item of material document is not posted

    Dear CIN Exerts,
    In my Scenario user is Posting Excise invoice for every GR (105) by J1IEX to generate Excise invoice.
    In some Past cases, if there are more then one line item in a GR then Excise value for some material is not showing (May be that time user not Did J1ID (Excise rate maintenance ).
    Now the problem is that we wants to post excise Duty for those material WRT  material document for whom it was not posted.
    Please let me know that how can we do so (excise posting against Material document) so that it get reflected (for those line items for which Excise deuty is not posted)   in MIGO > Document Display> Excise items tab .
    Regards,
    Ashutosh

    Excise posting is not recommended by sap for movements 103 or 105.
    Refer or search for SAP notes with subject CIN Limited functionalities.

  • Search for a reversed material document

    Hi all,
              how can I find if a material document is reversed?
    thank you
                        Gino Bonfiglioli

    Through movement type you can find a material document is reversed.
    For example :
    102 GR with reference to p.o reversal for movement type 101,
    562 intial stock reversal for movement type 561.
    202 Good issue against cost centre reversal for movment type 201
    In purchase order history,you can find reversed material document.
    Using MBSM,You can find canceled material document for orginal material document.
    From table MKPF for material doc. cancelled through t.code MBST.

Maybe you are looking for

  • How to export iPad photo album into iPhoto.

    I had my Windows laptop and iPad 2 stolen in a house break-in .  The laptop had my iTunes library and photos. I have an 1st gen iPad with several albums on it that are not part of the camera roll or photo stream.  I want to export these to my beautif

  • Recent update has affected second display - help

    MacBook Pro, Dell E207WFP, in my case, after last update of 10.6.8, the macbook ONLY work with external monitor connected with mini-DVI to VGA adapter. If I remove the external monitor the MAC doesn't start. I want to go back to 10.6.7 or remove the

  • MSS iview modification

    Hello, I have downloaded a par file related to Personal Data(com.sap.pct.hcm.eeprofilepersonaldata.par) and chnaged the name to com.mycompany.pct.hcm.eeprofilepersonaldata.par imported to Developer Studio and commented some code. I created a par file

  • PHP/Spry Tabs/Pagination

    Hello all, I have a results page which contains tabs for separate query results from multiple DBs on one page.  I would like to include record set paging for each record set under each tab.  When I select a different tab, click on "Next" in the pagin

  • Asking about read voltage.vi

    i'am pretty confused about reading voltage.vi where i dont know where all numbers come. Can i use it directly for reading stauff or tachometer ? anw, what is board ID and channels ? is there any pictures for both ? sorry for silly questions noobs her