Skip to Content

Status Message problem in custom subscreen (XD01 - XD02)

Hi All,

I have created a subscreen in the XD01-XD02 transactions. I am calling the subscreen program from the BADI.

method IF_EX_CUSTOMER_ADD_DATA_CS~GET_TAXI_SCREEN.
   CASE I_TAXI_FCODE.
     WHEN 'Z9_ADD_CUS'
 E_PROGRAM = 'ZTEST'.
        E_SCREEN = '9901'.
   ENDCASE.
 endmethod.

In the subscreen program i wrote syntax for status message save. When user changes data on the subscreen and presses save button, data will be saved to custom DB table and status message "data saved" will be appeared. It is saving to the DB table but status message is not displaying.

MESSAGE text-002 TYPE 'S'.

Instead of my status message, SAP standard status message "No changes are made" is displaying. Its because no changes are made on the SAP screen(changes are made on the subscreen).

Is there any way to display my message when data is changed and saved on the subscreen.

Thanks & regards,

NarsiReddy.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 15, 2015 at 07:56 AM

    Hi NarsiReddy,

    You can control the message (and save behaviour) with Badi implementation CUSTOMER_ADD_DATA method IF_EX_CUSTOMER_ADD_DATA-->CHECK_DATA_CHANGED.

    Cheers,

    Henk.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi NarsiReddy,

      I would create an own singleton class where where you keep track of all the changes (and store the before image if required) and store a flag if data has been changed.

      Then from the CHECK_DATA_CHANGED you call your singleton class and check the flag.

      Cheers,

      Henk.