on 12-01-2006 10:21 PM
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
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.