Skip to Content
-2

Assertion failed DUMP after read statement when changing the treasury contract

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.

Add comment
10|10000 characters needed 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.

  • 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

  • Get RSS Feed

3 Answers

  • Mar 15 at 02:16 PM

    "After the above statement i am getting dump ."

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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • Mar 15 at 04:00 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 16 at 01:39 PM

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

    Add comment
    10|10000 characters needed characters exceeded