2011 Mar 23 3:24 PM
Hi there
i´m totally new to SAP and i hope you can help me...
I'm developing a BizTalk-interface to SAP/R3
we use the BAPI_OBJCL_CHANGE to change classification in SAP.
my question:
is it possible to pass "empty Values" to a classification that does not allow these Values?
for example:
in SAP
HOUSING_STYLE = Closed (valid Values; Closed, Cooled)
M_000322 = CM (valid Values; CM, CMB, CMI)
with the BAPI-Call we want to update the classifications this way
HOUSING_STYLE = empty value
M_000322=CMB
When we send an epty Value for the HOUSING_STYLE it says that "" cant be found.
is it possible to force the empty Value into the "HOUSING_STYLE" Fields?
We tried several Vales from "/" to " " to "no data". but nothing works.
As far as i know, it is possible if you change the classification manually in SAP itserf to an "empty Value".
I hope you can help me!
Thank you!
Hansi
2011 Oct 11 9:46 AM
Hi,
If your empty value have a description, you can put the description in the field ATWRT.
Julien
2011 Oct 11 10:10 AM
HOUSING_STYLE = empty value
basically that means HOUSING _STYLE has no value. Hence, don't pass any value for that characteristic.
Edit.
On a second read: i think you mean you want to delete an existing value? If thats the case, simply don't pass the characteristic in the internal table of the function.
Edited by: Maen Anachronos on Oct 11, 2011 11:15 AM
2011 Oct 11 10:33 AM
Hi,
If you dont want values delete those from the internal table.
delete table ALLOCVALUESCHARNEW where CHARACT = c_charname.
This way this character from the class will be initialized.
Thanks,
Anmol.
2015 Jan 19 9:14 AM
Hi gurus,
could you give me more info about reset the characteristic value to initials value using change BAPI?
Now, passing to a characteristic the initial value, do not get any change.
deleting the record of the feature to reset, I do not get the desired result.
Checking in debug the BAPI_OBJCL_CHANGE I see that the table " l_api_val_r_del" is empty.
Any help?
Reagards,
Alessio
2011 Oct 11 10:36 AM
Hi,
You can give empty values to characteristics using single quotes like ' ' .
For BAPI 'BAPI_OBJCL_CHANGE' , Pass all the required data.
This BAPI alone does not change the database. To change the database, call BAPI 'BAPI_TRANSACTION_COMMIT' afterwards.
Please refer the Function Module Documentation.
Regards,
Rajesh.