Flow-logic

Hi!
I need to create a logic in class to check the list pricing
For that I ahve created a method with follwoing parameters
IV_KNUMV     Importing     Type     KNUMV
IV_KPOSN     Importing     Type     KPOSN
RV_IS_LIST     Returning     Type     BOOLEAN
Now for this I need to create a logic for the code based on the
follwoing steps. I havent created a class before , but I tried it
though its giving me errors and hence I am unable to get through.
Could someone please help me out with this .
The steps are as mentioned below. In teh steps there is a ztable
that had to be created which I have done and the fields for the
table are as follows.
table name : ZSD_PRICE_TYPE
MANDT     MANDT     CLNT     3     0     Client
KAPPL     KAPPL     CHAR     2     0     Application
KSCHL     KSCHA     CHAR     4     0     Condition type
KOTABNR     KOTABNR     NUMC     3     0     Condition table
ZPRICE_TYPE     ZPRICE_TYPE     NUMC     2     0     Price type flag
the steps are as follows:-
Determine if Condition is Active or Inactive.  Only go forward with Active conditions.
For each item, read KONV with the Condition Type, DocCond and Item No.
Determine if condition is Active (KONV-KINAK).  If active, get the Access # (KONV-KOLNR).  Example:  60.
Read Table T685 with Application = V, Condition Type from KONV (eg. ZPRL)
to get the Access sequence name (T685-KOZGF).  This can be the same or different from the condition type.
Then Read Table T682I with Application = V,
Access Sequence = T685_KOZGF and Access # (KONV-KOLNR)
to return the Table # (T682I-KOTABNR).  For example, 901.
Read the Z* table with Condition Type from KONV and Table # from
T682I to determine if the table is 1 (List) or 2 (Off List).  Set flag accordingly.
Loop through the same logic for all conditions for the same
item to determine the List or Off List setting of each.
At end of loop, if any of the active records = 2 (Off List),
the item is considered Off List.  Else List.
Thanks
Aarav

I have teh code but its giving em exception and more so I need to loop through the same logic for all conditions for the same item to determine the list or off list setting of each . If I can get some help on it would be great.
method CHECK_LIST_PRICING.
data:  zkotabnr type c length 15,
         zkonv type  konv,
         zkozgf type T685-kozgf,
         zt685 type standard table of t685.
  select * from konv
           into zkonv where kinak = ' ' and knumv eq iv_knumv and kposn eq iv_kposn.
    loop at zt685 into zkozgf.
      select single kozgf into zkozgf from T685 where kappl = 'V' and kschl = zkonv-kschl.
      if sy-subrc eq 0.
        select single kotabnr into zkotabnr
                              from T682I
                              where kappl = 'V' and kolnr eq zkonv-kolnr
                                    and kozgf eq ( select kozgf
                                                          from T685
                                                          where kappl = 'V' and kschl = zkonv-kschl ).
        if sy-subrc eq 0.
          select single ZPRICE_TYPE into RV_IS_LIST from (zkotabnr) where kschl eq zkonv-kschl.
        endif.
      endif.
    endloop.
  endselect.
endmethod.
Thanks

