How to get PO number and line item in he check item method of MB_MIGO_BADI

Hi All,
First time I am using BADI and I am stuck in one issue.
I am using CHECK_ITEM method of MB_MIGO_BADI.
While pressing CHECK button MIGO for a GR(wrt to a PO),a warning message has to displayed.This warning message has to displayed according to the line item in the purchase order.
In the CHECK_ITEM method, how I will get the PO number and the line item imported into that method.?
Thanks.

HI  ,
in Check_item method 
DATA: ls_extdata TYPE zqsscrap_screen_field .
LOOP AT gt_extdata INTO ls_extdata .
endloop.
Check what you are getting  .
regards
Deepak.

Similar Messages

  • According to PO number and Line item data should come once but its repeatin

    I am calculating IR Quantity and IR value......
    for a PO  if there are four same  line items i wanted them once but they are displaying for each and every line item
    If my po is 2003000151 and line item 0010 if both are same then i wanted ir quantity 500
    but its displaying like this
      PO                 item   IR
    2003000151   0010 500
    2003000151   0010 500
    2003000151   0010 500
    2003000151   0010 500
    I need like this
    2003000151   0010 500
    2003000151   0010
    2003000151   0010
    2003000151   0010
    If po number and line item are same IR quantity should be displayed only once..
    What should be done if it should not repeat in each and every line item if both PO and line item are same

    i am having internal table of it_ekko.
    in that i am having some data of PO no, Line Item,IR value and IR qty......
    i am having data like below.
    PO                        Line Item   IR Value    IR QTY 
    200310051          0010         1500           4500
    200310051          0010        1500           4500
    200310052         0010           0                   0
    200310052          0010       0               0
    now where ever IR value and IR qty is present i wanted that to display only once against that PO and line item
    i wanted like below
    PO                        Line Item   IR Value    IR QTY 
    200310051          0010         1500           4500
    200310051          0010            0              0
    200310052         0010             0                0
    200310052          0010            0               0
    Field names for IR value and IR Qty are Menge2 and dmbtr2.
    How to do that.........
    I cant use
    Delete adjacent duplicates of it_ekko by ebeln = wa_ekko-ebeln and
                                                                          ebelp = wa_ekko-ebelp.
    because i wanted that po and same line items , how many times it is like that only.....
    in it_ekko table i only wanted to delete duplicates of menge2 and dmbtr2.
    Pls suggest the code

  • 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

  • How to get customer number and name from the SD document

    Hi All,
    Can you please let me know how to get Customer Number and Name from the SD Document?
    Thanks a lot....
    Anil

    Hi,
    It will be displayed in the SD (BIlling document) itself,  you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
    regards,
    radhika
    Edited by: kolipara radhika on Jul 10, 2009 5:32 AM

  • PO comparison with similar materila number and line items

    Dear Friends,
       I wish to know in a report how i classify the pos having similar material and line items in each other, Like po number is 12 and has material numbers 1, 2, 3
    where po number 13 and has material 1,2,3. how i fetched the data from the table and classify them with similar material and line items, please tell me. any article, example, code will be grete help of mine,
    thanking you
    regards
    Naim

    Guess you need to display report with Purchase Order nos where Material nos are similar.
    On selection screen add parameters Material and Line Item no. Both should ba mandatory.
    Get data from EKPO where MATNR = P_MATNR and EBELP = P_EBELP.
    Display the same in report output.
    Just need to check with you - Material nos can be same on multiple POs but Material, Item no combination may not be.
    I can use same material in another PO with different Line Item as other PO already has some line items. Why do you need this check?

  • Purchase requistion number and line item number linkage with work order opr

    Hello,
    I want to know what is the link between Purchase requisition number along with its line item number with work order operation number.
    For the non stock component assign to Work order operation ( say operation 10) the PR get generated for that component which assign to that operation .
    in which table we can find that PR as input and output as Work order number along with its operation .
    In AFVC table if we put PR as input then it does not show any entry for that PR number?
    Regards
    Vaibhav

    HI Vaibhav,
    If you have the Work Order Number AUFNR, then you can get AUFPL from AFKO.
    Then Pass AUFPL to AFVC table to get BANFN(Purchase requisition number) and BNFPO(Item number of the purchase requisition in the order).
    Regards,
    Ravi

  • How to get the number of lines of a file?

    Folks:
    Is there a way to get the number of lines of a text file? I don't know if there is an existing method to do that.
    Thanks a lot.

    HI
    I found some solution
    other than increment loop and all
    here is the code it might helpful to u
    //returns the number of lines in a file
    //author : Ravindra S
    //Symphony software Hyderabad
    try
    RandomAccessFile randFile = new RandomAccessFile(csvFile,"r");
    long lastRec=randFile.length();
    randFile.close();
    FileReader fileRead = new FileReader(csvFile);
    LineNumberReader lineRead = new LineNumberReader(fileRead);
    lineRead.skip(lastRec);
    countRec=lineRead.getLineNumber()-1;
    fileRead.close();
    lineRead.close();
    catch(IOException e)

  • How to get equipment number and type for given PM order

    hello all,
    i know the PM order number and corresponding object number (like OR9100000175),
    now using these how do i get equipment number and equipment type..
    do i need to use any function module...
    thanks in advance...

    From VBAK table with order number AUFNR, get notification no - QMNUM.
    From QMIH table with this notification no QMNUM, get equipment no - EQUNR.
    And then from equipment master EQUI, you can get the equipment categeory EQTYP from EQUNR

  • How to get imei number and mac address of mobile device on adf mobile

    Hi experts,
    I need to get imei number and mac address of device (supposed to be works on both android and iphone) on adf mobile
    bgrds

    Hi,
    Adf mobile support phonegap api. Version must be 2.0(you can check it by below code snippet) You can just reach uuid from both platform via cordova. Espescially, IOS restriction limits you to get device infos that you mentioned, but you can get uuid.
       getCordovaVersion = function ()
            var cordovaVersion = device.cordova;
            return cordovaVersion;
        getDeviceUUID = function ()
            var uuid = device.uuid;
            return uuid;

  • PO Number and Line Item Number for Invoice Plan Number

    Hi Experts,
    Can somebody please guide me how to fetch the PO Number and respective PO Line Item Number for an Invoice Plan (FPLNR).
    In FPLA Table, PO number is available but line item number is not available.  If a PO is having multiple line items, different line items will have different Invoice Plan numbers.
    Thanks in Advance.
    Radha Krishna Madineedi

    Hi Ramesh,
    I have got the answer after posting this thread.  We can get the PO Number and the Line Item from EKPO Table itself by passing the FPLNR.
    Anyway,  thanks for your reply.
    Regards
    Radha Krishna.

  • How to get week number and day in my result?

    hi experts, i have given the data is ID and DATE(yyyymmdd),i want to get output like ID,DATE,WEEKNO,YEAR,MONTH,DAY. how to get this output.
    thanks & regards
    vijay

    In a routine transformation you can call function
    DATE_GET_WEEK
    to get the week number from the date.
    To determ the others, use the substring
    YEAR = DATE(4)
    MONTH = DATE+4(2)
    DAY = DATE+6(2)

  • How to display the number of line items in sap-script report?

    Hi friends,
    I need a help regarding the SAP Script. In my script (report) I create two pages and created three windows (MAIN, HEADER, FOOTER) for each pages. Now the problem is while displaying the fewer line item which can come under the main window of the 1st page these line items are comming perfectly but for the remaining line items that comes on the second page the table headings and the boexs are not comming.
    Also it is displaying the total and the amount in text in every pages that should be display in last page.
    Here if I eleminate or comments the total and the amount in text for the first page the same is reflected in second page. Also I need to display the page-nor for each pages to displayed.
    I am requesting all the people out there kindly help me to solve this issues.
    Thanks and Regards

    There is no pre built solution for this. But we can show total pages in the report body.
    one way is Create a other column in the report with code sum(count(1))/25. that gives you total number of pages. 25 here is no of rows in each page. The code you can write in narrative "Total pages in the report are @5" and out put may be "Total Pages in the report are 30".
    If you are using pivot tables, you can try this.
    http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-pagination-in-pivot-tables/
    - Madan

  • How to get report for deleted line items from sales orders

    Dear FRIENDS,
    please infirm the t.code or report for viewing the deleted line items from sales ordrers.
    Kindly do the neeedful.
    regards,
    N.M.PAWAR

    Hi,
    With transaction SE16 you can view table CDHDR for header changes and
    CDPOS for item changes. This includes deletion.
    OR
    GO to VA03 - Display Sales order -> Put order no : don't press enterbutton. -> Go to Enviornment -> changes -> You will get details
    Date ItmNo. SLNo Action
    Hope this help please close the thread if answers

  • How to get the number and response time of HTTP request through Weblogic?

    hi,
    does anybody know how to get the HTTP request information through Weblogic server, such as the number of HTTP request in 1 min and the average response time of request in 5 mins ?
    Or is there anyway i can do it through monitoring and get these data then? If so, please help tell me.
    Thanks in advance
    BTW, we don't have the 3rd-party monitoring tool here.

    Hi,
    tables: usr02, usr41.
    data: OPCODE_MODE_COUNT(1) TYPE X VALUE 3,
          modes like sy-index,
          u_MODES LIKE MODES.
    select * from usr02.
      select * from usr41 where BNAME = usr02-bname.
        CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE_MODE_COUNT
          ID 'TID' FIELD usr41-TERMID
          ID 'MODES' FIELD MODES.
        IF SY-SUBRC = 0.
          u_MODES = u_MODES + MODES.
        ENDIF.
      endselect.
      if sy-subrc = 0.
        write:/ usr02-bname, u_MODES.
      endif.
      clear u_modes.
    endselect.

  • How to get Mobile number and other information from SIM card

    Hi,
    I like to get mobile number,mobile user name and other information from SIM card using j2me program.Is there is any API for this one.
    Any one give guidelines to me how to get this.
    with regards,
    latchiya

    Please use the search! this topic has come up lots of times already.

