HOW TO FIND LAST DOCUMENT DATE BASED ON MATERIAL NUMBER

Hi,
       I want to know how to find the last document details based on material number.
Is there any Functional modulle or BAPI programe?
i,e, I want know last goods receipt details (MIGO)  based on material number.
Can u please anybody tell me.
Thanks,
S.Muthu.
Edited by: Subramaniyan Marimuthu on Jan 2, 2008 9:07 AM

Hello.
Check the BAPI_GOODSMVT_GETITEMS
-example--
Get GRs after a specific date for a specific plant/ storage location and movement types
  wa_budats-sign = 'I'.
  wa_budats-option = 'GE'.
  wa_budats-low = '20071201'.
  APPEND wa_budats TO budats.
  wa_plants-sign = 'I'.
  wa_plants-option = 'EQ'.
  wa_plants-low = '1000'.
  APPEND wa_plants TO plants.
  wa_stlocs-sign = 'I'.
  wa_stlocs-option = 'EQ'.
  wa_stlocs-low = '0001'.
  APPEND wa_stlocs TO stlocs.
  wa_mvts-sign = 'I'.
  wa_mvts-option = 'EQ'.
  wa_mvts-low = '101'.
  APPEND wa_mvts TO mvts.
  wa_mvts-low = '901'.
  APPEND wa_mvts TO mvts.
  wa_mvts-low = '123'.
  APPEND wa_mvts TO mvts.
  CALL FUNCTION 'BAPI_GOODSMVT_GETITEMS'
    TABLES
      plant_ra        = plants
      stge_loc_ra     = stlocs
      move_type_ra    = mvts
      pstng_date_ra   = budats
      goodsmvt_header = header
      goodsmvt_items  = item
      return          = return.
Reward if helpful.
Cheers,
George

