Change from UPLOAD to GUI_UPLOAD  function module

pls  let me know that  wat are  the  changes that should be made if  the report  currently using UPLOAD function module and it should be  replaced with GUI_UPLOAD  function module ..
wat should be the TYPE of  file name and File type ????????  with the respect to changes ....
thanks . in advance..

Check out this thread to find the answer
UPLOAD and GUI_UPLOAD
Regards,
Santosh

Similar Messages

  • How to create Business partner from uploaded file by Function module?

    Hi Experts,
    I have uploaded Business partner data from a file to server now from individual records I have to create Business partner and have to update the records in the tables. Means from on record i have to create one business partner in sap system.
    I have uploaded the records in the system and stored in a internal table.Now my task is to create business partner and have to update tables.
    I need a function module which create BP by each records uploaded and update the respective tables of BP and exports business partner ID.
    Please respond soon Its a requirement form the client.
    Prem.

    HI,
       You can use the bapi 'BAPI_BUPA_CREATE_FROM_DATA' to create a business partner .
    call function 'BAPI_BUPA_CREATE_FROM_DATA'
              exporting
                businesspartnerextern              = g_bpartner-partn
                partnercategory                    = partnercategory
                partnergroup                       = partnegroup
                centraldata                        = centraldata
                centraldataperson                  = centraldataperson
                centraldataorganization            = centraldataorganization
    *       CENTRALDATAGROUP                   =
                addressdata                        = addressdata
    *       DUPLICATE_MESSAGE_TYPE             =
    *         IMPORTING
    *            BUSINESSPARTNER                    = G_BPARTNER-BUSINESSPARTNER
             tables
                telefondata                        = telefondata
                faxdata                            = faxdata
                e_maildata                         = e_maildata
                return                             = return
    *       ADDRESSDUPLICATES                  =
                addressnotes                       = addressnotes.

  • To change business partner ( RFC enabled  Function Module )in CRM.

    Hi All;
    While sending a Business partner from R/3 to CRM. I would like to change business partner ( RFC enabled  Function Module )in CRM.
    Is there any exit or a BAdI which i can use to do this?
    Regards
    Yusuf Dagyeli
    Message was edited by: Yusuf Dagyeli
    Message was edited by: Yusuf Dagyeli

    Hi RAMS,
    1. Under the SWCV Go to the Imported Objects.
    2. Right click on the RFC and click on the Import of SAP object.
    3. Give the logon server name, system number the user name and pasword.
    4. Select the RFC u want to import.
    5. Execute the import and the RFC is imported under the SWCV.
    Now u can use this Imported RFC in the scenarios of that SWCV.
    Regards
    Santhosh
    Remember to set the thread to solved when you have received a solution

  • Problem in GUI_UPLOAD function module

    Hi Folks,
    I am in the BI system where I have limited scope of upload function module, So I used GUI_UPLOAD as a upload function module.
    I am uploading CSV file and which have amount field (with comma ',' ) as one of the column , So it is truncating the other columns while retrieving data into internal table and giving wrong data in columns.
    Any other Function module, or tricks to upload file which have ',' in one of the column.
    Thanks
    PP

    Hi,
    Well in this case you will have to change the file format i.e. Instead of CSV make it tab delimited etc.
    Else change the amount value by replacing comma(which woud be a tedious task).
    There is no other alternative.
    Best regards,
    Prashant

  • Pass Parameter ID from Main Program into Function Module

    For material, there is a fileds product hierarcy (MARA-PRDHA) on Basic view, but we also append the same field in materail sales view (MVKE-PRDHA) and put on the screen of sales view, so the user want the PRDHA on sales view could be updated automatically when it has been changed on Basic view. On the screen of basic view, the field MARA-PRDHA is set as parameter ID 'VPR', the sales views are updated in function module MVKE_SET_DATA, so how can I get the value of parameter ID 'VPR' in MVKE_SET_DATA to populate the value in Sales View?!
    Does parameter IDs and their values locate in global memory?!
    if yes, why i can't get it with: GET PARAMETER ID "VPR' <f>?
    Any idea?!
    Thanks

    Yes, this is SAP standard program for MM41/MM42 (Article material), I can't change the program and the screens are different for basis and sales views. So, I am just wondering whether there is a way to pass the parameter value of product hierarchy on basic view to any other screen process when it's updated on basic view.
    The problem is the program check every single table (views) in individual function module, so it's hard to pass any updating (not updated) value from any other views.
    Thanks

  • Generate a url from a report or function module

    Hi,
    I'm trying to generate a url from a report and tried using the function module WWW_ITAB_TO_HTML in the report program, as , but i'm not able to get the expected results. The code is given below. Could someone please try and help me resolve this issue. Thanks in advance.
    DATA: emp_name TYPE char80.
    DATA: it_itabex TYPE zdb_ex_tty,
    it_emp TYPE TABLE OF zis_emp,
    it_org TYPE TABLE OF zis_org,
    it_pos TYPE TABLE OF zis_pos,
    it_pos_alloc TYPE TABLE OF zis_pos_alloc,
    it_res TYPE TABLE OF zis_res,
    it_res_alloc TYPE TABLE OF zis_res_alloc,
    ls_itabex TYPE zdb_ex_s.
    DATA: lv_filename TYPE string,
    lv_path TYPE string,
    lv_fullpath TYPE string,
    lv_replace TYPE i.
    DATA qstring LIKE it_itabex OCCURS 10.
    DATA: url(200), url2(200), url3(200), fullurl(200).
    FIELD-SYMBOLS: <fs_emp> LIKE LINE OF it_emp,
    <fs_org> LIKE LINE OF it_org,
    <fs_pos> LIKE LINE OF it_pos,
    <fs_pos_alloc> LIKE LINE OF it_pos_alloc,
    <fs_res> LIKE LINE OF it_res,
    <fs_res_alloc> LIKE LINE OF it_res_alloc.
    ** Report Program to export data from database to Excel.
    ** Populate all the tables that have to be exported.
    SELECT * FROM zis_org INTO TABLE it_org.
    SELECT * FROM zis_pos INTO TABLE it_pos.
    SELECT * FROM zis_pos_alloc INTO TABLE it_pos_alloc.
    SELECT * FROM zis_emp INTO TABLE it_emp.
    SELECT * FROM zis_res_alloc INTO TABLE it_res_alloc.
    SELECT * FROM zis_res INTO TABLE it_res.
    ** Append the Column Header
    CLEAR ls_itabex.
    ls_itabex-ipp_pos_id = 'IPP Pos ID'.
    ls_itabex-emp_name = 'Name'.
    ls_itabex-dt_of_join = 'JoinedOn'.
    ls_itabex-emp_status = 'Status'.
    ls_itabex-org_name = 'Org'.
    ls_itabex-prj_name = 'Project'.
    ls_itabex-mgr_name = 'Line'.
    ls_itabex-designation = 'Designation'.
    ls_itabex-specialization = 'Specialization'.
    APPEND ls_itabex TO it_itabex.
    ** Append all the tables into one internal table
    LOOP AT it_pos_alloc ASSIGNING <fs_pos_alloc>.
    CLEAR ls_itabex.
    ls_itabex-ipp_pos_id = <fs_pos_alloc>-ipp_pos_id.
    READ TABLE it_emp ASSIGNING <fs_emp> WITH KEY emp_guid = <fs_pos_alloc>-emp_guid.
    IF sy-subrc = 0.
    CONCATENATE <fs_emp>-emp_fname <fs_emp>-emp_lname INTO ls_itabex-emp_name SEPARATED BY space.
    ls_itabex-dt_of_join = <fs_emp>-dt_of_join.
    ls_itabex-emp_status = <fs_emp>-emp_status.
    ls_itabex-specialization = <fs_emp>-specialization.
    ENDIF.
    READ TABLE it_pos ASSIGNING <fs_pos> WITH KEY ipp_pos_id = <fs_pos_alloc>-ipp_pos_id.
    IF sy-subrc = 0.
    ls_itabex-designation = <fs_pos>-designation.
    READ TABLE it_org ASSIGNING <fs_org> WITH KEY org_id = <fs_pos>-org_id.
    IF sy-subrc = 0.
    ls_itabex-org_name = <fs_org>-org_name.
    ls_itabex-mgr_name = <fs_org>-mgr_name.
    ENDIF.
    ENDIF.
    READ TABLE it_res ASSIGNING <fs_res> WITH KEY org_id = <fs_org>-org_id.
    ls_itabex-org_name = <fs_org>-org_name.
    APPEND ls_itabex TO it_itabex.
    ENDLOOP.
    url = 'http://testweb/scripts/wgate/zvw10a/!?~language=en'.
    url2 = '&~OkCode(LGON)=LGON&login-login_user='.
    url3 = '&vbcom-vbeln='.
    CONCATENATE url url2 url3 INTO fullurl.
    WRITE: /'Staffing Excel'.
    CALL FUNCTION 'WWW_SET_URL'
    EXPORTING
    offset = 12
    length = 10
    func = fullurl
    TABLES
    query_string = qstring
    EXCEPTIONS
    invalid_table = 1
    OTHERS = 2.
    Thanks & Regards,
    Preethi.

    Check the below example program :
    data: begin of itab occurs 0,
          matnr type mara-matnr,
          mtart type mara-mtart,
          matkl type mara-matkl,
          groes type mara-groes,
          end of itab.
    data: ifields type table of w3fields with header line.
    data: ihtml   type table of w3html   with header line.
    select * into corresponding fields of table itab
              from mara up to 100 rows.
    call function 'WWW_ITAB_TO_HTML'
    EXPORTING
      TABLE_ATTRIBUTES       = 'BORDER=1'
      TABLE_HEADER           =
        ALL_FIELDS             = 'X'
      tables
        html                   = ihtml
        fields                 = ifields
      ROW_HEADER             =
        itable                 = itab
    check sy-subrc = 0.
    call function 'GUI_DOWNLOAD'
         exporting
              filename = 'c:\test.html'
         tables
              data_tab = ihtml.
    Reward points if it is helpful
    Thanks
    Seshu

  • Importing master data from R/3 through functional modules

    I am facing the below error when I try to import master data from R/3 through the inbound functional module /DMF/MDIF_PRODUCT_INBOUND to the PMR component (PMR - Promotion Management for Retail).
    "Runtime error CALL_FUNCTION_NOT_FOUND has occurred"
    Landscape - I have RTLDMF 1.1 and RTLPROMO 7.0 installed on top of Netweaver with EHP1 in a server which also has BI system. While the R/3 is present in another system.
    Appreciate any help. Thanks!

    Hi Khan,
    You can create your own datasource source, by Tcode RSA2. In this link you find more information:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/28/4c553c42360a40e10000000a114084/content.htm
    Also please check this link, that provides the steps to create/maintain the generic datasource:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/3f/548c9ec754ee4d90188a4f108e0121/content.htm
    I hope it contributes.
    Regards,
    Sinara Moraes

  • Transfer billing data from CRM to FI, function module ALE_ACC_BILLING_POST

    Hi ABAPers,
    we have a scenario were we want to post billing documents from a custom developed application running on a CRM system into FI.
    My idea is to call the function module ALE_ACC_BILLING_POST to create an outbound IDoc in the CRM and send it to the ERP system.
    I guess, this should not be a problem. I'm just not sure because of one import parameter of the mentioned function module: CUSTOMERCPD. Does anybody know if I have to fill this parameter? Does it mean that the function module can only be used for so called CPD customers (one time customers) in FI?
    Thanks in advance and best regards,
    Martin

    Dear Colleague,
    You have different method to send parameters to Workflow.
    1. Method
    Container Set Element
    DEFINE SWC_SET_ELEMENT.
      CALL FUNCTION 'SWC_ELEMENT_SET'
        EXPORTING
          ELEMENT   = &2
          FIELD     = &3
        TABLES
          CONTAINER = &1
        EXCEPTIONS
          OTHERS    = 1.
    END-OF-DEFINITION.
    Set the data into Workflow container
        SWC_SET_ELEMENT IT_CONTAINER 'parameter1' lv_parameter1.
    Start the Workflow
        CALL FUNCTION 'EWW_WORKFLOW_START'
          EXPORTING
            X_TASK          = 'WS90000001'   " your wf
          IMPORTING
            Y_WORKFLOW_ID   = WF_ID " your workitem id
          TABLES
            X_CONTAINER     = IT_CONTAINER
          EXCEPTIONS
            INVALID_TASK    = 1
            NO_ACTIVE_PLVAR = 2
            START_FAILED    = 3
            GENERAL_ERROR   = 4
            OTHERS          = 5.
    2. Method,
    You can also add your parameters direly to a container,
      DATA: lt_simple_container TYPE TABLE OF swr_cont,
            ls_simple_container TYPE swr_cont.
      ls_simple_container-element = 'parameter1'.
      ls_simple_container-value = lv_parameter1.
      APPEND ls_simple_container TO lt_simple_container.
      CALL FUNCTION 'SAP_WAPI_WRITE_CONTAINER'
        EXPORTING
          workitem_id      = WF_ID " your workitem id
          do_commit        = 'X'
        TABLES
          simple_container = lt_simple_container.
    Bulent.

  • Calling WebDynpro input screen from within an abap Function module / user

    Hi,
    I am posting SAP data with a BAPI from an Web Dynpro Application.
    In the Bapi I must use an BADI/User -EXIT to add some infornation.
    Today this is done by calling an Dynpro in a function module. This creates a pop up, data is filled and posted on commit.
    How can I get a Web Dynpro application to display this popup without showing the "call screen without connection " error ?
    Thanks for any help.
    Marcus

    >
    Deok-Byung Lim wrote:
    > Here is an unofficial way to get current WD component.
    > (WDR_TASK class is not for customer)
    >
    >   DATA lo_wdr_component TYPE REF TO cl_wdr_component.
    >   lo_wdr_component = wdr_task=>application->component.
    >
    >
    > then.. attach component usage and popup your WD screen
    >
    > BUT IT'S NOT OFFICIAL!!
    This approach is absolutely NOT supported nor recommended by SAP.

  • How to update other infotype from source infotype via function module?

    Want in source infotype to call a func.module, which shall update other infotype(s) in background.
    Have tried out with HR_INFOTYPE_OPERATION, but without success - gives mitchmatch of source it and target it in the internal it buffer tables.
    How to do?
    Requirements also are to secure rollback, if update of the last of ex. 3 target its fails.
    Anyone has experience on this issue?
    Regards Søren

    Know this functionality - also by means of own coding in the PAI by filling the int. tables dynmeas + initial_values. However the issue remains, i.e. the update has to be done by a function module called from PAI of own infotype, and from a function module you can't trigger the T588Z-functionality.
    The update of it0003 from own it9300 is only an example, have general requirements that:
    - from own infotype PAI a function module shall be called
    - from the function module update of other infotypes 
      shall take place (modify as well as insert and delete)
    - if more infotypes shall be updated from source infotype,
      rollback shall take place if ex. update of last target
      infotype fails (all to be updated or none!).
    Regards Søren

  • APD vs Read from a cube using Function module

    Hi,
    Please could someone tell me which is the best practice for the below case:
    I want to sent information for one cube to another and in the transformation read from a third cube.  I think I have this two options:
    -     Option1: In the transformation use the function module to read from a third cube and take the information that I need.
    -     Option2: Use APD and send the information of the third cube to a DSO, and in the transformation read from the DSO, instead from the third cube.
    Thanks in advance for your collaboration.
    Judith.

    Hi,
    If I compare option 1 and option 2 then there are many complexities involved in option 2. First of all you will have to create an extra DSO just for look up purpose and this will occupy extra DB space.
    You will always have to do the data transfer from cube to DSO and you need to make sure that DSO data is perfectly matching with Cube so as to populate correct values during lookup.
    But in case of option1 you are simply reading data from original cube using FM so you don't need to worry about data quality for lookup. The only thing here you will have to check is how much time it takes to read data from cube. As you will be writing extraction code in Start routine and use internal table in field routine.
    I hope this will not impact much on your performance.
    Regards,
    Durgesh.

  • How to extract data from generic view and function module

    hi experts,
    can anybody give me the steps to extract data from generic view and  functon modules.
    thanks and regards
    venkat

    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
    https://websmp103.sap-ag.de/~sapidb/011000358700007535452002
    Hope it Helps
    Chetan
    @CP..

  • GUI_UPLOAD Function Module in 4.6C does not split into lines

    Dear All,
    I'm about to upload text file into SAP using the FM 'GUI_UPLOAD'.
    Previously I've developed a test program to upload the same file in SAP v4.7
    and it returns correctly into several lines as expected.
    Snippet:
    CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = l_filename
          filetype                        = 'ASC'
          has_field_separator       = ' '
          header_length               = 0
          read_by_line                  = 'X'
        TABLES
          data_tab                      = gt_tabfile
    As we can see, the 'read_by_line' parameter is already 'X'. gt_tabfile only consist of 1 string column.
    But as I run the same code using the same parameter and file in SAP v4.6C
    it returned only 1 line of very long string instead of the correct lines resulted in 4.7.
    Is there anything to do with codepage (4.6 is English 1100, I forgot the codepage in 4.7 but i believe it's the same due to language selection is EN). Or anything to do with OSS Note?
    Kindly help me to resolve the issue.
    Appreciate it very much

    Thank you for trying to help.
    Please be noted I've done all the possible value on these parameter
    -   filetype 'ASC' OR 'BIN'
    -  has_field_separator ' ' or 'X'
    -  header_length 0 or 1 which is dont make sense since my file dont have header so must be 0
    -  read_by_line ' ' of 'X' doesnt work my expectation.
    Any other good questions please? How 4.6C and 4.7 above make a different result?

  • Function module upload and download

    Hello All,
    while using Upload and download function modules, how to avoid popup for providing file path, as am already passing it from reading from the selections screen. while running again i dont want to get the popup asking file path.
    thx in advance,
    sippy.

    Hi,
    You can try with
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
        EXPORTING
          FILENAME        = I_DIR
          READ_BY_LINE    = 'X'     " FILETYPE = 'ASC'
        CHANGING
          DATA_TAB        = IT_TEXTO
        EXCEPTIONS
          FILE_OPEN_ERROR = 1
          FILE_READ_ERROR = 2
          BAD_DATA_FORMAT = 8
          OTHERS          = 19.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
      EXPORTING
       BIN_FILESIZE              =
        FILENAME                  = I_DIR2
       FILETYPE                  = 'ASC'
       APPEND                    = SPACE
       WRITE_FIELD_SEPARATOR     = SPACE
       HEADER                    = '00'
       TRUNC_TRAILING_BLANKS     = SPACE
      CHANGING
        DATA_TAB                  = IT_TEXTO.
    Best Regards
    Ana

  • How can i get currency values from flatfile to function module

    Dear All,
               I have to take  currency values from flat file and i have to assign those flat file value to function module .
    Eg: "Convert_to_local_currency".  I need technical code how to calculate those amount in work area and how to assign those amount value function module. 
              I need sample program for currency conversion from flat file to function module.  My requirement is based on flat file amount i have to calculate in work area and assign those work area to function module. 
    With Regards,
    Baskaran

    Hi Satish or Baskaran,
    First conform in which format the flat file is present, as abhi mentioned if it is there in notepad
    try to use F.M GUI_UPLOAD as shown below...
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
    FILENAME = 'C:\Desktop\rpf1.TXT'
    TABLES
    DATA_TAB =  ITAB.
    Now loop at ITAB Into Work_area and press the respect currency fields which you want and in the same way
    if the file is in EXCEL format use F.M ALSM_EXCEL_TO_INTERNAL_TABLE
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename = P_FNAME
          i_begin_col = 1
          i_begin_row = 1
        TABLES
          intern = ITAB
    LOOP AT ITAB INTO WA.
    CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
            EXPORTING
              foreign_currency = wa-waers
              local_currency   = wa-waers
               IMPORTING
              local_amount     = tvals-gross.
        ENDIF.
    endloop.
    And as mentioned loop the records into work area and process the currenct field which is present in the
    ITAB according to its field name. And make sure within the loop you call your function module.
    Regards
    VEnk@
    Edited by: Venkat Reddy on Dec 9, 2009 5:51 PM

Maybe you are looking for

  • Time taken to Refresh a Materialized View

    Hi, Can we somehow estimate the approximate time it takes to Fast Refresh a particular Materialized View? In my case it is REFRESH FAST ON DEMAND and it contains close to 65 Million Records. On a daily basis 40K records are updated/inserted in the Ma

  • JVM Crash (hs_err_pid2120.log), unknown cause

    Hi all, one of our customers has problems running our Java Web Start application. The application crashes very often, but in different situations and not reproducible. After the crash, a file hs_err_pid2120.log is created on the desktop. I cannot rea

  • HotSpot not working correctly

    Hi: I'm installing Websphere Application Server 4.1 in Sun Solaris version 9 (5.9), I have preinstall Java version : java version "1.4.0_00" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_00-b05) Java HotSpot(TM) Client VM (build 1.4.0

  • MSI P67A-GD53 P67 cannot get sound nor internet

    Hey, it's my 1st time with Intel products and windows 7. I installed my mobo drivers tonight, but I cannot seem to get any sound out nor get my internet working... I never had this problem before Mobo- MSI P67A-GD53 P67 SLI CrossFireX Do I need to do

  • Portable Device will not playback all tracks loaded into dev

    Zen V 4GB, now has 3.8 MB of tracks in it, but when we playback in car or thru headphones, it barely plays half the contents; in fact, cannot even access the tracks to select the hidden tracks(!) for playback, because we can't find them. We know they