cancel
Showing results for 
Search instead for 
Did you mean: 

Assertion failed DUMP after read statement when changing the treasury contract

0 Kudos

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.

matt
Active Contributor

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.

0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

raymond_giuseppi
Active Contributor
0 Kudos

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

pokrakam
Active Contributor
0 Kudos

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.

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

"After the above statement i am getting dump ."

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

0 Kudos

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

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

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 Kudos

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