Current Position:Home > Obligatory Paramater Not Always

Obligatory Paramater Not Always

Update:11-30Source: network consolidation
Advertisement
Hi,
I have a parameter that is obligatory and I have a button that calls another transaction. The
problem is that when I want to go to the other transaction by clicking on the button it asked
for the obligatory parameter first. But I need that parameter be obligatory.
If I remove the OBLIGATORY property and validate it myself, the icon of the arrow in the
input field its gone. How can I do it with the OBLIGATORY thing.
The code is like this:
SELECTION-SCREEN: PUSHBUTTON 1(10) TEXT-001 USER-COMMAND FC01.
PARAMETERS: P_VAR(2) TYPE C OBLIGATORY.
AT SELECTION-SCREEN.
  CASE SY-UCOMM.
    WHEN 'FC01'.
      CALL TRANSACTION 'ZABCDE'.
  ENDCASE.
Regards,
Isaac Melendez

The Best Answer

Advertisement
hello, try this..
1.- remove the OBLIGATORY property .
put in the program :
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    CASE screen-name.
      WHEN 'p_name'.        your parameter
        screen-required = '1'.
        MODIFY SCREEN.
   ENDCASE.
ENDLOOP.
you'll have validate the obligatory data in the start-of-selection or any other event.
IF p_name IS INITIAL.
  MESSAGE 'obligatory data'.
endif
  • Obligatory Paramater Not Always Update:11-30

    Hi, I have a parameter that is obligatory and I have a button that calls another transaction. The problem is that when I want to go to the other transaction by clicking on the button it asked for the obligatory parameter first. But I need that parame

  • 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

  • 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.    

  • Obligatory field in ALV grid Update:10-11

    Hi all, is it possible to make a cell input obligatory in a grid without additional (I mean event handling) abap coding? Moreover the small question mark (or tick in new design) indicating the obligatory input would be a 'nice to have' feature. If yo

  • Passing paramater in reports 6i Update:10-11

    Hi, I have created a report using report builder. and in forms i tried to view the report, its working fine Now i need to pass paramater to that report, like where userid=1 or something How can i do that? Now i've given like this , in the when_button

  • CURRENT YEAR SALES DATE PARAMATER AND PRIOR YEAR SAME DATE RANGE Update:10-11

    I am pulling data from a SQL view dbo.view that has current and historical SOP data by line.  The date paramater is a date range,  uppr date and lower date formulas are in the report.  I need to include prior year SOP data for the same prior year dat

  • 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?

  • How to Make one of 2 Selection Fields Obligatory Update:10-11

    Hi All, On my seletion screen, i have about 5 select-option input fields. The thing is I want to make the 'article' (s_matnr) and the 'merchandise category' (s_matkl) fields obligatory. The way it should be is that one of them should be obligatory at

  • At selection screen output problem when a field is obligatory Update:10-11

    Hi All, I have two radiobuttons on the selection screen and when I select first radiobutton one screen should display and the other should not be displayed and vice-versa. It is working fine if I do not have a mandatory field.I am pasting my code her