Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BDC recording

Former Member
0 Kudos

how to do BDC recording method for CS01 tcode?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

5 REPLIES 5

Former Member
0 Kudos

Hi,

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

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

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

Former Member
0 Kudos

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