Regarding screen

Hi all
   i need to declare a field as a mandatory one in screen painter. The problem is  that unless it is filled with some value the Back or cancel button could not function upon clicking. how to solve this?

Hi,
if u are using function module use this.
DATA: IT_EXTAB  TYPE SLIS_T_EXTAB.
DATA: WA_EXTAB LIKE LINE OF IT_EXTAB.
WA_EXTAB-FCODE = 'APEN'.
APPEND WA_EXTAB TO IT_EXTAB.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
XXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXX
        IT_EXCLUDING             = IT_EXTAB
XXXXXXXXXXXXXXXXXXX.
if u  r using OO alv
data: it_exclude TYPE ui_functions.
Exclude toolbar buttons which are not required
CLEAR : it_exclude, it_exclude[].
PERFORM exclude_tb_functions CHANGING it_exclude.
CLEAR : it_exclude, it_exclude[].
*& Form EXCLUDE_TB_FUNCTIONS
text
<--P_IT_EXCLUDE text
FORM exclude_tb_functions CHANGING pt_exclude TYPE ui_functions.
DATA ls_exclude TYPE ui_func.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_append_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_insert_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_move_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_cut.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_paste.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_check.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_refresh.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_undo.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_print.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_sum.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_mb_sum.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_subtot.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_info.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_paste_new_row.
APPEND ls_exclude TO pt_exclude.
ENDFORM. " EXCLUDE_TB_FUNCTIONS
rgds,
bharat.

