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+Mandatory Fields

kiran_k8
Active Contributor
0 Kudos

I would like to know the best (can be read as easiest) way to do a BDC recording from a developers perspective.As a developer if we are not familiar with creation of Material(MM01) or Vendor(XK01) and there is no Functional guy to help in BDC recording,what is the best way to approach a BDC recoding in such a case.

Is there any way where we can know all the mandatory fields within a transaction say MM01 and their screen sequence in one shot so that we can get the recording done easily programatically instead of using SHDB.

Thanks,

K.Kiran.

1 ACCEPTED SOLUTION

former_member195402
Active Contributor
0 Kudos

Hi,

maybe it is not enough to do one recording with SHDB, because there may be e.g. different mandatory fields depending on material type and other material dependent settings.

Therefore several or a lot of recordings may be helpful to create your program code.

Regards,

Klaus

7 REPLIES 7

Former Member
0 Kudos

Hi,

The best way to do recording is through SHDB transaction.

Inorder to know the fields, just execute teh transaction for whoch you want the bdc.And create a document/material.

You would be prompted to fill in all mandatory fields.You can keep a track of same.

former_member195402
Active Contributor
0 Kudos

Hi,

maybe it is not enough to do one recording with SHDB, because there may be e.g. different mandatory fields depending on material type and other material dependent settings.

Therefore several or a lot of recordings may be helpful to create your program code.

Regards,

Klaus

ThomasZloch
Active Contributor
0 Kudos

First of all, I would avoid using BDC as much as possible and use SAP delivered standard programs instead, like RMDATIND for MM01 or RFBIKR00 for XK01. LSMW first step gives a good overview over what's available.

If you still must use BDC, then there is always a functional task involved to determine mandatory fields, possible field values and different scenarios (based on account groups, material types etc.).

Thomas

0 Kudos

Hi Thomas,

U may use standard programs particularly when dealing through LSMW programs but again u need a file with data, functional to tell wats needed and wats not I mean functional input is undeniable.

Former Member
0 Kudos

Hi Kiran,

That's a catchy sitaution as in SHDB u record the transaction so basically u are running MM01 and u need a func guy to input the values else u can not even complete the recoring incase something mandatory is missin and u know .

Btw in those cases one will argue use BAPI but you will still need a functional to identify all fields that are must or that the scenario must have in teh tables u pass to a BAPI.

sjeevan
Active Contributor
0 Kudos

I would suggest the same what Thomas has already suggested, LSMW is plain simple and easy with it's built in standard programs. But if you still wanna stick with BDC go the tables related the t-code and look for some sample data.

Former Member
0 Kudos

Hi Kiran,

This was one of the challenges I faced while creating a BDC for the first time. There was no functional to help me out. So what i did is:

1. Checked some previous materials in MM03 transaction. or you can go to MARA table and see what all values or minimum values present for a material in that table.

2. Then try to create same material by your own once.

3. Once you have suucessfully created a material (you will defenetely get many errors, try using the F4 help wherevere required)

4. Then you can go to SHDB and do the recording for material creation from MM01 and create the program out of that recording from there itself (I suggest).

Or

You can write the BDC by your own as you the know the fields and the screen flow ( you should be able to know the basics of BDC programing).

Thanks,

Venkatesh.