Logic needed Pls help

Hi
I have to add 'Upload excel file' option in Material consumption program. Current logic is Uploading Unix file. Can any one give me some idea pls.
following is my coding
PROGRAM ZMDM0081 MESSAGE-ID ZM.
TABLES: MARA.
* Resource file record structure
DATA: BEGIN OF RECORD,
        MATERIAL_NUMBER(10),
        PLANT(5),
        CORRECTED_VALUE_19(11),
        CORRECTED_VALUE_18(11),
        CORRECTED_VALUE_17(11),
        CORRECTED_VALUE_16(11),
        CORRECTED_VALUE_15(11),
        CORRECTED_VALUE_14(11),
        CORRECTED_VALUE_13(11),
        CORRECTED_VALUE_12(11),
        CORRECTED_VALUE_11(11),
        CORRECTED_VALUE_10(11),
        CORRECTED_VALUE_09(11),
        CORRECTED_VALUE_08(11),
        CORRECTED_VALUE_07(11),
        CORRECTED_VALUE_06(11),
        CORRECTED_VALUE_05(11),
        CORRECTED_VALUE_04(11),
        CORRECTED_VALUE_03(11),
        CORRECTED_VALUE_02(11),
        CORRECTED_VALUE_01(11),
      END OF RECORD.
* Working variables
DATA: RECORD_READ(6)   TYPE P,
      RECORD_INSERT(6) TYPE P,
      RECORD_OMIT(6)   TYPE P,
      MATERIAL_NUMBER  LIKE MARA-MATNR,
      G_BRGEW          LIKE MARA-BRGEW,
      N_NTGEW          LIKE MARA-NTGEW,
      PLANT            LIKE MARC-WERKS,
      REMARKS(50),
      FLAG(1),
      RECORD_FLAG(1),
      INTENSIFIED_FLAG(1),
      NUMBER(6)        TYPE P.
* Constant variables
CONSTANTS: VALID   VALUE '1',
           INVALID VALUE '0',
           ON      VALUE '1',
           OFF     VALUE '0'.
* Reporting groups
FIELD-GROUPS HEADER.
* Insert into groups
INSERT MATERIAL_NUMBER
       PLANT
       REMARKS
       INTO HEADER.
* BDC parameters
SELECTION-SCREEN BEGIN OF BLOCK ONE WITH FRAME TITLE TEXT-010.
PARAMETERS: FILE(30) TYPE C
                      DEFAULT '/export/remote/data.txt'
                      LOWER CASE
                      OBLIGATORY,
             SESSION  LIKE RL04I-MAPPE
                      OBLIGATORY
                      DEFAULT '8301_MM02',
                      UNAME LIKE SY-UNAME DEFAULT SY-UNAME.
SELECTION-SCREEN END OF BLOCK ONE.
* Data conversion parameters
SELECTION-SCREEN BEGIN OF BLOCK TWO WITH FRAME TITLE TEXT-020.
PARAMETERS MONTH(2) TYPE N DEFAULT 1.
SELECTION-SCREEN END OF BLOCK TWO.
* Notes to user
SELECTION-SCREEN BEGIN OF BLOCK THREE WITH FRAME TITLE TEXT-030.
SELECTION-SCREEN COMMENT /5(70) TEXT-040.
SELECTION-SCREEN COMMENT /5(70) TEXT-050.
SELECTION-SCREEN END OF BLOCK THREE.
MOVE UNAME TO SY-UNAME.
* Including SAP R/3 BDC customized include
INCLUDE ZSIN0001.
* Verifying the path & file name
AT SELECTION-SCREEN ON FILE.
  PERFORM RESOURCE_FILE_OPEN.
* Processing BDC
START-OF-SELECTION.
  PERFORM SESSION_OPEN.
  PERFORM SESSION_GENERATION.
  PERFORM SESSION_CLOSE.
  CLOSE DATASET FILE.
* Printing execution report
END-OF-SELECTION.
  SKIP.
  WRITE  /15 'BDC & SYSTEM PARAMETERS -' COLOR 3.
  SKIP.
  WRITE: /15 'Resource path & filename ..........', FILE,
         /15 'Session name ......................', SESSION,
         /15 'ABAP/4 Program name ...............', SY-REPID,
         /15 'Client ............................', SY-MANDT,
         /15 'SAP System ID .....................', SY-SYSID,
         /15 'SAP Release .......................', SY-SAPRL,
         /15 'Host ..............................', SY-HOST,
         /15 'Operating system ..................', SY-OPSYS,
         /15 'Database system ...................', SY-DBSYS,
         /15 'User ID ...........................', SY-UNAME,
         /15 'Date ..............................', SY-DATUM,
         /15 'Time ..............................', SY-UZEIT.
  SKIP 3.
  WRITE  /15 'DATA CONVERSION DEFAULT PARAMETERS -' COLOR 3.
  SKIP.
  WRITE: /15 'Start at previous month ............', MONTH.
  SKIP 3.
  WRITE  /15 'EXECUTION REPORT -' COLOR 3.
  SKIP.
  WRITE: /15 'Total records read form file ......', RECORD_READ,
         /15 'Total records insert to BDC .......', RECORD_INSERT,
         /15 'Total records omitted .............', RECORD_OMIT.
  NEW-PAGE.
  SORT.
  LOOP.
    ADD 1 TO NUMBER.
    IF INTENSIFIED_FLAG EQ ON.
      FORMAT COLOR 2 INTENSIFIED ON.
      MOVE OFF TO INTENSIFIED_FLAG.
    ELSE.
      FORMAT COLOR 2 INTENSIFIED OFF.
      MOVE ON TO INTENSIFIED_FLAG.
    ENDIF.
    WRITE: /1 NUMBER, MATERIAL_NUMBER, PLANT, REMARKS.
    POSITION SY-LINSZ.
    WRITE ' '.
  ENDLOOP.
