Obligatory Fields in Moule Pool

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 obligatory.
Can anyone tell me how to achieve this?
Thanks,
Amrita

Hi,
You can try Loop At Screen Statement,
That is in the PBO of the selection screen
you can check the Screen Goup the one that is
assigned to both the radio buttons in if else statements,
If the first radio button is selected you can give the field names
required for the first radion button selection output by giving
screen-name = Field name and make
field-required = 'X' .
Same for the else statement for second radio button.
Hope it helps
Regards
Mansi

Similar Messages

  • How to delete the row in table control with respect to one field in module pool programming?

    Hi,
    Can I know the way to delete the row in table control with respect to one field in module pool programming
    Regards
    Darshan MS

    HI,
    I want to delete the row after the display of table control. I have created push button as delete row. If I click on this push button, the selected row should get deleted.
    I have written this code,
    module USER_COMMAND_9000 input.
    DATA OK_CODE TYPE SY-UCOMM.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
         WHEN 'DELETE'.
            LOOP AT lt_source INTO ls_source WHERE mark = 'X'.
                APPEND LS_SOURCE TO LT_RESTORE.
                DELETE TABLE LT_SOURCE FROM LS_SOURCE.
                SOURCE-LINES = SOURCE-LINES - 1.
            ENDLOOP.
    But I'm unable to delete the selected rows, It is getting deleted the last rows eventhough I select the other row.
    So I thought of doing with respect to the field.

  • Leaving dynpro with obligatory fields.

    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.

    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

  • How to do ICON_EXPAND and ICON_COLLAPSE input fields in module pool screen?

    hi frnds.
    My problem is in module pool screen how to do ICON_EXPAND and ICON_COLLAPSE input fields in module pool screen?And how to do GUI STATUS and GUI TITLE? IN SE80.
      ITS URGENT.POINTS WILL BE REWADED.THANKS  IN ADVANCE.

    Hi,
    Go through this thread.
    [expand and collapse|expand and collapse]
    Cheers,
    Simha.

  • F4 help for the screen fields in module pool program

    Hi All,
      I have a requirement that, i want to provide F4 help for the 2 fields in module pool program. the fields are document number and fiscal year from rbkp table.
    i could provide search help for two fields.
    but how to select matching fiscal year for that document number.
    problem: i am getting fiscal year as first four digits of document number.
    please help me to solve this problem.
    Thanks & Regards,
    Namratha.V

    Hi,
       If your requirement is after selecting the document no from f4 help then the corresponding year should be updated in the document year field then use FM --> DYNP_VALUES_UPDATE
    In  this function module pass the screen no program & field for which u want to update value

  • F1 help on a field in module pool programming

    I want to create f1 help on a field in module pool programming. How to use POH event. where should i write the help documentation. Before using this f1 help on a field i have to set some properties on GUI interface Editor. Please clearly mention the steps i have to follow.

    PROCESS ON HELP-REQUEST.
    FIELD P_LFA1 MODULE HELP_F1_LIFNR.
    MODULE HELP_F1_LIFNR INPUT.
    PERFORM SHOW_HELP_F1 USING 'ZFAG_DOC1'.
    ENDMODULE. " help_f1_lifnr INPUT
    FORM SHOW_HELP_F1 USING P_OBJECT.
    Dati testo help
    DATA: T_LINE LIKE TLINE OCCURS 0,
    XHEAD LIKE THEAD,
    HELP_INFO LIKE HELP_INFO,
    TEXC LIKE SY-UCOMM OCCURS 0,
    V_OBJECT LIKE DOKHL-OBJECT.
    Costante
    DATA: PREF_SIMG(4) VALUE 'SIMG',
    DOCID_HY LIKE DOKHL-ID VALUE 'HY'.
    Testo
    CONCATENATE PREF_SIMG P_OBJECT INTO V_OBJECT.
    Estrazione testo
    CALL FUNCTION 'DOCU_GET_FOR_F1HELP'
    EXPORTING
    ID = DOCID_HY
    LANGU = SY-LANGU
    OBJECT = V_OBJECT
    IMPORTING
    HEAD = XHEAD
    TABLES
    LINE = T_LINE
    EXCEPTIONS
    RET_CODE = 1
    OTHERS = 2.
    CASE SY-SUBRC .
    WHEN 0.
    Visualizzazione testo
    GET CURSOR FIELD HELP_INFO-DYNPROFLD.
    HELP_INFO-DOCUID = DOCID_HY.
    HELP_INFO-DOCUOBJECT = V_OBJECT.
    HELP_INFO-SPRAS = SY-LANGU.
    HELP_INFO-PROGRAM = SY-REPID.
    HELP_INFO-DYNPRO = SY-DYNNR.
    HELP_INFO-DYNPPROG = SY-REPID.
    HELP_INFO-PFKEY = SY-PFKEY.
    HELP_INFO-FIELDNAME = HELP_INFO-DYNPROFLD.
    CALL FUNCTION 'HELP_DOCULINES_SHOW'
    EXPORTING
    HELP_INFOS = HELP_INFO
    OVERLAY_HEADER = XHEAD
    TABLES
    EXCLUDEFUN = TEXC
    HELPLINES = T_LINE.
    WHEN OTHERS. MESSAGE S720(SH).
    ENDCASE.
    ENDFORM. " SHOW_HELP_F1

  • Problem with I/O field in module pool

    hi experts,
            I am displaying some text in I/O field in module pool screen. I am giving the attributes of I/O field as "output only" type and no input. Initially the input was not enabled for it, only it should be in display mode. Once i click on 'CHANGE' pushbutton then only the input should be enabled and it should be in change mode.will u tell me how to do it programatically.

    HI,
    In PAI of that screen..
    when the sy-ucom is 'Change' then use the Loop at screen--Endloop to modify the attributes value.
    example..
    LOOP AT screen
          CASE screen-name.
           WHEN 'Fieldname.
              screen-input = 0.
              screen-active = 0.
             MODIFY screen.
         ENDCASE.
    Edited by: avinash kodarapu on Dec 10, 2008 12:16 PM

  • FM  BAPI_SALESORDER_GETLIST obligatory field

    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 problem with  FM BAPI_SALESORDER_GETLIST is, customer Number is a obligatory field. End user just want to see the sales quantityfor each matrial.
    so, how can i skip or avoid using Customer Number field for  'BAPI_SALESORDER_GETLIS'   OR is there any FM where i can get sales quantity  data by using MAT NUM, SALES ORG and DATE..
    oh yeah... i did a coding for this in normal way, but its taking very - very  long time to display from table vbap. if user select mat Num.. it will display very fast. but, if the user execute using only  sales org it will take very very very long time.
    thanks in advance.
    Edited by: MAYAT on Dec 14, 2009 10:53 AM

    hi... the probelm is, its taking very long time to fetch date from da table.... the probelm is end user... end user will only select sales org and execute.
    this concept will take very long to just to display the output. in vbap table, there are more thna 5 million of data. thats why im looking for FM, to make the report more efficient.
    thanks...
    regs mayandi

  • Date field in module pool

    hi all,
    i want to have date field in module pool with F4 help. m keeping format as DATS. but still its not taking F4 help for taking date from calender...how shud i do it.

    Call this FM -
    CALL FUNCTION 'F4_DATE'
           EXPORTING
                DATE_FOR_FIRST_MONTH = DATE
                DISPLAY              = HELPDISP
           IMPORTING
                SELECT_DATE          = DATE
           EXCEPTIONS
                OTHERS               = 4.
    Regards,
    Amit
    Reward all helpful replies.

  • Purchase Requisition header text as obligatory field

    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 purchase requisition (ME51N) as obligatory field, is that possible via configuration??

    Marco,
    No, this is not possible via configuration. You will need to look into some <i>user exit</i> to make this feasible.
    Hope this helps.
    H Narayan

  • Obligatory fields in a Maintenance View

    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,
    Madhur

    Hi Madhur,
    Whenever u craete a table maintainence view one or two  screens are generated depending upon the option u have selected.
    goto SE11 ->utilities ->table maintainence .
    there find ur screen no ( 1 by default)
    click on that u will enter into screen painter.
    There find ur field and specify its attribute as required. Dont forget to activate the screen onece done.
    Thanks & Regards,
    Ankur

  • F4 help for a field in module pool

    Hello Experts,
    I need to provide f4 help on field sales office(VKBUR) in my module pool program.
    I have searched forums about it. but all forum contains either doc. no or customers etc.
    these field are directly available on table, so very easy to find.
    But for sales office, how can i provide f4 help. there is no straight entries in tables like for this company code this sales office.
    so its getting difficult for me to provide help.
    so if anybody know the solution plz help, and if anyone know table where all sales offices are stored, i will be thankful.
    Thanks,
    Amar

    Hi amar_war,
    use screen painter to edit the screen layout where the field VKBUR is on. Double click the field to get the details screen. Here you can attach a search help to the field.
    H_TVBUR has no more parameters, it will display a list of al sales offices with description text
    H_TVBVK will also show the sales group, if VKGRP is a screen field, it will restrict the result list automatically on matching VKGRP.
    H_TVKBZ has also VKORG VTWEG SPART - it will take those values from screen if filled.
    If you are not satisfied with the results, you can easily create your own search help using own selection method and own search help exits if required.
    Try standard search help for standard field first.
    You can create a copy of VKBUR as ZVKBUR and attach search help there, you can create your own screen structure and attach the search help there - 50 ways to get your search help...
    Regards,
    Clemens

  • How to get center alignment of Input/Output field in Module Pool

    Hi Friends,
    I am using Input/Output field in my Module pool program. Dynamically i am submitting the text to Input/Output field. What i want is i want to display the submitted text as center. By default It is displaying left aligned.
    Thank U in advance.
    Mahender.

    Hi,
    Use syntax "Centered".
    take one variable push into the field
    write w_variable1 to w_variable2 centered.
    next push the varaible to Destination screen input/output Field .
    Make sure the Field the Character Type.
    Prabhud@s

  • Obligatory fields in plans (IP01)

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

    Helllo ,
    why you want this to be mandatory
    You are maintening  it in work centre then it will copy automatically
    Regards
    chandrashekhar

  • Search Help For a Field in Module Pool Programming

    Hi,
    I have a field called status in Module Pool for which i need to write a search help.
    This is the piece of code i have written.
    TYPES: BEGIN OF ty_status,
             stat type i,
             status type string,
        END OF ty_status.
      DATA: lt_emp_status TYPE STANDARD TABLE OF ty_status,
            lw_emp_status TYPE ty_status.
      REFRESH lt_emp_status.
      lw_emp_status-stat = '1'.
      lw_emp_status-status = 'Draft'.
      APPEND lw_emp_status TO lt_emp_status.
      CLEAR lw_emp_status.
      lw_emp_status-stat = '2'.
      lw_emp_status-status = 'Employee Review'.
      APPEND lw_emp_status TO lt_emp_status.
      CLEAR lw_emp_status.
      REFRESH lt_emp_status.
       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'STATUS'
          value_org       = 'S'
        TABLES
          value_tab       = lt_emp_status
          return_tab      = t_return
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc = 0.
        READ TABLE t_return INDEX 1.
        MOVE t_return-fieldval TO LV_EMP_status.
      ENDIF.
    But i am getting the following error.
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_ASSIGN_CAST_ILLEGAL_CAST', was
      not caught in
    procedure "F4IF_INT_TABLE_VALUE_REQUEST" "(FUNCTION)", nor was it propagated by
      a RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    The error occurred at a statement of the form
       ASSIGN f TO <fs> CASTING.
       ASSIGN f TO <fs> CASTING TYPE t.
    or
       ASSIGN f TO <fs> CASTING LIKE f1.
    or
       at table statements with the addition
       ASSIGNING <fs> CASTING.
    The following error causes are possible:
    1. The type of field f or the target type determined by <fs>, t or f1
    contains data references, object references, strings or internal tables
    as components.
    Could some one help me how to resolve this issue.
    Thanks in advance.

    Hi,
    Please see this sample code below:
    *To fetch the classification data on the sel screen
    DATA: BEGIN OF IT_KLAH OCCURS 0,
          CLINT TYPE CLINT,
          CLASS TYPE KLASSE_D,
          END OF IT_KLAH.
      SELECT CLINT CLASS FROM KLAH UP TO 500 ROWS
      INTO TABLE IT_KLAH.
      IF SY-SUBRC <> 0 .
        MESSAGE TEXT-006 TYPE 'E'.
      ELSE.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
    DDIC_STRUCTURE = ' '
        RETFIELD = 'CLASS'
    PVALKEY = ' '
        DYNPPROG = SY-REPID
        DYNPNR = SY-DYNNR
        DYNPROFIELD = 'p_s_clascn_low'      "i had to put the f4 help on the selection screen's select option low value,
                                                                     "here basically you have to give the internal table name inside quotes in which
                                                                     "you want to retrieve your data
        VALUE_ORG = 'S'
        DISPLAY = ' '
        TABLES
        VALUE_TAB = IT_KLAH.
      ENDIF.
    Hope it helps,
    Regards,
    Mansi

Maybe you are looking for

  • Automatic programme for  Down payments and  Credit memos & pratial payment

    Hi Guysis vendor credit memo is 5000rs when i  Excute the Automatic programme for the APP it asks enter payment method for the Incoming payments. how to slove this error. vendor down payments Automatic payment programme is possible or not please give

  • Where can I get my serial #s

    where can I get my serial #s

  • Best Way to import from iPhoto to Aperture?

    I am working with an iPhoto library of 40,000 images, which is about several hundred GB in size. The direct import of the iPhoto library doesn't seem to work - i.e. - Aperture shows in the activity window that it is processing 40,000 images, but it h

  • ABAP program "RPCTRPU0"

    Hi All, After applying HRSP 75 & 76, Tax Reporter PU19 gives runtime error in program u201C/1BCDWB/SAPLSM00000002u201D. Please find details of error message below. Error in the ABAP Application Program The current ABAP program "RPCTRPU0" had to be te

  • After Effects CC 2014 (13.0, 13.1, 13.1.1) and Yosemite  RAM preview probleme

    "We are aware of one issue regarding RAM preview in After Effects on Mac OSX v10.10: When a RAM preview begins to play, the first several frames of the video will not play the first time through; subsequent loops through the same RAM preview duration