Help for data upload

hii friends,
i have written this bdc program to upload the address data from flat file to the sap system but whenever i process the session i get the result like W_MAT-NAME,W_MAT-STREET etc instead of the data in the flat file.
i have pasted my program here..plzz site the error.
report ZADDRESS1
       no standard page heading line-size 255.
TABLES : ztable.
include bdcrecx1.
DATA : BEGIN OF ITAB,
       NAME like ztable-name,
       street LIKE ZTABLE-STREET,
       MOBILE LIKE ZTABLE-MOBILE,
       FIXED LIKE ZTABLE-FIXEDLINE,
       CITY LIKE ZTABLE-CITY,
  STATE LIKE ZTABLE-STATE,
  COUNTRY LIKE ZTABLE-COUNTRY,
  MAIL LIKE ztable-email,
  END OF ITAB.
data : i_mat type table of ITAB.
data : w_mat type ITAB.
start-of-selection.
call function 'UPLOAD'
EXPORTING
  CODEPAGE                      = ' '
  FILENAME                      = ' '
   FILETYPE                      = 'ASC'
  HEADLEN                       = ' '
  LINE_EXIT                     = ' '
  TRUNCLEN                      = ' '
  USER_FORM                     = ' '
  USER_PROG                     = ' '
  DAT_D_FORMAT                  = ' '
IMPORTING
  FILELENGTH                    =
  tables
    data_tab                      = I_MAT
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.
perform open_group.
LOOP AT I_MAT INTO w_mat.
perform bdc_dynpro      using 'ZADDRESS' '0100'.
perform bdc_field       using 'BDC_OKCODE'
                              '=S'.
perform bdc_field       using 'BDC_CURSOR'
                              'ZTABLE-EMAIL'.
perform bdc_field       using 'ZTABLE-NAME'
                              'W_MAT-NAME'.
perform bdc_field       using 'ZTABLE-STREET'
                              'W_MAT-STREET'.
perform bdc_field       using 'ZTABLE-MOBILE'
                              'W_MAT-MOBILE'.
perform bdc_field       using 'ZTABLE-FIXEDLINE'
                              'W_MAT_FIXED'.
perform bdc_field       using 'ZTABLE-CITY'
                              'W_MAT-CITY'.
perform bdc_field       using 'ZTABLE-STATE'
                              'W_MAT-STATE'.
perform bdc_field       using 'ZTABLE-COUNTRY'
                              'W_MAT-COUNTRY'.
perform bdc_field       using 'ZTABLE-EMAIL'
                              'W_MAT-MAIL'.
perform bdc_dynpro      using 'ZADDRESS' '0100'.
perform bdc_field       using 'BDC_OKCODE'
                              '=E'.
perform bdc_field       using 'BDC_CURSOR'
                              'ADDRESS'.
perform bdc_field       using 'ZTABLE-NAME'
                              'W_MAT-NAME'.
perform bdc_field       using 'ZTABLE-STREET'
                              'W_MAT-STREET'.
perform bdc_field       using 'ZTABLE-MOBILE'
                              'W_MAT-MOBILE'.
perform bdc_field       using 'ZTABLE-FIXEDLINE'
                              'W_MAT-FIXED'.
perform bdc_field       using 'ZTABLE-CITY'
                              'W_MAT-CITY'.
perform bdc_field       using 'ZTABLE-STATE'
                              'W_MAT-STATE'.
perform bdc_field       using 'ZTABLE-COUNTRY'
                              'W_MAT-COUNTRY'.
perform bdc_field       using 'ZTABLE-EMAIL'
                              'W_MAT-MAIL'.
perform bdc_transaction using 'ZADD'.
ENDLOOP.
perform close_group.
thanks in adv
abhinab

The problem is this
perform bdc_field using 'ZTABLE-NAME'
'W_MAT-NAME'.
You are always passing literals, not variables.
This is the way you want to do it.
perform bdc_field using ZTABLE-NAME
W_MAT-NAME.
By the way, I don't see any filename in that function, what are you reading?

