MIGO BADI - Check line item after clicking on  ITEM_OK Field in MIGO

Hi,
            I am looking for Enhanacement option for MIGO Transaction . What i found it, there is one Badi MB_MIGO_BADI at the creation of material document. When i click on ITEM_OK Field at material line item level. and click on CHECK Button, i want to check material master if that material is having QM View or not . That i can write in one of the method in badi which i found is CHECK_ITEM bt that method is having parameter called I_LINE_ID which have line item no. bt how should i get material doc. no and material no. at that line item?
Plz try to give me solution.
Thanks & Regards,
Saurin Shah

Hi,
When you are posting a GR against PO when you check the document
Method Line_modify of the badi MB_MIGO_BADI is gettin triggered and if you check the importing parameter cs_goitem
it is getting populated wit the values of the lime item
Like you said material no, po number, batch no, item no etc.
Since you can get this details as you said you can check for the view maintained.
Hope this help you.
Regards,
Ranjith N

Similar Messages

  • System should not allow to delete PO line Item after GR/IR

    Hi,
    I am working on a SAP Retail Implementation project.
    Currently the system is allowing us to delete the PO line items after doing GR or IR against that PO line item. But the clients requirement is that the system should not allow to delete PO line item after doing GR/IR.
    We are using Account Assignment Category-N, Item Category-S.
    Please let me know if you have the solution for this requirement.
    Thanks in advance
    Thanks & Regards,
    Suresh

    Hi,
    Standard SAP will not allowed the PO to be deleted once it was GR done. The controlled is on the attributes of message to set as "E"
    Message no. 06115
    But if invoiced takes place, the is the point that PO can be deleted.
    You have to do have a Enhancement using MM06E005, insert you logic here to check PO history tables like EKBE, then check if invoice " Q" (BEWTP) exist, the PO cannot be deleted once the user delete the PO line and SAVE it. Ask you developer to help you on the following coding.
    Use MM06E005 and EXIT_SAPMM06E_012
    IF SY-TCODE = 'ME22N'.
    IF sy-ucomm = 'MESAVE' OR SY-UCOMM = 'YES'..
    LOOP AT TEKPO.
    IF TEKPO-LOEKZ = 'L'.
    SELECT SINGLE BELNR FROM EKBE INTO BELNR1 WHERE EBELN = TEKPO-EBELN AND EBELP = TEKPO-EBELP AND BEWTP = 'E'.
    IF SY-SUBRC = 0.
    SELECT SINGLE BELNR FROM EKBE INTO BELNR2 WHERE EBELN = TEKPO-EBELN AND EBELP = TEKPO-EBELP AND BEWTP = 'Q'.
    IF SY-SUBRC = 0.
    Regards,

  • What is line item datas,how can u check line item in Infocube?

    Hi friends,
    what is line item datas,how can u check line item in Infocube?

    hi konda,
    line item data
    i shall give u an example .
    consider a super market bill,
    the bill has 1.customer name        2. bill number   3. date of purchase
    the above line will be header.
    line item data are the items which u purchase.
    item 1 pencil  2 rubber  3. sharpner  4. cryon  5. sketch pens
    above are line item datas.  for a particular set of header data u may have many line item datas.
    reward points if helpful.
    bye.

  • BADI: PO creation : ME_PROCESS_PO_CUST : check line item matnr

    Hi all,
    I am using a BADI for PO creation definition is ME_PROCESS_PO_CUST and method PROCESS_ITEM
    if material number in the Line item is blank, create a material number(BDC or BAPI) and fill it in the line item.
    I am not very conversant in Objects...
    i seek help on the correctness of the method iam referring to for this purpose and also how to pass values to field matnr in the line item of the PO.
    i have used Get_Data for getting all the values and am using set_Data for changing the value of matnr if it is blank. but if i set the value of matnr it doesnt seem to change and am not able to figure out where i am wrong.
    Thanks in advance,
    Harish Ramakrishnan.

    Hi Harish!
    Then you are aware of the comment of SAP to process_item:
    "Under no circumstances make any changes to the database within this method. On no account use Commits."
    But also method post is commented like this: "On no account use Commits in this method."
    And you need a commit before you can use any created data in your PO.
    Nevertheless, you tried to change a value in process_item. I guess, you use method set_data of the interface, which is import parameter of this method. I had a look into the method set_item: there is just a update to an internal (hashed) table. So technically it should be changed. But if further checks will prohibit changes of special fields - who knows.
    I'm not surprised, that line checks can't change the matnr any longer, but at least online it's possible to change the material.
    Maybe you can debug, what happens when doing you changes. It might be already after a view steps, where the changes get lost.
    Regards,
    Christian
    P.S.: Do you also use method set_datax - or I'm in a totally wrong area?
    Message was edited by: Christian Wohlfahrt

  • Miro line item after posted

    Dear Forum,
    After MIRO posted which with reference to PO, I create another new invoice with reference to the same PO again.
    1 When PO number is entered, both quantity and amount fields empty and the item lines are still enabled despite invoice already posted. Why?
    2 What would be the impact if I enter quantity and amount again?
    Thanks

    Dear Srina,
    1. As per SAP standard, amount & qty field is not view mode. Reason is we are allowed to make any changes if there is any partial postings. System will show the line item without any value or qty in that particular line item if it has been already posted because originally both field is enable mode. If you want you can make this field grayed out with abapers help BUT you can't do any partial postings.
    2. You can enter value & qty is empty field and click post but system will give you warning message saying that plz check is there invoice posted. You can post again by ignoring this warning message. Means you will have double invoice for said line item. Probably you may make warning message to error message so that system might disallow you to do so. Believe this help your queries. TQ
    rgds,
    nanthakumar

  • 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

  • MIGO-sales order number and line item not validated for 501E mvt in MIGO.

    Hi All,
    In MIGO i am trying to post for 501E(specisl stock=order on hand) movement type, here i am entering the material and in the where TAb even if I enter wrong sales order number or wrong sales order line item number. the system allows to post .
    its not validating the material against the sales order number and line item number that is entered to check whether that material really exists in that particular sales order or not.
    is there a way to fix this?
    Thanks
    Mahendra

    hi
    i dont think vvalidation is possibel
    as the system dont know whaich material is assigned to which SO
    as we r takeing the stock without PO
    if u want to validate then system can validate the quantity that is also with use of some user exit
    correct me if i am wrong

  • Accounting entry line item after 561 movement type

    Hi,
         I have create initial stock uplaod with MB1C with movement type 561, for 4 materials after post of document it is posted properly with proper amount but when I check the accounting entry  it shows me in the amount in two diffrent  debit and credits even the valuation class of all the 4 material is same.
    Debit material account, addition of amount of three materials
    credit initial stock account, addition of amount of three materials
    debit material account of 4th item
    credit initial stock uplaod as per amount of 4th item,
    I want to know why in first entry systen added 3 material amount in one and in second entry amount of only 4th item, when I check the entry in table  BSEG ,the second entry is posted along with business area 0001 where as for the first entry the business are field in the table is blank  even the business area is set the company code and plant level, and only single business area we are using in the system.
    regards,
    zafar

    As you mentioned you have a separate business area this is the reason for posting the entries separately. This is the same case with profit center also (if different PC's are maintained for different material). Also system will proportionately calculate the other expenses (if any) and post in a separate line items in accounting document.
    Regards
    Ayyallas

  • Workflow not triggering after undletion of expense line item after release

    Hi Experts.
    There is one issue in which a PO contains inventory line item (an item without account assignment category) and expense line item (an item with account assifnment category).The user releases the PO through workflow.The user then deletes expense line item and after a span of time he undeletes the same line item.Now the business requirement is after undeletion of expense line item the workflow should trigger again.I have consulted with technical team they say that it is not possible by coding and is possible trough customization.

    Hi,
    Please check that Change Version for PO is active.
    IMG: SRM -> SRM Server -> Cross-Application Basic Settings -> Switch On Version Control for Purchasing Documents
    Regards,
    Masa

  • Sorting Invoice line items after they've been summed

    Hi,
    I'm working on a template for the out-of-box invoice using the XML it generates. The body of the document contains the line items, and I've successfully been able to print and sum (net amount and tax) these line items by Item Description and Unit Price using the following code:
    <?for-each@section:G_INVOICE?>
    <?for-each-group:G_LINE_TOTAL;./LIST_G_LINES/G_LINES/LINE_ITEM_DESCRIPTION[../LINE_TYPE='LINE']?>
    <?for-each-group:current-group();./LIST_G_LINES/G_LINES/LINE_UNIT_SELLING_PRICE[../LINE_TYPE='LINE']?>
    <?./LIST_G_LINES/G_LINES/LINE_ITEM_DESCRIPTION[../LINE_TYPE='LINE']?>
    <?sum(current-group()/./LIST_G_LINES/G_LINES/LINE_QTY_INVOICED[../LINE_TYPE='LINE'])?>
    <?./LIST_G_LINES/G_LINES/LINE_UNIT_SELLING_PRICE[../LINE_TYPE='LINE']?>
    <?sum(current-group()/./LIST_G_LINES/G_LINES/LINE_ITEM_AMOUNT[../LINE_TYPE='LINE'])?>
    <?sum(current-group()/./LIST_G_LINES/G_LINES/LINE_EXTENDED_AMOUNT[../LINE_TYPE='TAX'])?>
    What I need to do now is also SORT the summed line items by Item Description and Unit Price, but everything I've tried is giving me errors.
    One thing I've tried is adding the SORT command to the element that is printing the Item Description as in the following:
    <?sort:./LIST_G_LINES/G_LINES/LINE_ITEM_DESCRIPTION[../LINE_TYPE='LINE'];'ascending';data-type='text'?>
    I've also tried adding a separate field to do the sorting, but I'm getting different errors then.
    Thanks in advance for any suggestions.

    Thanks! This helped to some extent.
    Adding the sort for the LINE_ITEM_DESCRIPTION after the for-each-group for it worked to sort the lines by item description, but when I added the sort command for the LINE_UNIT_SELLING_PRICE within its for-each-group, I get the following error:
    FOProcessor setLocale: en-us
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:593)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:390)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:208)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:161)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1019)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:972)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:211)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1577)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:952)
         at RTF2PDF.runRTFto(RTF2PDF.java:626)
         at RTF2PDF.runXDO(RTF2PDF.java:460)
         at RTF2PDF.main(RTF2PDF.java:251)
    Caused by: java.util.EmptyStackException
         at java.util.Stack.peek(Unknown Source)
         at java.util.Stack.pop(Unknown Source)
         at oracle.xdo.parser.v2.XSLTContext.popCurrentGroupingKey(XSLTContext.java:905)
         at oracle.xdo.parser.v2.XSLForEachGroup.processGroups(XSLForEachGroup.java:468)
         at oracle.xdo.parser.v2.XSLForEachGroup.process01(XSLForEachGroup.java:282)
         at oracle.xdo.parser.v2.XSLForEachGroup.process(XSLForEachGroup.java:210)
         at oracle.xdo.parser.v2.XSLForEachGroup.processAction(XSLForEachGroup.java:94)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLForEachGroup.processGroups(XSLForEachGroup.java:465)
         at oracle.xdo.parser.v2.XSLForEachGroup.process01(XSLForEachGroup.java:282)
         at oracle.xdo.parser.v2.XSLForEachGroup.process(XSLForEachGroup.java:210)
         at oracle.xdo.parser.v2.XSLForEachGroup.processAction(XSLForEachGroup.java:94)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLForEach.processAction(XSLForEach.java:142)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:508)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
         ... 16 more
    I would appreciate to know what is wrong with this and, also, how to interpret these errors.....is there any sort of error code manual?

  • Line Item: After reading all your links and discussions

    From the links and the discussions I was referred to in a previous post, please correct me if I am wrong. I understood that with if a characteristic is going to have several values (defined in that case as "has cardinality"), then it is better to make that characteristic a line item.
    It has some advantages as a result of the fact that the line item dimension has no dimension table but only SID table.
    1--Does this make loading data faster Or, running queries faster?
    2--I also read that "line dimension on means that this dimension becomes part of fact table", can you explain this?
    3--Some of the experts said you create line item when the characteristics in the dimension is 20 or 30 % that of the fact table. Is this 20 or 30? And, are we comparing all the characteristics in all the dimensions in the Cube or just the one dimension which we want to make the line item?
    4--Also, I get the 20 or 30% of the Dimension but what it being compared to in the Fact Table?
    5--I didn't get the cardinality stuff well so any hints other than links will help.
    6--Finally, won't this easily make the designer run out of the 13 (16-3 reserved) available dimensions?
    7--If the Rule of thumb is dimension table size should be smaller than fact table, and line item dimensions makes this possible, isn't it in the same token killing the ratio of 16 dimension to 1 Fact table in a cube?
    8--Is this a consideration after data has been loaded into Cubes or during the design phase of the Cube?
    9--If this consideration is applicable only when there is data then how can you factor this into your design? How to wait until you are in trouble to fix the problem?
    Thanks

    HI Caud,
    1] Query reading performance will be improved. As it can access only Master data table and Fact table.
    Setting it as a Line Item dim also causes a b-tree index to be built instead of a bitmap index, but also embeds SID directly in the fact table, eliminating the dimension table.
    2] Line item Diemsion- when ever ur Dimension table contains a single Char then it is better to join ur master data table with the Fact table. So there will be connection with SID.
    3]U chooses the line item when ever there is a high cardinality. i.e if ur DIM table is 10%of Fact table then u will go with the Line item Dim.
    the percentage is w.r.t the number of records.
    4] its total number of records.
    5]Cardinality creates indexes on the Dimension table entries and there by you would see an improvement in performance.
    With Cardinality, you can assign a Dimension containing Multiple Characteristics
    6] It depends based ur business requirement and the type of data that u use.
    8] It is before loading into the cube.
    9]it is better to design at the initial stage it self.
    Refer this link..
    http://help.sap.com/saphelp_nw04/helpdata/en/a7/d50f395fc8cb7fe10000000a11402f/frameset.htm
    Regards-
    MM
    Assign points if it helps.
    It is better to assign points to all who ever replies to u. As they spent lot of time on these Threads.
    Message was edited by: vishnuC

  • Purchase Orders - Updating Line Items After a Portion Has Been Received

    Is there any way to make a line item editable on a purchase order if only a portion of it has been received?
    Basically, our company will create a Purchase Order in SAP, which goes to our office in Hong Kong to arrange shipment. These Purchase orders will, many times, have multiple items listed at, let's say, 10,000 pieces each. Each of the items may ship on different dates due to our request for different dates or due to limited container space. So really...each item on the Purchase Order is like a "mini purchase order"... as I like to call it. 
    So, when we have a situation where only 5,000 of a specified item has been sent, we create a Goods Receipt for that amount...making that line item un-editable on the Purchase Order.
    I would like for it to be editable so that I can add/change the the "Status Update" column I created (this is for our sales reps to be able to determine when product should be arriving).
    The only solution I can think of is readjusting the quantities right when we know they will be split...so by the time they arrive (usually a month after they are shipped from Hong Kong), the quantities are already separated out in the system.
    Only thing is, I have to be REALLY careful not to mess up the original order...or confuse things.
    Any suggestions??

    There is a good reason that a line item will become non-editable on a purchase order if a portion of it has been received.
    Do not fight with system.  If possible, change the order to small one from the beginning. That would be much better.
    Thanks,
    Gordon

  • How to delete delivery  Line item after the Invoice Passed accounting

    Hi Experts,
                    Outbound delivery was created w.r.t.  Purchase order using VL10B.In the current process here batch is determined at delivery level.There was a line item with '0' Quantity which had a batch and another line item with Full Quantity confirmed for a batch and the PGI was done for the delivery.Invoice was created and passed accounting.
                     The problem is that in VF04 in the Billing due list we are able to see the '0' Quantity Line item  as shipped but not yet billed.
                     Doing a PGR ,then delete the line item with '0' Quantity and then again doing PGI was suggested by few people but i feel that will be a very tediuos process since the document  passed accounting.
                      Can anyone help in getting the line item deleted from the delivery document or suggest with ways to remove the data at VF04.
    Warm Regards,
    Jeff

    I think you can comeplete the item by using T.code VL_COMPLETE, check and let us know your feedback

  • Checking Line Item Dimension

    Hi
    Does anyone know a quicker way to do a mass check on whether 'line item dimension' has been defined in InfoCubes? 
    Please share if you do.
    Many thanks,
    Anthony

    Hi Anthony,
    You can look up table RSDDIMEV (field LINITFL).
    Hope this helps...

  • Table for tax code line item after miro

    Can anybody tell table for tax code line item (other than BSET) after MIRO.
    Raj

    Hi,
    First let me explain you the logic in this repot. 
    If a document have more than one GL accounts relevant for tax and having the same tax code. So there is only one tax line for that tax code in BSET.
    Now in the standard reports like S_ALR_87012357, output has the tax base amount etc, based on tax line from BSET which is a single line the above document. However this single line contains multiple tax relevant account and thus SAP can not show all the G/L account for this single line in the report S_ALR_87012357. So SAP picks up the first account in the output.
    The declaration in this report is not wrong, as the total gets calculated based on the tax code and which is correct and meets the tax reporting requirement.
    If you want to see the G/L account wise output, you can use the program RFUMSV10. Refer OSS note 1175418 "RFUMSV00: G/L account display" for details.
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1175418
    In your report, you can use this program logic for reference.
    Regards,
    Gaurav

