Application Development and Automation 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: 
Read only

BDC

Former Member
0 Likes
651

hi ABAPers i am new to BDC and i want to develop a program ... for that they have given me Recording XXXXX

with this recording i have to develop a program for sales have any suggest me how to develop a program ...

5 REPLIES 5
Read only

Former Member
0 Likes
631

Hi,

Have they given a recorded transaction name?

Also what is the txn?

Could you be more clear on ur requirement?

Thanks,

Prasanna

Read only

0 Likes
631

ya its an recorded ransaction name only by using MM01 for material . They want to migrate some data to MM01 for that they have given recorded name 'zmaterial' .... with that i have to develop a program ......

Read only

0 Likes
631

Hi,

Go to SHDB

Enter ur recording name in the field and click on 'PROGRAM' icon.

you will be asked to enter the program name. Enter the one you want.

(See that the radio button 'READ from file' is selected)

And now click on ok button. Program with the mentioned name will be created for ur recording.

Now if the data is there on application server this program itself will work and if not ie if data is there on presentation server then you need to alter the code generated.

Use gui_upload FM to upload the data from the presentation server.

I hope it is helpful.

Reward points

Thanks,

Prasanna

Read only

former_member188594
Active Participant
0 Likes
631

Hi,

you can straight away generate program from the recording xxxx given to you and make use of it with slight alterations as per the requirements of the client else you can go in for custom coding wherein you will need to write a BDC program using CALL TRANSACTION method or SESSION METHOD with the flat file provided to you. If you can elaborate on the requirement, chances are there that you get clear and accurate replies.

Regards,

Sekhar

Read only

Former Member
0 Likes
631

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