UPloading BDC..

Dear Experts,
How to find error in BDC. for example 1000material i am going to upload from that 100material error there.how to find can anyone tel me .
Regards
Arul.s

check the example below..the it_messtab holds the error and FM  FORMAT_MESSAGE is used to handle it(print)
call transaction mm01 using bdctab
                    mode 'a'
                   update 's/a'
                  messages into it_messtab.
here i_msg is a internal table like bdcmsgcoll.
LOOP AT it_messtab.
  CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
      id     = it_messtab-msgid
      lang   = it_messtab-msgspra
      no     = it_messtab-msgnr
      v1     = it_messtab-msgv1
      v2     = it_messtab-msgv2
    IMPORTING
    msg    =  g_msg
  EXCEPTIONS
      OTHERS = 0.
  IF it_messtab-msgtyp = 'S'.
    it_sucess-sucess_rec = g_msg.
    it_sucess-lifnr = it_header-lifnr." Based on your field
    it_sucess-tabix = v_lines.
    APPEND it_sucess.
  ELSEIF it_messtab-msgtyp = 'E'.
    it_error-error_rec = g_msg.
    it_error-lifnr = it_header-lifnr.
    it_error-tabix = v_lines.
    APPEND it_error.
  ELSE.
    it_info-info_rec = g_msg.
    it_info-lifnr    = it_header-lifnr.
    it_info-tabix    = v_lines.
    APPEND it_info.
  ENDIF.
ENDLOOP.

