How to transfer data in change log table of dso to z-table using abap code

Hi  can you please explain me how to transfer data in change log table of dso to z-table using abap code ,with out using Function module concept

PROGRAM NAME:   ZBW_DELTA_TO_GSTAR                                 **
report ZBW_DELTA_TO_GSTAR no standard page heading
                                 line-size 120
                                 line-count 75
                                 message-id ZBW_MSG_CLS.
tables:   ZGIV_DLTA_EBV_BB,
          ZGIV_DLTA_EM2_BL,
          ZGIV_DLTA_EM2_BK.
Selection Screen Definitions
SELECTION-SCREEN: BEGIN OF BLOCK INNER WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN: SKIP 1.
PARAMETERS:       EBVBB RADIOBUTTON GROUP ROLL,
                  EM2BL RADIOBUTTON GROUP ROLL,
                  EM2BK RADIOBUTTON GROUP ROLL.
SELECTION-SCREEN: END OF BLOCK INNER.
Data:  WS_UPDATE_FLAG  Type C,
       UCounter(9)      Type N,
       ICounter(9)      Type N.
DATA:  T_ZGIV_DLTA_EBV_BB Type Standard Table of ZGIV_DLTA_EBV_BB,
       s_ZGIV_DLTA_EBV_BB LIKE line of T_ZGIV_DLTA_EBV_BB.
DATA:  T_ZGIV_DLTA_EM2_BK Type Standard Table of ZGIV_DLTA_EM2_BK,
       s_ZGIV_DLTA_EM2_BK LIKE line of T_ZGIV_DLTA_EM2_BK.
DATA:  T_ZGIV_DLTA_EM2_BL Type Standard Table of ZGIV_DLTA_EM2_BL,
       s_ZGIV_DLTA_EM2_BL LIKE line of T_ZGIV_DLTA_EM2_BL.
Standard Internal Tables - Describe usage.
data: begin of i_AEPSD_O0140 occurs 0.
        include structure /BIC/AEPSD_O0140.
data: end of i_AEPSD_O0140.
data: begin of i_AEPSD_O0240 occurs 0.
        include structure /BIC/AEPSD_O0240.
data: end of i_AEPSD_O0240.
data: begin of i_AEPSD_O0340 occurs 0.
        include structure /BIC/AEPSD_O0340.
data: end of i_AEPSD_O0340.
data: begin of i_GIV_DLTA_EBV_BB occurs 0.
        include structure ZGIV_DLTA_EBV_BB.
data: end of i_GIV_DLTA_EBV_BB.
data: begin of i_GIV_DLTA_EM2_BK occurs 0.
        include structure ZGIV_DLTA_EM2_BK.
data: end of i_GIV_DLTA_EM2_BK.
data: begin of i_GIV_DLTA_EM2_BL occurs 0.
        include structure ZGIV_DLTA_EM2_BL.
data: end of i_GIV_DLTA_EM2_BL.
Miscellaneous Program Variables and Constants.
TOP-OF-PAGE
top-of-page.
START-OF-SELECTION
start-of-selection.
  Clear: i_GIV_DLTA_EBV_BB,
         i_GIV_DLTA_EM2_BK,
         i_GIV_DLTA_EM2_BL,
         UCounter, ICounter.
  IF EBVBB = 'X'.
    PERFORM 100_EXTRACT_EBV_BB_DELTA_RECS.
  ELSEIF EM2BK = 'X'.
    PERFORM 100_EXTRACT_EM2_BK_DELTA_RECS.
  ELSE.
    PERFORM 100_EXTRACT_EM2_BL_DELTA_RECS.
  ENDIF.
