2010 Dec 26 3:13 PM
Hi Experts,
Am creating an assignment as follows for WB66 transaction using this BAPI.
CALL FUNCTION 'BAPI_OBJCL_CREATE'
EXPORTING
objectkeynew = '000000001'
objecttablenew = 'KNA1'
classnumnew = 'TEST_SITE_GROUP'
classtypenew = '030'
The return table is giving the following return messages:
1.Assignment does not exist or is not valid on - I
2.Saving changes to assignments - S
3.Assignment created - S
After this I called'BAPI_TRANSACTION_COMMIT and checked the transaction WB66.
But WB66 shows the class has no assignments. Am I calling the right BAPI for creating an assignment for class.
Kinldy give your inputs.
Regards
Sridevi S
Hi Experts,
Am creating an assignment as follows for WB66 transaction using this BAPI.
CALL FUNCTION 'BAPI_OBJCL_CREATE'
EXPORTING
objectkeynew = '000000001'
objecttablenew = 'KNA1'
classnumnew = 'TEST_SITE_GROUP'
classtypenew = '030'
The return table is giving the following return messages:
1.Assignment does not exist or is not valid on - I
2.Saving changes to assignments - S
3.Assignment created - S
After this I called'BAPI_TRANSACTION_COMMIT and checked the transaction WB66.
But WB66 shows the class has no assignments. Am I calling the right BAPI for creating an assignment for class.
Kinldy give your inputs.
Regards
Sridevi S
2010 Dec 26 4:16 PM
Are you able to achieve it by online with same data?
Thank you
2010 Dec 27 11:20 AM
2010 Dec 27 11:31 AM
Hi,
Try this way.....
* Getting the reference tables and values----------------
call function 'BAPI_OBJCL_GETDETAIL'
exporting
objectkey = w_objectkey "Old customer Number
objecttable = 'KNA1'
classnumnew = 'TEST_SITE_GROUP'
classtypenew = '030'
tables
allocvaluesnum = t_allocvaluesnum
allocvalueschar = t_allocvalueschar
allocvaluescurr = t_allocvaluescurr
return = t_lreturn.
* Create with reference-----------------------
call function 'BAPI_OBJCL_CREATE'
exporting
objectkeynew = w_objectkeynew "new Customer Number
objecttablenew = 'KNA1'
classnumnew = w_classnum
classtypenew = w_classtype
tables
allocvaluesnum = t_allocvaluesnum
allocvalueschar = t_allocvalueschar
allocvaluescurr = t_allocvaluescurr
return = t_lreturn.
Prabhudas
2010 Dec 27 12:12 PM
Thank you all. its working fine when i tested by calling the bapi in program followed by bapi_transaction_commit.
2010 Dec 27 12:13 PM
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |