Current Position:Home > Leaving dynpro with obligatory fields.

Leaving dynpro with obligatory fields.

Update:10-11Source: network consolidation
Advertisement
Hi everyone.
What I'm trying to find is some way to leave (using a cancel button) a dynpro that has obligatory fields without having to complete them.
What I've done is including the following code in the PBO user-command module:
  case sy-ucomm.
    when '&CANC'.
      leave to screen 0.
    when '&OK'.
    endcase.
What happens is that every time that I hit cancel, an error message that says that I must complete every obligatory field pops up and I have to do that in order to leave the dynpro. ¿Any idea about how to fix this?
Thanks a lot,
Fernando.

The Best Answer

Advertisement
Hi,
IN the GUI STATUS for the function code &CANC .have the function type as 'E' (Exit command).
Then in the PAI..have a new module ..
MODULE EXIT_COMMAND AT EXIT-COMMAND.
In that module have your code for CANC function code..
Thanks,
Naren
  • Leaving dynpro with obligatory fields. Update:10-11

    Hi everyone. What I'm trying to find is some way to leave (using a cancel button) a dynpro that has obligatory fields without having to complete them. What I've done is including the following code in the PBO user-command module:   case sy-ucomm.    

  • FM  BAPI_SALESORDER_GETLIST obligatory field Update:11-30

    hi gurus, regarding about FM BAPI_SALESORDER_GETLIST, im developing a report base on MAT NUMBER for da sales. As client request the report should pull the data from sales quantity by MAT NUM , sales Org and Date in da selection screen. but the proble

  • Purchase Requisition header text as obligatory field Update:11-30

    I need you help!!! Problem description: requestor forget to put some text in the header text of the purchase requisition, that cause that manager not release the requisition due missing information. So I have a request to do the header text of the pu

  • Obligatory fields in a Maintenance View Update:10-11

    Hi All, I have a Z table. I have created a Maintenance View for this table. My requirement is to have a few fields as mandatory in this view so that when the user enters data, these fields should appear with the Obligatory symbol in the grid. Regards

  • Obligatory Fields in Moule Pool Update:10-11

    Hi all, My requirement is such that... I have created 2 radiobuttons in the selection screen When I select the 1st button, a particular field in the same screen should become obligatory and when I select the 2nd button another field should become obl

  • Obligatory fields in plans (IP01) Update:10-11

    hello all I want to make main avtivity type field in transaction IP01 obligatory but, in IMG I found only the possibility to make fields visible or invisible. other than a transaction variant is there another way? maybe a path in IMG I have not seen?

  • Skip validation of 'OBLIGATORY fields populated or not'? so that user GO_BACK Update:10-11

    Hello I placed a handful fields on selection screen, wherein there are push buttons are there and input free text fields. Based on these button cliks and controlling the other fields visibility. So, user thinks that there are 2 screens. I also placed

  • ABAP Query : Obligatory fields on selection screen! Update:11-30

    Hi Experts, I would like to know the differrent ways through which we can define mandatory fields on selection screen.Options availabel in Infosets (SQ02) as well as Query(SQ01). Selection Screen: Document Date in Document:  (Mandatory      Select-Op

  • Radio buttons in dynpro with mandatory field Update:11-30

    I have two radio buttons in a group and a field that should be mandatory when one (the first one) is checked. So when the other is checked it should not be mandatory. The problem is that when I check the second the field is mandatory until I have put

  • Selection screen output obligatory field Update:11-30

    Hi all, I have two radio buttons, if i selected one radio button one selection screen will come for entries another will be invisible. in that selection screen i have all are mandatory fields. so it is not allowing to another radio button with out en