* Reading resource file and generating BDC session
FORM SESSION_GENERATION.
  DO.
    READ DATASET FILE INTO RECORD.
    IF SY-SUBRC NE 0 OR RECORD IS INITIAL.
      EXIT.
    ENDIF.
    ADD 1 TO RECORD_READ.
    PERFORM RECORD_CONDENSATION.
    PERFORM RECORD_VERIFICATION.
    CHECK RECORD_FLAG EQ VALID.
    REFRESH BDCDATA.
    PERFORM SCREEN_SEQUENCE.
    PERFORM BDC_TRANSACTION USING 'MM02'.
    IF SY-SUBRC EQ 0 .
      ADD 1 TO RECORD_INSERT.
    ELSE.
      ADD 1 TO RECORD_OMIT.
    ENDIF.
  ENDDO.
ENDFORM.                    "SESSION_GENERATION
* Condensing the record fields
FORM RECORD_CONDENSATION.
  CONDENSE: RECORD-MATERIAL_NUMBER,
            RECORD-PLANT,
            RECORD-CORRECTED_VALUE_19,
            RECORD-CORRECTED_VALUE_18,
            RECORD-CORRECTED_VALUE_17,
            RECORD-CORRECTED_VALUE_16,
            RECORD-CORRECTED_VALUE_15,
            RECORD-CORRECTED_VALUE_14,
            RECORD-CORRECTED_VALUE_13,
            RECORD-CORRECTED_VALUE_12,
            RECORD-CORRECTED_VALUE_11,
            RECORD-CORRECTED_VALUE_10,
            RECORD-CORRECTED_VALUE_09,
            RECORD-CORRECTED_VALUE_08,
            RECORD-CORRECTED_VALUE_07,
            RECORD-CORRECTED_VALUE_06,
            RECORD-CORRECTED_VALUE_05,
            RECORD-CORRECTED_VALUE_04,
            RECORD-CORRECTED_VALUE_03,
            RECORD-CORRECTED_VALUE_02,
            RECORD-CORRECTED_VALUE_01.
ENDFORM.                    "RECORD_CONDENSATION
* Verifying record fields
FORM RECORD_VERIFICATION.
  MOVE VALID TO RECORD_FLAG.
  UNPACK RECORD-MATERIAL_NUMBER TO MATERIAL_NUMBER.
  SELECT SINGLE * FROM MARA
                      WHERE MATNR EQ MATERIAL_NUMBER.
  IF SY-SUBRC NE 0.
    ADD 1 TO RECORD_OMIT.
    MOVE: RECORD-PLANT TO PLANT,
          TEXT-060     TO REMARKS,
          INVALID      TO RECORD_FLAG.
    EXTRACT HEADER.
    EXIT.
  ELSE.
    IF MARA-NTGEW > MARA-BRGEW.     "add to check for net weight > grow
      MOVE '1' TO FLAG.
    ELSE.
      MOVE ' ' TO FLAG.
    ENDIF.
  ENDIF.
  MOVE RECORD-PLANT TO PLANT.
  SELECT SINGLE MATNR WERKS INTO  (PLANT, MATERIAL_NUMBER)
                            FROM  ('MARC')
                            WHERE MATNR EQ MATERIAL_NUMBER
                            AND   WERKS EQ PLANT.
  IF SY-SUBRC NE 0.
    ADD 1 TO RECORD_OMIT.
    MOVE: TEXT-070 TO REMARKS,
          INVALID  TO RECORD_FLAG.
    EXTRACT HEADER.
  ENDIF.
ENDFORM.                    "RECORD_VERIFICATION
* Performing the screen sequence
FORM SCREEN_SEQUENCE.
  PERFORM SCREEN_SAPLMGMM_0060.
  PERFORM SCREEN_SAPLMGMM_0070.
  PERFORM SCREEN_SAPLMGMM_3005.
  PERFORM SCREEN_SAPLMGMM_0081.
  PERFORM SCREEN_SAPLMGMM_3006.
  PERFORM SCREEN_SAPLMGMM_3110.
ENDFORM.                    "SCREEN_SEQUENCE
* Change Material: Initial Screen
FORM SCREEN_SAPLMGMM_0060.
  PERFORM BDC_DYNPRO USING 'SAPLMGMM'   '0060'.
  PERFORM BDC_FIELD  USING 'RMMG1-MATNR' RECORD-MATERIAL_NUMBER.
  PERFORM BDC_FIELD  USING 'BDC_OKCODE'  '/5'. " Select view(s)
ENDFORM.                    "SCREEN_SAPLMGMM_0060
* Select view(s)
FORM SCREEN_SAPLMGMM_0070.
  PERFORM BDC_DYNPRO USING 'SAPLMGMM'            '0070'.
  PERFORM BDC_FIELD  USING 'MSICHTAUSW-KZSEL(01)' 'X'.
  PERFORM BDC_FIELD  USING 'BDC_OKCODE'           '/0'. " Enter
