.can anybody explain the bdc with help of an example

i am new to bdc .can anybody explain the bdc with help of an example

Hi,
BDC is method to transfer legacy data into R3 system.
Data transfer can be done in any one method below:
BDC
LSMW
Direct Input method
BAPI
Of these BDC is subdivided into 2 types,
Call Transaction and Session method (TCode: SM35)
Let me give the sample prg for Call Transaction method.
tables ZMATMASTER.
DATA : itab like TABLE OF  ZMATMASTER WITH KEY DESCRIPTION with header line.
DATA : IT_BDC LIKE TABLE OF BDCDATA WITH HEADER LINE.
DATA : IT_MSG LIKE TABLE OF BDCMSGCOLL WITH HEADER LINE.
CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    FILENAME                      = 'C:\Material.txt'
    FILETYPE                      = 'ASC'
    HAS_FIELD_SEPARATOR           = '#'
  TABLES
    DATA_TAB                      = itab.
LOOP AT ITAB.
    PERFORM BDC_HEADER USING 'ZFILE_DOWNLOAD' 9001.
    PERFORM BDC_DATA   USING 'BDC_OKCODE' 'SAVE'.
    PERFORM BDC_DATA   USING 'ZMATMASTER-MNO' ITAB-MNO.
    PERFORM BDC_DATA   USING 'ZMATMASTER-DESCRIPTION' ITAB-DESCRIPTION.
    PERFORM BDC_DATA   USING 'ZMATMASTER-PLANT' ITAB-PLANT.
    PERFORM BDC_DATA   USING 'ZMATMASTER-SLOC' ITAB-SLOC.
    PERFORM BDC_DATA   USING 'ZMATMASTER-ROL' ITAB-ROL.
    PERFORM BDC_DATA   USING 'ZMATMASTER-UOM' ITAB-UOM.
    PERFORM BDC_DATA   USING 'ZMATMASTER-PRICE' ITAB-PRICE.
    PERFORM BDC_DATA   USING 'ZMATMASTER-DDAYS' ITAB-DDAYS.
    PERFORM BDC_DATA   USING 'ZMATMASTER-FLOT' ITAB-FLOT.
ENDLOOP.
CALL TRANSACTION 'ZTRANSCODES'
                 USING IT_BDC
                 MODE 'A'
                 UPDATE 'S'
                 MESSAGES INTO IT_MSG.
FORM BDC_HEADER USING PROGRAMNAME SCREENNO.
     IT_BDC-PROGRAM = PROGRAMNAME.
     IT_BDC-DYNPRO = SCREENNO.
     IT_BDC-DYNBEGIN = 'X'.
     APPEND IT_BDC.
ENDFORM.
FORM BDC_DATA USING FNAME FVALUE.
     CLEAR IT_BDC.
     IT_BDC-FNAM = FNAME.
     IT_BDC-FVAL = FVALUE.
     APPEND IT_BDC.
ENDFORM.
In session method, log file can be viewed.
Foll. is the example for session method.
REPORT ZBDC_BATCH1                                                 .
TABLES: ZEMPREC.
DATA : BEGIN OF STR1,
       EMPNO(3),
       EMPNAME(15),
       SALARY(9),
       DOJ(10),
       END OF STR1.
DATA: FNAME(100) TYPE C VALUE 'C:\EMPLOYEE.TXT.,
DATA : BDCITAB LIKE TABLE OF BDCDATA WITH  HEADER LINE,
       MSGITAB LIKE TABLE OF BDCMSGCOLL WITH HEADER LINE.
OPEN DATASET: FNAME FOR INPUT IN TEXT MODE ENCODING DEFAULT.
perform open_group.
DO .
  READ DATASET FNAME INTO  STR1.
  IF SY-SUBRC <> 0 .
    EXIT.
  ENDIF.
  perform bdc_dynpro      using 'ZBDC_BATCH' '9000'.
  perform bdc_field       using 'ZEMPREC-EMPNO'
                                STR1-EMPNO.
  perform bdc_field       using 'ZEMPREC-EMPNAME'
                                STR1-EMPNAME.
  perform bdc_field       using 'ZEMPREC-SALARY'
                                STR1-SALARY.
  perform bdc_field       using 'ZEMPREC-DOJ'
                                STR1-DOJ.