Similar Messages

  • Query regarding screen capture in webdynpro

    Hi
    i needed to use the java.awt.Robot class to perform a screen capture. This is basically used to capture signature which is done on a applet. But hwile i am using it gives me java.awt.headless exception which basically means that i cannot use display devices or certain other features. is there any way get past this.
    Is there any way i can do a screen capture using webdynpro.
    I have few more doubts regarding a application that i need to make. If i am not able to get a solution for this problem i would explain the scenario and probably someone could help me with solution for the same
    thanks
    regards
    Srikumar V

    The problem is that the iframe control is not really supported and should not be used anymore i think.
    But anyways: Since there is actually no out of the box solution, the steps you would hav to go are as follows:
    1. Get Access to the image data (client side)
    I suppose the paint method of one of the AWT/Swing components is overwritten to draw the signature with a pointig device (eg mouse/touch screen)
    in the method public void paint(Graphics g) you have access to the component's Graphics object.
    When the user presses a button in that applet you need to get the latest graphics object of the component and get the bitmap data out of it.
    This is basically the same as using the java robot screenshot, just more elegant.
    But it is important of course, that the navigation to the new view is somehow triggered by the applet so that it can send the request to the servlet before the applet is destroyed.
    2. Send the data to the Server
    I think the best would be to write a servlet to accept the bitmap data from the applet and store it to a database. When the File is uploaded you have to navigate to the next view (using portal navigation or javascript to reload the parent frame)
    Then you need to query that database from Webdynpro to get the file.
    3. Now you would have to use a library like iText to create a PDF file with your image in it.
    This is all not really easy and I can only describe some rough ideas. I cannot think of an easier way to do it right now since client side coding is not supported by webdynpro.

  • Query regarding screen exits

    Hi ppl,
    I am looking for a screen exit for tcode MSC3n.
    Using SMOD, I found the following enhancements:
    BATCHCHK
    MBCFC010
    SAPLCHVW
    SAPLMHD1
    SAPLV01D
    SAPLV01P
    SAPLV01Z
    SAPLV1ZE
    SAPLV1ZN
    But, all these have function exits. There was no screen exit specifically mentioned in any of these enhancements.
    Does it mean that there is no screen exit or will these function exits be useful?
    Please help.
    Regards,
    David.

    Hi,
    My requirement is to remove 2 fields from a subscreen of the tcode MSC3n and replace with 2 custom fields which I have appended in the standard database table. All the fields are from the same database table.
    Thanks,
    David.
    Edited by: David D on Aug 28, 2009 6:59 AM

  • Regarding screen fields include in purchase order transaction

    Hai guys,
        I need to add new field in purchase order transaction ( me21n, me22n, me23n ) . i have added the new field in screen painter. when i was creating the field and then i made the field to refer from dictionary , when i refer from dictionary the field is showing in non-editable format.how to make the field  as editable format to enter the value.what is the settings behind it please explain.
    for your information i have added one more field without refering dictionary it is accepting inputs .
    Regards,
    N.selvamuthukumar.

    thanks for your reply.
    we have already  done the changes as you mentioned. but still we are facing the same problem of inactive state on the newly created field.
    kindly suggest any other settings to be done for dictionary related fields.. (we have enabled the dictionary related option in the screen field properties menu)
    otherwise provide step by step setting for new field creation.....(se51)
    thanks with regards
    selva

  • Regarding screen exit

    Hi Friends,
    I created the sales order using VA01 and enter the payment terms and saved. But mu requirement is when i go through VA02, payment terms field must be in display mode. So, user not able to chage the payment terms value.
    Please give exact solution with Screen exit name and modifications.
    Thanks in advance
    Regards
    Govind.

    Hi,
        The SAPMV45A , 8309 screen is the Additional Data B tab providded by SAP to add your custom fields . In order to capture the data from this custon field you can use
    the user exit MV45AFZZ, USEREXIT_SAVE_DOCUMENT_PREPARE OR
    USEREXIT_SAVE_DOCUMENT depening on your functionality.
    If you include the field MGANR as a part of the VBRK /VBRP structure then these will be available.
    step by step method to implement screen exit:
    Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard screen’s flow logic.
    the tcode is cmod...
    1.From the main screen of the Project management transaction, proceed as follows:
    Select Enhancement components and choose Change.
    2.Choose Edit component.
    3.Choose the screen exit and double click on it
    4.Create your subscreen using the Screen Painter.
    5.Design your screen to be added to the standard screen and activate the particular screen and return back to the flow logic .
    6.Choose the PAI and PBO to write down the logic.
    7.Generate your screen and choose Back (the green arrow) to return to the Project management transaction.
    8.Go to the transaction ME22 to view the customer defined screen exit.
    9.Enter the purchase order number and press Enter.
    10.Go to the menu header --> Details.
    11.Purchase number is visible on the standard screen
    Regards

  • Regarding Screen Exits

    Hi all,
    In tcode XD02 i want to add 3 fields (account no. , Branch and Bank Details)..In Standard Screen.
    What is Screen Exit For the XDO2?
    Can Any One Tell the Step by step process to create Screen Exits.
    How To work with  Tcodes CMOD And SMOD?

    Hi,
    Check the link below on screen exits:
    http://****************/Tutorials/ExitsBADIs/ExitsMain.htm
    regards
    Shiva

  • Regarding Screen Painter object modification adjustment in SPAU

    Hi all,
    We are upgrading SAP 4.6 C to ECC 6.0.I have query related to SPAU transaction.
    <b>How do we adjust the modification for Screen in SPAU transaction. The traffic light in front of  screen object is Green.</b>
    I have gone through the help.sap.com also but the screen adjustment document is not valid for ECC 6.0 , it's valid for ECC5.0.
    Can anybody suggest what exactly is to be done in this case if anybody has done it on ECC 6.0 . Has anybody done it earlier in any ECC6.0 Project?
    Good solution will be rewarded.
    Thanks & Regards
    Prabhat Ranjan

    Hi ,
    Can anybody reply to my query.
    Thanks & Regards
    Prabhat

  • Regarding screen flow in MODULE POOL

    Hi everyone,
                          my requirement is to cretae a module pool program. In between a program is submitted VIA  a selection screen. That selection screen contains PUSH BUTTONS. If any push button is clicked one of the dialog screens of the module pool program should be called. Can any one tell me how can this be done.
    Thanks in advance.
    Regards,
    Y.Gautham

    write a Module in PAI of ur screen and call which ever screen u want to call or leave.
    for e.g -
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    module USER_COMMAND_0100 input.
    case ok_code.
    when 'ENTER'.
    clear ok_code.
    leave to screen 200.
    endcase.
    endmodule. " USER_COMMAND_0100 INPUT

  • Question Regarding Screens

    Hi,
    I have a customized button on the toolbar. Now when I click this button a screen or subscreen should be displayed with a select option parameter. Based on the value that I select in this screen functionality of the pushbutton which is there on the first screen should be performed. How do I achieve this? Thanks In Advance..
    Vicky

    Define a selection screen with the select option and call the selection screen in the pai section of your original screen.Put a button on the selection screen which is to be pressed once you enter values in the select-options.
    sample code to call a selection-screen.
    <i><b>DATA SPFLI TYPE SPFLI.
    SELECTION-SCREEN BEGIN OF SCREEN 123 AS WINDOW TITLE TEXT-456.
      SELECTION-SCREEN BEGIN OF BLOCK BL1 WITH FRAME TITLE TEXT-BL1
                                          NO INTERVALS.
        SELECT-OPTIONS SEL1 FOR SY-SUBRC.
        PARAMETERS     PAR1 LIKE SPFLI-CARRID.
        SELECTION-SCREEN COMMENT /10(20) TEXT-COM.
      SELECTION-SCREEN END OF BLOCK BL1.
    SELECTION-SCREEN END OF SCREEN 123.
    CALL SELECTION-SCREEN 123 STARTING AT 20 5.
    IF SY-SUBRC = 0.
    ELSE.
    ENDIF.</b></i>
    Regards,
    Ravi

  • Regarding Screen Variant for tcode va11

    hi all,
    i am trying to create a screen variant for tcode va11. the fileds in the item level has to changed.. we have a requirement to show only those fields that are usefull as per our clients requirement.. there are fields which will never be used .. so we have top remove it .. i have created a screen variant and made all the fiedls not needed invisible .
    then i link this csreen variant to a transaction varaiant .. howver when i execute
    this i don't find any difference in screen .. guess my screen variant not working..
    Is there anything we have to take care for table control.
    the Program name is SAPMV45A
    Screen number is 4900
    please if any body has done this before ,,kindly suggest.
    thanks and regards
    Sriniavs

    this variant is in Active state ?
    what is system status ?
    check which PF/GUI it is using .
    system-->status>Program here u have to get ur Zvariant name.
    Regards
    Prabhu

  • Regarding screen comparison

    hey guys,
    Is it possible to compare two Screens from 46C to ECC and find the differences.
    for example, Screen layout and Field label texts changes between two systems.
    With respect to screen level.
    pls suggest me if any function module exists. Can somebody shed light on this
    regards
    ambichan.

    Hi,
    Try this..
    If you have RFC connection to ECC..
    Then in SE51..utilities -> version management..Do remote comparison to the ECC system.
    OR
    Download both the screen layout..and then compare them in an external editor.
    Thanks
    Naren

  • Regarding Screen Error in VA01 Transaction

    hi all,
             I am Creating Sales Order through BDC , When i am doing this , i am getting one error like Field RV45A-KWMENG does not exist in the screen SAPMV45A - 4001.
    On The Line Items these fields are there
    item code  material number  quantity
    Material is Populated but for remaining two these error is coming.
    Please suggest solution.
    Regards
    Reddy

    Hi,
    Field exists RV45A-KWMENG (Cumulative Order Quantity in Sales Units).
    Please check data type in your BDC program.
    Regards
    Md.MahaboobKhan

  • REGARDING SCREEN ELEMENTS

    can ne 1 tel me in which DB table information abt the screen element i.e whether it is comin frm dictionary or not is stored.
    i hav used the abap statement 'IMPORT DYNPRO' which gives me an internal table of type
    D021S . but dis internal table does not giv information whether the screen element is comin frm dictionary or not .
    also in which database table are text elements stored .
    dis is a bit urgent .
    helpful answers will b rewarded .
    regards ,
    swapnil

    Hi Swapnil,
    You can check for the table D021T this contains program name , screen number and the elements in that screen.
    I think in the structure D021S contains a field called ITYP (Internal type from ABAP Dictionary) . Hope this is useful.
    Reward Points if it is helpful.
    Reagrds,
    Kiran I

  • Regarding screen modification and messages

    hi experts,
    1. I have devloped one screen 0100 and diaplayed 4 fields from ztable in input/output format. i hv also created 2 buttons for inserting and deletion.
    so when i give input for the fields and when i click insert the data is inserting into ztable properly. but when the same data again given as input it is modifying the data. so wht i want is when we give aleady existing data as input is shoud give message as 'DATA ALREADY EXITS IN ZTABLE ' and also it should dispaly  options want to change data if i click YES it should CONTINUE modify existing data if no it should not modify the existing record.
    2. Also the fields which i hv displayed are in input / output form  so i want to make them as active and deactive according to the requiment.  i want to keep one button on application tool bar when i click change the fields will be in input mode or else when i again click that it will show me in display mode. i hv seen some demo programes in abap docu but unable to understand it please any body can give me clear idea about this code.
    report:demo_dynpro_tabcont_loop_at
    when 'TOGGLE'.
          loop at flights-cols into cols where index gt 2.
            if  cols-screen-input = '0'.
              cols-screen-input = '1'.
            elseif  cols-screen-input = '1'.
              cols-screen-input = '0'.
            endif.
    how can i use this one when i am using ztable fields displayed on screen.?
    <b>points will be rewared</b>
    regards,
    priyanka reddy.

    Hi Priyanka,
    I worked on a project with similar requirement.
    To check if the data entered is already present in the Z Table or not check this code:
    Here, CREATE is the function code of my push button in the screen.This is similar to the INSERT button in your case.ZTM09_EKKO is the name of the Z table and the purchase order number EBELN is beoing checked.If the value is alreadypresent in the table,then sy-subrc value will be equal to 0 as the select querry has successfully retrieved EBELN from ZTM09_EKKO.
    In the screen,I have given the name of the input/output field name same as the ztable field name i.e., ZTM09_EKKO-EBELN.
    Hence if duplicate entry is enterd in the input/output field,then the error message is displayed.
    And to change the data.You can use this code.
    Th function modeul will display a pop-up window. In my case if i click on Yes,the data has to be saved in Ztable.If I click on No,The program should exit.If I click on Cancel,The popup window has to close and the data would remain in th fields of the screen.
    You can code according to ypur requirement for YEs,No and Cancel buttons in the Pop-up.
      DATA answer TYPE c.
    case sy-ucomm.
    when 'CREATE'.
    SELECT SINGLE EBELN FROM ZTM09_EKKO INTO ITAB_P WHERE EBELN =
    ZTM09_EKKO-EBELN.
    IF SY-SUBRC EQ 0.
    MESSAGE  'PURCHASE ORDER NUMBER ALREADY EXISTS'  type 'I'.
            CALL TRANSACTION 'ZCREATE09'.
    ***Call funtion to display popup asking for modify or mot*****
            CALL FUNCTION 'C14A_POPUP_SAVE_WITH_CANCEL'
              IMPORTING
                e_answer = answer.
          IF answer = 'N'.
    ***Leaving the program****
            LEAVE PROGRAM.
          ELSEIF answer = 'J'.
    ****Holding the data on the screen when YES is selected****
                set hold data on.
          ENDIF.
    ENDIF.
    For making the input/output fields active or deactive,
    check this piece of code:
    Here on clicking on the TOGGLE button,the screen will be looped and it will check the screen names.
    IF any of the screen names i.e.s the input/output fields are in active modde(i.e., 1)then they are made inactive.If they are in inactive modee(i.e., 0)then they are made active.
    case SY_UCOMM.
    when 'TOGGLE'.
    loop at screen.
    if screen-input = '0'.
    screen-input = '1'.
    elseif screen-input = '1'.
    screen-input = '0'.
    endif.
    endloop.
    AS far as the code that you have put in the querry,
    it also works the same way.
    The only difference is that in the code that you provided,the fields are made active or inactive in the table control.
    So the looping is at the table control.
    cols is the name of the table control.
    Revert if you have any other querries.
    Reward if helpfull.
    Regards,
    Kashyap Ivaturi

  • Regarding Screen and Guistatus

    hi guys,
    Do we have any roundway technique to find out how Dynpro is related to GUI_STATUS.
    I want to know what GUI_STATUS is used for the Each DYNPRO screen thru programming.
    i believe sometimes, its dynamically choosen in screens when executing transactions. but still need to know how to list the guistatus related to Screen.
    (thru ABAP programming)
    Regards
    Ambichan

    hI,
    In any screen follow menu : GOTO -- Status
    herer u will get all screen name gui status and other fields.
    In programming u can find out each screens status with system filed <b>sy-pfkey</b>.
    Jogdand M B

  • Regarding screens

    hi
    how to suppress the screens(unwanted) while calling  a transaction in a program.
    regards
    prasanna kumar

    Hi Jaya,
    Have you try using 'Do not display screen' in transaction SHD0?
    Could you please try & let me know if this can be help?
    Thanks.

