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: 

BAPI key field

Former Member
0 Kudos

HI,

What is key field in BAPI while creation of bapi. How it is useful in bapi programing.

Please give me simple examples.

Thanks & Regards

margani

2 REPLIES 2

jj
Active Contributor
0 Kudos

Key fields in Business objects are used for unique idenfication

For example for a business object : BUS1001006 Standard material

key field is material no

for method StandardMaterial.Create

function module : BAPI_STANDARDMATERIAL_CREATE for material create

please check this link for more idea

[http://help.sap.com/saphelp_40b/helpdata/en/7e/5e11a84a1611d1894c0000e829fbbd/content.htm|http://help.sap.com/saphelp_40b/helpdata/en/7e/5e11a84a1611d1894c0000e829fbbd/content.htm]

former_member188685
Active Contributor
0 Kudos

key field is unique identifier of Business object. if you take example salesorder (BUS2032) salesorder number is the key. similarly for purchase order(BUS2012) it is Purchase order.