ENDDO.
CLOSE DATASET FNAME.
perform bdc_transaction using 'ZTCODE'.
perform close_group.
CLOSE DATASET FNAME1.
CALL TRANSACTION 'SM35'.
  FORM open_group
FORM open_group .
  CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
      CLIENT   = SY-MANDT
      GROUP    = 'sample'
      HOLDDATE = SY-DATUM
      KEEP     = 'X'
      USER     = SY-UNAME.
ENDFORM.                    "open_group
  FORM bdc_transaction
  -->  TCODE
form bdc_transaction USING TCODE.
  CALL FUNCTION 'BDC_INSERT'
    EXPORTING
      TCODE     = 'ZTCODE'
    TABLES
      DYNPROTAB = BDCITAB.
ENDFORM.                    "bdc_transaction
  FORM close_group
FORM close_group.
  CALL FUNCTION 'BDC_CLOSE_GROUP'.
ENDFORM.                    "close_group
  FORM BDC_DYNPRO
  -->  PROGRAM
  -->  SCREEN
FORM BDC_DYNPRO USING PROGRAM SCREEN.
  CLEAR BDCITAB.
  BDCITAB-PROGRAM = PROGRAM.
  BDCITAB-DYNPRO = SCREEN.
  BDCITAB-DYNBEGIN = 'X'.
  APPEND BDCITAB.
ENDFORM.                    "BDC_DYNPRO
  FORM BDC_FIELD
  -->  FNAM
  -->  FVAL
FORM BDC_FIELD USING FNAM FVAL.
  CLEAR BDCITAB.
  BDCITAB-FNAM = FNAM.
  BDCITAB-FVAL = FVAL.
  APPEND BDCITAB.
ENDFORM.                    "BDC_FIELD
Hope now u get an idea abt BDC.
Regards,
Router