Similar Messages

  • How to find name of partner based on partner number

    Hello All,
    Can any one help me how to find name of partner based on partner number.
    Regards,
    Lisa

    SELECT kunnr name1 erdat
              FROM kna1
              INTO TABLE i_kna1
              WHERE erdat IN s_date.
      SELECT kunnr kunn2 knref vkorg vtweg spart
                    FROM knvp
                    INTO TABLE i_knvp
                    FOR ALL ENTRIES IN i_kna1
                    WHERE kunnr = i_kna1-kunnr AND
                    vkorg IN s_vkorg AND
                    vtweg IN s_vtweg AND
                    spart IN s_spart AND
                    parvw = 'ZR'.
      LOOP AT i_kna1.
        READ TABLE i_knvp WITH KEY kunnr = i_kna1-kunnr.
        IF sy-subrc = 0.
          MOVE-CORRESPONDING i_kna1 TO i_cust2.
          MOVE-CORRESPONDING i_knvp TO i_cust2.
          APPENd i_cust2.
       endif.
      ENDLOOP.
    *SELECT kunnr name1
              FROM kna1
              INTO TABLE i_kna1.
      loop at i_cust2.
        read table i_kna1 with key kunnr = i_cust2-kunn2.
         IF sy-subrc = 0.
           i_cust2-name2 = i_kna1-name1.
        modify i_cust2.
      endif.
    endloop.*
    icust2 will have partner number ,....partner name is in KNA1,..
    so look in tat ..by above code.._ if this is wat u r luking for

  • How to find last login date of a sql login?

    i want to disable the SQL Logins which are not logged in last 15 days. (I schedule a job every night to check and disable)
    For this 
    i want to find  last login date of all sql logins in an instance if the login didn't log in with in 15 days i want to disable them.
    In SYS.SYSLOGINS table we can see all the logins and 'isntname' tells us if it is SQL login or windows login. 
    but where to find the last login date of SQL log in ?
    Can any one help me?

    Hi HYDBA,
    If you use SQL Server 2005 or later, you can only get the current logon data using
    DMV likes:
    select
    max
    (login_time)as
    last_login_time, login_name
    from
    sys.dm_exec_sessions
    group
    by login_name;
    Related to your question there are two options:
    One is logon trigger,
    which is used to get current login time and login name comparing with the data from
    sys.dm_exec_sessions. If the current login time comparing with last login time is larger than 15 days, then prevent the current login.   
    Another one is to schedule a job, which is used to disable logon who’s current login time
    comparing with last login time is larger than 15 days.
    Hope it’s helpful for you.
    Regards, Amber zhang

  • How to find Last Payment date for vendor

    Hi,
    I am working on ALV  Vendor report details.
    1) How to find the last payment date for the vendor.
    2) In input paramter field  
        PARAMETERS: L_FILE  LIKE  RLGRAP-FILENAME.
       I want to validate the user input in the selction screen for downloading the file in the presentation server..
      what is the validation I have to write for the path name.
    pl help me give details.
    Thanks in advance.
    sharma

    1) use table REGUH field ZALDT or VALUT
    2) use fm like EPS_GET_FILE_ATTRIBUTES
    A.

  • How to find last activites date time in BCC by all BCC internal users?

    Is there a way to find the last activities date and time in BCC by all BCC internal users?

    It looks like /DSS/TrackActivity.sdl does the job for normal commerce users, but there is no such scenario for Internal users(BCC users), so this is something we need to do for internal users.
    Is my understanding correct?

  • To find last run date of custom concurrent program in oracle apps

    Hello Exports,
    Can you pls tell me how to find last run date of custom concurrent program in oracle apps.( thr Backend query )
    Thanks in advance,
    Edited by: 981527 on Mar 7, 2013 3:01 AM

    try the below:
    select fcp.user_concurrent_program_name
    ,fcr.request_date
    ,fu.user_name
    ,fcr.actual_start_date
    ,fcr.actual_completion_date
    ,fcr.phase_code
    ,fcr.status_code
    ,fcr.argument1
    ,fcr.argument2
    ,fcr.argument3
    from fnd_concurrent_programs_vl fcp
    ,fnd_concurrent_requests fcr
    ,fnd_user fu
    where fcp.user_concurrent_program_name like 'Payroll Run'
    and fcp.concurrent_program_id = fcr.concurrent_program_id
    and fcr.requested_by = fu.user_id
    order by fcr.actual_completion_date desc

  • How to find last date of month

    Dear  All,
    Can anybody tell me how to find last date of month I need it to check some validations
    helpful answer will definatly rewarded
    Regards
    Shashikant

    Hi,
    RP_LAST_DAY_OF_MONTHS Determine last day of month
    HR-D: Payroll Germany code
    RP_LAST_DAY_OF_MONTHS
    HR-D: Determine last day of month
    DATE_CONVERT_TO_FACTORYDATE
    Returns factory calendar date for a date Calculates and returns factory calendar date for a date (if CorrectOption = '+');
    Checks if the date is work day (if CorrectOption = '-').
    HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the date is a holiday by checking the parameter HOLIDAY_FOUND.

  • How to find the creation date for a released requests..

    Hi friends ,
    In se09 tcode , we a date which represents the last changed date .. Now , for a particular Released request i want to find out the Creation date for it . How can i find it . I checked the tables like E070create there also we have requests that not released yet , i have also checked se03 and other tcode and a fn mo dules like TR_READ_GLOBAL_INFO_OF_REQUEST .
    So how to find the creation date for a released requests. Iam waiting for ur inputs..
    Thanks in advance..

    hi,
    Did u found the way to get the request creation date?
    I also need the same information.
    This needed for audit purpose........so it is must.
    Please help me in this.
    Best regards,
    vinod

  • How to pick the data based on customer number

    Hi All ,
    greets....
    i have a requirement to select  the data based on customer number and then do furthur processing .
    example:
    this is some 10 dcouments in customer nr:v1000
    and 20 documents in customer v2000 in a internal table how to select that,
    thank s in advance.

    thier is an internal table which is having some 1000records.
    and their is 6 customers.
    in which i should pick the data based on customer number.
    how to write a code for that?

  • To find last updated date in sql developer for a procedure or a function

    hi
    how to to find last updated date in sql developer for a procedure or a function.
    i m using sql developer version in 1.2

    I think you are in the wrong forum...
    Anyway you can try
    select * from
    all_objects o
    where o.object_type in ('FUNCTION','PROCEDURE');
    you have there the created date, last DDL and timestamp

  • How to find last inserted record in the table.

    Version: Oracle 10g
    I have a table called "Manufacture" and 3 columns as mfno,itemname,quantity.
    How to find last inserted record in the table "Manufacture".
    As i come to know that Rowid is not result perfect results. Please provide your inputs.

    user13416294 wrote:
    Version: Oracle 10gThat is not a version. That is a product name. A version is 10.1.0.2 or 10.2.0.4, etc.
    I have a table called "Manufacture" and 3 columns as mfno,itemname,quantity.
    How to find last inserted record in the table "Manufacture".Not possible as your data model does not cater for it. That simple.
    If there is a need to determine some order or associate some time to an entity, then that should be part of the data model - and a relationship, or one or more attributes are needed to represent that information. Thus your data model in this case is unable to meet your requirements.
    If the requirements are valid, fix the data model. In other words - your question has nothing to do with Oracle and nothing to do with rowid, rowscn or other pseudo columns in Oracle. It is a pure data modeling issue. Nothing more.

  • T.code KO88: how to set the document date?

    Hi All,
    could anyone tell me how to set the document date in the t.code KO88?
    Thanks
    Gandalf

    Hi,
    Normally, the system define  the posting date based the date when document entered into Financial Accounting or cost accounting. Based on posting date,system will define the posting period and fiscal year.
    Posting date can be different from Entry date ( the date date entered into SAP system), where no influence from user, and it can also different from Document date. Document date is the of original document was created.
    Hope this will give you clearer overview of dates which are used in system.
    Regards,
    Irhasni

  • How to find last accessed/updated tables and the query text?

    I am using :
    Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.4.0 - Production
    How to find last accessed/updated tables and the query text?
    Regards
    LEE1212

    Check DBA_TBALES view there you find one date column that indicate last update
    One option is as follows:
    (1) Turn the auditing on: AUDIT_TRAIL = true in init.ora
    (2) Restart the instance if its running.
    (3) Audit the table:
         AUDIT INSERT,SELECT,DELETE,UPDATE on TableName
         by ACCESS WHENEVER SUCCESSFUL
    (4) Get the desired information using :
         SELECT OBJ_NAME,ACTION_NAME ,to_char(timestamp,'dd/mm/yyyy , HH:MM:SS')
         from sys.dba_audit_object.
    Cheer,
    Virag Sharma
    http://virag.sharma.googlepages.com/
    http://viragsharma.blogspot.com/
    Message was edited by:
    virag_sh

  • How to find last executed query on database and or schema.

    hi,
    how to find last executed query on database and or schema.
    yours sincerely

    Sessionwise if you wanna see means use v$session.. Because it will show execution time also so you can analyze it easily and get sql based on SID and serial number ..
    Try :
    select * from v$session;
    Regards..

  • How to find out when data was deleted from table in oracle and Who deleted that

    HI Experts,
    Help me for below query:
    how to find out when data was deleted from table in oracle and Who deleted that ?
    I did that to fidn out some data from dba_tab_modifications, but I m not sure that what timestamp shows, wether it shows for update,insert or delete time ?
    SQL> select TABLE_OWNER,TABLE_NAME,INSERTS,UPDATES,DELETES,TIMESTAMP,DROP_SEGMENTS,TRUNCATED from dba_tab_modifications where TABLE_NAME='F9001';
    TABLE_OWNER                    TABLE_NAME                        INSERTS    UPDATES    DELETES     TIMESTAMP         DROP_SEGMENTS TRU
    PRODCTL                        F9001                                                     1683         46       2171            11-12-13 18:23:39             0                   NO
    Audit is enable in my enviroment?
    customer is facing the issue and data missing in the table and I told him that yes there is a delete at 11-12-13 18:23:39 in table after seeing the DELETS column and timestamp in dba_tab_modifications, but not sure I am right or not
    SQL> show parameter audit
    NAME                                 TYPE        VALUE
    audit_file_dest                      string      /oracle/admin/pbowe/adump
    audit_sys_operations                 boolean     TRUE
    audit_syslog_level                   string
    audit_trail                          string      DB, EXTENDED
    please help
    Thanks
    Sam

    LOGMiner --> Using LogMiner to Analyze Redo Log Files
    AUDIT --> Configuring and Administering Auditing

Maybe you are looking for

  • Boris Title 3D Can't adjust effect options

    Hi, I've been using Title 3D for titles in my project and it was working fine up until yesterday. Now when I try to adjust shadow size, opacity, etc it won't work. I highlight the text, and when I use the sliders nothing happens. Same with outline. I

  • CVP 8.0 Licensing

    Do we require VXML port licenses if only doing queuing and using built in micro apps in ICM in CVP v8? Sent from Cisco Technical Support iPhone App

  • Hashing of the password field using MD5 and then store in the XML

    Hi, I need to design a form with User ID and a Password field. When i extract the XML from the form i need to hash the password field using MD5 and then store it. Does anyone have some kind of experience in doint it. Can you please suggest some way t

  • What gets saved when backing up?

    Hello All. When I use i-tunes to back up my music, please can someone tell me if it automatically saves the album artwork as well? I spent a long time ptting missing album covers on and I wouldn't want to lose them all! If it doesn't automatically sa

  • EIS data load problem

    Hi, I use user defined sql to do a data load using EIS 7x When i run the sql in toad just to see the data I see 70000 rows But when I use the same sql in the userdefined sql and try to load data...I dont know why EIS says that it loaded around 69000