How can i take an excel sheet input into my report

Hi
I am having one report.In this the program should take an excel file as input.How can I implement logic for this.
Ex:  It will take external customer number u201CABCu201D  as input from excel sheet and give as output as SAP customer number u201C1000000"
Please let me know.

hi use GUI_UPLOAD with filename frm parameters
DATA:
    lv_tabix LIKE sy-tabix,
    lv_filet TYPE string.
*    LV_FILET LIKE rlgrap-filename.
  lv_filet = p_file.
* Upload data file into internal table
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                = lv_filet
      filetype                = 'ASC'
      has_field_separator     = 'X'
      read_by_line            = 'X'
      dat_mode                = ' '
    TABLES
      data_tab                = gi_upload
    EXCEPTIONS
      file_open_error         = 1
      file_read_error         = 2
      no_batch                = 3
      gui_refuse_filetransfer = 4
      invalid_type            = 5
      no_authority            = 6
      unknown_error           = 7
      bad_data_format         = 8
      header_not_allowed      = 9
      separator_not_allowed   = 10
      header_too_long         = 11
      unknown_dp_error        = 12
      access_denied           = 13
      dp_out_of_memory        = 14
      disk_full               = 15
      dp_timeout              = 16
      OTHERS                  = 17.
  IF sy-subrc <> 0.
* Data in P_FILE could not be uploaded.
    MESSAGE i010 WITH p_file.
    LEAVE LIST-PROCESSING.
  ENDIF.

