Skip to Content
-2

Assertion failed DUMP after read statement when changing the treasury contract

Mar 15 at 01:42 PM

57

avatar image

HI ,

I am getting the assertion failed after a sy-subrc check.

STATEMENT is like : ASSERT sy-subrc is initial.

After the above statement i am getting dump .

Can anyone please help me out on this.

Thanks ,

Rajesh.

10 |10000 characters needed characters left characters exceeded

Is this dump in standard SAP or in custom code?

If it's in standard - go to support.sap.com

If it's custom code, then you need to give more information about what you're doing.

1

It is a standard code , we are trying to add the charge condition in FTR_EDIT t-code.

Below is the piece of code , it was actually checking the already existing entries with the new entry which i am trying to add.

The error is in FM: FTR_API_FAC_CHARGE_GET.

READ TABLE l_tab_condition_bapi ASSIGNING <l_condition>
WITH KEY condition_type = <l_condition_core>-skoart
effective_from = <l_condition_core>-dguel_kp.
ASSERT sy-subrc IS INITIAL.

I want to understand when this NSTUFE field gets updated in VTBFINKO table .

When that field value gets 01 or 02 etc. generally the value will be 00

0
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Horst Keller
Mar 15 at 02:16 PM
0

"After the above statement i am getting dump ."

Well, that's the purpose of the ASSERT statement!

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Thanks Horst, Is there a way so that i will not get that dump.

0

Yes, fulfill the prerequisite. sy-subrc must be 0.

If it is your or modified code think about the usage of ASSERT here.

If it is SAP code, there should be a reason for using ASSERT, meaning that you use the application wrongly. If you are sure, that you are doing everything correctly, or that SAP uses ASSERT wrongly here, open a ticket to the application component.

0

It is a standard code , we are trying to add the charge condition in FTR_EDIT t-code.

Below is the piece of code , it was actually checking the already existing entries with the new entry which i am trying to add.

It was working when i am adding second line item. but when i am trying to add third line item i am getting DUMP.

The error is in FM : FTR_API_FAC_CHARGE_GET

READ TABLE l_tab_condition_bapi ASSIGNING <l_condition>
WITH KEY condition_type = <l_condition_core>-skoart
effective_from = <l_condition_core>-dguel_kp.
ASSERT sy-subrc IS INITIAL.

Any idea on use of the field NSTUFE.

I want to understand when this NSTUFE field gets updated in VTBFINKO table .

When that field value gets 01 or 02 etc. generally the value will be 00

0
Mike Pokraka Mar 15 at 04:00 PM
0

Replace the statement with desired logic, or make sure the previous action doesn’t fail.

If there is no custom code involved then open an incident with SAP.

Share
10 |10000 characters needed characters left characters exceeded
Raymond Giuseppi
Mar 16 at 01:39 PM
0

Did you check for recent OSS notes available for your version/SP on BAPI Facility Charge Condition?

Share
10 |10000 characters needed characters left characters exceeded