Similar Messages

  • How come 64 GB storage can hold only 100 entries in the call list. can anybody explain the reason?

    how come 64 GB storage can hold only 100 entries in the call list. can anybody explain the reason?

    Because the "Recents" is limited to exactly 100 calls, by design...nothing to do with the size of your phone. Tell Apple if you liked to see it increased:
    http://www.apple.com/feedback/iphone.html

  • Can anybody explain the difference REDOLG vs ARCHIVE log files

    can anybody explain the difference REDOLG vs ARCHIVE log files?
    and the relation between redolog files and redolog buffers?
    thanx in advance

    Changes made to the database are recorded in the Redo log buffer. This Buffer contains Redo records or entries, which are a description of changes made to the database.
    The Redo Logs are critical in order to recover the database or to reconstruct data files and undo segments after a system crash or hardware failure.
    Each Oracle instance has only one log writer process (LGWR). The log writer operates in the background and writes all records from the Redo log buffer to the Redo log files. When the database operates in Archivelog mode, the redo logs are are archived before overwritten.

  • Can anybody explain the process of " material under loan"

    hi,
    good evening sap gurus,
    can any body explain the process of "material under loan".
    and the how it works.
    regards,
    balaji.t
    09990019711

    HI,
    Please check this link it may useful to you.
    [Material under loan|http://help.sap.com/erp2005_ehp_03/helpdata/EN/07/b46d3a84a75b49e10000000a11402f/content.htm]
    thanks,
    vrajesh

  • DasyLab Timebases - Can anybody explain the various clocking methodologies ?

    Hi All.
    I,ve been using DasyLab for at least 10 years and as you'd expect become quite proficient.
    Mostly I use Measurement Computing USB pods or DataShuttles.
    But the exact homology of the Time Bases, their physical methods of generation, and particularly the optimum logical choices,
    still remains mysterious and obscure. I can always get a program working you understand, but selecting DasyLab clocking feels like playing Tetris.
    Any insight would be welcomed.  Does anybody see the 'Highest Governing Concept ' here ?
    Thanks and respect.
    DaveTheRave

    Generally speaking, you want to use the hardware based clocking, since the hardware usually has the highest resolution clock.
    When we introduced the Time Base concept, it was to address the new feature that allowed more than one DAQ device to be connected to the PC. Each device may have its own clocking, and some allow you to connect and synchronize multiple devices (Master/Slave clocking).
    One major driver, the IOtech driver, decided to stay within the original Driver API, which allows only one time base, but they made changes in the driver to handle master/slave and sample rate decisions. 
    Other drivers embraced the Time Base concept, and were developed using the "Extension DLL API", starting with the National Instruments driver, and picked up by most driver developers, including Measurement Computing, UEI, instruNet, and many others. 
    So, DASYLab now shows you timing sources from at least two devices -- 
    Driver Timebase is associated with the installed driver - Sound Card, Demo, or IOtech, typically. 
    DASYLab Timebase is a software timed source, usually used for slower (less than 100 samples/sec) timing
    As you add drivers, you will be exposed to that manufacturer's choice of timing:
    National Instruments NI-DAQmx - timing is set in NI Measurement & Automation (MAX)
    You have choices of 1 sample on demand, n samples, continuous
    Each task has its own timing, so one board may have a timebase for Analog Input, Analog Output, Digital Input, Digital Output, etc.
    Measurement Computing MCC-DRV 
    You have two timebases available for most devices, Hardware clocked or software clocked. 
    Some devices only allow hardware clocking for one subsystem - the other subsystems would then use the software clock
    Some devices only allow a single sample rate (USB-TC, USB-TEMP are 2 s/sec)
    Some devices use the settings in instaCal to determine allowed sample rates (USB-2416, USB-2408); individual channel choices may limit the overall  (aggregate) sample rate.
    Analog/Digital output timing can be configured "using the input timing" or with driver based timing - many devices only support software clocked ("slow") timing on outputs.
    UEI - time bases are not created until you create modules that require them
    InstruNet - time base is determined by a mix of the DASYLab time base and the individual channel settings
    If you open a worksheet and you see a time base that is in (parentheses) - the driver or hardware was not found, but the worksheet remembers it.
    Many modules are software data generators - the Generator, the Switch, the Slider, and they offer an option to select one of the available time bases. If you use a switch, for example, to control a relay, the switch timing should match the other inputs of the relay. The switch and the slider also offer a "with input" choice, which allows you to wire an input to them, to force the module timing to match the input timing. 
    Some Input/Output modules have to use software timing on the data - the RS232 Input, for example. It has to assume that the input samples are not equidistantly spaced, and tags the timing with "triggered". You can force it to use hardware timing in the Options, and fill the data block with old data until new data is received. 
    Confusing? Yep. 
    What's the right choice? 
    Hardware vs. software clocking - for sample rates above 100 samples/second, you will want hardware clocking. For slower rates, you may be forced to use software clocking. 
    DASYLab vs. Driver vs. Timebase A HW vs. Timebase B SW
    I would use the device's clock whenever feasible. It's more reliable and accurate than the PC clock.
    So, for Measurement Computing USB "pods" (I like that word!) - use the MCC-DRV timebases when ever possible. 
    Datashuttle... are you in the UK? The original Datashuttle is long gone, and only used the Driver timebase.
    The UK sold (sells?) a version of the IOtech PersonalDAQ 54/55/56 products as a Datashuttle.
    Funny that you should mention tetris... someone may have written a tetris module for DASYLab as a exercise.
    - cj
    Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.

  • Can anybody explain all the details about idoc like configuration settings etc..

    Hi all can anybody explain the idoc configuration settings, communication channels sender and receiver settings

    Hi,
    Common steps in both Sender and Receiver:
    Create logical system and assign to client
    Create RFC Destinations in SM59
    Create RFC Ports in WE21
    Steps in Sender
    Create table in SE11 and insert data
    Create Segments in Tcode WE31.Define the table fields in segment
    Create basic IDOC type in WE30.Specify the above created segment name,save and release the IDOC
    Create message type in WE81
    Assign message type to IDOC type in WE82 and release
    Create partner profile in BD64,add the message type ,specify sender,receiver,message type and  generate partner profile and execute.Distribute the model view
    Check the partner profile in WE20
    Develop a report in SE38 with code that transfers the data from source to destination
    Execute the report and specify the fields to be transferred
    Check the control records in WE02
    Steps in Receiver:
    Create an update function module in SE37
    Assign the function module to logical message
    Define input method in Tcode BD51
    Create process code in WE42
    Generate partner profile in BD64
    After executing the report in sender system check in the destination system table wheather the fields are transferred
    In this case a custom table has been created in sender and receiver with same structure.We can even transfer the standard table fields by using idocs
    Thanks & Regards,
    Sravanthi Polu

  • I just started using fire fox and I cant figure out how to add a new folder to my bookmarks. Can anybody explain how in detail (I'm bad with computers so I need real detail) Please and thank you. :)

    I just started using fire fox and I can't figure out how to add a new folder to my bookmarks.
    Can anybody explain how in detail (I'm bad with computers so I need real detail)
    Please and thank you. :)

    If you use extensions (Tools > Add-ons > Extensions) like <i>Adblock Plus</i> or <i>NoScript</i> or <i>Flash Block</i> that can block content then make sure that such extensions aren't blocking content.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    You can use one of these to start Firefox in <u>Safe mode</u>:
    *On Windows, hold down the Shift key while starting Firefox with a double-click on the Firefox desktop shortcut
    *On Mac, hold down the Options key while starting Firefox
    *Help > Restart with Add-ons Disabled
    If it works in Firefox Safe-mode then disable all extensions (Tools > Add-ons > Extensions) and then try to find which is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    See also:
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Can Anybody explain me the difference between  a Bapi and a webservice?

    Can Anybody explain me the difference between  a Bapi and a webservice?

    Hi Anil,
    <b>BAPI</b>
    BAPI is a library of functions that are released to the public
    as an interface into an existing SAP system from an external
    system.A BAPI function is a function module that
    can be called remotely using the RFC technology
    BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA.
    In this case you only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI. It is not possible to connect SAP to Non-SAP systems to retrieve data using RFC alone. RFC can acces the SAP from outside only through BAPI and same is for vice versa access.
    <b>Webservice</b>
    In simpler terms, WebService is an application on the Web/Internet. Wheneever Service is requested by the user, it provides the service (i.e Request/Response)
    A web service is a collection of protocols and standards used for exchanging data between applications or systems
    In SAP world, we can expose an application into the Webservice. For e.g We can expose ABAP programs into Webservice.
    XI uses SOAP adapter to communicate with webservices see below...why only soap adpater???
    -> Some remote clients or Web services providers are only able to communicate by means of SOAP messages
    ->SOAP adapter enables you to exchange SOAP message between remote clients and Web Service Servers and the Integration Server.
    -> The SOAP Adapter provides a runtime environment that includes various SOAP components for the processing of SOAP message.
    -> You use the SOAP adapter to connect such systems to the Integration Server directly
    -> The SOAP adapter uses a helper class to instantiate and control these SOAP components
    ->The SOAP adapter receives a msg from the remote client or Web service provider, converts the SOAP protocol into XI msg protocol and then sends the msg to the Integration Server to be processed further.
    Basically  RFCs BAPI are all SAP oriented, Webservices are language / environement independent. So, all one has to do is publish a Webservice and any external system by providing the data in the correct format, can get the approopriate response back.
    see these links to know more abt webservices..
    http://www.webservices.org/
    http://www.w3.org/2002/ws/
    regards
    biplab

  • Can Anybody explain me the difference between  a A2X and a A2A Service?

    Can Anybody explain me the difference between  a A2X and a A2A Service

    I dont think A2X refers to b2b Scenario as there is a big difference between B2B and A2A, this is quite a debatable arena. In the present case A2X can be where the application under consideration is communicating with an unknown third party application of which the only details we have are the field data to be sent/recieved etc. Its used more to describe a third party app, so its to be considered as an x-App. can be any j2ee app or .net app, the X here is used as a variable to denote the unknown till it becomes known..in which case the documents start referring to it as A2A.....
    Hope that helps
    Regards
    Ravi

  • Can anybody explain how to configure the Centralized contract in SRM 7

    Hi All,
    Can anybody explain how to configure the Centralized contract management in SRM 7 with ECC EHP4 ?what are all that need to be perform in PI system.
    Thank you,
    praveen

    Hello,
    PI will be required here. You can also refer the config guides maintained at the belwo mentioned location.
    Goto URL http://service.sap.com/srm-inst and then navigate to SAP SRM --> SAP SRM Server 7.0 -> Configuration Guides for SAP SRM 7.0
    Best Regards,
    Rahul

  • Can anybody explain me how to sample and play audio files with logic's EXS2

    can anybody explain me how to sample and play audio files with logic's EXS24 Sampler???
    i cant find a way to upload and manage my own audio content on this sampler...

    i uderstand , thanx...
    i managed to open an audio file and placed it in the sampler,i can play t sample in the little keyboard in the zones section, howver i dont know how to play it with my controller... the sample shows in C1 on logic's keyboard but if i play C1 on my controller nothing happens... how can i fix this?
    Also, i noticed the sample plays from beginning to end once i click on it, how do i do to just make it last until i release the key? like a logic sound??? (in case i want to play a small portion of the sample only)
    Thanx

  • Can anybody explain about MM data extraction with steps.

    Hai everybody!
        Right now i got an opportunity to work with MM datasource extraction by using LO cockpit in BI7.0. But I never worked in this
    module.Pls can anybody explain how can i deal this datasource
    and how can i migrate data into SAP BI. Pls give steps and explanation.
    Warm Regards
    Ravi.

    Hi,
    Pls search SDN BI forum, you will get a lot of info about this.
    http://www.sap-img.com/business/lo-cockpit-step-by-step.htm
    /community [original link is broken]
    /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
    LOGISTIC COCKPIT DELTA MECHANISM - Episode two: V3 Update, when some problems can occur...
    LOGISTIC COCKPIT DELTA MECHANISM - Episode three: the new update methods
    LOGISTIC COCKPIT - WHEN YOU NEED MORE - First option: enhance it !
    LOGISTIC COCKPIT: a new deal overshadowed by the old-fashioned LIS ?
    Regards
    CSM Reddy

  • Can Anybody explain me the role of xi in IS-Retail integration and POS cons

    Can Anybody explain me the role of xi in IS-Retail integration and POS cons

    Hi AnilKumar,
    Find the list is below:
    Q: Role of xi in IS-Retail integration
    Ans: **Business Content Scenario – Retail
    Why using XI in this scenario
    &#56256;&#56452; A push of ‘message type’ data to BW is required
    &#56256;&#56452; XI supports quality of service ‘Exactly once in order’ in push scenarios
    &#56256;&#56452; Stores deliver the data according to ARTS/IX-Retail
    &#56256;&#56452; XI supports ARTS/IX-Retail
    &#56256;&#56452; In case the stores deliver the data as flat files they can be easily transfered to XML format via XI
    Business Content Scenario – Retail
    Store Connectivity Scenario
    &#56256;&#56452; Increase profitability by utilizing POS1 data for
    controlling of retail processes and by understanding
    customer behavior in a better way.
    &#56256;&#56452; SAP XI as single point to collect POS sales information
    as mass data from (3thd party) store systems via an open
    industry specific interface (ARTS/IX-Retail2 compliant).
    &#56256;&#56452; Using SAP XI as additional source for SAP BW
    &#56256;&#56459; improved by Retail POS Data Management to
    ensure better data quality
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0ccae190-0201-0010-1593-c90ef3c1d159
    Pls rewrds if found helpful.
    BR,
    Alok Sharma

  • Can anybody explain what is support for ADF Project and to solve the Issues

    Hi,
    I am new to ADF and i am currently associated to ADF Support Project.
    Can anybody explain what is support for ADF Project and to solve the Issues when the ADF Project is in Live.
    we are getting the Tickets for the Issues.
    Thanks in advance.

    I agree with Timo.
    It depends on the size of the project, user base, technologies, etc. We use lot of technologies in fusion middleware stack. We get tickets in many areas.
    In your case, it could be anything like user training issues (user may not know how to use the some system features), browser issues like blank screen, bugs in code like JBO errors (failed to validate, another user has changed row, failed to lock the record, NullPointerException, IllegalArgumentException etc), business logic issues, page may not render properly, performance issues, partial commit issues, application server issues, authentication issues. If you use web services you might get web services related problems.

  • CAN ANYBODY EXPLAIN ME THE GENERAL FUNCTIONING OF THE SD, MM, PP MODULES.

    CAN ANYBODY EXPLAIN ME THE GENERAL FUNCTIONING OF THE SD, MM, PP MODULES.

    Hi Santosh,
    Seems u r new to SAP.
    SD, MM, PP, FI ,CO,CRM ,etc... are the functional areas dealing in the SAP R/3 ERP.
    They all have their own transaction code and tables. But all are integrated and related to each other.
    For more info check these links.
    http://www.sap-img.com/sap-mm.htm
    http://www.sap-img.com/sap-sd.htm
    http://www.sap-img.com/sap-pp.htm
    Hope this will resolve ur query.
    Reward if helpful.
    Regards.

Maybe you are looking for