Skip to Content
avatar image
Former Member

BAdI: LE_SHP_TAB_CUST_HEAD: warning when leaving without saving.

Hi all,

I have implemented the BAdI LE_SHP_TAB_CUST_HEAD or transaction VL02N in order to add a new tab with a new field and everything works fine.

However I have found that when I change the value in the new field, if I leave the transaction without saving no warning message is displayed ("System will exit processing, Do you want to save your data?").

Does anybody can help me to get the warning message ?

I thank you in advance.

Paolo

Edited by: Paolo Cavallini on Sep 23, 2008 11:30 AM

Edited by: Paolo Cavallini on Sep 23, 2008 11:32 AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Sep 23, 2008 at 10:40 AM

    Hi

    You can checkout this BADI definition LE_SHP_SAVE_WO_DELIVERY method SAVE_WO_DELIVERY error log value can be filed in paramater

    CT_VBFS

    Regards,

    Surender

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Asik Shameem

      Hi Asik,

      you are very kind to dedicate to myself so much time.

      I have tried the following code:

        METHOD if_ex_le_shp_tab_cust_head~transfer_data_from_subscreen.
      
          GET PARAMETER ID 'OZZCAUTR' FIELD cs_likp-zzcautr.
          cs_likp-LGTOR = '001 '.
      
      Endmethod.

      I open and close the delivery note, but I don't obtain any message.

      Regards.

  • Sep 23, 2008 at 01:09 PM

    Once you are on that screen and if you are moving to other tab or do Save, control will go to your PAI (process after Input) in your Custom Screen. So, you can fire a message there if the fields are empty.

    BADI LE_SHP_DELIVERY_PROC method SAVE_DOCUMENT_PREPARE gets triggered when you save the delivery. Although, I haven't tried to fire message in this method.

    Regards,

    Naimesh Patel

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi Naimesh,

      thank you for your reply. But my problem is the following:

      - a user change the value of the new field;

      - then he changes tab and push Exit button without saving;

      - I need to catch this and display the message "You have made some changes, do you want to save your data?".

      Thanks, Paolo

  • avatar image
    Former Member
    Nov 20, 2008 at 12:50 PM

    Hey Paolo,

    Can you please send the full code for all the methods of BADI LE_SHP_TAB_CUST_HEAD to add the new TAB with 2 additional input fields whose data will be stored in delivery standard tables for TCode : VL01N/VL02N.

    Thanks in anticipation,

    Gaurav

    Add comment
    10|10000 characters needed characters exceeded