Difference between Batch input and Direct Input

Hi please tell me the difference between Batch Input and Direct Input in BDC?

hi aparna,
<b>DIRECT INPUT</b>
TO ENTER THE DATA INTO THE CORRESPONDING DATABASE TABLES DIRECTLY, THE SYSTEM CALLS A NUMBER OF FUNCTION MODULES THAT EXECUTE ANY NECESSARY CHECKS. IN CASE OF ERRORS, THE DIRECT INPUT TECHNIQUE PROVIDES A RESTART MECHANISM. HOWEVER, TO BE ABLE TO ACTIVATE THE RESTART MECHANISM, DIRECT INPUT PROGRAMS MUST BE EXECUTED IN THE BACKGROUND ONLY. DIRECT INPUT CHECKS THE DATA THOROUGHLY AND THEN UPDATES THE DATABASE DIRECTLY.
TO MAINTAIN AND STRAT THESE PROGRAMS, USE PGM RBMVSHOW OR THE TRANSACTION BMVO.
<b>BATCH INPUT</b>
TYPES – SESSION METHOD, CALL TRANSACTION, DIRECT INPUT.
TO SAVE DATA IN THE BDCTAB, USE THE FIELDNAME ‘BDC_OKCODE’ AND FIELD VALUE OF ‘/11’.
BDCDATA
THIS IS A STRUCTURE WHICH CONTAINS THE FOLLOWING FIELDS.
PROGRAM – NAME OF TH MOD PROG ASSOCIATED WITH THE SCREEN. SET ONLY FOR THE FIRST RECORD OF THE SCREEN.
DYNPRO – SCREEN NUMBER. ALSO SET ONLY FOR FIRST RECORD.
DYNBEGIN – INDICATES THE FIRST RECORD OF THE SCREEN. SET ‘X’ FOR FIRST RECORD OTHERWISE ‘ ‘.
FNAM – FIELD NAME.
FVAL – VALUE FOR THE FIELD NAMED IN FNAM.
THE FIRST STEP IN BDC IS TO UPLOAD DATA FROM THE FLAT FILE OR SEQUENTIAL FILE TO THIS BDCTABLE.
SESSION METHOD
WE USE 3 FUNCTION MODULES IN THIS SESSION METHOD.
1) BDC_OPEN_GROUP
     USER NAME:     USER NAME
     GROUP:          NAME OF THE SESSION
     LOCK DATE:     THE DATE ON WHICH YOU WANT TO PROCESS THE                              SESSION.
     KEEP:          THIS PARAMETER IS PASSED AS ‘X’ WHEN YOU WANT TO RETAIN SESSION AFTER     PROCESSING IT OR ‘ ‘ TO DELETE IT AFTER PROCESSING.
THIS CREATES A SESSION
2) BDC_INSERT
     TCODE:          TRANSACTION NAME
     DYNPROTAB:     BDC DATA
THIS CREATES A SEESION AND DATA IS TRANSFERRED O SESSION.
3) BDC_CLOSE_GROUP – THIS CLOSES THE BDC GROUP.
ONLY ONE SESSION CAN BE CREATED USING BDC_OPEN_GROUP. BUT MULTIPLE TRANSACTIONS CAN BE PROCESSED USING BDC_INSERT.
CALL TRANSACTION
CALL TRANSACTION     <TCODE> USING <BDCTAB>
                                        MODE <A/N/E>
                                        UPDATE <S/A>
                    MESSAGES INTO <MSGTAB>.