Similar Messages

  • In MVC, do i need a View or Page with flow logic for POPUP window

    Hi All,
    I have the below scenario using the MVC pattern.
    I have a main view with 3 trays, each tray has two buttons, for example first tray has Create Order button. When I click on this button, I need a popup window to come with a tableview and a button(Create), where I select some rows and click on the button Create  to create order.
    But as per the MVC pattern I canu2019t call the view (popup) from another view(main view).  So should I create a VIEW or PAGE WITH FLOW LOGIC for the popup? .
    I need 6 popup to be called from the main view and once the function is done close the popup.
    Please suggest me the flow for this scenario.
    Cheers,
    Srini.

    Srini,
    1. You can call the view in pop-up because you will be calling the controller using open.window.
    Here is the sample code:
    method DO_REQUEST .
      data:
            li_vw           type ref to   if_bsp_page,
            lv_form_field   type          string,
            li_md           type ref to   zcl_model01.
      dispatch_input( ).
      li_md ?= get_model( 'm01' ).
      lv_form_field = request->get_form_field( 'invoice_create' ).
      if lv_form_field is initial.
    *------ Request to display main page
        li_vw = create_view( view_name = 'main.htm' ).
        li_vw->set_attribute( name = 'model' value = li_md ).
        call_view( li_vw ).
      elseif lv_form_field eq 'true'.
    *------ Request to display Invoice page in pop-up
        li_vw = create_view( view_name = 'invoice.htm' ).
        li_vw->set_attribute( name = 'model' value = li_md ).
        call_view( li_vw ).
      endif.
    endmethod.
    Layout:
          function do_Invoice()
          { var s=0; r=1; w=300; h=300; x=screen.width/2;
            x=x-w/2;
            var y=screen.height/4;
            y=y-h/2;
            popUp=window.open('main.do?invoice_create=true','win','width='+ w
            +',height='+ h +', left=' + x +',top='+ y +');
    Option2:
    Ofcourse you can't bind the model in page becos those are 2 different things. But all you need to do is access the model to get some value. To know how to access the model from Page w/flow logic look at [this link|Passing model reference to a page in a Popup].
    Raja
    Edited by: Raja Thangamani on Apr 14, 2009 11:22 AM

  • How do I confirm ITS flow logic  exists?

    Hi Guys,
    We are upgrading from R/3 4.6C to ECC6.0. The old ITS 2 applications one on ITS 6.2 and another ITS 2.0.
    We are having difficulty in finding out/confirming if there is a ITS flow logic involved in the stand alone ITS. This will tell us what kind of effort is needed. I have gone thru forums where they have very good info on how to migrate and what needs to be done if one has flow logic.
    My question I do not know if there is ITS flow logic OR how do I confirm if ITS flow logic was involved in the development. What do I need to look at? I looked at <flow> kind of searches in HTML pages...not found...I looked at the ".flow" files...not found.
    Since I do not have this background, would appreciate if anyone can point me in the rigth direction...maybe I missed some good documents on SDN?
    Any inputs appreciated.
    regards,
    Anand

    Hi Edgar,
    I did look at the .srvc file and one of them has sapxginet against the line for ~xgateway, along with other params.
    This is one step closer. Thanks for this info.
    Is there any other place like a HTML side or otherwise where the ITS flow logic will also be evident. My next step is to see to what degree it has been used.
    regards,
    Anand

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

  • 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

  • Xhtmlb: tabStrip - how to execut a page with flow logic

    Hello all, how do I execute a "page with flow logic" from a "tabStrip".  Currently I am using a "page fragment".  But I need to change to a "page with flow logic" becuase of a technical issue. 
    Is it possible to tell which tab was selected using event processing?  When I try, I am getting "illegal reference". 
    Here is a sample of my current code.
    <xhtmlb:tabStrip id            = "TABSTRIP"
                     viewState     = "EXPANDED"
                     viewStateMode = "COLLAPSED_EXPANDED"
                     tooltip       = "Choose tab" >
      <xhtmlb:tabStripItem name  = "Home"
                           title = "Home" >
        <%@include file="home.htm" %>
      </xhtmlb:tabStripItem>
      <xhtmlb:tabStripItem name  = "Medical"
                           title = "Medical" >
        <%@include file="medical.htm" %> 
      </xhtmlb:tabStripItem>
      <xhtmlb:tabStripItem name  = "Dental"
                           title = "Dental" >
        <%@include file="dental.htm" %>
      </xhtmlb:tabStripItem>
      <xhtmlb:tabStripItem name  = "Vision"
                           title = "Vision" >
        <%@include file="vision.htm" %>
      </xhtmlb:tabStripItem>
      <xhtmlb:tabStripItem name  = "FlxSpnd"
                           title = "Flexible Spending" >
        <%@include file="home.htm" %>
      </xhtmlb:tabStripItem>
      <xhtmlb:tabStripItem name  = "Other"
                           title = "Other" >
        <%@include file="home.htm" %>
      </xhtmlb:tabStripItem>
      <xhtmlb:tabStripItem name  = "RevSub"
                           title = "Review and Submit" >
        <%@include file="home.htm" %>
      </xhtmlb:tabStripItem>
    </xhtmlb:tabStrip>
    What would I replace the "page frament" with?
    Thanks in advance for your help, Troy

    Hi Troy,
      If i understood your requirement i think you need to move to other pages or views when the tabstrip items or clicked. If your requirement is the above one below is the explanation....
    In the layout you include a attribute  onSelect        = "mySelect" in the tag  xhtmlb:tabStrip.
    For event handling in the oninputprocessing you write the below code,
       CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
    DATA: TABSTRIP TYPE REF TO CL_XHTMLB_TABSTRIP.
    Reading Data from Toolbar
    TABSTRIP ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = REQUEST
                                            NAME    = 'xhtmlb:tabstrip'
                                            ID      = 'tb3' ).
    Optional: test that this is an event from HTMLB library.
    IF EVENT_ID = CL_HTMLB_MANAGER=>EVENT_ID.
    Scenario 1: Read event from manager.
      DATA: EVENT TYPE REF TO IF_HTMLB_DATA.
      EVENT = CL_HTMLB_MANAGER=>GET_EVENT_EX( RUNTIME->SERVER->REQUEST ).
    DATA: request_event TYPE REF TO cl_xhtmlb_event.
    request_event ?= event.
    IF EVENT IS NOT INITIAL AND EVENT->EVENT_NAME =
    CL_XHTMLB_TABSTRIP=>CO_EVENT_NAME.
    *---here you can handle the event... 
    ENDIF.
    ENDIF.
    Regards,
    Azaz Ali.

  • How to call the Page Fragment in Page with Flow logic

    Hi,
        I am new to BSP, My requirement is to created 1 page fragment which contains the Logo.  and to create 2 pages in flow logic
    The  logo has to apper in Pages with flow logic Pages. My question is how to call the PAge fragment in the 1 &2 pagesin page with flow logic
    Thanks,
    suresh

    Suresh,
    There is a very enriching portal help.sap.com  where you can find all basic and good documentation .
    http://help.sap.com/saphelp_nw04/helpdata/en/77/8a54d7434ff34784272a3df98ab645/content.htm
    the above link is from that portal.
    Before asking such basic questions please at least try to find or do some research yourself.
    There are standard applications like HTMLB_SAMPLES and SBSEXT_HTMLB and more for sample applications.
    Regards,
    Anubhav

  • Hpw tp call a 'Page with Flow Logic' from within a View

    Within the same BSP, I have the requirment to call a page in the ;Page with Flow Logic' section from a page in the 'View' section.   
    Is this possible and if it is, how do I do it?  I have tried some calls but they all have failed.
    Thanks
    Glenn

    in the view you want to navigate then try
    <bsp: call > or <bsp: goto>  htmlb tags. or else you can use window.open method and open in a new window.

  • Fill select-options in Page with flow logic ???

    Hello All,
              I created a BSP Application using Page with Flow Logic.
    In the first page of my Application I'm using 2 input fields as select-options.
    Now I'm populating a Ranges of that Field using the type :-
    selopttab
    I populated the ranges table like :-
    wa_bname_sel-sign   = 'I'.
              wa_bname_sel-option = 'BT'.
              wa_bname_sel-low    = '*'.
              wa_bname_sel-high   = 'Z'.
            ELSE.
              wa_bname_sel-sign   = 'I'.
              wa_bname_sel-option = 'EQ'.
              wa_bname_sel-low    = p_bname.
              wa_bname_sel-high   = p_bname.
            ENDIF.
            APPEND wa_bname_sel TO p_bname_sel.
            CLEAR  wa_bname_sel.
    But the problem is I checked the corresponding DATABASE Table entries by passing thesame value .
    i.e I passed the low and high values to the field as '*' and 'Z'.
    The total number of entries differ when passing '*' and 'Z' to when passing SPACE.
    I tried even with contains Pattern .This time the total number of records fetching has Increased but the sum is not exact when passed SPACE to the Database Table.
    So what should I pass to the Low and High values of my Ranges Table to get all the entries ????
    DOes this type of building the Ranges work in BSP's ?
    How are u people working out for the select-options functionality in Page with flow logic ?
    Message was edited by:
            deepu k

    Hello Jessy,
    To populate select-options or Ranges in Page with flow logic I used the following code :
    ************************ Bulid the Select-Options**************************************
          DATA: p_bname_sel     TYPE STANDARD TABLE OF selopttab,
                p_bsp_name_sel  TYPE STANDARD TABLE OF selopttab,
                p_tcode_sel     TYPE STANDARD TABLE OF selopttab.
          DATA: wa_bname_sel    TYPE selopttab,
                wa_bsp_name_sel TYPE selopttab,
                wa_tcode_sel    TYPE selopttab.
    * Select-Options for Username
          REFRESH p_bname_sel.
          CLEAR   wa_bname_sel.
          IF ( p_bname IS INITIAL  ).
            wa_bname_sel-sign   = 'I'.
            wa_bname_sel-option = 'CP'.
            wa_bname_sel-low    = '*'.
            wa_bname_sel-high   = ''.
          ELSE.
            wa_bname_sel-sign   = 'I'.
            wa_bname_sel-option = 'EQ'.
            wa_bname_sel-low    = p_bname.  " p_bname is the Input field and the value is taken from it
            wa_bname_sel-high   = p_bname.
          ENDIF.
          APPEND wa_bname_sel TO p_bname_sel.
          CLEAR  wa_bname_sel.
    * Select-Options for BSP_Application
          REFRESH p_bsp_name_sel.        
          CLEAR   wa_bsp_name_sel.
          IF ( p_bsp_name IS INITIAL  ).
            wa_bsp_name_sel-sign   = 'I'.
            wa_bsp_name_sel-option = 'CP'.
            wa_bsp_name_sel-low    = '*'.
            wa_bsp_name_sel-high   = ''.
          ELSE.
            wa_bsp_name_sel-sign   = 'I'.
            wa_bsp_name_sel-option = 'EQ'.
            wa_bsp_name_sel-low    = p_bsp_name.       " Input field
            wa_bsp_name_sel-high   = p_bsp_name.
          ENDIF.
          APPEND wa_bsp_name_sel TO p_bsp_name_sel.
          CLEAR  wa_bsp_name_sel.
    * Select-Options for TCODE
          REFRESH p_tcode_sel.
          CLEAR   wa_bsp_name_sel.
          IF ( p_tcode IS INITIAL  ).
            wa_tcode_sel-sign   = 'I'.
            wa_tcode_sel-option = 'CP'.
            wa_tcode_sel-low    = '*'.
            wa_tcode_sel-high   = ''.
          ELSE.
            wa_tcode_sel-sign   = 'I'.
            wa_tcode_sel-option = 'EQ'.
            wa_tcode_sel-low    = p_tcode.       " Input field
            wa_tcode_sel-high   = p_tcode.
          ENDIF.
          APPEND wa_tcode_sel TO p_tcode_sel.
          CLEAR  wa_tcode_sel.
    * Select all the related entries when either BSP or TCode is choosen
          IF ( ( p_bsp_name IS NOT INITIAL ) AND ( p_tcode IS INITIAL ) )
                     OR
             ( ( p_bsp_name IS INITIAL ) AND ( p_tcode IS INITIAL ) ).
            REFRESH gt_final.
            SELECT bname
                   bsp_name
                   description
                   ldate
                   ltime
                   calls
                   FROM <custom_table>
                   INTO TABLE gt_final
                   AND   bsp_name  IN p_bsp_name_sel
                   AND   ldate          IN p_ldate_sel.
    endif.
    Hope that wud help u !!!
    Regards,
    Deepu.K

  • Selection screen flow logic change not taking affect. Please help!

    Hi
       When I am trying to change the selection scren flow logic I get the following message:
    Selection screen: Report generation makes screen changes ineffective.
    Whatever I am changing is not taking affect in runtime.
    Even though I have activated the changed code for the screen
    What shall I do resolve this?
    Thanks
    Gopal

    You should not be changing the screen flow logic of a standard selection screen 1000.  It will always be regenerated.  In order to modify the standard selection screen, you can do this in the AT SELECTION-SCREEN output event and loop at screen and change the attributes.
    Loop at screen.
      if screen-name = 'P_CHECK'.
        screen-input = '0'.
        modify screen.
      endif.
    endloop.
    Regards,
    Rich Heilman

  • 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

  • Error in flow logic of table maintenance generator

    Hi,
    While activating the flow logic of  table maintenance generator I am getting this error 'Table control TCTRL_ZUPP2P_PIBAYCNT must have atleast 2 loop lines.' and in layout I am able to see only 2 rows.Can anyone tell me why am I getting this error.

    hi,
    Take the function group and goto SE80 and activate the function group to avoid the error...
    Regards,
    Santosh

  • Looking for opinions, flow logic versus MVC

    We are about to start our second major BSP project, so we are relatively new at BSP. Our first project was stateful, MVC driven, and works great. The new application will have up to 50 simultaneous users doing very quick asynchronous tasks (data collection, essentially) but where i want to maintain a session, and so i am making it stateless so the resources are not tied up and using a backing table in SAP to hold state information combined with client side cookies.
    My question is, in a stateless environment, what if any advantage is there to using MVC? It seems like a lot of work to maintain the model for each session request. Is it normal to use MVC for both stateful and stateless, or is flow logic more standard for stateless? I looked around quite a bit in the WIKI, blogs, etc, and dont really see a lot of examples using MVC that are stateless.
    Any advice here would be appreciated, before we chase ourselves down a hole.

    Hi David,
    I totally agree with you that MVC gives you nothing for stateless applications.
    When I build BSP applications I try to always...
      .... go stateless
      .... use page model - not MVC
      .... assign application class and do all backend processing there
    For persistence I typically use server-side cookies - these are managed by the CL_BSP_SERVER_SIDE_COOKIE class.
    In my application class I get the server-side cookie in the IF_BSP_APPLICATION_EVENTS~ON_REQUEST method and I save it in the IF_BSP_APPLICATION_EVENTS~ON_RESPONSE method.
    The appropriate checking of a sequence number on the server-side cookie can mitigate against users hitting refresh buttons, back buttons, etc.
    Cheers
    Graham Robbo

  • Calling a BSP page with flow logic from LAYOUT

    Hello all.  I am developing a BSP transaction to update HR data on SAP.  I initially developed this with one 'page with flow logic' and several 'page fragment's.  It has been suggested that I break this out into several pages with flow logic because the code in  the 'OnInputProcessing' Event Handler was getting quite complicated.  I was using the BSP directive to execute my 'page fragments'.  This was very simple to do.  What do I replace the BSP directive to call a page fragment with in order to call a page with flow logic.  I have included the code below.  I have converted the 'body.htm' 'page fragment' to a 'page with flow logic' and I am not sure of the correct way to call the page.  I do not have access to the navigation->goto_page( 'body.htm' ) at this point.  I am new to BSP and appreciate any help offered.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="phtmlb" prefix="phtmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <htmlb:content id     = "content"
                   design = "design2002+design2003" >
      <htmlb:document disableBackspaceNavigation="TRUE" >
        <htmlb:documentHead title="ESS: Employee Self Service" >
        </htmlb:documentHead>
        <htmlb:documentBody>
          <htmlb:form id="OOEform" >
            <%-- Positioning --%>
            <htmlb:gridLayout columnSize = "2"
                              rowSize    = "2"
                              width      = "100 %" >
              <%-- Row 1 - Header --%>
              <htmlb:gridLayoutCell columnIndex       = "1"
                                    rowIndex          = "1"
                                    colSpan           = "2"
                                    width             = "100 %"
                                    verticalAlignment = "MIDDLE" >
                <DIV style="border-bottom-style:solid;border-color:#A5B1BF;border-width:20px">
                <%@include file="header.htm" %>
                </DIV>
              </htmlb:gridLayoutCell>
              <%-- Row 2; Column 1 (Body Area) --%>
              <htmlb:gridLayoutCell columnIndex       = "1"
                                    rowIndex          = "2"
                                    width             = "80%"
                                    verticalAlignment = "MIDDLE" >
                <%@include file="body.htm" %>
              </htmlb:gridLayoutCell>
              <%-- Row 2; Column 2 (Right Area) --%>
              <htmlb:gridLayoutCell columnIndex         = "2"
                                    rowIndex            = "2"
                                    width               = "20%"
                                    verticalAlignment   = "TOP"
                                    horizontalAlignment = "LEFT" >
                <%@include file="right.htm" %>
              </htmlb:gridLayoutCell>
            </htmlb:gridLayout>
          </htmlb:form>
        </htmlb:documentBody>
      </htmlb:document>
    </htmlb:content>

    Hi,
    uhmmm, as it was previously suggested, you should perhaps think about MVC for your development. Working with classes and methods gives you more room for a better looking code. But at this point I´m not sure where your real problem is. You mentioned first that you created one page with logic and several page fragments and then you are worried because the code in the OnInputProcessing event is getting out of control
    First, you cannot insert a page in a page. You can only insert fragments in a page with <%@include file="header.htm" %>.
    Second, if you don´t have idea of MVC or you don´t want to switch to MVC, then create a modules program (SE38) where you´ll enter your code as subroutines and you call these subroutines from OnInputProcessing as follows:
    perform subrout1 in program XXXXXX tables YYYYY using AAAAA.
    In your programm XXXXX you declare the code as:
    form subrout1 in program XXXXXX tables YYYYY using AAAAA.
    This can be a substitute to classes and methods.

  • Calling a Page(flow logic ) from a controller

    Hi Guru's ,
        I have a senario in which I have a controller and also Page flow logic .. I want to call a page of type page flow logic from the controller ..
    I tried the below methods .. but it didnt work ..
    *navigation->goto_page('test.htm').
    DATA: r_view TYPE REF TO if_bsp_page.
    DISPATCH_INPUT( ).
    r_view = create_view( view_name = 'test.htm' ).
    call_view( r_view ).
    this works only if its is a view but not flow logic ..
    Please give ur suggesions ..
    Thanks
    Sivaraj

    hi sivaraj ,
    first refer whether u could call a page using pages with flow logic by the controller which is used in mvc design.
    may be u canot call it . u have to create a page using view according to mvc . try it once.

  • Calling a page with flow logic from a controller

    Is there any possibility of calling a page with flow logic(x.htm ) from a controller?
    Also I want to know how to apply scrolling to a tableview  in a View as there is no event handler here. Iam able to view the first 30 records but want to navigate from 31 to 60...61to 90 and so on.......
    Thanks and regards,
    Sinu

    Thank you so much...
    but will I be able to call from a controller as we call  a view...similar to the below code.
    lref_first_view = create_view( view_name = 'first.htm' ).
    lref_first_view->set_attribute( name = 'MODEL' value =           mref_model_first ).
    call_view( lref_first_view ).
    I have already set the visibleRowCount....but my issue is to navigate to the next records i.e say 2nd page 3rd page..........
    Regards,
    Sinu

Maybe you are looking for

  • CSS problem?

    I'm not sure what I did, but somehow I have managed to change a preference (or something?) in DW8 which is screwing with my templates and HTML files. The buttons I've created are now coming out as linked text, and the format of the page in the templa

  • Broken image because of null value

    I’m displaying a SQL query type report. In the Column Formatting section, I'm displaying an image from the database using the following HTML expression [img src=”/i/#NC#_bullet.gif” /] (using angle bracets, of course). However, one of the columns in

  • Dell XPS12 messed up during BIOS update

    Hi all, yesterday I tried to update my Dell XPS12 (9Q33 mid 2013) BIOS to the last version (A08). During the installation, the laptop remained stuck in "EC programming" at 50%..I waited two hours but nothing changed and my PC was unusable: completely

  • Import / Load Compliance Baseline Settings into a Windows Client

    Hi all, I am using a Baseline with a set of CI´s deployed to CM 2012 collection of Windows 7 and Windows 8 machines. Everything is working property, on the other hand I am checking a way to export somehow the baseline + ci´s settings and load / impor

  • Esperando activacion facetime

    No puedo activar el facetime ni el imessages me aparece  "esperando activacion"