Application Development and Automation 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: 
Read only

BAPI_OBJCL_CHANGE - Pass empty values (no data) to the classification field

Former Member
0 Likes
2,136

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,271

Hi,

If your empty value have a description, you can put the description in the field ATWRT.

Julien

Read only

Former Member
0 Likes
1,271

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

Read only

Former Member
0 Likes
1,271

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.

Read only

0 Likes
1,271

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

Read only

Former Member
0 Likes
1,271

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.