Maybe you are looking for

  • ATP check in certain storage location based on item category

    hi gurus, i need to know whether any one can help me. i need to know how to set the availability check in certain storage location by each item category. such as : mat A item category TAN, ATP check only include in SLOC 01,02,03 but mat A with item c

  • Aimersoft ripped movies not playing on ATV2

    I use the program Aimersoft DVD ripper to rip movies to my hard drive then I upload them to my iTunes so they'll play on my ATV2.  Haven't had any problems with this until today.  A movie I just ripped will play on my iMac just fine and will show up

  • CST in Purchase Order

    Hi, Could anybody provide the configuration steps for CST purchase? what all are the settings required for this in material master, condition types etc..... We are using TAXINJ procedure. REgards,

  • Assigning more than 1000 orders in one WBS

    Hi Experts, I have a requirement of assigning more than 1000 Orders to one WBS element. As per SAP note, a maximum of 1000 Orders can be asssigned to one WBS otherwise system performance may get affected. But as per the client requirement, either I s

  • Uninstalling  BTjunkie toolbar  in Safari

    Hi, i wonder if there is a way to uninstall BTjunkie toolbar in Safari. Their website only has solutions for IE and FIrefox, and nothing for Safari on the Mac. I thought reinstalling Safari would do it, but it didn't for me. Thank you very much.