Skip to Content
author's profile photo Former Member
Former Member

BDC recording

how to do BDC recording method for CS01 tcode?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 18, 2008 at 06:33 PM

    Hi,

    Go to the transaction SHDB.

    Give the name for the recording.

    Enter the transaction code for which u want the recording isto be done. ( CS01)

    Navigate through the transaction by entering the required values and save the document.

    The code is automatically generated for your recording.

    This code can be used in your BDC program.

    Regards,

    Srinivas.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 18, 2008 at 05:08 PM

    Hi,

    Its better to go with LSMW... its easy to record the tcode...

    or you can use the standard program RCSBI010 in lsmw.....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 19, 2008 at 03:51 AM

    Hi,

    SHDB is the Transaction code to call Recording Method.

    Navigations to use Recording Method:

    -


    SHDB -> Opens an interface -> Click on New Recordings pushbutton from appn. toolbar -> Specify Recording Name -> Specify Tcode (MM01) -> Click on Continue -> Opens MM01 Screen -> Specify Sample Data -> Click on Select View pushbutton from appn. toolbar -> Opens an interface -> Select First view (Basic Data 1) -> Click on Continue -> Opens another interface -> Specify short description for the material -> Specify units of measurement -> Save -> Opens an interface with defined field and their values -> Save -> Come back -> Select Recording Object -> Click on Program pushbutton from appn. toolbar to autogenerate the BDC source code -> Opens an interface -> Specify Program Name -> Select Transfer From Recording radiobutton -> Click on Source Code pushbutton -> Opens SE38 Editor with autogenerated code -> Specify following code after include statement:

    include bdcrecx1.

    DATA : BEGIN OF ITAB OCCURS 0,

    STR(255),

    END OF ITAB.

    DATA ITAB1 LIKE MARA OCCURS 0 WITH HEADER LINE.

    Specify following code after start-of-selection statement:

    start-of-selection.

    CALL FUNCTION 'UPLOAD'

    EXPORTING

    FILENAME = 'C:\COUP.TXT'

    FILETYPE = 'ASC'

    TABLES

    DATA_TAB = ITAB.

    LOOP AT ITAB.

    SPLIT ITAB-STR AT ',' INTO ITAB1-MATNR ITAB1-MBRSH ITAB1-MTART

    ITAB1-MEINS.

    APPEND ITAB1.

    ENDLOOP.

    Specify Loop-Endloop statement for the bdc-dynpro, bdc-field and bdc_transaction statements as follows:

    perform open_group.

    LOOP AT ITAB1.

    .

    .

    .

    ENDLOOP

    perform close_group.

    -> Save -> Activate -> Execute -> Choose Call Transaction or Session method to process the datas.

    The advantage of Recording Method is finally after executing the program, we can choose either Session method or Call Transaction method.

    Hope this helps u,

    Regards,

    Arunsri.B.S

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 19, 2008 at 05:40 AM

    follow the below mentioned steps:

    1)goto SHDB tcode

    2)click on new recording

    3) Enter the recording name and tcode

    4)click on start recording

    5)the tcode takes you to the corresponding sacreen of sap and enter required data.

    6)save the currecnt trasaction and go back.

    7) select the recording and click on program button

    8) enter name of the prog and check transfer from trancsaction radio button and click on source code where u write ur prog.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 19, 2008 at 10:18 AM

    hi,

    recording is task of functional but if u required thengo tcode shdv and follow the steps.................

    SHDB -> Opens an interface -> Click on New Recordings pushbutton from appn. toolbar -> Specify Recording Name -> Specify Tcode (MM01) -> Click on Continue -> Opens MM01 Screen -> Specify Sample Data -> Click on Select View pushbutton from appn. toolbar -> Opens an interface -> Select First view (Basic Data 1) -> Click on Continue -> Opens another interface -> Specify short description for the material -> Specify units of measurement -> Save -> Opens an interface with defined field and their values -> Save -> Come back -> Select Recording Object -> Click on Program pushbutton from appn. toolbar to autogenerate the BDC source code -> Opens an interface -> Specify Program Name -> Select Transfer From Recording radiobutton -> Click on Source Code pushbutton -> Opens SE38 Editor with autogenerated code -> Specify following code after include statement:

    regards,

    pankaj

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.