Regarding bdc(views problem in mm01 while uploading the data)

hi experts,
i have coded a bdc in which i m using mm01 and extending the material to the different plant ,but here in some cases depending upon the material the views get changed for solving this i have to deselect and again select the views which i want and also i have to provide the valuation type for this material, so plz suggest me how to rectifie the views problem.......

Ravi,
  Do one thing.Develop some temporary BDC programs for different material  with required views.
Finally develop a final program.In that internal table loop ,put case statement on material
when 'mat1'  .
    take the relevant code from above temporary progarms and copy here.
when '2'.
endcase.
At last delete all temporary programs.
Hope your problem will get solved
Don't forget to reward if useful.

Similar Messages

  • Error while uploading the data using FM"upload"

    Hi,
    I encountering an error while uploading the data using text file with FM " UPLOAD"
    The error is "File does not exist or cannot be opened "
    But there is a file with name and extenstion right.
    Regards
    Vishnu

    You have to create RC29P-IDNRK(var) using concatenate statement. Try this.
    DATA: new_mark TYPE bdcdata-fnam.
    CONCATENATE 'RC29P-IDNRK(' var ')' INTO new_mark.
    PERFORM bdc_field USING new_mark W_BOM-QTY

  • Dump While uploading the data in RSA1 from R3 system

    Hi All,
    We are getting a dump in st22 while uploading the data in RSA1,pls find the details below-:
    Error analysis
        Short text of error message:
        Password logon no longer possible - too many faile d attempts
        Long text of error message:
        Technical information about the message:
        Message class....... "RSAR"
        Number.............. 051
        Variable 1.......... "Password logon no longer possible - too many faile"
        Variable 2.......... "d attempts"
        Variable 3.......... " "
        Variable 4.......... " "
    How to correct the error
        Probably the only way to eliminate the error is to correct the program.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "MESSAGE_TYPE_X" " "
        "SAPLRSSM" or "LRSSMU17"
        "RSSM_CALL_RSAR_DATA_REQUEST_1"
    I have checked both R3 and BI system there is no user which is currently locked.
    also I have checked the SAP Notes 1088927,1066180 ,these notes recommends to upgrade the SAP_BW component to 16 level but we are already running at 18.
    Pls suggest
    Regards,
    Prashant

    Hi Prashant
    Your system user is unable to authenticate access on the remote system. This may be an issue for RFC user locking. Check the RFC from SM59 for the commection between the two systems. Check for the User ID and password that is saved on the RFC logon.
    Also check the system user ALEREMOTE.
    I hope this helps
    Regards
    Chen

  • Can the case be changed while uploading the data or after uploading ????

    hi all ,
    can u pls help me ???  can the case of the data in a itab be changed while running the program? the data is uploaded to an internal table and then based on loop at that itab the conditions will evaluate to give the result.... but the problem is like wen the data is given in small letters the worste(last)  condition is executing even the data satisfies the condtion which is not supposed to happen. this is due to case sensitive problem ...can u pls help me ....can the case be changed while uploading the data r after uploading ????

    this is the itab declaration ..
    data: begin of it_input occurs 0 ,
           tra          like tstc-tcode,
         end of it_input.
    and then from the uploaded data the prog should check wheather it is having any userexits or not ...
    here comes the code...
    sort it_input by tra.
    delete adjacent duplicates from it_input  .
    loop at it_input.
               it_itab-sno = sy-tabix.
      select single * from tstc where tcode eq it_input-tra.
    if sy-subrc eq 0.
        select single devclass from tadir into v_devclass
                 where pgmid = 'R3TR'
                        and object = 'PROG'
                        and obj_name = tstc-pgmna.
             if sy-subrc ne 0.
             select single * from trdir where name = tstc-pgmna.
             if trdir-subc eq 'F'.
                select single * from tfdir where pname = tstc-pgmna.
                select single * from enlfdir where funcname =
                tfdir-funcname.
                select single * from tadir where pgmid = 'R3TR'
                                   and object = 'FUGR'
                                   and obj_name eq enlfdir-area.
             move : tadir-devclass to v_devclass.
              endif.
           endif.
           select * from tadir into table jtab
                         where pgmid = 'R3TR'
                           and object = 'SMOD'
                           and devclass = v_devclass.
           if sy-subrc = 0.
            select single * from tstct where sprsl eq sy-langu and
                                            tcode eq it_input-tra.
                      if not jtab[] is initial.
               loop at jtab.
                    select single modtext from modsapt  into str
                         where sprsl = sy-langu and
                                name = jtab-obj_name.
                    it_itab-tra        = it_input-tra.
                    it_itab-i_obj_name = jtab-obj_name.
                    it_itab-i_modtext = str.
                    append it_itab.
                    str = ''.
               endloop.
              endif.
            else.
                    it_itab-tra        = it_input-tra .
                    it_itab-i_obj_name = ' '.
                    it_itab-i_modtext = 'No user Exit exists'.
                     append it_itab.
            endif.
          else.
                    it_itab-tra        = it_input-tra .
                    it_itab-i_obj_name = ' '.
                    it_itab-i_modtext = 'Transaction Code Does Not Exist'.
                     append it_itab.
          endif.
    endloop.

  • Error occured while uploading the data for Tocde QP01 (BDC)

    Hi,
    I am facing a strange problem i.e. when i try to upload the data for the Tcode QP01 i am able to upload the data for the 18 rows but when it is more than 18 ,it gives the following error and saves the data upto 18 rows only :-
    CALL_TRANSACTION QP01 returncode:     0  RECORD:          0
    S Field RC27X-FLG_SEL . not found in loop of screen SAPLCPDI 1400
    S Cursor field PLMKB-VERWMERKM (18) does not exist in the screen
    S Field PLMKB-VERWMERKM (18) does not exist in the screen SAPLQPAA 0150
    S Field PLMKB-STICHPRVER (18) does not exist in the screen SAPLQPAA 0150
    S Inspection plan with plan group 12775 for material 200999 is saved
    Is there any way to solve this problem...

    hi,
    Ok,i agree with you but the thing is it was allowing to upload the data for more than 18 rows as there was logic written. It is specified in the code:-
    ELSEIF itab1-serial > 18 AND itab1-serial < 35.
                  IF index = 19.
                    index = 2.
                  ENDIF.
    Edited by: nav009 on Sep 9, 2009 8:25 AM

  • " Can not interpret the data in file " error while uploading the data in DB

    Dear All ,
    After running the below report I am getting the " Can not interpret the data in file " error.
    Need to upload the data in DB through excel or .txt file.
    Kindly advise to resolve the issue.
    REPORT  ZTEST_4.
    data : it like ZPRINT_LOC occurs 0 with header line,
    FILETABLE type table of FILE_TABLE,
    wa_filetable like line of filetable,
    wa_filename type string,
    rc type i.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
    CHANGING
    FILE_TABLE = filetable
    RC = rc.
    IF SY-SUBRC = 0.
    read table filetable into wa_filetable index 1.
    move wa_filetable-FILENAME to wa_filename.
    Else.
    Write: / 'HI'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    start-of-selection.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = wa_filename
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = 'X'
    TABLES
    DATA_TAB = it.
    IF SY-SUBRC = 0.
    Write: / 'HI'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    insert ZPRINT_LOC from table it.
    if sy-subrc = 0.
    commit work.
    else.
    rollback work.
    endif.
    Regards
    Machindra Patade
    Edited by: Machindra Patade on Apr 9, 2010 1:34 PM

    Dear dedeepya reddy,
    Not able to upload the excel but have sucess to upload the .csv file to db through the below code. Thanks for your advise.
    REPORT  ZTEST_3.
             internal table declaration
    DATA: itab TYPE STANDARD TABLE OF ZPRINT_LOC,
          wa LIKE LINE OF itab,
          wa1 like line of itab.
                       variable  declaration
    DATA: v_excel_string(2000) TYPE c,
           v_file LIKE v_excel_string VALUE    'C:\Documents and Settings\devadm\Desktop\test.csv',  " name of the file
            delimiter TYPE c VALUE ' '.         " delimiter with default value space
         read the file from the application server
      OPEN DATASET v_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    write:/ 'error opening file'.
      ELSE.
        WHILE ( sy-subrc EQ 0 ).
          READ DATASET v_file INTO wa.
          IF NOT wa IS INITIAL.
            append wa TO itab.
          ENDIF.
          CLEAR wa.
        ENDWHILE.
      ENDIF.
    CLOSE DATASET v_file.
    EXEC SQL.
         TRUNCATE TABLE "ZPRINT_LOC"
    ENDEXEC.
    *------display the data from the internal table
    LOOP AT itab into wa1.
    WRITE:/ wa1-mandt,wa1-zloc_code,wa1-zloc_desc,wa1-zloc,wa1-zstate.
    ENDLOOP.
    insert ZPRINT_LOC from table itab.

  • ERROR while uploading the data into ztable with background processing

    Hi gurus,
    i am trying to upload the data from excel file to internal table 
    its working fine ..
    but........
    if i try to upload the data with background processing , in sm37 it is saying "error during the upload of clipboard contents".
    Regards,
    Sri

    Hi,
    FM GUI_UPLOAD doesnt work in background, use dataset to upload it from application server.
    refer below code
    *--Local Variables
      DATA : l_file  TYPE string,
             l_line  TYPE string,
             l_index TYPE sy-tabix.
    *--Clear
      CLEAR : l_file.
      l_file = p_ipfile.
    *--Read the data from application server file.
      OPEN DATASET l_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc NE 0.
    *--Error in opening file
        MESSAGE i368(00) WITH text-005.
      ENDIF.
    *--Get all the records from the specified location.
      DO.
        READ DATASET l_file INTO l_line.
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          SPLIT l_line AT cl_abap_char_utilities=>horizontal_tab
                          INTO st_ipfile-vbeln
                               st_ipfile-posnr
                               st_ipfile-edatu
                               st_ipfile-wmeng.
          APPEND st_ipfile TO it_ipfile.
        ENDIF.
      ENDDO.
    Regards,
    Prashant

  • While uploading the data

    hi
    i am uploading the data to su01 to change the password.
    while i am uploading passwords with normal characters , password is changed..if i upload passwords with strings it is showing the error "The entered password is not downward compatible (see long text) " .
    can any one tell me the reason

    Upload into character field and see

  • Error - 41453 while uploading the data

    Hi,
    I am trying uploading the data with external ID's. I am getting error 41453 and none of the record is getting upload in CRM.
    Does any one can share their experience with such error.
    Nisman

    Glad you figured it out. I thought I'd add my own experience in case it helps anyone. Someone wrote that the data field might have a bad format. Since it's a text file getting uploaded I was kind of scratching my head. (Sorry, I'm not an IT person, so I'm not always sure if I'm doing the right thing.) I had numbers mapped to number fields, text to text, etc. At first I thought everything looked okay. But after looking closer, I realized that I had a currency field where I was trying to import a value that had leading spaces. Once I removed those, it was fine. I know the original source of the data, so I'm not surprised in hindsight. Just be aware that could be the case if the original source data's not formatted. This field was imported into Access as text and stayed that way the whole way through.

  • Having problem while uploading the data.

    Hi All,
    i am facing some problem when trying to upload csv file in the database.
    ERROR:
    "SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
    ORA-12560: TNS:protocol adapter error".
    have anybody aware of this kind of problem or having knowledge regarding this problem.database is working fine.
    -rajnish

    Hi,
    About this error, you need to enable tracing and get the exact error from the listener trace files:
    12560, 00000, "TNS:protocol adapter error"
    // *Cause: A generic protocol adapter error occurred.
    // *Action: Check addresses used for proper protocol specification. Before
    // reporting this error, look at the error stack and check for lower level
    // transport errors.For further details, turn on tracing and reexecute the
    // operation. Turn off tracing when the operation is complete.Regards,
    Yoann.

  • Problem while uploading the data in IBPI Transaction

    Hi All,
    Here i am processing the (data for IW22)session from sm35, here i am getting error Mallfunction End(Time).
    Anybody can help me in this. It is very urgent.
    Thanks & Regards,
    Venkat N

    Hi
    Even we are facing the same issue and even after we UnProtect the record, the problem persists and we are unable to change or modify record in MDM.
    Temporary solution could be to re-start the MDM services.
    We have also raised a OSS note on the same with SAP, hopefully this will get sorted out.
    Regards
    Navneet

  • Problem in lsmw while loading the data

    hi,
    I am trying to load the mm data by using batch input in LSMW,when i am trying to load the data views are not populating automatically ,while recording is there any other way to select,kindly give me idea,its urgent issue.
    Thanks,
    Rammohan.

    Hi Rammohan,
    ya its better to use the existing bapi from the list rather than using the batch input recording for the mm data. There is one standard bapi existing, try to use that othewise its very much difficult to do it in case of views with batchinput
    Regards,
    Naveen

  • Error while uploading the data

    Hi All,
    I changed a key figure from integer to a decimal.  later i tried loading the masterdata from data source which consists that keyfigure as an attribute.
    data is loaded successfully into the PSA but while running the DTP i get the runtime error.
    Please see the exact message below:
    An error occurred while executing a transformation rule:
    The exact error message is:
    The argument '-.' cannot be interpreted as a number
    The error was triggered at the following point in the program:
    GP491CU8AHQLBJJFKFHSN3YZUEB 328

    This means incorrect keyfigure value is sent in record from sourcesystem. Please check keyfigure value for that particular record in PSA.
    Abhijit

  • Error while uploading the data Using LSMW - Idoc method

    Hi Experts,
       I am working on LSMW using Idoc method. Till 12th step (Display converted data) i wasn't got any problem. For the Idoc method, I have to specify details to Idoc inbound processing from the menu settings.
    In that screen I have to specify file port, partner type and partner no. I have created a file port ZFILE. Can u tell me what ahould I pass in that screen? Where should be the file i.e in the application server or presentation server? What should be the directory and function  module. Can u provide step by step?
    After that I have to specify partn.type. What should I select for that?
    After that I have to specify partner no. Whether it is inbound or outbound?
    I got No data found for the following detials.
    port - ZFILE
    in the inbound file tab, e:\ as physical directory; EDI_PATH_CREATE_USERNAME as function module.
    Partner type - US
    Parnter no.  - LSMW with the inbound parameters message type - MATMAS and Process code - MATM.
    Please tell me how can I upload properly? Please don't ignore as i am asking same question again becasue I have gone through related threads also. But i didn't find the exact requirement.
    proper documentation will be rewarded.
    Thanks in Advance.
    James.

    Hello,
    I could identify the error. It was due to incorrect UOM. Problem resolved.
    Thanks,
    Madhura

  • Problem with SQLPlus while retriving the data.

    Hi all,
    SQL Plus while accessing one table named invdet(having around 900000 records) with line size option increased to 1000 it was showing error(application error : access voilation) after getting around 100-200 records.
    Platform : Windows NT on a P-III machine.
    Plz. give me the solution.
    Thanks
    Vijaykumar.

    Vijaykumar,
    You should work with Oracle Support on this. If the problem is not already known, they will log a bug for you.
    They will want to know which version of SQL*Plus and the database you are using and will want a testcase.
    - CJ

Maybe you are looking for

  • Technicians Not Showing Up For Appointments!!! Being Treated Like Garbage By Verizon

    We have never been treated like garbage by a company in the way that Verizon has treated us like garbage over the past 2 weeks. We moved and scheduled an appointment for a technician to set up the the phone line. I won't even talk about the nonsense

  • Help, Itunes wont recognise Iphone 4s

    When I connect my Iphone 4s to my PC iTunes doesnt recognize it. I followed a lot of tutorials online but when I try to install the Apple Mobile Device USB Driver it gives me a code 37 error. I have no idea what else to do, can anyone help me?

  • Unable to send mp3 with mail attachment. Zip the file doesn't work same

    Tried to send an mp3 file several times and kept getting this message. The file was only 11 mg. Unable to send with mail attachment. Your message couldn't be sent because a server error occurred. To send this message,please delete the current attachm

  • EMac won't read OS 10.4 install disc

    We're attempting to upgrade the OS of our living room eMac. I just picked up a used OS 10.4 install set; it's a set of 16 CDs rather than a DVD, and it's specifically made for eMac (it even says "eMac" right on the discs). Problem is, when we pop in

  • Black &white stripes on the screen all the time

    Hi, I have iphone 5 white 64gb A1429, and beginning using February, and today(23.06.2013), in the morning, I saw on my iphone black & white strips on the screen, all the time in start, work, shut down, but with all sound(ringtone, sound of unlock). I