cancel
Showing results for 
Search instead for 
Did you mean: 

HELP : BAPI_BUS1077_CREATE ( facing problem in using this Bapi )

Former Member
0 Kudos

Hi

I am facing a problem in using this Bapi.

I already have a Data record for the Property Say FAT under a property tree say XXYYZZ. Suppose I want to create a new value for one of its Characteristic of the existing record, I am able to do that. For example. Suppose FAT has a Characteristic called Min = 1 , Max = ' ' , I am able to create a value for this say Max = 5.. at the same time i am able to change the value of Min = 2 if I use the Bapi_Bus1077_Change..

But my problem comes when I am trying to create a new records for the FAT. with Min = 6 and Max = 10.. ( I am creating a new instance ).

I see in the documentation that something has to be done with the Primarykey and Foreighkey. But when I look into my import parameter table, all have the 000000000000000 in my primary key and in foreignkey..

Can someone help me out?

Thanks.

David

Message was edited by:

Kirubakaran David

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

As you want to create a new instant, you need to pass PROP_VAL and PROP_DATA

First call GetDetails and then use it as follows.

prop_val-function = '009'. "NEW

prop_val-primarykey = '000000000000001'. "Temporary key that you need to assign

prop_val-flgprimkey = 'X'. "As the key does not exist

prop_val-foreignkey = prop_header-record_no. "From GetDetail

prop_val-flgfrgnkey = ' '. "As key exists

APPEND prop_val.

prop_data-function = '009'. "NEW

prop_data-primarykey = ''000000000000002'. "Temporary key that you need to assign

prop_data-flgprimkey = 'X'. "As the key does not exist

prop_data-foreignkey = prop_val-primarykey. "This is the value assigned above

prop_data-flgfrgnkey = 'X'. "As the key does not exist

prop_data-name_char = 'MIN_CHAR'.

prop_data-char_value = '6'.

APPEND prop_data.

prop_data-function = '009'. "NEW

prop_data-primarykey = ''000000000000003'. "Temporary key that you need to assign

prop_data-flgprimkey = 'X'. "As the key does not exist

prop_data-foreignkey = prop_val-primarykey. "This is the value assigned above

prop_data-flgfrgnkey = 'X'. "As the key does not exist

prop_data-name_char = 'MAX_CHAR'.

prop_data-char_value = '10'.

APPEND prop_data.

CALL FUNCTION 'BAPI_BUS1077_CREATE'

Note how primary key from PROP_VAL (000000000000001) is used as foreign key for PROP_DATA (000000000000002 and 000000000000003)

Former Member
0 Kudos

Hi thanx .. its working.. I hope in this way we can create a Specification from the Top level to the Bottom level by using the Pkey and Fkey value.

David

Former Member
0 Kudos

Hi Pranav,

Kindly help me on the below doubts.

1. how to assign the values to value assignment like adding value to remarsk,Methods,etc...with abap code using bapi_bus1077_create.

Regards,

vinoth.

former_member696213
Discoverer
0 Kudos

with above code i am able to upload value in property tree but not able to create new instance. my requirement is create multiple instance filled with property can you please help me in this.

Thanks in advance.

Answers (0)