ENDFORM.                    "SCREEN_SAPLMGMM_0070
* Change Material: Basic data
FORM SCREEN_SAPLMGMM_3005.
  PERFORM BDC_DYNPRO USING 'SAPLMGMM'   '3005'.
  PERFORM BDC_FIELD  USING 'BDC_OKCODE' 'SP08'.             " MRP 1
  IF FLAG EQ '1'.
    PERFORM BDC_DYNPRO USING 'SAPLMGMM'   '3005'.
    PERFORM BDC_FIELD  USING 'BDC_OKCODE'           '/0'.
  ENDIF.
ENDFORM.                    "SCREEN_SAPLMGMM_3005
* Organizational levels
FORM SCREEN_SAPLMGMM_0081.
  PERFORM BDC_DYNPRO USING 'SAPLMGMM'    '0081'.
  PERFORM BDC_FIELD  USING 'RMMG1-WERKS' RECORD-PLANT.
  PERFORM BDC_FIELD  USING 'BDC_OKCODE'  '=ENTR'.  "Continue
ENDFORM.                    "SCREEN_SAPLMGMM_0081
* Change Material: MRP 1
FORM SCREEN_SAPLMGMM_3006.
  PERFORM BDC_DYNPRO USING 'SAPLMGMM'   '3006'.
  PERFORM BDC_FIELD  USING 'BDC_OKCODE' 'ZU11'. " Consumption
ENDFORM.                    "SCREEN_SAPLMGMM_3006
* Change Material: Consumption
FORM SCREEN_SAPLMGMM_3110.
  CONSTANTS: PREVIOUS_MONTH VALUE 'X',
             THIS_MONTH     VALUE ' '.
  DATA: ROW_POSITION(2)      TYPE N VALUE 0,
        WS_POSITION(2)       TYPE C,
        FIELDNAME            LIKE BDCDATA-FNAM,
        CONSUMPTION_QUANTITY LIKE RECORD-CORRECTED_VALUE_01.
  PERFORM BDC_DYNPRO USING 'SAPLMGMM' '3110'.
*  if month eq previous_month.
*    move 1 to row_position.
*  elseif month eq this_month.
*    move 0 to row_position.
*  endif.
  MOVE MONTH TO ROW_POSITION.
  DO 19 TIMES VARYING CONSUMPTION_QUANTITY
              FROM RECORD-CORRECTED_VALUE_01
              NEXT RECORD-CORRECTED_VALUE_02.
    IF ROW_POSITION GT 11.
      MOVE 1 TO ROW_POSITION.
      PERFORM BDC_FIELD  USING 'BDC_OKCODE' 'VWNP'. " Page down
      PERFORM BDC_DYNPRO USING 'SAPLMGMM'   '3110'.
    ENDIF.
    UNPACK ROW_POSITION TO WS_POSITION.
    CONCATENATE 'RM03M-VBWRT(' WS_POSITION ')' INTO FIELDNAME.
    IF CONSUMPTION_QUANTITY+0(1) EQ '-'.
      SHIFT CONSUMPTION_QUANTITY LEFT BY 1 PLACES.
      CONCATENATE CONSUMPTION_QUANTITY '-' INTO CONSUMPTION_QUANTITY.
    ENDIF.
    PERFORM BDC_FIELD USING FIELDNAME CONSUMPTION_QUANTITY.
    ADD 1 TO ROW_POSITION.
  ENDDO.
  PERFORM BDC_DYNPRO USING 'SAPLMGMM' '3110'.
  PERFORM BDC_FIELD  USING 'BDC_OKCODE' '/11'. " Save
ENDFORM.                    "SCREEN_SAPLMGMM_3110
Include Program
* BDC data table and record structure defination
DATA BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
* Opening a resource file
FORM RESOURCE_FILE_OPEN.
  DATA ERROR_MESSAGE(40).
*Begin of changes Mod01
*  OPEN DATASET FILE FOR INPUT IN TEXT MODE MESSAGE ERROR_MESSAGE.
  OPEN DATASET FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT MESSAGE
                                                      ERROR_MESSAGE.
*End of changes Mod01
  IF SY-SUBRC NE 0.
    MESSAGE E000 WITH FILE ERROR_MESSAGE.
  ENDIF.
ENDFORM.
* Opening of BDC session
FORM SESSION_OPEN.
  CALL FUNCTION 'BDC_OPEN_GROUP'
       EXPORTING  CLIENT              = SY-MANDT
                  DEST                = SY-HOST
                  GROUP               = SESSION
                  USER                = SY-UNAME
                  KEEP                = 'X'
       EXCEPTIONS CLIENT_INVALID      = 01
                  DESTINATION_INVALID = 02
                  GROUP_INVALID       = 03
                  HOLDDATE_INVALID    = 04
                  INTERNAL_ERROR      = 05
                  QUEUE_ERROR         = 06
                  RUNNING             = 07
                  USER_INVALID        = 08.
  CASE SY-SUBRC.
    WHEN 01. MESSAGE E001 WITH SY-MANDT.
    WHEN 02. MESSAGE E002.
    WHEN 03. MESSAGE E003.
    WHEN 04. MESSAGE E004.
    WHEN 05. MESSAGE E005.
    WHEN 06. MESSAGE E006.
    WHEN 07. MESSAGE E007.
    WHEN 08. MESSAGE E007.
  ENDCASE.
ENDFORM.
* Closing BDC session
FORM SESSION_CLOSE.
  CALL FUNCTION 'BDC_CLOSE_GROUP'
    EXCEPTIONS NOT_OPEN    = 01
               QUEUE_ERROR = 02.
  CASE SY-SUBRC.
    WHEN 01. MESSAGE E009.
    WHEN 02. MESSAGE E010.
  ENDCASE.