Maybe you are looking for

  • DVD backup won't load

    hi i had an iMac G5-which has 'died'. before that happened, luckily i backed-up my photos (using iphoto 2.0). i'm trying to load them into a powerbook with iphoto 4 installed, but keep getting a message saying...'can't open using this version...you'v

  • Concurrent Manager requires physical hostname to start??

    Hi, We are planning to setup HP Service Guard Clustering for our Oracle R12.0.6 instance. After going thourgh HP documentation(http://h20195.www2.hp.com/V2/GetDocument.aspx?docname=4AA1-2863ENW&cc=us&lc=en) , i understood that Serviceguard uses virtu

  • I would like to create a Christmas album but would like to separate albums under the main album.  is there a way to do this?

    I would like to create a Christmas album with all of my Christmas music in there but would like to separate my different albums within the main one.  Is there a way to do this?

  • "Compilation" Playlists

    Could someone please provide me with simple step by step instructions about how I can compile a playlist by selecting individual songs from a number of different albums (effectively I am trying to put together a compilation album containing songs by

  • Close year with 2 period indicators

    Hello, My customer is running calendar year from Jan 1st to Dec 31th For such year he defined period indicator: for 2009 one indicator and for 2010 other indicator. However u2013 His business year is from July 1st till June 30th. He would like to clo