Similar Messages

  • I hav to upload bdc for vk11 trans and table konv.

    hi experts,
    i m new in BDC... i hav to upload bdc for vk11 trans and table konv.
    frst doubt is
    i hv to run shdb transc?? or just i hv to write program??
    nd cn any1 send me teps as hw to create upload..
    Condition Type Sales Organisation Distribution channel Material Price Unit Valid from Valid to
    KSCHL VKORG VTWEG MATNR_01 KBETR_01 KPEIN_01 DATAB_01 DATBI_01
    now plz tel me hw to do this...whether to run shdb or jus to write program in se38..
    or i hv to do both...bt plz tel me step by step

    Please don't ignore the warnings. Read the rules of engagement.
    Thread locked, again.
    Thomas
    wrking on ABAP OOPS, oput is coming but 1 field name wd customer name is nt

  • How to download and upload BDC programs

    How to download and upload BDC programs from one instance to another instance? I would like to transport my BDC programs from one dev client to another Dev client not through transport like smartforms.(we can download smartforms to desktop and upload to someother client)

    Hi,
    No need to record again. You can save the recording session by generating the program in transaction SHDB. Then you can download the BDC program and upload to another SAP client using transaction SE38.
    Regards,
    Ferry Lianto

  • Material Doc Showing Twice in ZSTO PO while uploading BDC

    Dear Gurus,
    For STO(Stock Transfer Order) PO we are uploading a BDC. After executing the BDC , it will generate material doc also.
    For E.g:
    we uploading a BDC for 50 materials.It will generate a material doc for 50 materials but for one or two materials, it is showing the material documents 2 times(twice).
    plz tell me,whats happening.
    thx in adv..........

    Check the movement type for those material where material document is coming twice. It is more of Movement type 301 or 303 or 305 or 311 313 or 315.
    this is standard behavior of SAP at database level for such movement type.

  • Stock upload bdc

    Dear firends...
       I am asked to develop a bdc program for Stock upload. actually i dont know about the stock upload process and its transaction code.. please tell me how i begin to write a program for Stock upload..and also please tell me the process of stock up load and transaction code related to stocks...any code, sample program or article will be greate help of mine
    regards,...

    Hi,
    To upload the opening stock MB1C is the transaction code. You can use LSMW method to do this. In LSMW select object 'goodsmovement' and corresponding program RM07MMBL. One drawback with this is, if the material contains serial numbers you cannot use this. In this case write SE38 program and use FM 'BAPI_GOODSMVT_CREATE'
    hope it solves your problem.
    Regards
    rajavardhana reddy

  • IB51 - Uploading - BDC or FM

    Hi All,
    I need to upload the Installed Bases from from flat file to SAP CRM ( T.Code: IB51- Installed base with multiple equipments & qualifications ).
    If some one have done upload program for the same please share with me..
    Regards
    Siva

    Hi,
    i think it depend on the data which you have. If you have huge amount of data to upload then you should go for BDC and use call transaction method.
    If you have few database to upload into system then you can use function module approach.
    Note: it depend on data.
    thanks
    hemant ghiya

  • Problem in uploading BDC

    Hi Experts,
      Iam uploading data for the tcode f-02. My flat file is having more than 1500 line items. But it is throwing a message "Item 1000 should be created, a maximum of 999 items are allowed"
    Could you please telll me the reason........
    Regards,
    MS

    Hi,
    The maximum line items is 999. Make a condition in your loop that if line item or sy-tabix = 999, post your document. In your case 2 FI documents will be created.
    Hope it helps...
    P.S. Please award points if it helps...

  • Error in uploading BDC Models (Server name missing from URL in Property wcfmexURL)

    Hi,
    We are using multiple Dialogue Instances in DUET Enterprise.
    Problem: Before we did the Reverse Proxy Configuration for App Servers, Our BDC Models got imported in SharePoint Successfully (Correct WSS Setup and STS Urls) but After doing the Reverse Proxy Configurations, when we regenerated the BDC Models, apparently Server Name is missing from URL of the Propoerty "wcfmexurl".
    Below is the Error Text:
    [ERROR] The LobSystem (External System) / LobSystemInstance (External System Ins
    tance) Property with Name 'WcfMexDocumentUrl' has an invalid value 'https/sap/bc
    /srt/wsdl/bndg_CF37C550B825080AE1000000AC1F18FD/soap12/wsdl11/allinone/ws_policy
    /document?sap-client=400'.
        Error was encountered at or just before Line: '65' and Position: '20'.
    Failed to import model: Role
    [ERROR] The LobSystem (External System) / LobSystemInstance (External System Ins
    tance) Property with Name 'WcfMexDocumentUrl' has an invalid value 'https/sap/bc
    /srt/wsdl/bndg_CE38C550B825080AE1000000AC1F18FD/soap12/wsdl11/allinone/ws_policy
    /document?sap-client=400'.
        Error was encountered at or just before Line: '42' and Position: '20'.
    Failed to import model: UserRoles

    Hi Holger,
    Thanks a lot!
    This Error is gone after implementing the Note. Now the generated BDC Models have the correct URL for wcfmexURL property.
    now we have the Following Error:
    [ERROR] Error loading URL 'https://sapbwX.srv.XXX.com/sap/bc/srt/wsdl/bndg_92
    38C550B825080AE1000000AC1F18FD/soap12/wsdl11/allinone/ws_policy/document?sap-cli
    ent=XXX'. This normally happens when URL does not point to a valid discovery doc
    ument, service description, or XSD schema.
        Error was encountered at or just before Line: '48' and Position: '20'.
    Failed to import model: Account
    For this Error, our SharePoint Administrator is checking below Steps.
    1.    1) Open “wcfmexDocumentUrl” URL in the browser and copy all SSL certificates (including Root Certificates) to a file. Then import these certificates in the Trust Relationships section. Then try the import of the BDC Models
    2.   
    2) 2) Verifying Your server uses a virtual hostname and all the configuration (e.g. SSL certificate) is done for this virtual hostname. Also the URLs that are created and used in the BDC model are Same virtual hostnames, but not the ones from the physical server.
    3.  3)Re-verify SAML Authentication type and transport security at SAP.
    4) 4) Browse WSDL at SharePoint Server and verify “WSP:Policy”  and in WSDL make sure that it contains an entry:
    <sp:RequestSecurityTokenTemplate>
    <wst:KeyType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/PublicKey</wst:KeyType>
    <wst:TokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1</wst:TokenType>
    </sp:RequestSecurityTokenTemplate>
    I will update the Results after these checks!
    Thanks,
    Saumil

  • Error In BDC when uploading for tcode FS00

    Hi Experts,
      problem in uploading BDC session method for tcode FS00. when i run my program it is giving apopup error message that (BDC_INSERT screen invalid)
    but my screen number is correct. i have checked this in recording program also.
    THere are subscreens in this iam not using any subscreen numbers  in my program.
    Points will rewarded.
    Thanks in advance.
    Francis.

    Hi Francis,
    Check your T-code which u mentioned in that FM bdc_insert. Mostly the problem with that FM  only. Check the coding for rrecording, if u miss the coding for any record then you may get problem.
    Hope this helps you.
    Regards,
    Kumar

  • Create quotation item text thru bdc

    hi all,
    I have created  quotation upload BDC in that
    how to create item text thru BDC program..
    i used save_text function module,
    after creating quotation i included this logic, but i want create text at the same time while creating quotation.
    concatenate i_zvbap1-vbeln  i_zvbap1-posnr into v_textname.
    move v_textname to tname-tdname.
    move 'VBBP' to tname-tdobject.
    move '0001' to tname-tdid.
    move sy-langu to tname-tdspras.
    append tname.
    read table i_upload1 with key matnr = i_zvbap1-ematnr
            if sy-subrc = 0.
              lines-tdformat = '*'.
              move i_upload1-refid to lines-tdline.
              move i_upload1-refid to i_zvbap1-refid.
              modify i_zvbap1.
              append lines.
              clear lines.
            endif.
          endloop.
          call function 'SAVE_TEXT'
            exporting
              client          = sy-mandt
              header          = tname
              insert          = 'X'
              savemode_direct = 'X'
            importing
              newheader       = tname
            tables
              lines           = lines
            exceptions
              id              = 1
              language        = 2
              name            = 3
              object          = 4
              others          = 5.
          if sy-subrc = 0.
           message id sy-msgid type sy-msgty number sy-msgno
           with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          endif.
    how can i achieve this
    thanks

    thanks for ur reply..while creating quotation i have to create text...
    but i think i need to pass parameters like
    NAME
    OBJECT
    ID etc..
    name will be concatenation of quotation number and item number, before creating i will be not having those info..
    can u explain me in detail...
    what parameters i have to give
    thanks

  • BDC for order balance

    We are having a procedure in our company where we balance the production order qty (target qty =delivered qty)
    currently we are having a LSMW for that purpose,but this is done centrally by SAP Team and here lies the problem.
    You can Imagine orders from 13 plants come to one station for this purpose.
    1)    We are having a BDC for bom uploading zcs01 created from bdc ,where user calls the transaction zcs01,and the required file is uploaded for creation by giving the path for it...
    Similar to the above example is it possible to create a similar bdc and tcode,where user at plant level can easily operate the production order to balance the qty....
    2)    Is this possible from ourside without much help from ABAPer,since we are able to create  lsmw,recordings through shdb...
    I once tried to do so thru shdb,recording was created,I also generate a program .but while executing it I am confused how to show the destination file where I've the data to be uploaded...
    Plz help...
    Correct me if I am getting wrong...
    Rahul

    THANKS FOR YOUR INPUT,
    WE ARE QUITE AWARE OF LSMW WORKING,BUT CANT GIVE AUTHORITY TO PLANT USERS TO LSMW,HENCE WE AT CENTRAL ARE MAINTAING ALL MASTER DATA AND ALSO THE PROCEDURE OF BALANCING ORDER....
    CAN YOU PLEASE TELL ME HOW THIS BOM UPLOADING  BDC IS CREATED?
    WORKING:- WE JUST MAINTAIN ALL THE FIELDS RELATED TO BOM IN AN EXCEL FILE AND THEN UPLOAD IT TO DESIRED DESTINATION,THEN WE CALL TRANSACTION ZCS01 AND GIVE THE REQUIRED DESTINATION OF FILE WE WANT TO UPLOAD
    AFTER EXECUTING THE REQUIRED BOM ARE BEING CREATED.
                      I BEING A FUNCTIONAL GUY ,NOT HAVING THE REQ KNOWLEDGE...
    PLEASE THROW SOME LIGHT ON IT.....

  • BDC,ALV,SQL trace

    1.How can we change the language setting while uploading BDC?
    2.How can we add a push button to the ALV report?
    3. What is SQL Trace, how would you carried out performance analysis of ABAP code Using SQL Trace? Give the steps?

    Hi
    SQL Trace transaction ST05: The trace list has many lines that are not related to the SELECT statement in the ABAP program. This is because the execution of any ABAP program requires additional administrative SQL calls. To restrict the list output, use the filter introducing the trace list.
    The trace list contains different SQL statements simultaneously related to the one SELECT statement in the ABAP program. This is because the R/3 Database Interface - a sophisticated component of the R/3 Application Server - maps every Open SQL statement to one or a series of physical database calls and brings it to execution. This mapping, crucial to R/3s performance, depends on the particular call and database system. For example, the SELECT-ENDSELECT loop on a particular database table of the ABAP program would be mapped to a sequence PREPARE-OPEN-FETCH of physical calls in an Oracle environment.
    The WHERE clause in the trace list's SQL statement is different from the WHERE clause in the ABAP statement. This is because in an R/3 system, a client is a self-contained unit with separate master records and its own set of table data (in commercial, organizational, and technical terms). With ABAP, every Open SQL statement automatically executes within the correct client environment. For this reason, a condition with the actual client code is added to every WHERE clause if a client field is a component of the searched table.
    To see a statement's execution plan, just position the cursor on the PREPARE statement and choose Explain SQL. A detailed explanation of the execution plan depends on the database system in use.
    SQL Trace – ST05
    Starting the Trace:
    To analyze a trace file, do the following:
    Choose the menu path Test &#61614; Performance Trace in the ABAP Workbench or go to Transaction ST05. The initial screen of the test tool appears. In the lower part of the screen, the status of the Performance Trace is displayed. This provides you with information as to whether any of the Performance Traces are switched on and the users for which they are enabled. It also tells you which user has switched the trace on.
    Using the selection buttons provided, set which trace functions you wish to have switched on (SWL trace, enqueue trace, RFC trace, table buffer trace).
    If you want to switch on the trace under your user name, choose Trace on. If you want to pass on values for one or several filter criteria, choose Trace with Filter. Typical filter criteria are: the name of the user, transaction name, process name, and program name.
    Now run the program to be analyzed.
    Stopping the Trace:
    To deactivate the trace:
    Choose Test &#61614;Performance Trace in the ABAP Workbench. The initial screen of the test tool appears. It contains a status line displaying the traces that are active, the users for whom they are active, and the user who activated them.
    Select the trace functions that you want to switch off.
    Choose Deactivate Trace. If you started the trace yourself, you can now switch it off immediately. If the performance trace was started by a different user, a confirmation prompt appears before deactivation-
    Analyzing a Sample trace data:
    PREPARE: Prepares the OPEN statement for use and determines the access method.
    OPEN: Opens the cursor and specifies the selection result by filling the selection fields with concrete values.
    FETCH: Moves the cursor through the dataset created by the OPEN operation. The array size displayed beside the fetch data means that the system can transfer a maximum package size of 392 records at one time into the buffered area.

  • Plz send simple bdc  code with flat file which is executable

    plz send a simple code for upload bdc with flat file which is executable.

    plz send a simple code for upload bdc with flat file which is executable.

  • Upload additional data into existing material number.

    Hi Experts,
    I want to upload an additional info about Material (valuation category and valuation type), where the material ids are already exists.
    There are 87 data which i have to upload to their corresponding material numbers from notepad.
    So please suggest what should i follow to upload BDC or LSMW and also suggest how to do ...
    Thanks,
    Deepanshu Mathur
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    Edited by: Thomas Zloch on Jun 24, 2011 10:07 AM

    Hi,
    MANDT is always added as one of the fields to make the table client specific and it has to be a primary key.
    As rest of your fields are non-primary key fields, your table will have duplicate records for all the fields. You shall not get any error even if you enter duplicate entries.
    As a general practice, it is always good to have at least one primary key on a a table apart from MANDT. This ensures faster data access and provides uniqueness for each record.
    Also, if your table does not have at least one primary key apart from MANDT, you shall not be able to maintain the table via SM30 even if you create a Table Maintanence.
    Regards,
    Danish.

  • FS00   Program for upload theG/L accounts

    Hi Experts,
    I need a sample program for FS00 G/L accounts upload BDC  or LSMW program
    Thanks in Advance
    purnaneelu

    Hi,
    In LSMW.
    Create a source structure with your source fields.
    Map the source structure to the target structure.
    In the field mapping step map the particular source fields to the target fields.
    Specify the source files.
    Read the source files and then do the convert step to convert the data.
    Then create the session and process it via SM35.
    Regards,
    Ankur Parab

Maybe you are looking for

  • Creation of reservation

    Hi guru When I am creating a reservation through TC MB21, it picks up the GL code assigned to the material but the commitment item is not changing but remains the same as is in the first line item. Kindly suggest what additional changes needs to be d

  • Mac Mini (2012) as Wireless Gateway

    I want to turn my mac mini into a wireless gateway. I  have "pf" I need to know how to turn on wireless ap mode on? What command line tools are available? OpenBSD has "hostapd" for this. I plan to have my mini serve as my gateway router as well as me

  • Keyboard shortcut for "GO to Desktop"

    I've been searching all morning and can't find the answer here, so I'll pose the question. I have a new iMac 21.5" with the short wireless bluetooth keyboard. What is the keyboard shortcut so I can hide all open windows and applications and go to my

  • Deadline notification workflow wizard

    Hi All, We had set up a modeled dead line notification using the workflow wizard. We currently want to modify the same. The system is creating a new deadline notification instead of overwriting the existing one. Could you kindly guide us as to how we

  • Download 9i Linux files

    Down loaded the Linix 9i files (*.cpio.gz). The gunzip command does not work on them( message is: not a gzip format. So I tried cpio, the file was extracting but at end received the error premature end of file. Tried re-downloading several time with