ENDFORM.
* Inserting data into BDC
FORM BDC_TRANSACTION USING TRANSACTION_CODE.
  CALL FUNCTION 'BDC_INSERT'
       EXPORTING  TCODE          = TRANSACTION_CODE
       TABLES     DYNPROTAB      = BDCDATA
       EXCEPTIONS INTERNAL_ERROR = 1
                  NOT_OPEN       = 2
                  QUEUE_ERROR    = 3
                  TCODE_INVALID  = 4
                  OTHERS         = 5.
ENDFORM.
* Insert program name & screen number
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
  CLEAR BDCDATA.
  MOVE: PROGRAM TO BDCDATA-PROGRAM,
        DYNPRO  TO BDCDATA-DYNPRO,
        'X'     TO BDCDATA-DYNBEGIN.
  APPEND BDCDATA.
ENDFORM.
* Inserting field name/BDC_OKCODE/BDC_CUESOR and value
FORM BDC_FIELD USING FNAM FVAL.
  CLEAR BDCDATA.
  MOVE: FNAM TO BDCDATA-FNAM,
        FVAL TO BDCDATA-FVAL.
  APPEND BDCDATA.
ENDFORM.

i have changed the selection screen as follows
SELECTION-SCREEN BEGIN OF BLOCK one WITH FRAME TITLE text-010.
*                                                          "1)
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS p_unix RADIOBUTTON GROUP rad1 .                 "
SELECTION-SCREEN COMMENT 5(26) text-008.
SELECTION-SCREEN POSITION 33.                              "
PARAMETERS: file(128) TYPE c
                      DEFAULT '/export/remote/data.txt' LOWER CASE.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS p_xls RADIOBUTTON GROUP rad1 .                 "excel file
SELECTION-SCREEN COMMENT 5(26) text-009.
SELECTION-SCREEN POSITION 33.                              "
PARAMETERS: filf(128).
SELECTION-SCREEN END OF LINE.
*>>
*PARAMETERS: file(128) TYPE c
*                      DEFAULT '/export/remote/data.txt' LOWER CASE OBLIGATORY,
PARAMETERS:  session  LIKE rl04i-mappe OBLIGATORY
                      DEFAULT '8301_MM02',
             uname LIKE sy-uname DEFAULT sy-uname.
SELECTION-SCREEN END OF BLOCK one.
* Data conversion parameters
SELECTION-SCREEN BEGIN OF BLOCK two WITH FRAME TITLE text-020.
PARAMETERS month(2) TYPE n DEFAULT 1.
SELECTION-SCREEN END OF BLOCK two.
* Notes to user
SELECTION-SCREEN BEGIN OF BLOCK three WITH FRAME TITLE text-030.
SELECTION-SCREEN COMMENT /5(70) text-040.
SELECTION-SCREEN COMMENT /5(70) text-050.
SELECTION-SCREEN END OF BLOCK three.

