Programming for changing the document of latest Date

Hi,
I am having requirement to change the Data of source items by picking the latest Date. There are several Source items(100). My question is how to write the code to change the data of several source items by pciking the latest date. I need to change the latest date( source item )and remaining source items data not to be changed.

HI Sriram
  Sort by date descending and time. So that latest record you will get. For updating use only std FM and pass the necessary parameters. It will update with latest date.
Regards
vijay

Similar Messages

  • Which program for changing Adobe documents?

    Hiya
    We are a small business and receive alot of adobe documents thru email and want to k
    now whats the best program to use to save these documents on computer harddrive and
    make any changes to the documents that we want. w
    e are not large users of adobe so dont need anything fancy with bells
    & whistles just something easy to use!!!!

    It depends on what type of changes you want to make. Acrobat Pro is the most capable, but you may be able to get by with Acrobat Standard. For a comparison, see: http://www.adobe.com/products/acrobat/matrix.html

  • Substitution for change of document header

    Hi
    I have created a substitution for the change of document header for a company code. I have made it in GGB1 and activated it in the Tcode OBBH.
    However it does not allow me to post the document (Tcode FB01) - I get the syntex error in program 'GBTLEFI0' in include 'GBTLEFIB' in line '1593' - 'The FORM "SUBCON_3ZDEPIND047" does not exist. and the processing is terminated.
    Please provide the solution
    Thanks
    Neeraj

    Hi
    For changing the documents we can use LSMW instead of substitutions.
    Thanks
    Sandesh

  • Making Pages the default program for opening text documents

    How do I make Pages the default program for opening text documents? Every time I open a text doc it launches in TextEdit. This must be an easy fix, but I can't seem to figure it out.

    Select a text document > Menu > File > Info > Open With > Browse into your appliCations folder > iWork > Pages > OK > Change All…+
    Peter

  • Any program for Deletion the normal Parked documents in Standard SAP

    Hi All,
    is there any program for delete the normal parked documents in Standard SAP ??  we have nearly 2000 documnets so we can't do manually one by one at FBV2/FBV6.
    please help.
    Raj

    Hi,
    You can create a CATT/LSMW project, by recording the relevant transactions and then make a mass change by executing it.
    Regards,
    Eli

  • Fuba or Report for Change the OBJECT_ID in one order documents

    Hi Guru's
    we want to reuser the Order-ID in CRM contracts (CRMD_BUS2000121)
    So I search a FuBa or a report for Changing the OBJECT_Id in the one order document or is there any other possibility.
    we use SAPCRM 4.0
    thanks
    Reiner

    Hi Reiner,
    changing a Order or Contract ID is not possible because they are the key of the Object. Perhaps I've don't get your point. Please describe your requirement in more detail.
    Regards
    Gregor

  • How to Change the Document Condition Values in PO print

    HI,
    I have a requirement to change the document condition values in PO printout. We are using the copied form of MEDRUCK.
    Please tell me how can i change the Document Condition Values at run time.
    Thanks....

    hi
    hence you have copied standard script you cant able to change the driver program for this you have to use itcsy structure.
    go to the page window and select the window which you have the amount field. open the text editor of the windoiw here write
    /:           PERFORM CONTACT IN PROGRAM ZAMOUNT_ZF110_IN_AVIS1_C
    /:           USING &REGUH-ZALDT&
    /:           CHANGING &DT&
    /:           ENDPERFORM
    now create a report program with name  ZAMOUNT_ZF110_IN_AVIS1_C.
    and follow as the example program is .
    *&      Form  CONTACT
          text
         -->IN_TAB     text
         -->OUT_TAB    text
    FORM contact TABLES in_tab STRUCTURE itcsy
                       out_tab STRUCTURE itcsy.
      DATA : v_telf1 TYPE telf1.
      DATA : v_telfx TYPE telfx.
      DATA : v_adrnr TYPE ad_addrnum.
      DATA : v_flagcomm6 TYPE ad_flgcm06.
      DATA : v_datum(10) TYPE c.
      DATA : v_sydatum TYPE sy-datum.
      DATA : v_lifnr TYPE lifnr .         " Santosh Rawat , 19th Feb
      DATA : v_email TYPE ad_smtpadr .   " Santosh Rawat , 19th Feb
      LOOP AT in_tab.
        IF in_tab-name = 'REGUH-LIFNR'.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' " Santosh Rawat , 19th Feb
            EXPORTING
              input  = in_tab-value
            IMPORTING
              output = v_lifnr.
          SELECT SINGLE telf1 telfx adrnr FROM lfa1
            INTO (v_telf1, v_telfx, v_adrnr)
            WHERE lifnr = v_lifnr.
          SELECT SINGLE smtp_addr FROM adr6    " Santosh Rawat ,19th Feb
         INTO v_email WHERE ADDRNUMBER = v_adrnr. " Santosh Rawat ,19th Feb
         SELECT SINGLE flagcomm6 FROM adrc INTO v_flagcomm6
           WHERE addrnumber = v_adrnr.
        ELSEIF
          in_tab-name = 'REGUH-ZALDT' OR in_tab-name = 'REGUP-BLDAT'   .
          MOVE in_tab-value TO v_datum.
          REPLACE ALL OCCURRENCES OF '.' IN v_datum WITH ' '.
          CONDENSE v_datum.
          MOVE v_datum TO v_sydatum.
    *CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'
    EXPORTING
       input         = V_DATUM
    IMPORTING
      OUTPUT        = V_DATUM
          CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
            EXPORTING
              date_internal            = v_sydatum
            IMPORTING
              date_external            = v_datum
            EXCEPTIONS
              date_internal_is_invalid = 1
              OTHERS                   = 2.
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
        ENDIF.
      ENDLOOP.
      LOOP AT out_tab.
        IF out_tab-name = 'TEL'.
          MOVE v_telf1 TO out_tab-value.
        ELSEIF out_tab-name = 'FAX'.
          MOVE v_telfx TO out_tab-value.
        ELSEIF out_tab-name = 'EMAIL'.
          MOVE v_email TO out_tab-value.        " Santosh Rawat , 19th Feb
        ELSEIF out_tab-name = 'DT'.
          MOVE v_datum TO out_tab-value.
        ENDIF.
        MODIFY out_tab FROM out_tab.
    *MODIFY TABLE OUT_TAB .
      ENDLOOP.
    ENDFORM.             }
    reply for any query.
    regards,
    venkat.

  • BAPI for changing parked documents

    Hi ,
    I need to know any BAPI exist for changing the posting date of the parked documents.
    Please let me know if there are any BAPI's
    Thanks

    Hi,
    have a look at bapi 'BAPI_INCOMINGINVOICE_PARK'.
    i´m not sure but i guess it allows to change a parked document.
    Best regards.

  • The Financial Accounting program cannot process the document.

    THIS PROBLEM IS COMING AFTER THE BILING AND THE ACCOUNTING DATA IS NOT CREATED FOR THIS PROBLEM
    CAN ANY ONE SOLVE THIS PROBLEM
    GURUS PLEASE HELP
    No account is specified in item 0000001005
    Message no. F5670
    Diagnosis
    No account was specified for account type "S" in item "0000001005" of the FI/CO document.
    System Response
    The Financial Accounting program cannot process the document.
    Procedure
    A system error has probably occurred in the application you called up. Check the data transferred to item "0000001005" of the FI/CO document.
    WITH REGARDS
    SUBRAT

    Hi,
    I think this is due to problem in acount  determination.
    Please check VKOA
    Best Regards
    Ashish Jain

  • ABAP Program Name CHanging the PSA Load status

    Hi,
    Our Scenario is Non-SAP -> PI -> BI.
    Every Day PI reads the file from source and it will directly upload to PSA in BI.But in PSA the status will show as yellow only it is not turning to green.But I am able to see the data in PSA but status is yellow.
    When we activate the Data source manually the load status is turning to green.
    I heared there is an ABAP Program to change the status.If anybody knows pl provide me the details.
    Regards
    Ram.

    Hi Ramakanth,
    Yes, that right. I have mistaken here because our pos dispatcher pumps data source every 15 mins thats why its in yellow status. I am sorry about that.
    Usually there are some reasons why the PSA in yellow.
    1. If the data is being loaded from PSA to data target, it will be in yellow
    2. If the data is loaded into PSA then it will be in yellow
    3. If we make any changes in the PSA for example deleting few records in psa and then added and transferred records doenst match then it will be yellow. In this case we have to manually change the status.
    In your case I am not sure y its not getting into green once is done. We never had any issue. Pos dispatcher runs and uploads the data into PSA and then we upload into targets.
    Thanks
    Srikanth

  • Is there any program to change the color of requests

    Hi,
    I want to know is there any program to change the traffic color of requests.
    It is showing wait time until 'next months' date'.
    The option to change time out is greyed out in the Infopackage schedueler.
    Please sugegst anything.

    In RSMO Settings -> incorrect waiting time for request -> Change the time
    Regards,
    B

  • Changing the Existing Row's Data

    Objective :
    Change the data in a Existing row of a table
    Problem.
    I am unable to change an existing row's data
    I think it is in inactivate state
    please provide me a solution for my query
    thanks
    prasad

    hi,
    you can change from se11
    firstle check is the table in display or change mode. if in display goto change mode
    after you display the values check the check box by the side of the row you want to change and press change(f6) you can change values except the primary key values
    or if you have TMG you can do the same from sm30
    you can write a cusrtom program and change the values using modify statement
    if you want to change the primary key values you must delete rhe row and enter new row thats only way
    reward if helpful
    prasanth

  • Change the document flow, table CRMD_BRELVONAI

    Hi experts,
    We are using CRM and ISU. For few cases the ISUCONTRACT displayed in the CIC0 is wrong.
    I would like to know if it's possible to change the document flow ? (the datas in table CRMD_BRELVONAI).
    By transaction ?
    by FM ?
    Thanks in advance if you could help me.
    Regards,
    Nicolas.

    Nicolas,
    Though I myself have not tried deleting any existing Doc Flow, but you can try using the Function Module: CRM_DOC_FLOW_UPDATE_DU.
    If you get a better option please share.
    Regards,
    Shyamak

  • BDC Program for posting FI document

    Hi everyone!
    Anyone out there already made a BDC program for posting FI documents with this concept:
    User will upload a spreadsheet file with the line items per row
    User will input which TCODE user will use for posting
    BDC program will then post the document using the line items in the spreadsheet file
    I need to make a BDC program with that concept but having a hard time to think of a good algorithm to make my program very flexible.
    Thanks!

    you can use batch input program RFBIBL00 to pasrk document. Please check these links for more information.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CAGTFADM/CAGTFADM-FI.pdf
    http://help.sap.com/printdocu/core/print46b/en/data/en/pdf/CAGTFADM-FI.pdf
    Have a processing routine defined for the specific Idocs that come into SAP.
    So, as and when the idocs are in, the routine triggers and you can codeappropriately in the routine for parking the idocs.
    Check these threads
    BAPI For Parking FI Document
    Post FI Parked Documents
    You can use message type INVOIC, IDoc Type INVOIC01/02 with process code INVF (FM IDOC_INPUT_INVOIC_FI) for FBV1 transaction.
    See if there are any BAPI/FMs for parking an FI document.
    1.. Use INVOIC01 IDOC with INVF process code (This works for Vendor Line Items only). I read the documentation somewhere that, this would work even if the line items are > 999
    2.. BAPI_ACC_INVOICE_RECEIPT_POST (This works for Vendor Line Items only)
    3.. BAPI_ACC_DOCUMENT_POST (Tax jurisdiction allocation not calculated properly)
    4.. BAPI_ACC_GL_POSTING_POST (No tax line items allowed for this BAPI)

  • User-Exit for changing Sales Document Number - Urgent

    Hi Experts ,
                     Please suggest me the <b>User Exit for changing Sales Document Number.</b>
    thanks,
    Jayesh<b></b>

    hi jayesh,
    chech this exit-----EXIT_SAPFV45S_002.
    this exit's description says " Change Sales Document Using Configuration".
    Other available exits are
    SDAPO001            Activating Sourcing Subitem Quantity Propagation
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0001            Determine alternative materials for product selection
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing plan
    Enter these exits name in SMOD transaction and select components. u can find all the user exits available for this exit name.
    Reward me if useful..........
    Harimanjesh AN