A – ALL SCREEN MODE. ALL THE SCREEN OF THE TRANSACTION ARE DISPLAYED.
N – NO SCREEN MODE. NO SCREEN IS DISPLAYED WHEN YOU EXECUTE THE TRANSACTION.
E – ERROR SCREEN. IF THE SCREEN HAS ERROR RECORD, THEN THAT SCREEN WILL BE DISPLAYED.
S - IF YOU CHANGE DATA OF ONE TABLE THEN ALL THE RELATED TABLES GETS UPDATED. AND SY-SUBRC IS RETURNED I.E., SY-SUBRC IS RETURNED FOR ONCE AND ALL.
A - WHEN YOU CHANGE DATA OF ONE TABLE, THE SY-SUBRC IS RETURNED. AND THEN UPDATING OF OTHER AFFECTED TABLES TAKES PLACE.  SO IF SYSTEM FAILS TO UPDATE OTHER TABLES, STILL SY-SUBRC RETURNED IS 0 (I.E., WHEN FIRST TABLE GETS UPDATED
WHEN YOU UPDATE DATABASE TABLE, OPERATION IS EITHER SUCCESSFUL OR UNSUCCESSFUL OR OPERATION IS SUCCESSFUL WITH SOME WARNING. THESE MESSAGES ARE STORED IN INTERNAL TABLE, WHICH YOU SPECIFY ALONG WITH MESSAGE STATEMENT. THIS INTERNAL TABLE SHOULD BE DECLARED LIKE BDCMSGCOLL, A STRUCTURE AVAILABLE IN ABAP/4. IT CONTAINS THE FOLLOWING FIELDS: TCODE, DYNAME, DYNUMB, MSGTYP, MSGID.
DIFFERENCE BETWEEN SESSION AND CALL TRANSACTION
          SESSION METHOD               CALL TRANSACTION
1.          DATA IS NOT UPDATED IN DATABASE TABLE UNLESS SESSION IS PROCESSED.               IMMEDIATE UPDATION IN DATABASE TABLE.
2.          NO SY-SUBRC IS RETURNED.               SY-SUBRC IS RETURNED.
3.          ERROR LOG IS CREATED FOR ERROR RECORDS.               ERRORS NEED TO BE HANDLED EXPLICITLY
4.          UPDATION IN DATABASE TABLE IS ALWAYS SYNCHRONOUS
               UPDATION IN DATABASE TABLE CAN BE SYNCHRONOUS OR ASYNCHRONOUS.
5.          ASYNCHRONOUS PROCESSING               SYNCHRONOUS PROCESSING
6.           TRANSFERS DATA FOR SINGLE TRANSACTIONS               TRANSFERS DATA FOR MULTIPLE TRANSACTIONS
ERROR HANDLING IN CALL TRANSACTION
1)     CREATE AN INTERNAL TABLE SIMILAR TO THE STRUCTURE OF YOUR LOCAL FILE.
2)     CREATE BDCTAB LIKE BDCDATA.
3)     CREATE BDCMSG LIKE BDCMSGCOLL.
4)     CREATE AN INTERNAL TABLE SIMILAR TO THE 1ST INTERNAL TABLE.
5)     UPLOAD FN UPLOADS DATA FROM THE LOCAL FILE TO THE ITAB.
6)     LOOP AT ITAB.
POPULATE BDCTAB TABLE.
CALL TRANSACTION STATEMENT.
PERFORM CHECK.
REFRESH BDCTAB.
ENDLOOP.
7)     FORM CHECK.
IF SY_SUBRC <> 0.
CALL FUNCTION FORMAT_MESSAGE.
APPEND ITAB2.
ENDFORM.
TRANSACTION FOR RECORDING – SHDB.
MAX TIME ALLOWED FOR ONLINE EXECUTION – 300 SECONDS.
<b>
Pls reward if helpful.</b>