Similar Messages

  • Logic needed - pls help me urgent

    Hi
    p_werks , p_vstel, s_vbeln are my selection screen.
    I want to extract following fields into one internal table.
    How to extract the fields using inner join or outer join?
    LIKP  ---  vkorg,vstel, kunag, lfdat,wadat,lifnr
    LIPS  ---  vbeln,posnr,werks,matnr,lfimg,meins,
    VBKD ---  bstkd, posex_e  (vbkd -vbeln = lips-vgbel)
    sydatum, ernam,rundate, runtime.
    Pls help me

    hi,
    Select vkorg vstel  kunag lfdat wadat lifnr from likp into table t_likp where
    Vbeln = p_vbeln and werks = p_werks.
    If not t_likp [] is initial.
    Select vbeln posnr werks matnr lfimg meins into table t_lips fronm lips  for all entries in table t_likp where vbeln = t_likp-vbeln.
    Endif.
    If not t_lips [] not initial.
    Select bstkd  posex_e into table t_vbkd from vbkd for all entries in t_lips where vgbel = t_lips-vbeln.
    Endif.
    check with this code.
    Regards,
    Narasimha
    Edited by: narasimha marella on Jun 11, 2008 6:14 AM
    Edited by: narasimha marella on Jun 11, 2008 6:18 AM

  • Logic needed pls...

    Hi,
         In my ALV report i need to display some data on top of page depending on the selection criterian. everything is working fine, but there is one field which has four check boxes. I need to display these (checked) checkboxes description on top of page. for example, if first and second checked only those two shld be displayed. if first and last only those two and if all are checked, all check boxes description should be displayed on top of page. Any easy way to acheive this..pls helpme....
            Thanks
            Ram.

    Hi Santhosh,
    Is that field (with 4 check boxes) belonging to selection screen or ALV?
    If it is from selection screen then we have to follow Bujji's suggestion.
    we need to check whether first check box is checked or not if it is yes display its description using event print_top_of_page of cl_gui_alv_grid..
    same for remaining three check boxes.
    here combination check is not necessary i think.U r saying that individual description of check boxes has to display.right.
    Hope this will helpful.
    Edited by: sushama Vivek on Jun 3, 2008 12:15 PM

  • Urgent help needs - pls help me

    i have four group in my template.
    each group have subtotal at the end of it's group.
    after each group total, i need to display total (which is differance between current group and previous) right below of group total.
    and this difference need to show from second group.
    example -
    Group 1 Year
    A ( total amount for Group 1)
    Group 2 Year
    B ( total amount for Group 2 )
    Total differance C (which is B - A )
    Group 3 Year
    D ( total amount for Group 3 )
    Total differance E ( which is D - C)
    Group 4 Year
    F ( total amount for Group 4)
    total difference G (which is F - E)
    G G1
              G G2
    G 999.00E
    G1
    G 999.00
    <?xdoxslt:set_variable($_XDOCTX,’px’,xdoxslt:get_variable($_XDOCTX, 'y'))?><?xdoxslt:set_variable($_XDOCTX,’y’,xdoxslt:get_variable($_XDOCTX, 'x'))?><?xdoxslt:set_variable($_XDOCTX,’x’,sum ($G1[(./FISCAL_YEAR=current()/FISCAL_YEAR)]/AMOUNT))?>
    E
    <?xdoxslt:set_variable($_XDOCTX,’py’,xdoxslt:get_variable($_XDOCTX, 'y'))?>
    Val is
    Px is <?xdoxslt:get_variable($_XDOCTX, 'px')?>
    <?xdoxslt:get_variable($_XDOCTX, 'x')?>
    <?xdoxslt:get_variable($_XDOCTX, 'y')?>
    Diff is
    <?xdofx:xdoxslt:get_variable($_XDOCTX, 'y')-xdoxslt:get_variable($_XDOCTX, 'px')?>E
              E
    above code does not give me subtraction.
    in above code pls omit that --- http -- in code but mistake it display in post.
    any help is greatly appreciated.
    thanks.
    Edited by: user6767417 on Apr 3, 2009 5:02 PM

    Hi ,
    thanksfor reply me.
    your suggestion is working.
    but now it gives me differance between two column of same group.
    but i need differance between same column of differant group ?
    ant kind of helpis greatly apprecidated.
    thanks.

  • Problem on logic need ur help so bad

    hi im kindda new to logic and i hope my english's fine ... i got logic on my macbook pro for like only 2 weeks
    im runnin it in some big show based on the logic project , every time i tried it in home nothing bad happend but when i get to large stages with bass vibrations after 2 or 3 songs i get "disk too slow" problem and after clickin 3-4 times "continue" logic seems to be ok .
    i found this thread
    https://discussions.apple.com/thread/2609440?start=0&tstart=0
    and still got no answer and i relly gotta solve this problem .
    shud i buy an external drive ? shud i try isolating my mac by cases , foams and stuff ?
    what do i do ?
    thanks

    well if u wanna know , after i got no replys i found a thread talkin about disabling the "sms" thing on mac ,
    it workd like a magic just got back from 2 gigs in one night logic was workin perfect , this "disk too slow" error is gone and i can run multitrack and record in any enviroment . hope this help's other people in the future coz this problem was a real pain in the *** .

  • DropBox v TimeCapsule (advice needed, pls help)

    Hi everyone,
    I need advice on how to set up my home system in terms of using Dropbox, Hard drive usage and home networking.
    Please bear with me while i explain my situation. I run my own Graphic Design business from a home office, I have an 27" iMac and i have a 13" Alu Late 2008 Macbook which i use for my work. I mainly work on my iMac most of the time and then use my macbook in evenings (in front of TV) and when out of the house/office. My iMac has a 1TB hard drive and my Macbook has a 160GB hard drive. I also have a 3TB Lacie external hard drive storing all of my files.
    I have a Pro Dropbox account so i have just over a 1TB of storage there too. My plan was to use the Dropbox as my main file storage so it syncs all the files on bot macs and i don't have to waste time dragging files to different backups (i can also use files remotely when i am on my Macbook out of the office or downstairs etc), get a program like Crash Plan to make a backup of everything and then have a physical copy on my Lacie drive just to ensure i am safe every which way.
    The problem i have is that my macbook's hard drive is only 160gb and as i use a lot of large files my dropbox just eats up my hard drive and i can't use all the files i have on my dropbox. I have tried to think of lots of ways around syncing but the way Dropbox works is exactly what i want to do. I have considered changing my plan and buying a TimeCapsule and use that as a home network then use Dropbox if i need anything out of the house. So i suppose my questions are:
    Do i buy a TC and use that for my home network to save on hard drive space and mean i can work in any room but still sync?
    Or, do i buy a new 1TB hard drive for my 2008 macbook so Dropbox can save on there and sync files?
    Or, buy a new macbook pro (only problem is the new ones use a flash drive which won't hold the dropbox), i can really afford this option either at the moment?
    Please help me out guys as i need things to just work as i am pretty busy and can't decide which to do to help me out...any suggestions welcome.

    Once you boot a computer from SSD you will never go back to mechanical disks ... at least for boot.
    Buy the biggest you can afford.. 500GB SSD are now around $270 here.. you don't need the best.. buy the samsung 840 evo. It might not last as long as the more expensive pro series but that does mean much for a 2008 laptop. You are stretching it already.
    I have a 256GB SSD in a 2011 MBP 15" with a high res screen I got on ebay cheap. It is a great machine.. or was until i put Mavericks on it.. I will take it back to Mountain Lion when I get a chance. I run an i7 mini also 2011 with the small video card they had..
    I got it cheap from ebay.. of course.. It has a 256GB sandisk drive.
      Media Name: SanDisk SDSSDH2256G Media
    I just got another one of these with the original 750GB hard disk and it feels so so slow.. you end up totally spoiled.. everything opens and closes instantly in the mini with SSD and the other one is so so slow. It is getting the new 500GB SSD.
    I have done a few of these now for friends.. it does end up costing more than a current model mini.. but other than missing USB3 which is a pity.. they are a great little computer. And with SSD only near totally silent.. it occasionally spins the fan up if it has been running hard for a while. I am getting old and grumpy and noisy rattling computer fans are more than I can stand.
    I have done some research into the Seagate SSHD and it seems that it isn't ideal for people looking to crunch larger files which would probably be me
    Yes, I warned you the SSHD is not much good for very large files.. Even so a modern 7200rpm drive should work a lot better.
    Note the DVD drive will be sata 1 so yes the SSD should replace the current hdd.

  • TMS Configuration Needed Pls Help

    Hi,
    I have configured already a three system configuration in TMS.
    Dev>qua>pro.
    Now I want to include a Preproduction System in between qua and Pro.
    How to configure as i have already configured as 3 system configuration..
    Regards,
    Saravanan.

    Saravanan,
    (Preprod system ) --> STMS -- Other Configuration -- Enter Domain Controller server name for Target Host.
    Give the system number.
    Now , Enter in to Domain Controller  --- STMS --- System Overview -- Click on waiting to be included --- Hit activate icon (approve)
    Then you will see a system screen successfully added..
    Double click on newly system added and in the screen enter Transport screen group "Name" and hit save.
    Hope this will help you.
    Thanks
    Kalyan

  • Logic needed and help needed in BAPI..

    Hi,
    I am looking 2 BAPI's for posting an accounting doc in GL.
    BAPI_ACC_DOCUMENT_POST
    BAPI_ACC_GL_POSTING_POST
    But in the above mentioned BAPI's I dont find any posting key field.
    Here my scenario is to use the posting keys 40 and 50 for posting's.
    Can any body suggest me how to approach for this.
    Thanks in Advance.
    Message was edited by: KDeepak
    Message was edited by: KDeepak
    Message was edited by: KDeepak

    Hi
    I changed my code to create three documents:
    TABLES: bapiache09, mard.
    DATA: t_items  LIKE STANDARD TABLE OF bapiacgl09 WITH HEADER LINE,
          t_amount LIKE STANDARD TABLE OF bapiaccr09 WITH HEADER LINE,
          t_result LIKE STANDARD TABLE OF bapiret2   WITH HEADER LINE.
    DATA: belnr TYPE belnr_d,
          gjahr TYPE gjahr.
    DATA times TYPE n.
    DO 3 TIMES.
    Header Data
      bapiache09-comp_code   = 'ZN01'.
      bapiache09-doc_date    = sy-datum.
      bapiache09-pstng_date  = sy-datum.
      bapiache09-doc_type    = 'PV'.
    bapiache09-ref_doc_no  = 'BAPI Test'.
      bapiache09-username    = sy-uname.
      bapiache09-bus_act     = 'RFBU'.
      MOVE sy-index TO times.
      CONCATENATE 'BAPI TEST N.' times INTO bapiache09-ref_doc_no.
      REFRESH t_items.
    First Item
      MOVE 1 TO t_items-itemno_acc.
    Account number
      t_items-gl_account = '0012440130'.
    The posting key are 40/50 by default, if you need different keys, set
    the transaction business code here: check hits of table T030B to see
    the link between transaction and posting keys
    *accountgl-acct_key   = 'ACC'. <----
      APPEND t_items.
    Second Item
      MOVE 2 TO t_items-itemno_acc.
    Account number
      t_items-gl_account = '0012440140'.
    The posting key are 40/50 by default, if you need different keys, set
    the transaction business code here: check hits of table T030B to see
    the link between transaction and posting keys
    *accountgl-acct_key   = 'ACC'. <----
      APPEND t_items.
      REFRESH t_amount.
    Set amount
      MOVE 1 TO t_amount-itemno_acc.
      t_amount-currency = 'EUR'.
      MOVE 1000 TO t_amount-amt_doccur.
      APPEND t_amount.
      MOVE 2 TO t_amount-itemno_acc.
      t_amount-currency = 'EUR'.
      MOVE 1000 TO t_amount-amt_doccur.
      t_amount-amt_doccur = t_amount-amt_doccur * -1.
      APPEND t_amount.
      REFRESH t_result.
    check posting
      CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
        EXPORTING
          documentheader = bapiache09
        TABLES
          accountgl      = t_items
          currencyamount = t_amount
          return         = t_result.
      LOOP AT t_result WHERE ( type = 'E' OR
                               type = 'A' ).
        EXIT.
      ENDLOOP.
      IF sy-subrc <> 0.
        REFRESH t_result.
        CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
          EXPORTING
            documentheader = bapiache09
          TABLES
            accountgl      = t_items
            currencyamount = t_amount
            return         = t_result.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.
    Print Message
      LOOP AT t_result.
        WRITE: t_result-message.
    Get Number
        IF t_result-id     = 'RW' AND
           t_result-number = '605'.
          belnr = t_result-message_v2(10).
          gjahr = t_result-message_v2+14(4).
        ENDIF.
      ENDLOOP.
    ENDDO.
    Just as you can see, I insert my code into DO/ENDO cycle and so I re-call the BAPI three times.
    In this situazione I posted document 3 documents and the field AWKEY is correctly filled.
    Max

  • I have a gmail account and have been able to check my emails on both my PC and iPad. For some strange reasons I am not able to read my emails from my iPad. It says I cannot open another account which is not what I need.Pls help.THANKS!

    Reading my email from my iPad which is no longer allowing me to do. Thanks!

    Hey there palmierl,
    Welcome to Apple Support Communities.
    It sounds like there’s an issue sending and receiving emails from your Gmail account on your iPad. Take a look at the article linked below, the troubleshooting suggestions it provides will likely resolve the issue.
    Gmail account cannot get or send email in iOS - Apple Support
    Cheers,
    -Jason

  • Logic needed-plz help

    Hi Experts,
    i have a requirement to upload the sales orders that are changed on everyday to application server
    can u please guide me for this requirement
    how to set path for application server
    how can we handle the errors while uploading the file in application server
    Thanks
    Gopi

    Hi,
    Just search forum with OPEN DATASET.. you will find lots of sample code to store file on application server.
    Regards,
    Atish

  • Logic needed- urgent pls help

    Hi All
    following is my code. It_bseg table have the following records
    Bukrs    Blart             Aufnr             hkont                  amount
    010  |0001801059|     |0000461100|10-DE-080006|      31325.57|
    010  |0001801059|     |0000461100|10-DE-080007|      31325.57
    010  |0001801059|     |0000461100|10-DE-080008|      31325.58
    010  |0001801063|     |0000461100|10-ML-080010|        282.24
    010  |0004011697|     |0000461100|10-MC-082000|      10000.00
    I need all the records
    But i got the following records only
    Bukrs    Blart             Aufnr             hkont                  amount
    010  |0001801059|     |0000461100|10-DE-080006|      31325.57|
    010  |0001801063|     |0000461100|10-ML-080010|        282.24
    010  |0004011697|     |0000461100|10-MC-082000|      10000.00
    Pls help me.
    FORM get_data.
    Extract Data from BKPF table
      SELECT bukrs budat gjahr belnr monat blart waers
      INTO TABLE it_bkpf
      FROM bkpf
                      WHERE  bukrs = p_bukrs
                      AND    blart IN s_blart
                      AND    budat IN s_budat.
    SORT it_bkpf by belnr ascending.
      IF NOT it_bkpf[] IS INITIAL.
    Extract Data from BSEG table
        SELECT bukrs belnr werks hkont aufnr dmbtr sgtxt
        INTO TABLE it_bseg
        FROM bseg
        FOR ALL ENTRIES IN it_bkpf
        WHERE belnr = it_bkpf-belnr
        AND GJAHR =  it_bkpf-gjahr
      AND valut = it_bkpf-budat
        AND bukrs = p_bukrs
        AND werks = p_werks
        AND hkont IN  s_hkont
        AND aufnr IN  s_aufnr.
       AND shkzg = 'H'.
      ENDIF.
      SORT it_bseg by belnr ascending.
    DELETE ADJACENT DUPLICATES FROM it_bseg.
      LOOP AT it_bkpf.
        READ TABLE it_bseg WITH KEY
                                     belnr = it_bkpf-belnr BINARY SEARCH.
        IF sy-subrc = 0.
          it_detail-budat = it_bkpf-budat.
          it_detail-period = it_bkpf-budat+0(6).
          it_detail-hkont = it_bseg-hkont.
          it_detail-aufnr = it_bseg-aufnr.
          it_detail-sgtxt = it_bseg-sgtxt.
          it_detail-blart = it_bkpf-blart.
          it_detail-dmbtr = it_bseg-dmbtr.
          it_detail-waers = it_bkpf-waers.
          APPEND it_detail.
          CLEAR it_detail.
        ENDIF.
      ENDLOOP.

    Hello Kumar-
    Code below.
    FORM get_data.
    Extract Data from BKPF table
    SELECT bukrs budat gjahr belnr monat blart waers
    INTO TABLE it_bkpf
    FROM bkpf
    WHERE bukrs = p_bukrs
    AND blart IN s_blart
    AND budat IN s_budat.
    *SORT it_bkpf by belnr.
    IF NOT it_bkpf[] IS INITIAL.
    Extract Data from BSEG table
    SELECT bukrs belnr werks hkont aufnr dmbtr sgtxt
    INTO TABLE it_bseg
    FROM bseg
    FOR ALL ENTRIES IN it_bkpf
    WHERE belnr = it_bkpf-belnr
    AND GJAHR = it_bkpf-gjahr
    AND valut = it_bkpf-budat
    AND bukrs = p_bukrs not required
    AND werks = p_werks
    AND hkont IN s_hkont
    AND aufnr IN s_aufnr.
    AND shkzg = 'H'.
    ENDIF.
    SORT it_bseg by belnr .
    DELETE ADJACENT DUPLICATES FROM it_bseg. not required
    ***Changes done by srini
    loop at it_bseg into wa_bseg.
    collect wa_bseg into it_final.
    endloop.
    Cheers,
    ~Srini..

  • Pls help me writing logic:iterate tag in jsp page

    Hey guys , I am struck in retriving string p1,p2,p3 in the jsp page
    Pls have a look ata the code
    In DAO class:-
    StdprdDAO.java
    Public arrayList getPFP()
    ArrayList a = new ArrayList();
    While(rs.next())
         columnsVO colVO = new columnsVO;
         colVO.setProduct(rset.getString(1));//will store in String colProduct
         colVO.setFamily(rset.getString(2));//will store in String colFamily
    colVO.setPrice(rset.getString(3));//will store in String colPrice
    a.add(colVO);
    return a;
    In Action Class:-
    ArrayList final = null;
    StdprdDAO DAO = new stdprdDAO();
    final = DAO.getPFP();
    For(int i = 0; final !=null && i<final.size() ; i++)
         columnsVO VO = null;
         VO = (columnsVO)final.get(i);
         String p1 = (String) VO.getProduct();
         String p2 = (String) VO.getFamily();
         String p3 = (String) VO.getPrice();
         Request.setAttribute(“p1”,p1);
         Request.setAttribute(“p2”,p2);
         Request.setAttribute(“p3”,p3);
    In JSP PAGE:-
    id = “columnsVO”>
    <bean:write name = “columnsVO” property=”final” id=”p1”>
    but still I am doubting my above sentences in jsp page ,so pls correct them if possible.
    Instead of l;ogic:iterate can I use directly getattribute(“p1”)? <logic:iterate
    Still I m doubting I can not utilize columnsVO file in logic:iterate, I can utilize only formbean file.
    So pls help me with this.

    May I ask why have you done it?
    If it is related to printing of the list then it is of no use.But it IS of use. The objects compEmployees is in scope.
    It has the list we want to print out.
    With logic:iterate:
    <table>
         <tr>
           <th>Number</th>
           <th>Employee</th>
         </tr>
         <logic:iterate name="compEmployees" property="totalEmps" id="emp">
              <tr>
                <td>
                  <bean:write name="emp" property="empNo"/>
                </td>
                <td>
                  <bean:write name="emp" property="empName"/>
                </td>
              </tr>
         </logic:iterate>
    </table>or alternatively with JSTL and c:forEach
    <table>
         <tr>
           <th>Number</th>
           <th>Employee</th>
         </tr>
         <c:forEach items="${compEmployees.totalEmps}" var="emp">
              <tr>
                <td>
                  <c:out value="${emp.empNo}"/>
                </td>
                <td>
                  <c:out value="${emp.empName}"/>
                </td>
              </tr>
         </c:forEach>
    </table>Cheers,
    evnafets

  • How to Change the Default SSH Port from Terminal ? now showing default SSH Port 22 i need change it pls help me how can do

    How to Change the Default SSH Port from Terminal ?
    now showing default SSH Port 22 i need change it pls help me how can do

    How to Change the Default SSH Port from Terminal ?
    now showing default SSH Port 22 i need change it pls help me how can do

  • solved pls help needed in creating template

    hi frs
    i have created a template need some modification to be done my xml output looks like below
    off            hours              q1           q2          q3         avg
    aaa          10                    1            2            3            2
    bbb          20                    2            4             0           3i have done everything but my doubt is while creating avg
    to get average i used the following code
    <?(xdoxslt:get_variable($_XDOCTX,'Q1_COUNT')+xdoxslt:get_variable($_XDOCTX,'Q2_COUNT')+xdoxslt:get_variable($_XDOCTX,'Q3_COUNT') 
    +xdoxslt:get_variable($_XDOCTX,'Q4_COUNT')) div 3?> i have used div 3 but my requirement is like if any thing is 0 for ex if q1= 2 and q2=4 and q3=0 then my formula for avg is like below
    <?(xdoxslt:get_variable($_XDOCTX,'Q1_COUNT')+xdoxslt:get_variable($_XDOCTX,'Q2_COUNT')+xdoxslt:get_variable($_XDOCTX,'Q3_COUNT') 
    +xdoxslt:get_variable($_XDOCTX,'Q4_COUNT')) div 2?> like wise if we have values like q1=1 ,q2=0 ,q3=0
    then
    <?(xdoxslt:get_variable($_XDOCTX,'Q1_COUNT')+xdoxslt:get_variable($_XDOCTX,'Q2_COUNT')+xdoxslt:get_variable($_XDOCTX,'Q3_COUNT') 
    +xdoxslt:get_variable($_XDOCTX,'Q4_COUNT')) div 1?>how to get it.
    pls help.
    thanks
    basa
    Message was edited by:
    Badsha
    Message was edited by:
    Badsha
    Message was edited by:
    Badsha

    Hi,
    I dont know the solution for this, but heres a work arround
    //create new label some where else in the excel sheet as shown below
    Label lblcmbdata;
    for(int i=0; i<1000; i++)
                 lblcmbdata = new Label(75, i, (i+1)+" satish", format);
                 sheet1.addCell(lblcmbdata);
    }//set the validation range as shown below
    writableCellFeature.setDataValidationRange(75,0,75,1000);
    Label cmb = null;
    cmb = new Label(0, 1, "Select",format);
    cmb.setCellFeatures(writableCellFeature);
    sheet.addCell(cmb);this will create a combo list with 1000 values
    also you can keep the data to be populated in the different sheet in same workbook by creating a named range as below
    workbook.addNameArea("cmbdata", sheet1, 0, 0, 0, 1000);
    // then fill the data in sheet1
    Label lblcmbdata;
    for(int i=0; i<1000; i++)
                    lblcmbdata = new Label(0, i, (i+1)+" satish", format);
                    sheet1.addCell(lblcmbdata);
    //set the validation named range as below
    writableCellFeature.setDataValidationRange("cmbdata");
    Label cmb = null;
    cmb = new Label(0, 1, "Select",format);
    cmb.setCellFeatures(writableCellFeature);
    sheet.addCell(cmb);Thanks and Regards
    Satish

  • Can someone pls help me with java on my macbook pro because after i download the mountain lion java has died and i need java to see streaming quotes from stock market

    can someone pls help me with java on my macbook pro because after i download the mountain lion java has died and i need java to see streaming quotes from stock market

    Java is no longer included in Mac OS X by default. If you want Java, you will have to install it.
    However, note that you should think twice before installing Java for such a trivial need as looking at stock market quotes. There are other ways to get that information that don't involve Java, and using Java in your web browser is a HUGE security risk right now. Java has been vulnerable to attack almost constantly for the last year, and has become a very popular, frequently used method for getting malware installed via "drive-by downloads." You really, truly don't want to be using it. See:
    Java is vulnerable… Again?!
    http://java-0day.com

Maybe you are looking for