Similar Messages

  • How can i take an excel sheet record as input into my report

    Hi
    I am having one object.I need to develop code for this.I can take excel sheet record as input.I thought it is some kind of BDC.But my TL told me that it is an enhancement.How can I start this object.
    1.If it is a BDC : I am very new to BDC.I need total description how to start and populate.
    2.If it is an enhancement : How can I take excel sheet record to input in to my object.
    Thanks & Regards,
    Aruna.

    It seems neither BDC nor Enhancement.
    See it could be some awkward process but definately would be Handy.
    First create one dummy program in that code you just Take Excel data by simple Upload FM for Excel,Than from this program Use Submit <report> via selection screen.
    Here <report> is your actual program.so you may need simultaneously control two program.
    But my TL told me
    ...But what is TL stands for?
    TL True Love
    TL Total Loss
    TL Turn Left
    TL Team Liquid  ??
    Cheers,
    Amit.

  • How can I make an Excel Sheet where I can tally my daily activities and make a graph of it?

    I want a simple excel sheet where in the columns I can have dates and in the rows I can have my activities and in the spaces between I can put a number like 1 or 2 or 5 indicating the number of hours spent that day on that activity.  Finally, I would
    want to be able to, using the hours data for the entire month for each activity, be able to create a pie chart breaking down how much time I spent on each activity.
    The issue is I do not know to rename rows and columns and I do not know how to format it all to ensure I can make a pie chart at the end comparing all of my activities.  
    Any help would be appreciated.  

    Hi,
    Do you mind sharing us a sample file here? It'll help us understand your request more cleanly.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How can I import an excel sheet and have it be functional in iOS Numbers?

    Pretty much exactly as title.  To summarize, I'm a kinesiologist and I've developed a pretty complex spreadsheet that enables me to program exercise prescriptions on the fly but I want to be able to take it with me more portably on my ipad air.  Unfortunately when I load the spreadsheet into numbers it wont recognize any of the drop down menus that are coded into the excel spreadsheet on my macbook.  Help? Thanks,
    Paul

    My apologies. Data Validation Tool didn't click at first. There isn't a data validation tool in numbers per se, but you can limit input in many cases using the cell formatting tool: http://help.apple.com/numbers/ipad/2.2/#/tan23393f3a
    Cells set up using Data Validation may very well not retain the Data Validation settings when converted to Numbers for iOS. The two formats seem to use different mechanisms to achieve this. Meaning that 1) you would likely need to re-format these cells once you have the spreadsheet in number, 2) if you export the spreadsheet to EXCEL, the drip downs may likely not work, leading to 3) if you intended process is move the file back and forth between Numbers and Excel, you may be in for a bit of grief.
    If you intent to simply leave the file in Numbers, you the link above to see how you may wish to format those cells. I think you will be able to achieve what you are looking to do.

  • Uploading  Excel sheet  data into internal table

    Hi All,
    I want to upload Excel file data into internal table. My problem is that my excel file  having more than one sheets. I want to upload  the data of particula Excel sheet..
    Please suggest me how can I upload particulat Excel sheet data .
    Thanks and regards
    Praveen

    check this link
    Uploading multiple excel sheets
    You can check Satish's answer in the above link
    Re: uploading data from excel sheets through BDC's into sap system
    <b>Award points if found helpful</b>

  • How can I get my excel spreadsheet to work in numbers

    How can I get this budget sheet to work in numbers when it's from excel.

    I couldn't get the picture of the whole thing it wouldn't load but you see where it say like 700.00 then below that it say 175.00 well that part works telling me what I need to know but when it get to where it says the 850 it stops working? it won't sum it out or something I'm not great with excel and this was sent to me by a first and it's our budget plan and I really need to be able to use it

  • How can you create a contact sheet that you can email?

    I see that you can print a contact sheet but how can you make a contact sheet that you can email where receiver can open the thumbnails and view?

    Hi,
    You can either use Bridge and the Output workspace, or grab optional plug-ins for CS5 and run Ps on OSX in the 32 bit mode. (Or grab the excellent 3rd party script, Contact Sheet X, and run that in Ps. http://ps-scripts.sourceforge.net/ContactSheetX/csx.html).
    Here's a post with links to further info:
    http://blogs.adobe.com/jkost/2011/09/the-contact-sheet-feature.html
    regards,
    steve

  • How to upload datas in excel sheet through BDC

    Hi,
        I know how to upload datas in Text format  through BDC...Suppose even when datas are in .xls format,I saved that file as Text(tab delimited) format...then file become text format and it can be easily uploaded....
        So, I want to know How to upload datas in excel sheet through BDC

    hi,
    try this Example, hope useful to u, assign me point.
    report ZMSV1_BDC_CALL
           no standard page heading line-size 255.
    *include bdcrecx1.
    *parameters: dataset(132) lower case.
       DO NOT CHANGE - the generated data section - DO NOT CHANGE    ***
      If it is nessesary to change the data section use the rules:
      1.) Each definition of a field exists of two lines
      2.) The first line shows exactly the comment
          '* data element: ' followed with the data element
          which describes the field.
          If you don't have a data element use the
          comment without a data element name
      3.) The second line shows the fieldname of the
          structure, the fieldname must consist of
          a fieldname and optional the character '_' and
          three numbers and the field length in brackets
      4.) Each field must be type C.
    Generated data section with specific formatting - DO NOT CHANGE  ***
    data: begin of record,
    data element: BUKRS
            BUKRS_001(004),
    data element: KTOKK
            KTOKK_002(004),
    data element: NAME1_GP
            NAME1_003(035),
    data element: SORTL
            SORTL_004(010),
    data element: ORT01_GP
            ORT01_005(035),
    data element: LAND1_GP
            LAND1_006(003),
    data element: SPRAS
            SPRAS_007(002),
    data element: BANKS
            BANKS_01_008(003),
    data element: BANKK
            BANKL_01_009(015),
    data element: BANKN
            BANKN_01_010(018),
          end of record.
    End generated data section ***
    data: itab like record occurs 0 .
    data: it_bdc type bdcdata occurs 0 with header line.
    data: it_msg type bdcmsgcoll occurs 0 with header line.
    parameter p_file type rlgrap-filename default 'c:\vendor.txt' obligatory
    start-of-selection.
    perform open_dataset using p_file.
    perform open_group.
    *perform close_group.
    *perform close_dataset using dataset.
    *&      Form  open_dataset
          text
         -->P_P_FILE  text
    form open_dataset  using    p_p_file.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
      FILENAME                      = p_file
      FILETYPE                      = 'DAT'
      HEADLEN                       = ' '
      LINE_EXIT                     = ' '
      TRUNCLEN                      = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      DAT_D_FORMAT                  = ' '
    IMPORTING
      FILELENGTH                    =
      TABLES
        data_tab                      = itab
    EXCEPTIONS
      CONVERSION_ERROR              = 1
      FILE_OPEN_ERROR               = 2
      FILE_READ_ERROR               = 3
      INVALID_TYPE                  = 4
      NO_BATCH                      = 5
      UNKNOWN_ERROR                 = 6
      INVALID_TABLE_WIDTH           = 7
      GUI_REFUSE_FILETRANSFER       = 8
      CUSTOMER_ERROR                = 9
      NO_AUTHORITY                  = 10
      OTHERS                        = 11
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " open_dataset
    *&      Form  open_group
          text
    -->  p1        text
    <--  p2        text
    form open_group .
    loop at itab into record.
    perform bdc_dynpro      using 'SAPMF02K' '0105'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-KTOKK'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF02K-BUKRS'
                                  record-BUKRS_001.
    perform bdc_field       using 'RF02K-KTOKK'
                                  record-KTOKK_002.
    perform bdc_dynpro      using 'SAPMF02K' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-ORT01'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFA1-NAME1'
                                  record-NAME1_003.
    perform bdc_field       using 'LFA1-SORTL'
                                  record-SORTL_004.
    perform bdc_field       using 'LFA1-ORT01'
                                  record-ORT01_005.
    perform bdc_field       using 'LFA1-LAND1'
                                  record-LAND1_006.
    perform bdc_field       using 'LFA1-SPRAS'
                                  record-SPRAS_007.
    perform bdc_dynpro      using 'SAPMF02K' '0120'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-KUNNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0130'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFBK-KOINH(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'LFBK-BANKS(01)'
                                  record-BANKS_01_008.
    perform bdc_field       using 'LFBK-BANKL(01)'
                                  record-BANKL_01_009.
    perform bdc_field       using 'LFBK-BANKN(01)'
                                  record-BANKN_01_010.
    perform bdc_dynpro      using 'SAPMF02K' '0130'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFBK-BANKS(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_dynpro      using 'SAPMF02K' '0210'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB1-AKONT'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0215'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB1-ZTERM'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0220'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB5-MAHNA'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPLSPO1' '0300'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=YES'.
    call transaction 'FK01' using it_bdc mode 'A' update 'S'
                                 messages into it_msg.
      write:/ sy-subrc.
        perform message_formatwrite.
    refresh it_bdc.
    clear it_bdc.
    endloop.
    endform.                    " open_group
    *&      Form  message_formatwrite
          text
    -->  p1        text
    <--  p2        text
    form message_formatwrite .
    data:l_msg(10).
    loop at it_msg.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
       ID              = SY-MSGID
       LANG            = sy-langu
       NO              = SY-MSGNO
       V1              = SY-MSGV1
       V2              = SY-MSGV2
       V3              = SY-MSGV3
       V4              = SY-MSGV4
    IMPORTING
       MSG             = l_msg
    EXCEPTIONS
       NOT_FOUND       = 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.
    endloop.
    endform.                    " message_formatwrite
    *&      Form  bdc_dynpro
          text
         -->P_0112   text
         -->P_0113   text
    form bdc_dynpro  using    value(p_0112)
                              value(p_0113).
    it_bdc-program = p_0112.
      it_bdc-dynpro = p_0113.
      it_bdc-dynbegin = 'X'.
      append it_bdc.
      clear it_bdc.
    endform.                    " bdc_dynpro
    *&      Form  bdc_field
          text
         -->P_0117   text
         -->P_0118   text
    form bdc_field  using    value(p_0117)
                             value(p_0118).
    it_bdc-fnam = p_0117.
      it_bdc-fval = p_0118.
      append it_bdc.
      clear it_bdc.
    endform.                    " bdc_field
    Regards
    fareedas

  • How can I take Smileys to a calendar in Iphoto? Hur kan jag placera Smileys i en kalender jag håller på att göra i Iphoto?

    How can I take Smileys to a calendar in Iphoto? Hur kan jag placera Smileys i en kalender jag håller på att göra i Iphoto?

    How can I take Smileys to a calendar in iPhoto? How can I place Smileys on a calendar I'm about to do in iPhoto?
    Go to the System/Keyboard/Input Sources preference pane and check the checkbox indicated in this screen shot:
    Click on the Input menu icon in the Menu bar and select Show Character Viewer:
    In the Character Viewer window find the Emoji entry, select the smiley you want to use and drag into the iPhoto book text field:
    Warning:  preview the book as described in this Apple document, iPhoto, Aperture: Previewing an order in iPhoto or Aperture, to confirm that the smileys are displayed in the PDF file.
    OT

  • How can I take photo of fast objects with A3400?

    in A3400 I didn't find any option to change shutter speed. or there is no proper photo scene in menu.
    then how can I take a good photo of fast objects? in its catalog it says the speed of shutter is (1/2000 ~ 15 sec). when and how can I take a shut with 1/2000 sec ?
    thank for your help

    According to the spec sheet you can't control the shutter speed other than by using the modes available & none are for action. The camera's program might select a very high shutter speed in very bright light while shooting something very reflective like a white car or building etc.
    "A skill is developed through constant practice with a passion to improve, not bought."

  • How can I enter data in an input schedule on a member in the EPM Add-On that is not a base member?

    Hello, all,
    how can I enter data in an input schedule on a member in the EPM Add-On that is not a base member?
    E.g. I want to implement a top-down-planning scenario and I have the following hierarchy:
    Europe
         Germany
         France
         UK
         Spain
         Italy
    How can I enter a value on Europe in an input schedule in order to allocate this value afterwards?
    Thanks in advance and best regards
    Gerd

    Gerd,
    It should be something like below -
    EuropeInput
    Europe
         Germany
         France
         UK
         Spain
         Italy
    EuropeInput shall be kept out of hierarchy and should be a base level member. Users will enter the numbers in this member. In your script logic, you will make use of this member to allocate the data in Bas(Europe) i.e. Germany, France, etc.
    Effectively, after allocation the same data will be rolled up to Europe.
    Many top-down planning would use such work-around as BPC doesn't allow writing to parent node.
    Regards,
    Ashish

  • I share an iTunes account with my siblings. So their contacts appear on my phone too. How can I take it off?

    I share an iTunes account with my siblings. So their contacts appear on my phone too. How can I take it off?

    You can share the same Apple ID in
    Settings > iTunes & App Store > Apple ID: here
    But for all other Apple services like:
    FaceTime, iMessage, iCloud, etc, one of you should use a different Apple ID.

  • I accidently click on ''Import the list'' but now all the music have  an exclamation point I think they are all in Musique.txt on the desk... How can i take back these music on my library? I tried : Import the list and take Music.txt , but it do not work

    I accidently click on ''Import the list'' but now all the music have  an exclamation point I think they are all in Musique.txt on the desk... How can i take back these music on my library? I tried : Import the list and take Music.txt , but it do not work

    Ok, I had a glitch, forced to restart, and lost my train of thought.
    Reinstalling iTunes should fix the major issue that might have gone wrong, perhaps your explaination points will disappear and everything will be peachy again.
    But if they don't, you can open the XML file in iTunes Folder using a Text edit program to see what the common pathname is to the iTunes Music folder or where your content is located.
    If you moved the itunes folder, it needs to go back.
    I can't  download iTunes to my Vista virtual machine to test it out right now because iTunes is down, so I can't verify the pathname, perhaps your issue and the iTunes being down are related somehow?
    You don't want to import all your music again, but it's a option, but you lose all your playlists, that's what I'm trying to recover.
    If oyu don't have a whole lot of playlists, then simply select all the explaimation point music and delete, select File from the menu and import your itunes folder again.

  • How can I take lion off of my MacBook Pro and go back to using Snow Leopard

    How can I take lion off of my MacBook Pro because it has too much problems with the new operating system, I have talked to Apple support for both computers and still nothing happens I think they know that there's something wrong and they don't know how to fix it are there working on fixing it. So how can I put snow leopard Mac on my computer so that it works every time, there's a lot of good features in Lion but there's a lot of bad features and especially when it comes to turning on your computer and the memory that it has held so if one item is missing then it doesn't work and you have to reboot the computer to get it to work but I still like my Mac.

    Take a look at this:
    http://www.thesafemac.com/how-to-prepare-your-mac-for-sale/
    Ciao.

  • HT4796 How can I take the files that were migrated from my PC to my Mac and add all those files to my current user instead of having 2 users?

    How can I take the files that were migrated from my PC to my Mac and add all those files to my current user instead of having 2 users? Having to log out just to sign in on a different user to access the files is absurd.
    Do I make all the files sharable to all the NOW users on the mac then just delete the files? Or can i erase my account that I made when starting up my new mac and then just use the one with the transferred files?
    I just dont want to have to og in and out of 2 different accounts .. Help please.         
    -Nina

    Sorry. /Users is a folder path. It would be similar to C:\Users (if that exists on Windows).
    So, in the Finder, select Computer from the Go menu.
    You'll see Macintosh HD, double-click that to open it.
    In there you'll see several folders. One is Users. That is where all the user Home folders exist. Select the other account's home folder and go to step 3.
    If you have any more confusion, please stop and ask. We'll get there.
    If you feel more comfortable, you can just log into that other account and move the files into /Users/Shared.
    Then, log into the account you wish to use and copy the files from the Shared folder and paste them into your Home folder, wherever they belong, Documents, Music, Pictures, etc.  That just takes a little more work. Transferring them into Shared, and then copying into your home sets the permissions on the files so that you won't have a problem accessing them later. The steps I provided just prevent you from having to do the double move, since you are not going to use the old account once you are done.
    Quick unix shorthand. If someone gives you a file path that begins with a /, that means the root of the hard drive, ie Macintosh HD (if you haven't renamed it). The path separator in unix is /, not \.
    A path that starts with ~/ means your Home folder, the one inside /Users named with your account name.

Maybe you are looking for