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

FM - BAPI_CLASS_CHAR_DELETE_DEP

Former Member
0 Likes
462

Hi,

Anyone used this function module before? There seems to be a problem with this fm.

Our scenarios keep hitting the following error:

IF L_SUBRC <> 0 OR RET-TYPE NE 'S'.

PERFORM WRITE_MESSAGE USING MSGTY_E '27' '200'

C_API_NAME

'CARD_CHAR_VAL_READ_ALLOC'

L_SUBRC SPACE.

EXIT.

ENDIF.

because RET-TYPE is always blank.

RET-TYPE is initially assigned with 'S' but then it is cleared by BEGIN_OF_API (see below codes) and I dont see it assigned it back anywhere. Therefore I will keeping hitting that error.

CLEAR: ERROR, WARNING.

CLEAR: RETURN.

RET-TYPE = 'S'.

PERFORM BEGIN_OF_API TABLES RETURN

USING C_API_NAME

CHANGING WARNING ERROR.

Please help to point out if there is something wrong with this FM (I have checked and there are no OSS notes) or i have misunderstood this FM.

2 REPLIES 2
Read only

Former Member
0 Likes
422

Hello Lee,

In the call function of CARD_CLASS_CHAR_READ_ALLOC ( line55) the value is again reset. However it is not received in the function call, but this should not be a reason for the error. Please get inside the function call of CARD_CLASS_CHAR_READ_ALLOC and check if any of the conditions fails there.

Regards,

Hari

Read only

0 Likes
422

Hi,

We have already debugged the FM - CARD_CLASS_CHAR_READ_ALLOC and there is no error found during debugging in that FM. The RETURN-TYPE in that FM is still 'S' until the end and therefore we do not think that there is anything wrong with the data.

Thanks for your information.