Regarding the flow logic in screen painter

Hi Experts
I am a BW guy and i am new to ABAP and i need your help to solve my problem.
I have created a table for master data(zemp_data) in R/3 se11..which has fields like zempid,zempname,zmgrid,zdeptid,zdeptname and i have created the respective fields in screen painter too but my problem is i dont know how to link this fields  in the screen painter to the  fields in table .to be more clear i want the flow logic or module pool code to link this table when i give an entry in the screen painter for the respective  fields..i will really appreciate your answers and award the maximum points for the usefull answer ..as i dont know ABAP much if it is a step by step approach ..that would be helpfull
Regards,
RK.

Hi Karthik,
Please consider the following
In the screen...the fields must be from the database table in Se11..(in screen painter -> use.."get from Dictionary" -> enter the table name -> select the fields -> drag and drop on the screen) or must have the same name in the database table..This will be a link but unless you code to fetch values from database or update values to database there will be no action taking place
Usually in the PBO(process befor output) we write the code to display values before we accept data from the user ie,set default values on the screen if required and prepare the screen for user input
in the PAI of the screen painter we can do data processing ie, data validations,checks and saving based on what the user wants
So imagine you have buttons placed on the screen and there are buttons from standard application bar like BACK,SAVE, set using PFstatus..all the user actions will be linked to a function cod..ie whenever user presses a button we can uniquely idntify what was pressed by assigning a function code to each button in the menu painter or PF status and do the action accordingly
Assume that you have created a push button on the screen painter and assigned it a function code "PUSH"
so whenever you press the button in the variable sy-ucomm "PUSH" will be captured..this you can check in PAI for the screen like
Case sy-ucomm.
when 'PUSH'.
do the needful coding
when 'SAVE'
Modify database table
endcase.
you can check the standard demo programs in SE38 -> program name-> display for basic ABAP coding you have asked for
(1)demo_dynpro_input_output .
(2)demo_dynpro_dictionary
(3)demo_dynpro_push_button
Pls let us know if you need more help on the same
Reward if helpful
Regards
Byju