Similar Messages

  • Difference between standard dtp and direct access dtp

    Hi,
    Can anybody tell me the difference between standard DTP and Direct access DTP other than Help.sap.com.
    Regards,
    Devi

    simple words.. Standard DTP needs to use for Physical data targets loading.
    Direct Access DTP needs to use for virtual providers. you won't pull data into BI. it will directly retrive from DS while reporting .
    Nagesh Ganisetti.
    Assign points if it helps.

  • What is the difference between Batch determination and Batch derivation?

    Please explain the difference between batch determination and batch derivation.

    Hello Kishore,,
    Please refer below thread for your issue
    Batch derivation
    Batch Derivation Overview with exampl
    SAP Batch Derivation - SAPs'WORD - We SAP For Your Cause
    Batch Determination
    SAP Batch Determination - SAPs'WORD - We SAP For Your Cause
    I hope this document provide you enough knowledge of batch derivation and Determination
    I hope this information help to you
    Regards
    Umesh Mali

  • Difference between batch job and Background Job

    Hi Forum,
    Can anyone distinguish between batch job and background job for me please ?
    SK

    Hi,
    Batch Job:
    A batch job is a process that runs in the background, often deferred and unattended, to process data in groups (batch) rather than by individual transactions (e.g. a monthly phone bill rather than a bill for each individual phone call). A batch job executes a sequence of programs and technical instructions that are stored in a command file. Progress and error messages are output to a log file allowing users to determine, at any time, if the batch job completed successfully or identify the cause of the problem. Because batch jobs run in the background they are less visible to the end user.
    In a business-computing context, batch job scheduling implies the automatic execution of background tasks (batch jobs) at pre-determined points in time (e.g. every day at 8pm, midday on Wednesday).
    3 types of batch job scheduling can be distinguished: native, basic and advanced batch job scheduling.
    Most operating systems and some business solutions software come equipped with native batch job scheduling tools that provide a limited service (e.g. Windows Scheduled Tasks, UNIX crontab, SAP CCMS) locally to each installation. However, business processes may span multiple platforms, applications, countries and companies. Their complexity may require much more functional power as provided by basic batch job scheduling including national and regional variations in the working calendar, sequence variations according to the day of the month, triggering of jobs by the successful completion of preceding jobs, elimination of gaps and reduced batch windows. Major benefits of basic batch job scheduling are enhanced productivity, operations reliability and cost-reduction. For e-business applications that require real-time processing, the distance between interactive individual processing and batch processing tends to decrease. Advanced batch job scheduling can handle these advanced requirements: event-driven scheduling for a real-time synchronization with interactive processing, just-in-time scheduling to run operations as soon as possible, cross-platform and cross application services for the entire IT landscape, real-time overall monitoring to track background operations for all applications on all servers.
    The standard benefits of batch job scheduling are drastically amplified when job schedulers can handle the end-to-end automation and monitoring requirements for all background operations.
    To schedule a back ground job follow the below steps:
    1. Use Transaction SM36.
    2. Assign a job name.
    3. Set the job’s priority, or “Job Class”:
    High --- Class A
    Medium --- Class B
    Low ---Class C
    4. Here you can specify,when the job is to start by choosing Start Condition. If you want the job to repeat, or be periodic, check the box at the bottom.
    Else click on the immediate and save this.
    5. Now,define the job’s steps by choosing Step.
    Here you need to give the ABAP program that has been used and the name of the variant thats being used.
    6. Save the fully defined job to submit it to the background processing system.(You need to click save button on the main screen i.e SM36)
    7. When you need to modify, reschedule, or otherwise manipulate a job after you've scheduled it the first time, you'll manage jobs from the Job Overview.
    8. Release the job so that it can run.
    The job, even those scheduled for immediate processing, can not run without first being released.So,do remember to release.
    Hope this helps you.
    Regards,
    Rakesh

  • Is there a difference between the X and Y input parameters of a "=" comparison​?

    Hello,
    In the attached Vi, if I switch the input parameters of the equal comparison, the Vi compiles. Otherwise it shows the class conflict error.
    In the real system, I just switched between the parameters and everything worked fine but I'd like to know why this version is wrong so next time I don't waste so much time debugging.
    Thanks,
    Marce
    Attachments:
    SDDSSupervisorTest2.vi ‏26 KB

    It looks like you dropped a refnum from the front panel palette and then set the type to boolean; this created a weak-typed refnem. To make a strong typed refnum, right click on the control and select create reference; a reference appears on the block diagram. Go to the reference and right click create control. The reference control on the front panel now has the orange star indicating that it is strong typed.
    I don't know why equals behaves the way it does with weak-typed references. You might also experiment with the equals operator on the Express palette.
    Attachments:
    SDDSSupervisorTest2-a.vi ‏34 KB

  • Difference between -  Write Optimized and Direct Update DSO

    Hi Gurus,
    I know the similarities of the Write Optimized and Direct Update DSO.
    But I want to know what is the difference between the both.
    Can any expert let me know the difference between the both please.
    Thanks

    Hi,
    Write Optimised DSO:
    Write optimsed DSO has been designed to be the initial staging of the source system  data from where the data could be transfered to the standard DSO or the Infocube.
    The Data is immediately written to the further data targets.We can save the activation time.Reporting also possible on this.
    SAP recommends to use Write-Optimized DataStore as a EDW inbound layer, and update the data into further targets such as standard DataStore objects or InfoCubes.
    Direct Update DSO:
    Dat a store object for direct update conatains daya in a single version.therefore data is stored same form in which it was written to DSO for direct update by the application.We can use this type of DSO for APD.
    In IP we can use this dso and directly we can enter the data using RSINPUT.
    Thanks
    Madhavi

  • Difference between Batch jobs and background jobs...

    hi APO Gurus ....
    This may sound a very silly question. What is  the exact difference between a batch run and executing a background job ?

    If i understand correctly  your question is  executing a program (for example) in background and running in a batch jobs.  You can execute a program in background while you are online, go to menu program->execute in background and enter print parameter, schedule parameter. System creates and starts job dynamically. You can check in SM37.  Batchjob is you create job using   SM36 (with program and Variant) define run frequency. System automatically run job in specified frequency.  I my experience, technically both are same, system behaves exactly same. One dynamically creates job other one runs on predefined freq.
    Thanks,
    Niranjan

  • Difference between ACH, Wires and Direct Debit

    Can anyone tell me the difference between the following:
    ACH
    Wires
    International Wires
    Direct Debit
    What is the additional configuration required from a functional consultant apart from setting them up as a payment method. Please help with all steps. and what inforamtion shouldbe requested from bank in order to set a data flow to and from the bank

    Hi,
    ACH - A provider of electronic funds transfer services in the United States, handling automated payments such as direct debit and direct credit.
    Companies that use ACH send a DME file with information about the payments to be made. ACH then carries out the payments for them.
    Direct Debit - Payment of an agreed amount that is collected from a customer's account by an originator on request.
    A direct debit may or may not be subject to advance notice and the amounts may vary. Examples include the payment of utilities, news subscriptions, or the periodic collection of insurance premiums or loan payments.
    Wire Transfer: Wire transfer is a method of transferring money from one entity to another
    So U can create the APP Config FBZP for the ACH and Wire payments
    Additionally search sdn.sap.com, you will find lot of information.
    Please let me know if you need more information.
    Assign points if useful.
    Regards
    Sridhar M

  • Difference between batch quantity and quantity for sale

    Hi all,
    I have created a batch in system with weight 340 KG. However, when I make a sales order for that batch, the system picks only 188 KG of it. There is no reserved/blocked etc quantity for the batch. Can you please help me identify where I might be going wrong?

    Base Quantity - Quantity of the material to be produced to which the standard values of the operation refer.
    Operation Quantity - Quantity planned for this operation.
    Base quantity and operation quantity may not always be the same, if we have partial lots delivered during the sequence of operations, the operation quantity will be equal to the lot delivered during the operation.
    Base quantity is dependent on the BOM, where it signifies the total quantity of output after using the components of certain quantity.
    Hope this may help you.

  • What's the difference between Apple TV and direct-connecting an iPad?

    I'm thinking about getting Apple TV - but what does Apple TV give me that my iPad doesn't?  I've got an Apple cable that connects my iPad to my big screen already.  What do I gain by getting Apple TV instead?  Please advise - thanks!

    Thanks!  Yea, I'm leaning that way and from everything I've read the 'biggest' benefit would be Airplay - and the 5:1 surround in my gameroom (or the 7:1 surround in my screening room).  I don't stream movies - I'm more of a blu ray collector and watch movies that way - so in all probability I wouldn't use Apple TV in the screening room - but there are several other locations where it could be a nice addition.
    I do watch some TV shows on my iPAD, and lots of music videos - so perhaps, with Airplay they'll look/sound even better if I push that content to one of the other big screens.
    For the most part - whenever I wanted to watch something from my iPad on the big screen, I just connected it to my A/V receiver - pressed play, and enjoyed.  Apple TV would now become that device that's connected to my A/V receiver, and the iPad more of a remote - uncabled.
    Again - thanks for the reply; it's proven very helpful.
    Cheers.

  • Difference between batch input method and direct input method in LSMW.

    Hi all,
    what is difference between batch input method and direct input method in LSMW. are they same?if differences are there tell me with details?

    Hi,
    Here are few differences bw Batch Input and Direct Inputs methods.
    Batch Input: Uses classical BDC approach, but doesn't required an ABAP program to be written to format the BDC DATA. The user has to format the data using predefined structures and store it in a flat file. Yet it is a slower updation method.
    Direct Input: Works similar to Batch Input programs. The difference is, instead of processing screens they validate fields and directly load the data into tables using standard function modules. Much faster and suits for large volume of data.
    Thanks.
    DhanaLakshmi M S

  • Difference between batch and lot size

    What is the difference between batch size and lot size. How do these quantities relate to production planning &  machine capacity planning.
    Regards

    Hi,
    Lot size: Some times specific materials are not referred individually but are represented in groups or lots.
    When we maintian BOM/production version/routing it is sometime convinenit to maintain compoenent  qty / operaion times ect..  for speciifc lots .. we also call them base qty.
    we can create different master data for different lot sizes and it is consider in auto selection of this master data in production orders.
    MRP can also intiate procurement / production in speciifc lots and this lot size in size is maintained in material master ans lot sizing procedure is maintianed in MRP customiziation.
    Batch Size: some times batch size and lot size can be interheprited same in busienss langauge but they have fundamental
    difference from SAP point of view. .
    In SAP Batch is homoginious non reproducible Unit of  material. The batch zise depends on GR qty of the specific batch.

  • Can anyone Explain me the difference between Batch Input, Direct  input met

    Can anyone Explain me the difference between Batch Input Method and Direct Input Method.

    hi
    good
    Direct input method                     Batch Input Method
    1) We cannot send the fields   | 1) We can send fields as per 
       according to our requirement|    requirement.
    2) validations are done based
    2) validations are done based
       on pre-defined function
    on applications.
       modules
    Batch Input Session:
    - It is a sequence of transactions, which is generated when user run a particular program. 
    - It contains the accounting documents that are to be created. The SAP system stores these transactions until you decide to process them online. 
    - It does not update transaction figures until the session has been processed.  Using this technique, you can transfer large amounts of data to the SAP system in a short time.
    Three processing modes of executing Batch Input Session :-
    (1) Run Visibly : You can correct faulty transactions online & work step-by-step through  the transactions not yet executed. 
    (2) Display Errors only : You can correct faulty transactions online.   Transactions not yet executed, but without error, run in the background.
    (3) Run in Background : Recommended by SAP.                          
    thanks
    mrutyun^

  • Difference between batch input method and batch input recording in LSMW?

    hi,
    plz tell me the difference between batch input method and batch input recording in LSMW?
    thanks & regards
    Ruban

    Hi Ruban,
               The main difference between the two is in lsmw we can view the code status at any time just by coming to prvious steps, but whereas in batch input method unless the recording is finished we cant view the code.
    second diff is tht we need to do lot of coding in batch inptu whereas here in lsmw we need not do much coding and mapping to data.
    third diff is that batch input is both inbound and outbound where as lsmw is only inbound.
    hope u got the differences.....
    Regards,
    sana M...

  • Extending Batch Input or Direct Input

    Hello experts,
    I am customizing Material Master by adding some custom fields to MARA.  I know I can extend the IDoc for loading the data including my custom fields.  I was wondering if, and how, to extend the Batch Input or Direct Input to include my custom fields.
    Can anyone point me in the correct direction?

    Append the MARA structure with your custom fields. (Are these fields available on material master screen as well ?)
    Write the code in the appropriate user-exit to populate these fields OR use a BAPI and extensionin parameter to populate your custom fields.