Maybe you are looking for

  • How do i set my mac to boot into ios and not windows

    After having used Bootcamp to install windows8.1. When i restart the mac it automatically boots into windows, unless i use the option key to choose mac-ios. I require mac-ios on a daily basis so I want to change this so that the computer automaticall

  • Not a group by expression error

    1st column is status codes :StatusCode 2nd column is thier defnition :Definition 3rd column is no of times each code occured in those records :Notimes Example: 302 , moved data, 1260 And now i want to know the % of each code occurence. select status_

  • Unclear to me: difference between Instance - Publication ?

    Hi experts I'm rather new to BusinessObjects. I have Edge BO XI 3.1 SP3 installed. After reading the manual, its not completely clear to me what the difference is between a schedule and a publication. When I go to properties of lets say a WebI report

  • Material Ledger with Split Valuation Type 'X' with FIFO

    Hi,    The requirement from the customer is to have Raw Material, Intermediary and Finished Products valued at Actuals and on a FIFO basis. According to me, this is possible only if we activate Material Ledger, have batch split valuation u2018Xu2019

  • Backing Up:  Full iPhoto Fill/Folder or just Original & Modified files?

    If you're backing up to a server and you have unlimited storage space - would you: a.)  Copy your entire iPhoto Library file (which copies as an iPhoto Library Folder) with ALL of the Package Contents? - OR - b.)  Just copy over the Originals & Modif