FORM 100_EXTRACT_EBV_BB_DELTA_RECS
FORM 100_EXTRACT_EBV_BB_DELTA_RECS.
  Refresh:   i_AEPSD_O0140,
             i_GIV_DLTA_EBV_BB.
  Clear:      UCounter, ICounter, s_ZGIV_DLTA_EBV_BB .
  Select * From /BIC/AEPSD_O0140
    Into TABLE i_AEPSD_O0140.
  IF SY-Subrc = 0.
    LOOP AT i_AEPSD_O0140.
      MOVE-CORRESPONDING i_AEPSD_O0140 TO s_ZGIV_DLTA_EBV_BB.
      MOVE SY-DATUM to s_ZGIV_DLTA_EBV_BB-create_dt.
      INSERT ZGIV_DLTA_EBV_BB FROM s_ZGIV_DLTA_EBV_BB.
      IF SY-Subrc = 0.
        ICounter = ICounter + 1.
      ELSE.
        UPDATE ZGIV_DLTA_EBV_BB FROM  s_ZGIV_DLTA_EBV_BB.
        IF SY-Subrc = 0.
          UCounter = UCounter + 1.
        ELSE.
          Message E067 with SY-DATUM ' ' SY-UZEIT ' '.
        ENDIF.
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDFORM.                    "100_EXTRACT_EBV_BB_DELTA_RECS
FORM 100_EXTRACT_EM2_BK_DELTA_RECS
FORM 100_EXTRACT_EM2_BK_DELTA_RECS.
Refresh:   i_AEPSD_O0240,
           i_GIV_DLTA_EM2_BK.
  Clear:      UCounter, ICounter, s_ZGIV_DLTA_EM2_BK .
  Select * From /BIC/AEPSD_O0240
    Into TABLE i_AEPSD_O0240.
  IF SY-Subrc = 0.
    LOOP AT i_AEPSD_O0240.
      MOVE-CORRESPONDING i_AEPSD_O0240 TO s_ZGIV_DLTA_EM2_BK.
      MOVE SY-DATUM to s_ZGIV_DLTA_EM2_BK-create_dt.
        INSERT ZGIV_DLTA_EM2_BK FROM s_ZGIV_DLTA_EM2_BK.
      IF SY-Subrc = 0.
        ICounter = ICounter + 1.
      ELSE.
        UPDATE ZGIV_DLTA_EM2_BK FROM  s_ZGIV_DLTA_EM2_BK.
        IF SY-Subrc = 0.
          UCounter = UCounter + 1.
        ELSE.
          Message E067 with SY-DATUM ' ' SY-UZEIT ' '.
        ENDIF.
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDFORM.                    "100_EXTRACT_EM2_BK_DELTA_RECS
FORM 100_EXTRACT_EM2_BL_DELTA_RECS
FORM 100_EXTRACT_EM2_BL_DELTA_RECS.
Refresh:   i_AEPSD_O0340,
           i_GIV_DLTA_EM2_BL.
  Clear:      UCounter, ICounter, s_ZGIV_DLTA_EM2_BL .
  Select * From /BIC/AEPSD_O0340
    Into TABLE i_AEPSD_O0340.
  IF SY-Subrc = 0.
    LOOP AT i_AEPSD_O0340.
      MOVE-CORRESPONDING i_AEPSD_O0340 TO s_ZGIV_DLTA_EM2_BL.
      MOVE SY-DATUM to s_ZGIV_DLTA_EM2_BL-create_dt.
        INSERT ZGIV_DLTA_EM2_BL FROM s_ZGIV_DLTA_EM2_BL.
      IF SY-Subrc = 0.
        ICounter = ICounter + 1.
      ELSE.
        UPDATE ZGIV_DLTA_EM2_BL FROM  s_ZGIV_DLTA_EM2_BL.
        IF SY-Subrc = 0.
          UCounter = UCounter + 1.
        ELSE.
          Message E067 with SY-DATUM ' ' SY-UZEIT ' '.
        ENDIF.
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDFORM.                    "100_EXTRACT_EM2_BL_DELTA_RECS
END-OF-SELECTION
end-of-selection.
  perform D1000_REPORT_DATA.
D1000_REPORT_DATA
form D1000_REPORT_DATA.
*Display the title of the program
  write: /25 SY-TITLE.
  skip.
Diaplay the details of the user and time
  write: /1 'Executed by', 15 SY-UNAME, 30 'Date',
  38 SY-DATUM, 53 'Time', 60 SY-UZEIT.
  skip 2.
  write: /  'Delta Records have been extracted  ',
         /   'Updates : ', UCounter,
         /   'Inserts : ', ICounter.
  skip.
  skip 3.
  write: /20 'End of the report'.
endform.                                           "D1000_REPORT_DATA
chgeck it out this also may hep you