Maybe you are looking for

  • My PowerBook Troubles or How I Learned To Always Purchase AppleCare

    I bought my PowerBook G4 1.67GHz (W85...) on 13 June 2005. According to the production info I get in Temperature Monitor (http://www.bresink.com/osx/TemperatureMonitor.html) it was built on the "Week of 4/16/05 [at] Quanta Computer [in] Shanghai, Chi

  • IPod is full even though iTunes library is no where near iPod's capacity

    My iTunes library contains 19.55GB of music. I automatically update my ipod, so that the files are the same in iTunes and my iPod, yet the iPod has 27.69GBs on it. I have no additional files stored on my iPod. Does iTunes include the space of album a

  • Playing slideshow with music

    Is it possible to have music playing in the background while watching picture slideshow. I have selected the songs in iphoto, but for some reason, still not playing. Help please. 'Thanks Carrene

  • While starting service oas 10g error out pingwait exits with 2932508

    Dear experts,      I have oracle application server 10g 10.1.2.3.0 installed on windows server 2003. Today when i tried to start the services of application services it give me erro: > opmnctl startaall pingwait exits with 2932508 when i checked the

  • Fonts not loading after installed

    I have been installing the same font package over the last few days. The font is called Avenir. I install it and I can use it. But, when I close Photoshop, and re-open the next day, the fonts are missing. Why is this happening? The other weird thing