Doubt in BDC direct input method

Hi experts
I dont know how to upload data in SAP data base by using BDC direct input coding method. Can u people explain this with coding?
Thanks in advance.
Regards
Antony

Hi,
DI is used when u r going upload large amount of data for single application.
Better example where direct input method will be used is... uploading the data for material master.....it includes lot of views so its very much difficult to capture all the views and record the tcode and map the data in such conditions its better to go with DI methods
advantages:
in session method or CT method while uploading the data u do the validation by fallowing the screen sequence and field sequence where as in DI validations can be done set of code so this make the process very fast so its advantageous to upload large amout of data.
you always use the standard sap provided program for this.
Here in DI method very important thing is structure of flat file... so to know the structure first of all you have to download the data for one record into the internal table with the use of the same program then with the use of that structure u have to desing the flat file and upload the data.
Re: re: direct input method
Award points if useful.
Thanks,
Ravee...

Similar Messages

  • Can anybody tell me why "Direct Input Method of BDC" said to be Obselete?

    Why it is said that "Direct Input Method of BDC" is obselete?

    hi,
    Direct Input:
    A recent technique to input data safely. An alternative to batch input.
    With direct input, the SAP function modules execute the consistency checks. However with batch input, these consistency checks are executed with help of the screens. This means that direct input has considerable performance advantages. But there are a few programs for direct input, you can use them if it accomplishes your goal. Direct Input programs work like that they update database tables directly. As you know that it is forbidden to update SAP database tables directly, since consistency and security should be considered. Exceptions are these direct input programs. So you are not able to write custom ABAP direct input programs. But of course you can write ABAP programs to update custom database tables (Z tables), if you are sure all about consistency.
    SAP has created direct input programs because SAP wanted to enhance the batch input procedure, since batch input is slower. SAP offers the direct input technique, especially for transferring large amount of data. In contrast to batch input, this technique does not create sessions, but stores, updates, inserts data directly. 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 able to activate the restart mechanism, direct input programs must be executed in the background only. To maintain and start these programs, use program RBMVSHOW or transaction BMV0.
    Examples for direct input programs are:
    RFBIBL00 - FI
    RMDATIND - MM
    RVAFSS00 - SD
    RAALTD11 - AM
    RKEVEXTO - CO-PA
    I hope it helps.
    In contrast to batch input, this technique does not create sessions, but stores the data directly. It does not simulate the online transaction. 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.
    cheers!'sri

  • BDC-Direct Input

    Please give an example for Direct Input method in BDC.When it is used? what is the advantage and disadvantage?

    Hi Khanna Renga ,
    Direct Input method is used for bulk transfer of data into SAP system.It results in faster execution since no screens are processed and the SAP database will be updated directly using the standard function modules.
    Better example where direct input method will be used is... uploading the data for material master.....it includes lot of views so its very much difficult to capture all the views and record the tcode and map the data in such conditions its better to go with DI methods
    Advantages:
    in session method or Call Transaction method while uploading the data u do the validation by fallowing the screen sequence and field sequence where as in Direct Input validations can be done set of code so this make the process very fast so its advantageous to upload large amout of data.
    you always use the standard sap provided program for this.
    Here in Direct Input method very important thing is structure of flat file... so to know the structure first of all you have to download the data for one record into the internal table with the use of the same program then with the use of that structure u have to desing the flat file and upload the data.
    Direct Input:
    With direct input, the SAP function modules execute the consistency checks. However with batch input, these consistency checks are executed with help of the screens. This means that direct input has considerable performance advantages. But there are a few programs for direct input, you can use them if it accomplishes your goal. Direct Input programs work like that they update database tables directly. As you know that it is forbidden to update SAP database tables directly, since consistency and security should be considered. Exceptions are these direct input programs. So you are not able to write custom ABAP direct input programs. But of course you can write ABAP programs to update custom database tables (Z tables), if you are sure all about consistency.
    SAP has created direct input programs because SAP wanted to enhance the batch input procedure, since batch input is slower. SAP offers the direct input technique, especially for transferring large amount of data. In contrast to batch input, this technique does not create sessions, but stores, updates, inserts data directly. 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 able to activate the restart mechanism, direct input programs must be executed in the background only. To maintain and start these programs, use program RBMVSHOW or transaction BMV0.
    Examples for direct input programs are:
    RFBIBL00 - FI
    RMDATIND - MM
    RVAFSS00 - SD
    RAALTD11 - AM
    RKEVEXTO - CO-PA
    Also have a look on below thread..
    Re: re: direct input method
    Re: Give a BDC example by Direct Input Method
    In contrast to batch input, this technique does not create sessions, but stores the data directly. It does not simulate the online transaction. 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.
    Hope it will solve your doubts and problem..
    Reward points if useful..
    Thanks & Regards
    ilesh 24x7

  • Abt Direct Input Method

    Hi Experts,
       How can Handle Direct Input Method in BDC.wht is Direct Input Method, wht purpose they can use.
    Thanks
    Srinadh

    Hi,
    DI is used when u r going upload large amount of data for single application.
    Better example where direct input method will be used is... uploading the data for material master.....it includes lot of views so its very much difficult to capture all the views and record the tcode and map the data in such conditions its better to go with DI methods
    advantages:
    in session method or CT method while uploading the data u do the validation by fallowing the screen sequence and field sequence where as in DI validations can be done set of code so this make the process very fast so its advantageous to upload large amout of data.
    you always use the standard sap provided program for this.
    Here in DI method very important thing is structure of flat file... so to know the structure first of all you have to download the data for one record into the internal table with the use of the same program then with the use of that structure u have to desing the flat file and upload the data.
    Re: re: direct input method
    Regards,
    Priyanka.

  • 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

  • LSMW direct input method

    Hi
      What is the procedure to include a specific program / report in the drop down box of program name of Direct Input method in LSMW?
    What is the diff. between Physical path and Logical path?
    How can we give our input data using logical path when we execute some standard batch or direct input programs?
    Ex. RMDATIND.

    http://help.sap.com/saphelp_erp2005vp/helpdata/en/87/f3ae63e68111d1b3ff006094b944c8/frameset.htm
    Regards,
    Amit

  • LSMW Direct input method error

    Hi experts,
       I created the LSMW using direct input method (PR Creation).
       In the create batch input session step (executed) i am getting below
    message and follwed bt processing terminated message and going out
      Transaction 0: transaction code / not supported
    what could be the problem ? any problem in specifying logical path .
    pls let me know the solution.
    Thanks
    sai

    Hi chenna,
       Thanks for reply, I added the tcode and now getting the message like the session was created
    but when i see in sm35 there is no  seesion created and there is no log also.
    what could be the reason? pls explain
    thanks
    sai

  • LSMW updating problem with direct input method

    Hi!
    Using version 4.0.0 of the LSM Workbench from 2001-07-01 on SAP R/3 4.7, I need to update the purchase order text and wanted to use the direct input method.  I found a tutorial on SAPTechnical which I followed.  All went well, the input data was converted and at last I got the message:
    "Long Texts in Total : 2
    Successfully Transferred Long Texts : 2
    Non-Transferred Long Texts : 0"
    My trials are recorded in table STXH with date and time and also in the material master change history.  However, the result in the material master is that the purchase order text is NOT updated.
    Can anyone tell me why this might be?

    Hi Santosh!
    First of all, thank you very much for posting an answer.  But unfortunately it was of no help.  I want to update the purchase order text on a material that already has the purchasing and purchase order text views. When I compare the PO text before and after my "Successfuly Transferred Long Texts" there is no change.  I hope that this make it more clear but it is still a mystery to me.

  • Call transaction in Direct input method

    Hi All
      how do i use call transaction in direct input  method.
    thanks all

    Hi,
    Direct input is different and Call transaction is different.
    In Direct input method,the data will be uploaded directly into the table.
    In call transaction you can change the data before uploading into dictionary table by using tcode
    Ex for Direct input method
    TABLES: kna1.
    DATA: BEGIN OF itab1 OCCURS 0,
          str(255),
          END OF itab1.
    DATA: itab2 TYPE kna1 OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'WS_UPLOAD'
      EXPORTING
        filename                = 'D:\ABAP EVE\ffile1.txt'
        filetype                = 'ASC'
      TABLES
        data_tab                = itab1
      EXCEPTIONS
        conversion_error        = 1
        file_open_error         = 2
        file_read_error         = 3
        invalid_type            = 4
        no_batch                = 5
        unknown_error           = 6
        invalid_table_width     = 7
        gui_refuse_filetransfer = 8
        customer_error          = 9
        no_authority            = 10
        OTHERS                  = 11.
    IF sy-subrc <> 0.
      WRITE:/ 'sorry'.
    ELSE.
      LOOP AT itab1.
        SPLIT itab1-str AT ',' INTO itab2-kunnr itab2-name1.
        APPEND itab2.
      ENDLOOP.
      IF sy-subrc = 0.
        LOOP AT itab2.
          WRITE:/ itab2-kunnr,itab2-name1.
          INSERT INTO kna1 VALUES itab2.
        ENDLOOP.
        IF sy-subrc = 0.
          WRITE:/ 'inserted'.
        ELSE.
          WRITE:/ 'not inserted'.
        ENDIF.
      ELSE.
        WRITE:/ 'fail'.
      ENDIF.
    ENDIF.
    Flat file:
    10001,Sadney
    10003,Yogesh
    20005,Madan
    Ex for Call transaction
    DATA: BEGIN OF itab OCCURS 0,
          str(255),
          END OF itab.
    DATA: BEGIN OF itab1 OCCURS 0,
          lifnr LIKE lfa1-lifnr,
          name1 LIKE lfa1-name1,
          ort01 LIKE lfa1-ort01,
          END OF itab1.
    DATA: jtab LIKE bdcdata OCCURS 0 WITH HEADER LINE.
    DATA: ktab TYPE TABLE OF bdcmsgcoll,
          wa TYPE bdcmsgcoll.
    CALL FUNCTION 'WS_UPLOAD'
      EXPORTING
        filename                = 'D:\ABAP EVE\ffile4.txt'
        filetype                = 'ASC'
      TABLES
        data_tab                = itab
      EXCEPTIONS
        conversion_error        = 1
        file_open_error         = 2
        file_read_error         = 3
        invalid_type            = 4
        no_batch                = 5
        unknown_error           = 6
        invalid_table_width     = 7
        gui_refuse_filetransfer = 8
        customer_error          = 9
        no_authority            = 10
        OTHERS                  = 11.
    IF sy-subrc <> 0.
      WRITE:/ 'no file exist'.
    ENDIF.
    LOOP AT itab.
      SPLIT itab-str AT ',' INTO itab1-lifnr itab1-name1 itab1-ort01.
      APPEND itab1.
    ENDLOOP.
    LOOP AT itab1.
      PERFORM prginfo USING 'SAPMZBDCCT' '123'.
      PERFORM fldinfo USING 'i01' itab1-lifnr.
      PERFORM fldinfo USING 'i02' itab1-name1.
      PERFORM fldinfo USING 'i03' itab1-ort01.
      CALL TRANSACTION 'ZCSBDCCT' USING jtab
                                        MODE 'N'
                                        MESSAGES INTO ktab.
    ENDLOOP.
    --- Display the Status messages ---
    LOOP AT ktab INTO wa WHERE msgtyp = 'E'.
      WRITE:/ wa.
    ENDLOOP.
    *&      Form  prginfo
          text
         -->PRGNAME    text
         -->SCRNUMBER  text
    FORM prginfo USING prgname scrnumber.
      CLEAR jtab.
      REFRESH jtab.
      jtab-program = prgname.
      jtab-dynpro = scrnumber.
      jtab-dynbegin = 'X'.
      APPEND jtab.
    ENDFORM.                    "prginfo
    *&      Form  fldinfo
          text
         -->FLDNM      text
         -->FLDVAL     text
    FORM fldinfo USING fldnm fldval.
      CLEAR jtab.
      jtab-fnam = fldnm.
      jtab-fval = fldval.
      APPEND jtab.
    ENDFORM.                    "fldinfo
    MPP CODE.
    TOP-INCLUDE.
    DATA: OK_CODE TYPE SY-UCOMM.
    DATA: I01(10),I02(20),I03(26).
    DATA: WA TYPE LFA1.
    PAI
    CASE OK_CODE.
       WHEN 'INSERT'.
         MOVE I01 TO WA-LIFNR.
         MOVE I02 TO WA-NAME1.
         MOVE I03 TO WA-ORT01.
         INSERT INTO LFA1 VALUES WA.
         IF SY-SUBRC = 0.
           MESSAGE I001(ZCSMSG).
         ELSE.
           MESSAGE I002(ZCSMSG).
         ENDIF.
       WHEN 'EXIT'.
         LEAVE PROGRAM.
    ENDCASE.
    Reward,if useful.
    Thanks,
    Chandu

  • Special character "/" replacing with blank with Direct Input Method posting

    Hi All,
    I am posting FI historical data using Direct Input Method. Payment term contains special character "/"( I/E). SAP standard program replacing Special character "/" with blank (I E) so document posting is failing. Could you please advise.
    Thanks
    Chandra.

    Can You please specify the Transaction code and SAP program name for direct input.

  • Direct input method

    Hi all,
    Plz give me brief note on direct input method, what is the use..
                 AND
    Why do we translate the scripts?
    Thanks in advance
    Venkat

    hi,
    direct input method is used for bulk transfer of data into SAP system.It results in faster execution since no screens are processed and the SAP database will be updated directly using the standard function modules.
    Translation is used for translating the texts into the required languages.There is no other specific purpose exists.
    <b>Do remember to close all your threads as you have opened multiple threads today..</b>
    Cheers,
    Abdul Hakim

  • Error Log in Direct Input Method of LSMW

    Hello!
    We are developing an upload through LSMW using its direct input method for material master. This method is better than the Recording method but the only problem we are having is maintaining the error log. Unlike the recording method, in direct input the system gives an error log but it cant me maintained in a permanent file i.e when we go back to the upload for specifying a new file, the error log of the previous file is gone.
    Is there any way that we can maintain the error log in a permanent file? Help needed ASAP!
    Thank You!
    Regards
    Sahar

    When i enter %PC in the command field the system gives following information
    Function code cannot be selected
         Message no. 00255
    Diagnosis
         You entered an inactive function code.
         You can trigger this by:
         o   inputting directly in the OK code field,
         o   inputting the fastpath of an inactive menu function,
         o   choosing an inactive function key, or even by
         o   choosing ENTER, if ENTER has an inactive function.
         In batch input, a function code is included in field BDC_OKCODE of the
         session, if this function code is not assigned to ENTER.

  • Korean direct input method in tiger Mac OS X 10.4.3

    Hello,
    I need to use the korean direct input method in tiger Mac OS X 10.4.3
    but I can not find the icon or some bars to choose for the direct input in korean input menu.
    the korean direct input is used to be in Mac OS X 10.3
    can someone help me out?
    I really need this function.
    Power Mac G5 Quad 2.5G   Mac OS X (10.4.3)  

    Yes, it makes different when I tied with boris graffiti 4.0.
    when I type korean word in boris graffiti program using "direct input" on mac os x 10.3, there is no promblem typing korean.
    But using "syllable" in mac os x 10.4, when I type the korean letter, it automatical erase the word that I typed.
    for example, if I type "gift to my friend" in korean, I try to type "g" and when I type "i", "g" is erased.
    And using "word" option, the problem is whenever I use space bar or enter key between word, and try to enter the next word, the previous word I typed is erased,
    for example, "gift to my friend", I type "gift" and I need to enter space between "gift" and "to",
    so after press the spase bar, and try to type "to", the "gift" is erased.
    I hope that you could understand what I tring to explain, and I was wondering if there is any solution for this problem.

  • Equipment BOM using LSMW- standard batch/Direct input method - reg

    hi,
    I tried to upload equipment BOM using standar batch / direct input method.
    I have maintained sorcue structures for BOM  header and Item, maintained source fields.
    Both source fields have  common field as equipment number.
    It is working fine upto step display read data.
    At step, convert data- i am getting ABAP dump.
    "Data objects in Unicode programs cannot be converted" is displayed in dump
    If any one tried before or experiance similar condtion before, please help
    thanks & rgards,
    Kiran kumar.Kasturi

    Hi,
    thanks for your inputs.
    In the Specify files Step ,when specifying the file from  system , in separators,selected Tabulator .
    and I have done already  all the above while uploading my header and item file ( type tab delimited) and 
    still iam getting error at convert file step.
    please help
    thanks & regards,
    Kiran Kumar.K

  • LSMW -  Standard Batch/Direct Input Method.

    Hi all,
    I was trying to create the LSMW for MM01 using standard Batch/Direct Input Method. While I selected object as "0020- Material Master"  I am not able to get the Method for Batch Input. Is there any we can create method for batch input or we have to use only direct input?

    You have to use direct input method RMDATIND object 0020 to create materials. You may find batch input very complicated to create materials.

Maybe you are looking for