Similar Messages

  • How to transfer data from macbook pro to an external hard drive, im using (WD 1TB 3.0) ???. I cannot copy anything from my mac to it not a single file.

    how to transfer data from macbook pro to an external hard drive, im using (WD 1TB 3.0) ???. I cannot copy anything from my mac to it not a single file.

    ok - since you'll be sharing it with a PC - connect it to your windows pc - then format from there - instead of NTFS format - choose exFAT.
    or, you can read the link below on how to do it in dos mode.
    http://answers.microsoft.com/en-us/windows/forum/windows_7-files/how-can-i-forma t-external-drive-in-exfat-not-in/0f6bf19a-19d6-4470-ae05-53ddf26bb476?msgId=1860 eae3-3488-4eea-8326-f87b89d9851b
    once you've formatted it - you can now use it in both your macbook and windows computer.

  • Deletion of data from change log table and PSA

    Hi,
    For a DSO  I want to delete data from "Chnage log table"  and " PSA Tabel".
    For the DSO manage screen I have seen " Environment-> " Delete changelog table" from this we can delete chnage log table data as per my understanding.
    at PSA Level Mange screen also I have seen " Environment-> " Delete changelog table" from this option also it deletes the data from change log table or it deletes data from PSA table?.
    if this option also deletes data from changelog table then how we can delete data from PSA table?
    Please clarify me

    Hi,
      I am not sure what are you referring to from your point "PSA Level Mange screen also I have seen " Environment-> " Delete changelog table". When ever you click on manage for your psa you will be routed to a popup where you can see all your requests in the PSA table & there after if you click on any single request you will get Environment menu option but there wotn be any change log deletion option available. Please check again? Right clicking on your data source will take you to the manage requests for PSA. You can selectively delete the requests as required.
    For DSO when you right click on manage you can directly find Delete change log data option in the Environment tab. there you can select the requests you want to delete.
    Also if you want to automate the deletion process then you can simply create a chain and include the steps for PSA deletion & change Log deletion accordingly.
    Also it is recommended to keep on clearing the PSA table & Chage log data at regular intervals as it saves the disk space & thus helping in performance optimization
    Please refer the below doc at SDN, it will be helpful for you in automating the process of change log deletion & PSA deletion.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02ba9e7-bb6f-2c10-09b4-e86b9fcbad41?QuickLink=index&overridelayout=true
    Hope it clears your doubts
    Thanks

  • Need suggestion to get data from change log table of ODS.

    Hello,
    There is a case where i am loading opportunity header data from header ODS and opportunity item data from item ODS in the opportunity cube.
    Status (1= OPEN, 2= WON ETC) of the opportunity are available only in header ODS and not in item ODS.
    While loading data from header ODS to cube, I am loading it directly but while loading data from item ODS to cube i am using active data table of header ODS as a lookup in the update rule from item ODS to cube. I am selecting status from the active data table of header ODS while loading data from item ODS to cube.
    Since active data table will have only after image records, there is some data mismatch in the report as i am selecting data from active data table of header ODS while loading data from item ODS to cube.
    I need to select data from Change log in order to get before image also instead of active data table in order to overcome this issue. Is there any way by which i can do selection from Change log instead of active data table as change logs are generated at run time.
    Please let me know if you have any suggestions.
    Regards,
    Sanjay Chaurasia.

    Hi,
    You can use the changelog table of the DSO.
    Right click manage the Header DSO, go to the contents tab and click Change Log table. There you can see the technical name of the Change Log table.
    In the update rule Routine, give the tech name of Change log table instead of Active table name.
    Hope it helps.
    Krishna

  • How to transfer data in table control in bdc

    hi
    how to transfer data in table control in bdc . I need the theory regarding this
    bye

    Hi,
    just check in the forum , there is many threads available to ur questions.
    Table control in BDC
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    You can even refer to these related threads
    bdc table control
    Re: table control in bdc
    table control in BDC
    Reward if helpful.
    Thanks
    Naveen khan

  • How to transfer data b/w remote Informix NTS 2000 db server to local MySql

    Hi friends,
    Please help me to find a way to transfer data from a remote infomix database to local MySql database.Using dbacess tool i can make a flat file and later transfer it to my local pc and load data to database.But i need to make a programe which will run 24*7 and after every 1/2 hr load data to local pc.
    How can i directly transfer or how to unload data to to flat file on that remote machine which i can get using FTP.When i send 'unload to abc.txt select * from .....' it always says syntax error.I seached on net and found that this statement is used by dbaccess to execute on database and is not a pure sql query.
    Also i am not able to get resultset on that specific table because it is always in transaction and i get error 'system can not get information from this table' .It seems that table is locked due to transactions being taking place.
    Can i access dbaccess using a java program,telnet or any way that i can get my work done.
    Pleeeeeeaaaaaaaase help me out..........
    Thanks in advance...........
    Rajneesh.

    Try to ask http://forums.mysql.com/list.php?104

  • How to transfer data from FPM_POWL_UIBB to FPM_FORM_UIBB

    Hi Team,
    How to transfer data from one UIBB (component is FPM_POWL_UIBB) to another UIBB ( Componenet is FPM_FORM_UIBB).
    I know the procedure how to transfer data from FPM_LIST_UIBB to FPM_FORM_UIBB using wiring concept, but from FPM_POWL_UIBB am unable to do that.
    Appreciate your quick response.
    Thanks in advance.
    Thanks,
    Satya.

    Hi Bruce,
    Thanks for quick response.
    I will explain my requirement in detail.
    IN FPM I have used  5 UIBB's ,
      1) FPM_POWL_UIBB with Custom component and its configuration
      2) FPM_FORM_UIBB which is a standard componet UIBB's their configurations and its feeder classes are as below,
                 EAMS_WDC_ORD_LONGTEXT_CFG       CL_EAMS_UI_FD_ORD_LTXT
                 EAMS_WDC_ORD_HEADER_CFG          CL_EAMS_UI_FD_ORD_HEADER
                 EAMS_WDC_ORD_RESPONSIB_CFG     CL_EAMS_UI_FD_ORD_HEADER
      In the above FPM application if I choose a record in FPM_POWL_UIBB it has to be appear in the respective standard UIBB's in edit mode so user can change according to his/her comfort and will save.
    I have tried Singleton method also but not able to transfer data as I got confused which interface I shoul use in singleton class , as I was working with FPM_POWL_UIBB I may not use IF_FPM_GUIBB_FORM.
    Please suggest me on this.
    Thanks,
    Satya.                  

  • [APD]: How to transfer data to SAP CRM?.

    Dear Expert,
    1. Do you know how to transfer data for APD to SAP CRM ??
    2. The one that i know that we can transfer attribute of Business Partner (0BPARTNER) to CRM.
    Can we transfer the data beyond attribute of 0BPARTNER? For example, data from ODS to ZTABLE on SAP CRM..
    I really need your guidance & suggestion.
    Many thanks all for your attention,
    Best regards,
    Niel.

    Hi,
    <i>1. EEWB in this case is used to create tables in CRM Systems. So once i've made it (the tables), I can see that tables on BW Systems (particularly when i'm creating transformation).</i>
    Yes you are correct.
    <i>
    2. The procedure that i should make sequently :
    a. [CRM Systems]: Create z-tables through tcode EEWB.
    Btw, do i make tables throught this t-code either in BW System & CRM System ?
    If yes, Should the project name in EEWB for both system has the similar name?
    b. [BW Systems]: Create APD.
    c. [BW Systems]: Create transformation in APD for mapping where you'll see the table created in CRM System.</i>
    a) correct
    You will make tables in CRM system.After the extension creation you can check it in the t-code SE12 in CRM system.
    b)by project name you mean the project you assign to the TR's????
    then it depends upon your system.SInce these are two different systems therfore you should create two different projects in the two systems and assign the projects accordingly.
    c) correct
    <i>An for others,
    i made project in EEWB then i choose the business object is ADS (Analytical Data Storage) .. => Do i correct in choosing the business object there?</i>
    yes.
    Yes this is I think a bug.I faced the same issue many times ... what you can do is try to deselect all the key figures and again select the keys.....this will help sometimes....after trying 2-3 times I think you will learn a way to come out of it:)
    In future need my help ...you are welcome.
    Thanks

  • How to transfer data from one client to another client

    Dear Experts,
    Please explain how to transfer data (Materials) from one client to another client?
    Thanks,
    Ajay Kumar

    Hi Ajay,
    Check any of below methods
    Refer thread http://scn.sap.com/thread/171981 where people use IDOCs for master data transfer.
    OR
    This is done by BASIS team, by client refresh or client copy. Check with your basis team for this and there is some predefined time when they plan this activity, and in most project they do it once in 3 months etc to get production environment in test system which helps to resolve issues of production by creating similar case in test system.
    Check below threads for more information
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/cleint-copy-vs-client-refresh-1377848
    http://basissap.blogspot.in/2008/05/what-is-client-copy.html
    OR
    You can download data from one client and upload in another through BDC or LSMW.
    Regards,
    Sharat

  • How  to transfer data from one system to another by datamart please give de

    how  to transfer data from one system to another by datamart please give details

    Hi Deba,
    Find the below SAP help doc which may help u...
    http://help.sap.com/saphelp_nw70/helpdata/en/12/43074208ae2a38e10000000a1550b0/frameset.htm
    Also find the below threads...
    Loading data from one cube to another cube.
    data copy from infocube to infocube in two different BW systems
    Delta when loading from ODS to ODS
    reg datamart
    Data mart flag
    Regards,
    KK.

  • How to transfer data from an account to a new account in the same mac

    How to transfer data from an account to a new account in the same mac (macbook)

    Search these forums for merge accounts and also peruse these:

  • How to extract data from info cube into an internal table using ABAP code

    HI
    Can Anyone plz suggest me
    How to extract data from info cube into an internal table using ABAP code like BAPI's or function modules.
    Thankx in advance
    regds
    AJAY

    HI Dinesh,
    Thankq for ur reply
    but i ahve already tried to use the function module.
    When I try to Use the function module RSDRI_INFOPOV_READ
    I get an information message "ERROR GENERATION TEST FRAME".
    can U plz tell me what could be the problem
    Bye
    AJAY

  • How to transfer data using the clipboard

    Does anyone know how to transfer data (string) from the clipboard to labview?
    I am trying to write C++ code using win32 API using the calls, OpenClipboard, Getclipboard and CloseClipboard functions. The problem is LV crashes when there is a call to the library function. Perhaps I am going about this the wrong way.
    Any ideas are appreciated.

    Perhaps this approach will give you the answer. I wrote a VI that uses the Win32 API directly. It calls OpenClipboard with the calling VI's window handle, then calls GetClipboard with the GW_TEXT constant to get a memory block handle. I lock the memory block with GlobalLock so other applications can't mess with it. I next call lstrcopynA , initializing a arg1 as a C String with 256 bytes and using the memory block handle as arg2, with the length of arg1 minus one as arg3. Your clipboard text is in the string output. Now call GlobalUnlock and CloseClipboard and you're done!
    Attachments:
    getclipboarddata.llb ‏168 KB

  • How to transfer data between planning functions in BPS

    Hi All,
    I have requirement, where user will enter the sales qty plan in manual planning function and need to read the zinfo object to distribute the sales qty accordingly to manufacturing plant and push into infocube.
    To fulfill above requirement, i'm thinking to create one manual plan and user will enter the total sales qty and create one more exit planning function to distribute the sales qty for each plant.
    For above approach, i need to get the data enter in mannual planning function to exit planning function.
    Can anyone let me know how to transfer data from one planning function to other planning function under same planning level and package.
    Thanks you,
    santosh.

    Hi Santosh,
    You can achieve the Distribute functionality using the Standard Planning Function for Distribute (Refer SAP Help for details).
    Moreover you would not have to do anything specifically to transfer data from one Planning Function to another. The application picks up the latest data records for processing whatever Function you are executing. If you want to execute a series of Planning Functions you could use a Planning sequence to achieve the same.
    Hope it helps

  • How to transfer data from ECC to CRM via IDocs (Clfmas01),

    Hi all,
    how to transfer data from ECC to CRM via IDocs (Clfmas01), that to material master data from ECC to Production master data in CRM.    
    Need Information regarding, how to upload file to CRM from ECC, through, IDocs......Plz help me...
    Edited by: khaja fareed on Jan 11, 2010 12:44 PM

    First of all push ECC data in to GTS server through T.code:/N/SAPSLL/MENU_LEGALR3. First click on Master data tab there enter customer/vendor number then execute.
    2-Go to document tab there enter Sales order no/PO number then execute it.
    Then go to GTS server in compliance management module you can get all the information.
    Regards
    Sitanshu Panigrahi

Maybe you are looking for

  • Display file content in Web Dynpro ABAP

    Hello, we would like to be able to display any file after having uploaded files using FileUpload ui  element in a web dynpro abap application. for microsoft word excel files, the OfficeControl ui element can be used and for  pdf documents the Interac

  • Since I lost windows explorer I am not able to copy and paste pictures on my emails using either photobucket or just pictres

    I send out flyers to around 100 plus people almost everyday. I have no problem forwarding someone Else's pictures but I can't copy and paste a picture into my emails with photobucket or my own pictures myself. I was able to do this with windows explo

  • Client Installation

    hi everyone, I want to install Oracle 10gr2 client on Microsoft windows server 2003. I have opened the official documentation for this, what Im confused about is the installation type i.e which type shall I choose, Instant Client Administrator Runtim

  • My songs on iphone are missing

    i purchadsed itunes match on my iphone and activated it, after this, all my songs on iphone just gone away!!!!! Where are my music?? It just deleted my music???

  • Create multiple sessions

    Basically, I have to create multiple sessions and sessionIDs on one server, and then pass it off to various clients based on their IP address. Is this possible (to transfer sessions like that)? How can I create multiple sessions on the server?