Similar Messages

  • About flow logic in screen painter

    hi all,
    its urgent to me i need to creat a TCODE for specific transaction.
    i was created a Ztable with three fields and now i need to create a screen with save and delete and edit options for that three fields ( i was already created a screen with these fields but i dont know how to write code in the flowlogic section)and i have to assign that to One new Tcode please guide me step by step.
    thank u in advance
    Best Reg
    Sunil

    Hi
    You need to write a module pool program. When you design the screen using screen painter, select the DDIC structure and give your table name.
    Write PBO and PAI modules.
    Regards,
    Reema.

  • How to batch download  the elements and flow logic of screen

    hi,all
    i am doing programs transfer without using transport request.
    it is easy to download simple reports,includeing code, text etc.but how can i deal with reports with customed screen.
    for example, i have to download the elements and flow logic of  screen 100 in a report. also, i need to upload in another server.
    i need you help!
    thanks
    Regards
    LT

    Hi,
    There are lots of utilities to do this. just search forum and you will be able to find the one.
    Regards,
    Atish

  • How to change the visible length in screen painter?

    Hi Guys,
    we have field in screen which is type to ATWRT but the visible length is set to 11. ATWRT is 30 char.
    Please advise on How to change the visible length in screen painter to make it 30?
    When I try to edit the defined length from 11 to 30. It wont allow me to.
    Thanks a lot!

    Hi,
    Try the below method:
    Goto Screen Painter -> Double click on Input-Output field for ATWRT another screen will appear with attributes of Input Output field -> Increase the Visible length Value there. (Option of visible length is below the Name and Text attribut of Attribute windiw.)
    If the Visible length field isn't allowing change then declare it as a Char type instead of taking the DataType for Data Dictionary.
    Thanks,
    Preyansh
    Edited by: DWIVEDP on Mar 29, 2010 12:42 PM

  • Regarding the Delta Logic in the Report

    Hi Abap gurus,
    i have selection screen for 3 fields in one block called material, plant and extract date.  if the user selects the extract date as todays date then data has to fetch the as per todays date. 
    i have two radio buttons on the selection screen for the second block. one is change material and second is all materials.
    if user clicks on first radio button then only change material    and aslo newly posted records for that date  has to come.
    how to build the logic for this?  i have developed upto first part.  data is coming fine. how to build the delta logic?  i am working for the site receipts.  guide me in this issue. if possible post the code.

    Hi,
    [here you find lots of sample reports, |http://help.sap.com/abapdocu_702/en/index.htm]
    Hope it solves your question.
    Regards,
    Clemens

  • Regarding the event AT SELECTION-SCREEN ON FIELD ..

    Hi experts,
    Can u plz tell the real advantage of the event AT SELECTION-SCREEN ON FIELD than
    AT SELECTION-SCREEN ..
    in which type of situations  AT SELECTION-SCREEN ON FIELD is needed??
    Thanks & Regards,
    sathish.

    Hi,
    when we are going to do two are more field validations at a time
    we can use AT SELECTION-SCREEN ON <fieldname>.
    if it is there single field we can use AT SELECTION-SCREEN.
    have a look.
    select-options: s_vbeln like vbak-vbeln,
                          s_vkorg like vbak-vkorg,
                          s_vtweg like vbak-vtweg,
                          s_matnr like vbap-matnr.
    AT SELECTION-SCREEN ON s_vbeln.
    select----
    if sy-subrc <> 0.
    error message.
    endif.
    AT SELECTION-SCREEN ON s_vkorg.
    select----
    if sy-subrc <> 0.
    error message.
    endif.
    AT SELECTION-SCREEN ON s_vtweg.
    select----
    if sy-subrc <> 0.
    error message.
    endif.
    AT SELECTION-SCREEN ON s_matnr.
    select----
    if sy-subrc <> 0.
    error message.
    endif.
    Regards.
    sriram.

  • CFL For the edit text using screen painter

    Dear All,
    I had created CFL for the Edit box to display CardCode
    if i press tab button the list for the specified object type is obtained
    but the selected value is not binded with the edit box,i have attached the code here,
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then
                Dim oCFLEvento As SAPbouiCOM.IChooseFromListEvent
                oCFLEvento = pVal
                Dim sCFL_ID As String
                sCFL_ID = oCFLEvento.ChooseFromListUID
                Dim oForm As SAPbouiCOM.Form
                oForm = SBO_Application.Forms.Item(FormUID)
                Dim oCFL As SAPbouiCOM.ChooseFromList
                oCFL = oForm.ChooseFromLists.Item(sCFL_ID)
                If oCFLEvento.BeforeAction = False Then
                    Dim oDataTable As SAPbouiCOM.DataTable
                    oDataTable = oCFLEvento.SelectedObjects
                    Dim val As String
                    Try
                        val = oDataTable.GetValue(1, 0)
                    Catch ex As Exception
                    End Try
                    If (pVal.ItemUID = "23") Then
                        oForm.DataSources.UserDataSources.Item("CardCode").ValueEx = val
                    End If
                End If
            End If
    Regards,
    Vijay

    Is the event generated ? What is the value of your "val" variable ?

  • How to get the field type from the database dictionary in screen painter

    hi,
    I wanted to create a new input field that input field should have the data element from the structure that i have created. How to get the data field type from the database dictionary in the screen painter

    hi
    good
    there is two kinds of evernt
    PROCESS ON HELP-REQUEST
    PROCESS ON VALUE-REQUEST.
    which ll help you to give two types of help one is f1 help and another one is f4 help
    go through this link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/47/e07f622b9911d2954f0000e8353423/content.htm
    thanks
    mrutyun

  • Range options in screen painter

    Developed an application in ABAP for employee entitlement. Most of the screens are designed in Screen painter as they has to be run for single Emp. psl no.
    But screen for infosystems (2000) is designed using selection-screen as it can be run for single or multiple EMP PSL no.
    This infosystems screen is called using " Call selection-screen command'.
    Now whenever there is change in program the flow logic of screen 2000 is changed. Now my questions are
    - How to call screen 2000 without affecting flow logic.
    - How to design screen in screen painter for parameter ranges.
    Kindly help as no help is available
    thanks
    anu

    Hi,
    select options in screen check this code..
    REPORT  ZTEST_SCREEN                            .
    DATA : BEGIN OF IT_DYNPFIELDS OCCURS 3.
            INCLUDE STRUCTURE DYNPREAD.
    DATA : END OF IT_DYNPFIELDS.
    DATA: TEST(10) TYPE C.
    RANGES:  R_UNAME FOR SY-UNAME.
    DATA:     V_USERNAME LIKE  SY-UNAME.
    DATA : V_PROG LIKE D020S-PROG VALUE 'ZTEST_SCREEN',
           V_DNUM LIKE D020S-DNUM VALUE '0100'.
    CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'TEST'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  GET_CURSOR_USERNAME  INPUT
    *       text
    MODULE GET_CURSOR_USERNAME INPUT.
      REFRESH IT_DYNPFIELDS.
      CLEAR   IT_DYNPFIELDS.
      MOVE 'V_USERNAME' TO IT_DYNPFIELDS-FIELDNAME.
      APPEND IT_DYNPFIELDS.
      CLEAR   IT_DYNPFIELDS.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          DYNAME               = V_PROG
          DYNUMB               = V_DNUM
          TRANSLATE_TO_UPPER   = 'X'
        TABLES
          DYNPFIELDS           = IT_DYNPFIELDS
        EXCEPTIONS
          INVALID_ABAPWORKAREA = 1
          INVALID_DYNPROFIELD  = 2
          INVALID_DYNPRONAME   = 3
          INVALID_DYNPRONUMMER = 4
          INVALID_REQUEST      = 5
          NO_FIELDDESCRIPTION  = 6
          INVALID_PARAMETER    = 7
          UNDEFIND_ERROR       = 8
          DOUBLE_CONVERSION    = 9
          STEPL_NOT_FOUND      = 10
          OTHERS               = 11.
      IF SY-SUBRC = 0.
        READ TABLE IT_DYNPFIELDS WITH KEY FIELDNAME = 'V_USERNAME'.
        IF SY-SUBRC = 0.
          V_USERNAME = IT_DYNPFIELDS-FIELDVALUE.
        ENDIF.
      ENDIF.
      PERFORM GET_MULTIPLE.
    ENDMODULE.                 " GET_CURSOR_USERNAME  INPUT
    *&      Form  GET_MULTIPLE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM GET_MULTIPLE .
    * Dynamically holding Field name
      FIELD-SYMBOLS: <FST> TYPE STANDARD TABLE.
      IF  R_UNAME[] IS INITIAL.
        IF NOT V_USERNAME IS INITIAL.
          R_UNAME-SIGN = 'I'.
          R_UNAME-OPTION = 'EQ'.
          R_UNAME-LOW = V_USERNAME.
          APPEND R_UNAME.
          CLEAR  R_UNAME.
        ENDIF.
      ENDIF.
      ASSIGN R_UNAME[] TO <FST>.
      CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
        EXPORTING
          TITLE             = 'Select Multiple Value'(059)
          TEXT              = 'Finish Group'(058)
          SIGNED            = 'X'
          LOWER_CASE        = ' '
          NO_INTERVAL_CHECK = 'X'
          JUST_DISPLAY      = ' '
          JUST_INCL         = 'X'
        TABLES
          RANGE             = <FST>
        EXCEPTIONS
          NO_RANGE_TAB      = 1
          CANCELLED         = 2
          INTERNAL_ERROR    = 3
          OTHERS            = 4.
      IF SY-SUBRC = 0.
        READ TABLE R_UNAME INDEX 1.
        IF SY-SUBRC = 0.
          V_USERNAME = R_UNAME-LOW.
        ENDIF.
      ENDIF.
    ENDFORM.                    " GET_MULTIPLE
    Check this thread...
    Select option in Dialog program screen
    Regards
    Vijay

  • Regarding screen painter tutorial

    hi,
    i am new to screen painter & i want to start working on it as i have been assigned a report.
    plzz help me by giving d easiest example of performing it as help will be definately rewarded.

    Screen Painter
    Screen Painter is an ABAP Editor tools allowed us to create dialog screen. Dialog screen usually created as a screen to catch user input. It can be accessed by tcode SE51.
    Screen Painter Architecture
    You use the Screen Painter to create and maintain all elements of a screen. These are:
    Screen Attributes
    Describe a screen object in the R/3 System. Screen attributes include the program the screen belongs to and the screen type.
    Screen layout
    Screen elements are the parts of a screen with which the user interacts. Screen elements include checkboxes and radio buttons.
    Elements
    Correspond to screen elements. Fields are defined in the ABAP Dictionary or in your program.
    Flow logic
    Controls the flow of your program.
    Two Screen Painter Modes
    The Screen Painter has a layout editor that you use to design your screen layout. It works in two modes:
    Graphical mode and
    Alphanumeric mode.
    Both modes offer the same functions but use different interfaces. In graphical mode, you use a drag and drop interface similar to a drawing tool. In alphanumeric mode, you use your keyboard and menus.
    Graphical mode is available only on MS Windows 95, MS Windows NT, and Unix/Motif platforms.
    To activate the graphical mode, choose Utilities ® Settings in the Screen Painter, then select the Graphical layout editor option.
    Creating a Screen: Basics
    Create a screen in an existing program and define its attributes.
    Design the screen layout and define the attributes of the elements.
    Write the flow logic.
    Basic Principles
    Uses predefined elements with links to the ABAP Dictionary or program.
    Supports forwards navigation.
    Supports complex elements: Table Control and Tabstrip Control, and Custom Container.
    Cut/ Copy/ Paste (Graph. fullscreen)
    Undo/ Redo (Graph. fullscreen)
    Check this  link for STEP-BY-STEP DEMO FOR SCREEN PAINTER with screen shots
    http://abapliveinfo.blogspot.com/2007/12/working-with-screen-painter-in-sap.html
    Check this link for Screen Painter Concepts http://help.sap.com/saphelp_nw04s/helpdata/en/d1/801c54454211d189710000e8322d00/frameset.htm

  • Unable to open SAP Screen Painter on the current desktop.

    Hi,
    Whenever I try to open Screen painter through SAP GUI I am thrown with an error message "EU_SCRP_WN32 : timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'". This error has been occurring since I have changed my workstation. When I use my SAP login ID on a different desktop, screen painter is working fine. This means that the problem is not with the SAP login or the SAP server, the problem lies with the GUI or current desktop setting. Please look into this issue and help resolving this issue. Please revert if any further information is required.
    I have already tried/checked the below steps:
    1. Reinstalled SAP GUI.
    2. gnetx.exe and eumfcdll.dll is already present in my system.
    3. I have checked the setting, Utilities->Settings->Screen Painter->Graphical Layout Editor (Checked)
    The issue is when is tested the RFC conection " EU_SCRP_WN32" it gives me the below error.
    Logon          Cancel
    Error Details     timeout during allocate / CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456 Timeout dur
    Error Details     ERROR: timeout during allocate
    Error Details     LOCATION: SAP-Gateway on host mb5ap1039 / sapgw00
    Error Details     DETAIL: no connect of TP gnetx.exe from host %%SAPGUI%% after 20 sec
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 26638
    Error Details     MODULE: gwr3cpic.c
    Error Details     LINE: 6226
    Error Details     RETURN CODE: 242
    Error Details     SUBRC: 0
    Error Details     RELEASE: 700
    Error Details     TIME: Fri Jun 18 11:20:53 2010
    Error Details     VERSION: 2
    Can anybody help me with the above issue.
    Regards,
    Smithesh

    Hi Rich,
    I followed the correction instruction of the note 133903 but didn't work for me .
    I am using SAPGui 7.20.
    Details: (after replace the files)
    ABAP Development Workbench
    Release 7.20
    Graphical Screen Painter
    File Version 7200.0.1300.354
    Build 354w209
    05 May 2010 / 16 Jun 2010
    OS: Windows 7 Professional 32bit
    Some times appears the message box: No response  from Graphical Screen Painter - Exiting.
    On title bar of message box appears: gnetx.exe
    Can I do some thing else?
    Regards,
    Rodrigo
    Edited by: Rodrigo Bernardo on Jun 23, 2010 6:36 PM

  • Modulepool & screen painter

    Hi,
    What is the difference b/n screen painter and module pool?
    Which to use & when?
    Regards,
    Siri

    SCREEN PAINTER-
    The Screen Painter is a component of the ABAP/4 Development Workbench. In the Screen Painter, you can define the following interface elements with their associated attributes:
    input/output fields
    field names
    checkboxes
    radio buttons
    Group boxes
    subscreens
    pushbuttons with no fixed position
    To start the Screen Painter, choose the corresponding pushbutton on the initial screen of the ABAP Workbench or enter Transaction SE51. From here, you can:
    Create new screens.
    Test an existing screen.
    Create new components for an existing screen.
    In the Screen Painter, you define the graphical layout of the screen as well as the underlying flow logic.
    The layout editor of the Screen Painter can run in two different modes:
    alphanumeric mode
    graphical mode
    MODULE-POOL-
    An ABAP program with the program type 'M'.
    ALSO IN MODULE POOL , OUTPUT SHOWS IN ANOTHER TRANSACTION CREATED BY US.
    module pool should be used with each infotype. This module pool is the main program for the maintenance interface for the infotype.
    ***DO REWARD IF USEFULL
    VIJAY

  • How to enter values in ztable from screen painter

    Hi guys,
    I have a scenario,where i have to enter values in ztable for the values entered in  screen painter.The screen painter is supposedly having 10 columns. i enter the value in the grid(table) and when i save, the records have to be inserted into ztable created by me. how to go through the problem. kindly help in  giving a flow for the problem .If anybody has gone through this scenario please help out.
    Thankx in advance
    Regards
    Navin

    if ur entering one record at a time from sreen to table then
    u have to use ,
    in pai module of the screen u have to code,
    case sy-ucomm.
    when 'SAVE'.
    ztable-roll = ztable-roll.
    ztable-name = ztable-name.
    insert ztable/modify ztable.
    ENDCASE.
    if ur screen is having a table control
    then u have to create a loop inside a module.
    like
    loop at tabcontrol_name
    module insert_data.
    endloop.
    and in the doubleclked module,
    move-corresponding ztable to ztable.
    insert ztable.
    Note : in both cases u have selected input fields as from
    table/dictionary in the screen.
    Regards

  • Flow Logic jumping to HTML Template (with SAP dialog) & back again

    Hello
    Overview
    ========
    Within a HTML Template that uses flow logic, can I call a HTML Template that has SAP dialog behind it.  The SAP dialog is a function module that has a screen requesting user input and then follows on to display selection based on user input.  The user can then select a value that I would like  returned to the flow logic screens.  Just like an F4 help. 
    Detail
    ======
    This is for SRM (EBP):
    -Internet Service: BBPATTRMAINT
    -Theme: 99
    -HTML Template and flow logic: MAINTAIN_ATTRIBUTES
    Basically I want to give the user more functionality and be able to select addresses using an F4 type scenario.
    The function module I want to call is as follows:
    CALL FUNCTION <b>'F4IF_FIELD_VALUE_REQUEST'</b>
           <b>EXPORTING</b>
                TABNAME           = 'ADRC'
                FIELDNAME         = 'ADDRNUMBER'
                SEARCHHELP        = 'BBP_ADDR_BUPA_BUYER'
                SHLPPARAM         = 'ADDRNUMBER'
                DYNPPROG          = 'BBP_ADDR_MAINTAIN'
                DYNPNR            =  SY-DYNNR
                DYNPROFIELD       = 'BBP_PARTNER_ORG-ADDR_SELECTED'
                CALLBACK_PROGRAM  = 'BBP_ADDR_MAINTAIN'
                CALLBACK_FORM     = 'PRESET_COMPANY_PARTNER'
           <b>TABLES</b>
                RETURN_TAB        = IT_RETVALUES
           <b>EXCEPTIONS</b>
                FIELD_NOT_FOUND   = 1
                NO_HELP_FOR_FIELD = 2
                INCONSISTENT_HELP = 3
                NO_VALUES_FOUND   = 4
                OTHERS            = 5.
    This displays a screen for the user to better define search criteria and follows on to display possible selections.  The user selection is returned in IT_RETVALUES.
    If anyone knows of a similar SAP example where they go from flow logic to HTML templates then that would help a lot.
    Any help or direction would be greatly appreciated.
    Regards
    Peter

    Hey Orcasound, welcome to the forum, and also welcome to Logic.
    Nice setup BTW, especially the Dangerous 2BUS into the BC1 coming back to the Rosetta 800"s, that gonna sound sweet mate.
    OK Q1: The master fader for output 1-2 is always gonna be there, I've never found a way of getting rid of it, you can fortunately set up the mixer so that it won't show though. At the top of the mix window is a heap of boxes highlighted in blue, all you need to do is deselect the master and the output as per this screen shot:
    Save this in your template and you'll never have to see those pesky faders again.
    Q2: Same thing really, logic will always show 1-2 output as stereo out. Which is annoying, even if you manually name them from the I/O labels window it's always stereo, everything else if fine apart from 1-2. To be honest I've just learned to live with it.
    Glad you made the switch, I find DP to be bloated and a bit tired nowadays.

  • Screen Painter how to, manual or flash book

    Is there a screen painter manual, how to or flash book?
    I started using it but the help is to simple, for now I want to create a form that will ask for an inventory code and bring in description and barcode field.  Then the last field will ask for a quantity, that I will read with my add on to print barcode labels.
    Regards,
    William Burgos

    Hi William Burgos
    Screen painter is very basic. It only creates a screen. So all you do is make a new form, drop things on it like a text box, combo box, matrix and so on. But screen painter itself has no logic and you can't set it to do certain actions.
    Screen painter only creates the form. Then you through code must load the form that screen painter created, this form is actually a XML form. Through code you must also apply all the logic.
    Hope this helps

Maybe you are looking for

  • Problem in converting music to ringtone

    Not getting proper file type i.e. m4a while creating music file to AAC version ? So whats the problem?

  • IWeb crashes adding photo page

    iweb crashes when adding a photopage to an existing site or trying to create a new site. 'iweb quit unexpectedly while using the SFWordProcessing plugin' given in Problem Report. Adding a blank page does not crash the application. Any ideas appreciat

  • Problem in queue prioritization

    Hi everybody, He have an Interfase but we can´t see it in queue prioritiaztion and in transaction sxmb_moni. Does anybody knows why?? Thanks a lot. Regards

  • Ipod videos with 3rd generation.

    every time i go to use itunes with my ipod nano 3rd generation, i go to movies or TV shows and "add folder" and "add file", & every time i add a file with videos in it itunes dosnt bring them up, and the ones that do come up on itunes like refuse to

  • New Logic Board - now audio problem?

    Hi, My macbook went in for repair the other day, they said it had a faulty logicboard so have inserted a new one. Now my sound seems to be very tinny and not very loud. This is a computer-wide thing so it's the same with itunes, on the net etc. Is th