Similar Messages

  • Search help for date field in Editable ALV

    Hello Friends,
    I am using editable alv using 'reuse_* '.
    I have used date as input field. While creating fieldcatlog also i have  declared dat as a mkpf-budat.
    But i am not getting serach help for date in output.
    Is it possible with reuse or i have to go by object oriented ?

    Hi,
    Just pass the Edit option of the fieldcatalog for those specific fields...
    fcat-edit = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = sy-cprog
          i_callback_pf_status_set = 'PF_STATUS_SET'
          i_callback_user_command  = 'USER_COMMAND'    "<----  pass this
          i_callback_top_of_page   = 'TOP'
          is_layout                = it_layout
          it_fieldcat              = it_fcat
          i_default                = 'X'
          i_save                   = 'A'
          it_events                = it_event
        TABLES
          t_outtab                 = it_final
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    *&      Form  USER_COMMAND
    *       text
    *      -->R_UCOMM      text
    *      -->RS_SELFIELD  text
    FORM user_command USING r_ucomm LIKE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
        WHEN '&DATA_SAVE'.                "<-------check this
          PERFORM save_data.
      ENDCASE.
    ENDFORM.                    "USER_COMMAND

  • F4 help for date in select options..

    Hi Gurus,
    I want a search help for date field which belongs to select options.
    I know if it is a parameter we directly map the attribute value to that data element.
    Can some help me with this..
    Best Regards,
    Navin Fernandes.

    Hi Gurus,
    The select options works for date.. I got the solution.
    It directly relates to the default data dcitionary help.
    Got it from this example: WDR_TEST_SELECT_OPTIONS
    Best Regards,
    Navin Fernandes.

  • How to schedule Job for data uploading from source to BI

    Hi to all,
    How to schedule Job for data uploading from source to BI,
    Why we required and how we do it.
    As I am fresher in BI, I need to know from bottom.
    Regards
    Pavneet Rana

    Hi.
    You can create [process chain |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502b2998-1017-2d10-1c8a-a57a35d52bc8?quicklink=index&overridelayout=true]for data loading pocess and schedule start process to any time/date etc ...
    Regadrs.

  • Search help for date in VC

    Hi, 
    I have created an iview in Visual Composer for a query. it contains date field on selection variable fomr. i tried entering date in various format, but it gives an error : variable expects interval value ; enter an interval".
    can we provide search help for date field in VC?
    Regards,
    Sonali.

    Hi,
    You have to create search help it avoid inconsistency.
    Thanks & Regards,
    Venkat.

  • Search help for DATE field

    HI all,
    I want to attach search help for a DATE field created in screen painter.
    For PERNR, PREM is attached. Similarly what is the statndard search help name for DATE field?
    Thanks,
    Shanthi.

    Hi ,
    Declare the date field as sy-datum ,
    parameters : date type sy-datum .
    This shud bring the standard search help for date .
    Thanks ..Get back for any issues.
    Anil

  • To implement search help for date and time fields details

    how can i implement search help for date and time fields in screen painter

    Hi
    Declare the variables as sy-datum and sy-uzeit or any other pre-defined data typ of date and ime types. Serach help will automatically comes.
    Aditya

  • F1 Help for Data elements

    Hi All,,
    i want to add F1 help for data elements.How can i do this.Kindly suggest me the steps to perform this.

    hi
    use this link
    http://help.sap.com/saphelp_nw04/helpdata/en/a4/d47ee849e111d189730000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/45/11e39c459d7201e10000000a155369/frameset.htm
    Cheers
    Snehi
    Edited by: snehi chouhan on Jul 24, 2008 11:10 AM

  • Hello !  pls give some ti[ps how to use bapi's for data uploading?

    hello !
      pls give some ti[ps how to use bapi's for data uploading?
    regards,
    Arjun

    Hi,
    See the below report extract:
    where it_data is having uploaded data.
    LOOP AT<b> it_data</b> INTO wa_data.
        line_count = sy-tabix.
        "Date Validation
        CONCATENATE wa_data-uplft_date4(4) wa_data-uplft_date2(2) wa_data-uplft_date+0(2)
        INTO wa_data-uplft_date.
        "READ TABLE it_ekko INTO wa_ekko WITH KEY lifnr = wa_data-vendor.
        LOOP AT it_ekko_temp INTO wa_ekko_temp WHERE lifnr = wa_data-vendor.
          IF wa_ekko_temp-kdatb <= wa_data-uplft_date AND wa_ekko_temp-kdate >= wa_data-uplft_date.
            MOVE-CORRESPONDING wa_ekko_temp TO wa_ekko.
            APPEND wa_ekko TO it_ekko.
          ENDIF.
        ENDLOOP.
        "IF sy-subrc = 0 AND wa_ekko-kdatb <= wa_data-uplft_date AND wa_ekko-kdate >= wa_data-uplft_date.
        LOOP AT it_ekko INTO wa_ekko.
          wa_data_header-pstng_date = wa_data-uplft_date.
          wa_data_header-doc_date = sy-datum.
          wa_data_header-bill_of_lading = wa_data-bill_of_lad.
          wa_data_header-ref_doc_no = wa_data-del_no.
          CONCATENATE wa_data-header_text1 '-'
                      wa_data-header_text2 '-'
                      wa_data-header_text3 '-'
                      wa_data-header_text4
                      into wa_data_header-HEADER_TXT.
          IF wa_data-indicator = 'Y'.
            wa_data_item-material = '000000000000200568'.
          ELSE.
            wa_data_item-material = '000000000000200566'.
          ENDIF.
          LOOP AT it_ekpo INTO wa_ekpo WHERE ebeln = wa_ekko-ebeln AND matnr = wa_data_item-material.
            "Collect Item Level Data
            wa_data_item-plant = '1000'.
            wa_data_item-stge_loc = '1001'.
            wa_data_item-move_type = '101'.
            wa_data_item-vendor = wa_data-vendor.
            wa_data-qnty = wa_data-qnty / 1000.
            wa_data_item-entry_qnt = wa_data-qnty.
            wa_data_item-po_pr_qnt = wa_data-qnty.
            wa_data_item-entry_uom = 'KL'.
            wa_data_item-entry_uom_iso = 'KL'.
            wa_data_item-orderpr_un = 'KL'.
            wa_data_item-orderpr_un_iso = 'KL'.
            wa_data_item-no_more_gr = 'X'.
            wa_data_item-po_number = wa_ekpo-ebeln.
            wa_data_item-po_item = wa_ekpo-ebelp.
            wa_data_item-unload_pt = wa_data-unload_pt.
            wa_data_item-mvt_ind = 'B'.
            APPEND wa_data_item TO it_data_item.
            CLEAR wa_data_item.
          ENDLOOP.
          CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
            EXPORTING
              goodsmvt_header = wa_data_header
              goodsmvt_code   = goodsmvt_code
              testrun         = 'X'
            TABLES
              goodsmvt_item   = it_data_item
              return          = return.
          READ TABLE return INTO wa_return WITH KEY type = 'S'.
          IF sy-subrc <> 0.
            DESCRIBE TABLE return LINES sy-tfill.
            IF sy-tfill = 0.
              CALL FUNCTION <b>'BAPI_GOODSMVT_CREATE'</b>   
            EXPORTING
                  goodsmvt_header = wa_data_header
                  goodsmvt_code   = goodsmvt_code
                  testrun         = ' '
                TABLES
                  goodsmvt_item   = it_data_item
                  return          = return.
              CALL FUNCTION <b>'BAPI_TRANSACTION_COMMIT'</b>
               EXPORTING
                 WAIT          = 'X'
              IMPORTING
                RETURN        =
            ENDIF.
          ENDIF.
          LOOP AT return INTO wa_return.
            WRITE: 'Messsage TYPE  ', wa_return-type,
                  /,'ID  ', wa_return-id,
                  /, 'Number  ', wa_return-number,
                  /, 'Message  ', wa_return-message,
                  /, 'Long Text  ', wa_return-message_v1,
                                    wa_return-message_v2,
                                    wa_return-message_v3,
                                    wa_return-message_v4,
                 /, 'Failed at line', line_count.
          ENDLOOP.
          CLEAR: wa_ekko, wa_ekpo, wa_data, it_data_item[], wa_data_header.
        ENDLOOP.
    Reward if useful!

  • Problems with F4 help for dates

    Hi all.
    In a redesign project we use a new structure for the bsp pages. Since the redesign every F4 help for dates is giving us a java script error.
    Row:      689
    Column: 3
    Error:     'document.all.sapDate.style' is NULL or no object
    Code:    0
    URL:      http://<server>:<port>/wbw(bD1..)/main.do
    In the first version it was a view with some page fragments included containing the F4 helps.
    The new application is a main view containing a changing view over command <bsp:call comp_id="...
    Does the difference in place used matter?
    I also removed the attribute themeRoot from <htmlb:content ...
    Thanks for every hint,
    Timo.

    I have exactly the same problem, someone can tell me how to fix it please ?
    Here is my code for the "date" field :
    CASE p_column_index.
            WHEN 1.
              DATA: tv_col1_inputfield TYPE REF TO cl_htmlb_inputfield.
              CREATE OBJECT tv_col1_inputfield.
              tv_col1_inputfield->id    = p_cell_id.
              tv_col1_inputfield->cellvalue = 'TRUE'.
              tv_col1_inputfield->value = '20000131'.
              tv_col1_inputfield->type = 'DATE'.
              tv_col1_inputfield->showhelp = 'TRUE'.
              tv_col1_inputfield->disabled = 'FALSE'.
              p_replacement_bee      = tv_col1_inputfield.
    Edited by: BB.Fethi on Feb 8, 2010 2:10 PM
    Ok sorry for this post, i haven't see the "remove tag htmlb:page"....
    Edited by: BB.Fethi on Feb 8, 2010 2:13 PM

  • ECATT for data upload

    Hi,
    We want to use ECATT for data upload. We have created test script, test data container and test configuration. We are uploading the variants from external file from EDIT-> variants-> Upload. But does the text file need to have different variant names against each data record as this becomes cumbersome.  Also for parameter fields which have fixed value, needs to be available in text file with the value?
    Is there any other method for data uploading using ECATT?
    Prashant

    Hi,
    For your later questions I will answer as your previous questions are well answered by others.
    For parameters with fixed values, you dont need to put it in the external file but only if you have used the Fixed values against the Parameter in the test script .
    In Ecatt, TCD Recording mode is widely used.It is comparively faster when compared to SAPGUI Method.
    SAPGUI is very slow. SAPGUI method can be used if you need to upload longtext or if you need to record Active X Controls as these cannot be handled by TCD Method.

  • Help on Data upload

    Hi all,
    Today Quality Server has been copied by all the data from Production Server.
    After this copying no Data upload is taking place from Quality server to BW Quality server.
    I think Now quality server has setting of Data load to BW Production server and it needs to be configured for Data load to BW Quality Server.
    Can anyone help me what changes needs to be done.
    Thanks

    Hi Saurabh,
       Check in the Development system for the corresponding entry ... First check in SM59 what are the RFC destinations... If you have authorization then create or else you may need to get your basis team involved.
    Best regards,
    Kazmi

  • Help for date field not working after upgrade

    hi experts,
    In our BSP application for a page we had an inputfield (date).
    Onvaluehelp for input field we were calling the saphelpdate function.
    however after upgrade this functionality is not working properly as no pop up comes after clicking on the icon.
    we have upgraded to SPS 16 recently.
    please help me.
    regards,
    Arvind.

    Hi, I try upper case but nothing happen. This is all my code by far, I hope you can help me:
    DATA: BEGIN OF T_PCONT OCCURS 0,
          PCONT LIKE ZPSPERMISOS-PSOBKEY,
    END OF T_PCONT.
    DATA: BEGIN OF T_FIELDS OCCURS 0.
            INCLUDE STRUCTURE help_value.
    DATA END OF T_FIELDS.
    DATA: BEGIN OF T_VALUES OCCURS 0,
          VALUE(60) TYPE c.
    DATA: END OF T_VALUES.
    DATA: N TYPE i.
    SELECTION-SCREEN BEGIN OF BLOCK  b20 WITH FRAME TITLE text-b02.
      SELECT-OPTIONS:
        P_CONT FOR  ZPSPERMISOSH-PSOBKEY OBLIGATORY NO-EXTENSION NO INTERVALS,
        P_INT  FOR  ZPSPERMISOSH-PARTNER OBLIGATORY NO-EXTENSION NO INTERVALS,
        P_FEC  FOR  ZPSPERMISOSH-ZFINICN NO-EXTENSION NO INTERVALS,    
        P_RAZ  FOR  ZPSPERMISOSH-ZRAZONFINIC NO-EXTENSION NO INTERVALS.
    SELECTION-SCREEN END OF BLOCK b20.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_CONT-LOW.
      PERFORM P_HELP_P_CONT USING P_CONT-LOW.
    *&      Form  P_HELP_P_CONT
    FORM P_HELP_P_CONT  USING P_P_CONT.
      DESCRIBE TABLE T_PCONT LINES N.
      IF N EQ 0.
        T_FIELDS-FIELDNAME  = 'PSOBKEY'.
        T_FIELDS-TABNAME    = 'ZPSPERMISOS'.
        T_FIELDS-SELECTFLAG = 'X'.
        APPEND T_FIELDS.
        CLEAR T_FIELDS.
        SELECT PSOBKEY FROM ZPSPERMISOS
        INTO  TABLE T_PCONT.
        SORT T_PCONT BY PCONT.
      CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
        EXPORTING
          CUCOL        = 10
          CUROW        = 1
          TABNAME      = 'T_PCONT'
          FIELDNAME    = 'PCONT'
        IMPORTING
          SELECT_VALUE = P_P_CONT
        TABLES
          FIELDS       = T_FIELDS
          VALUETAB     = T_VALUES.
    ENDFORM.                    " P_HELP_P_CONT
    Edited by: J. Garibaldi on Nov 25, 2009 11:14 AM
    Edited by: J. Garibaldi on Nov 25, 2009 11:16 AM

  • Help for date compare in sqlite?

    Hi all,
          How to decide a date is between two date or not? for example, I want to query the tasks in the next week from the sqlite db, how to do?
            SELECT  * FROM TASK_TD WHERE TASK_DATE > NOW AND TASK_DATE < NEXTWEEK_DATE
        That does not work!
       Anybody can help me?Thanks a lot.
    David

    If you're using ActionScript (Flex or Flash) for your database, you could also declare your columns as "Date" (i.e. the ActionScript Date class). AIR has added support for Date as a recognized data type in its SQLite implementation:
    http://livedocs.adobe.com/flex/3/langref/localDatabaseSQLSupport.html#columnAffinity
    http://livedocs.adobe.com/flex/3/langref/localDatabaseSQLSupport.html#additionalSQL
    By using statement parameters to pass in Date data the ActionScript Date objects are converted when you insert data, and when you retrieve data it automatically comes back as ActionScript Date objects.
    Internally in the database, the Date values are stored as SQLite REAL (Unix epoch format) so date comparisons should work fine. For instance, if you want to find all rows with a date in a certain range, you could use this SQL:
    SELECT *
    FROM mytable
    WHERE datecolumn BETWEEN :startdate AND :enddate
    Then you'd need to specify the :startdate and :enddate values as parameters:
    sqlStatement.parameters[":startdate"] = new Date(2000, 3, 15);
    sqlStatement.parameters[":enddate"] = new Date(2005, 6, 13);
    2. Add a custom SQLite function for this purpose (see more about it in http://sqlite.org/cintro.html under 'Extending SQLite' section). Note that in such case you'll suffer slow performance if you have large tables (since dates are not indexed correctly).
    Unfortunately AIR doesn't support custom functions in SQLite.

  • F4 help for Date field and Validation

    Hi Friends,
    I am new to BSP programming .I knew getting F4 help in normal ABAP.But i don't know in BSP .
    I want simple steps to get F4 for a field on Page as well as date field .
    and How to valid those entered dates.
    Presently i am using length 10 character variable for DATE without F4 help and No validation.
    I think you guys will help me out.
    Thanks,
    Venkat.O

    Welcome to SDN.
    for F4 help with validation for dates you can use the following code.
    <htmlb:inputField id         = "wf_ad_date"
                                    type       = "date"
                                    showHelp   = "TRUE"
                                    value = "<%= sy-datum  %>"
                                    visible    = "true"
                                    disabled   = "false"
                                    required   = "true"
                                    maxlength  = "10"
                                    size       = "10"
                                    doValidate = "true"
                                    design     = "standard" />
    For other type of fields check out this weblog by Thomas Jung
    <a href="/people/thomas.jung3/blog/2005/08/22/bsp-value-input-help-popups-version-30 Value Input Help Popups Version 3.0</a>
    Regards
    Raja

Maybe you are looking for

  • In PO - Delivery address usages

    Hi, In ME22n, item column having a tab as Delviery address, here we are able to change the vendor / customer  name... what's usage of this tab??? and MEAN tcode is used for what purpose??

  • How to install hard drive (Presario CQ50z-100)?

    My hard drive is failing.  I purchase a WD 320GB Scorpio Blue.  I tried to back up my data and after several hours of backing up the system shut down after about 90% completion, I was unable to continue the back up I started.  At this point I am ok w

  • Version 4.3.3 (8J2) not compatible with Bose docking station

    I recently update my new ipod touch to version 4.3.3(8J2) and it is no longer compatible with my Bose docking station, no sound coming out from the speakers but able to recharge the battery). How can I go back to plain version 4.3 or get a compatible

  • WRTU54G-TM/firmware v1.00.15 internet dies

    Set up just fine, worked for ~30 hours, then the internet hung, hard.  LAN still worked, web interface still up, but no pings, no traceroute, no nothing from the WAN side.  Required a cold reboot.  Working again now, but this is unacceptable, even on

  • Mavericks Apache localhost unreachable

    Hi there, I have already read few thread about broken apache ; unfortunatly I am still unable to make it work Would you help me to repair my web server step by step ? Thanks OS X is Mavericks. I don't use any "AMP" package. I did reformat my HD and r