Maybe you are looking for

  • .oam file of html5 video trigger code not working in Muse

    I simply want to have a video play on page load. I have done the code for a trigger on one <div> to automatically play a video in Edge. The video plays perfectly in browser preview, even with transparency intact! Just the way I want it. The problem i

  • Boot Camp Error "You cannot partition an external disk drive"

    Hi all - I am trying to install Windows XP Pro via Boot Camp for the first time. I have all four bays of my MacPro (circa 2007) filled with hard drives. I boot off the first bay, and have a cal digit raid card that controls the other three hard drive

  • Format external HD with GUID to enable eDrive

    New external (LaCie 2T) HD is formatted w/ OS Extended (Journaled). Error message when I try to create an eDrive reads: "The seclected drive is using the Master Boot Record partition scheme.  It should be Apple Partition Map or GUID to create an eDri

  • No sound from 3gp videos taken with phone when played on laptop

    When I transfre 3gp viideos taken on my phone to my computer, when I play them, there is no sound signal at all. What is wrong?

  • Migrate outlook 365 POP Accounts to Exchange online

    Hello... my client would like to migrate a number of Outlook 365 POP3 users (non microsoft ISP) to the Office 365 small business environment and Exchange Online.  Can you provide me with a migration overview/plan to accomplist this?  Additonal questi