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

query on bdc program

Former Member
0 Likes
692

hi friends,

I really have doubt on bdc program. I wantedto complete this task.

1. Create a BDC program for the following

- Read a flat file containing Vendor Master details (keep the record structure as simple as possible). The file should contain a list of Vendors to be created in the SAP system.

- Using BDC technique, create the Vendor master using FK01 transaction

- Repeat the steps for creating all Vendors listed in the file. For each transaction, print out if the BDC was successful or not, and if successful print out the Vendor Number that was created.

but nothing is woking out.

I jus wnated to know what was my mistake.

I would provide my screen shots with expalnations for each and ery step.

Kindly please anyone of help me to know my mistake and to get the program done. i need to finish this by today since theres a lot of pressure in my work place.

Pls provide me ur mail id to send my documents as attachmnents..

I would be very thankful for your timely help.

Thanks in advance

rinky123

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
673

hi rinky,

Have you tried using LSMW to achieve this. That would be the easier way then creating programs. LSMW is also flexible for change in the structure of Vendor master data from legacy side(flat file).

Kannan

7 REPLIES 7
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
673

My email address is on my business card. Please send me the complete code and screen shots.

Regards,

Rich HEilman

Read only

0 Likes
673

Hi Rich,

I hvae mailed everythign in detail to your mail id.Please hlpe me in making this done.

Thanks&Regards

rinky123.

Read only

Former Member
0 Likes
674

hi rinky,

Have you tried using LSMW to achieve this. That would be the easier way then creating programs. LSMW is also flexible for change in the structure of Vendor master data from legacy side(flat file).

Kannan

Read only

Former Member
0 Likes
673

I am assuming you did the BDC recording of one vendor and using that as a template. Then you are uploading the file having enough information to create a vendor. Then you call the transaction FK01 using the BDC data. So you should be able to see where your logic is failing. Call the transaction using mode 'A' and see what is missing. Also add the option "messages into bdcmsgcoll" to your call transaction.

Srinivas

Read only

0 Likes
673

I have tested your program up to the BDC part, looks like you program is uploading the data and putting it in to the RECORD internal table correctly. This leads me to believe that the problem is in the BDC code itself. As Srinivas has suggested, run the program with mode "A". You can set this in the selection screen. Currently it is mode "N". Mode "A" will allow you to see all of the steps that the BDC is doing and you can find out what the error is at that time.

Regards,

Rich Heilman

Read only

0 Likes
673

hi srinivas,

Thank you very much for your guideline.I got the output and enjoying a sigh of relief.

Thanks you vey much for your timely help.

Thanks&Regards

Prasanna.

Read only

0 Likes
673

Hi Rich,

Thank you very much for your guideline.Million thanks for going through my screenshots,program and finally helping me to get done with the output

Thanks you vey much for your timely help.

Thanks&Regards

Prasanna.