<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dialog program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062384#M1176323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Feb 2009 03:16:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-11T03:16:37Z</dc:date>
    <item>
      <title>Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062364#M1176303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create a dialog program in which i have to call the transaction SM30(but not use the initial screen), i have to give the user option to specify a filter criteria but maintain the table name to be a constant value. Please guide me through this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 18:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062364#M1176303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T18:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062365#M1176304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can have a simple selection screen that SETs PARAMETER for table name, calls SM30 and skips first screen. If thats what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a table maintenance transaction in SE93 (transaction with parameters), Enter default transaction (SM30/4) -&amp;gt; Skip Initial Screen, enter Screen fields and values (VCLDIR-VCLNAME = SHOW = 'X')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 19:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062365#M1176304</guid>
      <dc:creator>former_member189629</dc:creator>
      <dc:date>2009-02-05T19:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062366#M1176305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the below code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set parameter id VIEWNAM_PARAMID field &amp;lt;table_name&amp;gt;.&lt;/P&gt;&lt;P&gt;call transaction SM30 and skip first screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 19:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062366#M1176305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T19:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062367#M1176306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot. But the requirement just changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a ZMRSDATA table. and the main requirment is i have to retrieve data from this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to develop a dialog program which lets the user fill in some filtration criteria like plant , material, date etc , fetch and display the records , make them select exactly one record and give them the option to change and save the record. Could you please help me with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 19:53:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062367#M1176306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T19:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062368#M1176307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do one thing use BDCDATA to fill the data only for the first screen.&lt;/P&gt;&lt;P&gt;and then call the transaction using &amp;lt;bdcdata table&amp;gt; using mode E so when it goes to the next screen it will stop and user will get the restriction screen....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understood ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 19:56:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062368#M1176307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T19:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062369#M1176308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks  Siddarth, but i think i no longer have to call SM30 i could directly select the data florm the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 20:14:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062369#M1176308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T20:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062370#M1176309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh ok...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;apologize for mistake...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case you can use search helps if they are available for the table and assign the search help with the parameter and then get the selection criteria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can use select query and I think you will get all the records,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 20:18:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062370#M1176309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T20:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062371#M1176310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i dont know abt serach helps can you please tell me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 20:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062371#M1176310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T20:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062372#M1176311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather i would prefer to create a simple dialog program with screens in them. I just want to know the procedure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 20:35:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062372#M1176311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T20:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062373#M1176312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not recommended for SAP Standard tables but since yours is a Z table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a simple report program with a selection screen with all the selection criterion you need&lt;/P&gt;&lt;P&gt;2. Display data in an editable ALV or even a Table Control&lt;/P&gt;&lt;P&gt;3. Update your Z table from the edited values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple as 123 &lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: NW on Feb 5, 2009 3:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 20:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062373#M1176312</guid>
      <dc:creator>former_member189629</dc:creator>
      <dc:date>2009-02-05T20:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062374#M1176313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create parameters/select-options which ever is feasible for&lt;/P&gt;&lt;P&gt;plant , material, date fields refering to type of the table fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then after the selections have been done.&lt;/P&gt;&lt;P&gt;using at selection-screen first validate whether the entries entered by the user are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if its correct then in start-of-selection.&lt;/P&gt;&lt;P&gt;write select query in the where clause give the conditions refering to those variable names declared on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can proceed further what ever you want to do with that data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 20:45:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062374#M1176313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T20:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062375#M1176314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to create the editable ALV? do you have any docs for it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 21:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062375#M1176314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T21:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062376#M1176315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok i fetch the data and disply it , but how do i make it editable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 21:17:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062376#M1176315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T21:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062377#M1176316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lvc_s_fcat-edit        = 'X'. "sets whole column to be editable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These links should get you going.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/david.lees/blog/2009/01/16/abap-controls-trees-and-editable-alv-with-drag-drop&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_editable.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_editable.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please search the forum and web so you can find something really helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: NW on Feb 5, 2009 4:21 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 21:20:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062377#M1176316</guid>
      <dc:creator>former_member189629</dc:creator>
      <dc:date>2009-02-05T21:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062378#M1176317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are displaying it on the list with the write statement you can use the addition as input on for which ever field you want it to be edited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write &amp;lt;variable&amp;gt; input on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once the user has finished editing the details and presses the update or save button,&lt;/P&gt;&lt;P&gt;you can then read the lines and then get the data from the list using &lt;/P&gt;&lt;P&gt;Read line statement&lt;/P&gt;&lt;P&gt;and then update them in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 07:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062378#M1176317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T07:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062379#M1176318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot. Do you have any sample code for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 18:55:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062379#M1176318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T18:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062380#M1176319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this link for [Editable ALV|http://www.sapdev.co.uk/reporting/alv/alvgrid_editable.htm].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the following code. It allows user to select values using selection screens and based on that displays records from the db. On selecting a line, further details are displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  YDEC17_IL_PGM2 NO STANDARD PAGE HEADING.

TABLES: SPFLI, SFLIGHT.

DATA: v_carrid LIKE SPFLI-CARRID,
      v_connid LIKE SPFLI-CONNID.

TYPES: BEGIN OF list,
      cityfrom LIKE SPFLI-CITYFROM,
      cityto LIKE SPFLI-CITYTO,
      deptime LIKE SPFLI-DEPTIME,
      arrtime LIKE SPFLI-ARRTIME,
      END OF list.

DATA it_list TYPE TABLE OF list WITH HEADER LINE.

TYPES: BEGIN OF flight,
        fldate LIKE SFLIGHT-FLDATE,
        price LIKE SFLIGHT-PRICE,
        currency LIKE SFLIGHT-CURRENCY,
        seatsmax LIKE SFLIGHT-SEATSMAX,
        seatsocc LIKE SFLIGHT-SEATSOCC,
        END OF flight.

DATA it_flight TYPE TABLE OF flight WITH HEADER LINE.

DATA v_freest TYPE I.

TOP-OF-PAGE.
    WRITE 'Flight Details'.
    SKIP.

START-OF-SELECTION.

        WRITE: AT 10 'CARRID',
            AT 20 'CONNID',
            AT 30 'CITYFROM',
            AT 50 'CITYTO',
            AT 70 'DEPTIME',
            AT 85 'ARRTIME'.

        SKIP.
        ULINE.
        SKIP.


        SELECT-OPTIONS: scarrid FOR v_carrid NO INTERVALS,
                        sconnid FOR v_connid NO INTERVALS.

        LOOP AT scarrid.

            v_carrid = scarrid-low.

            SELECT CONNID into v_connid from SPFLI WHERE CARRID EQ scarrid-low.
                IF SY-SUBRC EQ 4.
                  MESSAGE E001(YJK).
                ENDIF.
            ENDSELECT.

            SELECT CITYFROM CITYTO DEPTIME ARRTIME into corresponding fields of it_list from SPFLI WHERE CARRID EQ scarrid-low.
                IF SY-SUBRC EQ 4.
                  MESSAGE E001(YJK).
                ENDIF.

            ENDSELECT.

            SKIP.

            WRITE :   AT 10 v_carrid,
                      AT 20 v_connid,
                      AT 30 it_list-cityfrom,
                      AT 50 it_list-cityto,
                      AT 70 it_list-deptime,
                      AT 85 it_list-arrtime.
            SKIP.

            HIDE : v_carrid, v_connid, it_list.

        ENDLOOP.

        LOOP AT sconnid.

            SELECT CARRID into v_carrid from SPFLI WHERE CARRID EQ scarrid-low.
            ENDSELECT.

            v_connid = sconnid-low.

            SELECT CITYFROM CITYTO DEPTIME ARRTIME into corresponding fields of it_list from SPFLI WHERE CARRID EQ scarrid-low.
                 IF SY-SUBRC EQ 4.
                  MESSAGE E001(YJK).
                ENDIF.

            ENDSELECT.

            SKIP.
            WRITE :   AT 10 v_carrid,
                      AT 20 v_connid,
                      AT 30 it_list-cityfrom,
                      AT 50 it_list-cityto,
                      AT 70 it_list-deptime,
                      AT 85 it_list-arrtime.
            SKIP.

            HIDE : v_carrid, v_connid, it_list.

        ENDLOOP.


AT LINE-SELECTION.

      ULINE.ULINE.
      skip.
      WRITE: AT 10 'Date',
              AT 30 'Price',
              AT 50 'Max. Seats',
              AT 65 'Seats Occupied',
              AT 90 'Free Seats'.
      ULINE.
      SKIP.

      SELECT FLDATE PRICE CURRENCY SEATSMAX SEATSOCC into corresponding fields of it_flight from SFLIGHT WHERE CONNID EQ v_connid.
          IF SY-SUBRC EQ 4.
            MESSAGE E001(YJK).
          ENDIF.

      ENDSELECT.

      v_freest = it_flight-seatsmax + it_flight-seatsocc.

      WRITE: AT 10 it_flight-fldate,
              AT 30 it_flight-price LEFT-JUSTIFIED, AT 43 it_flight-currency ,
              AT 50 it_flight-seatsmax LEFT-JUSTIFIED,
              AT 65 it_fl

TOP-OF-PAGE DURING LINE-SELECTION.

      WRITE :   v_carrid,
ight-seatsocc LEFT-JUSTIFIED,
              AT 90 v_freest LEFT-JUSTIFIED.
                AT 10 v_connid,
                AT 20 it_list-cityfrom,
                AT 50 it_list-cityto,
                AT 70 it_list-deptime,
                AT 80 it_list-arrtime.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jayanthi.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 05:50:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062380#M1176319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T05:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062381#M1176320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Create Table maintenance generator for ur Z table and create a report prg with required select options and parameters.  Then in ur prg call VIEW_MAINTENANCE_CALL  function module. Using this fm we can select data records from z table based on given criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly go through the fm help. u will know the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one select option and based on given input i will show the data from table.&lt;/P&gt;&lt;P&gt;DATA: tab_name  TYPE dd02v-tabname,&lt;/P&gt;&lt;P&gt;         dba_sele  TYPE TABLE OF vimsellist WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab_name = 'ZCUSTOMER_GRN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF s_invdt-low IS NOT INITIAL AND s_invdt-HIGH IS NOT INITIAL .&lt;/P&gt;&lt;P&gt;    CONCATENATE s_invdt-low&lt;EM&gt;6(2) s_invdt-low&lt;/EM&gt;4(2) s_invdt-low+0(4) INTO s_date.&lt;/P&gt;&lt;P&gt;    dba_sele-viewfield = 'INVDT'.&lt;/P&gt;&lt;P&gt;    dba_sele-operator  = 'GE'.&lt;/P&gt;&lt;P&gt;    dba_sele-value     = S_DATE.           "S_MATNR-LOW.&lt;/P&gt;&lt;P&gt;    dba_sele-and_or    = 'AND'.&lt;/P&gt;&lt;P&gt;    APPEND dba_sele.&lt;/P&gt;&lt;P&gt;    CONCATENATE s_invdt-high&lt;EM&gt;6(2) s_invdt-high&lt;/EM&gt;4(2) s_invdt-high+0(4) INTO t_date.&lt;/P&gt;&lt;P&gt;    dba_sele-viewfield = 'INVDT'.&lt;/P&gt;&lt;P&gt;    dba_sele-operator  = 'LE'.&lt;/P&gt;&lt;P&gt;    dba_sele-value     = T_DATE.           "S_MATNR-LOW.&lt;/P&gt;&lt;P&gt;    APPEND dba_sele.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'VIEW_MAINTENANCE_CALL'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        action                               = 'U'&lt;/P&gt;&lt;P&gt;        view_name                            = tab_name&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        DBA_SELLIST                          = dba_sele&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      EXCL_CUA_FUNCT                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLIENT_REFERENCE                     = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FOREIGN_LOCK                         = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      INVALID_ACTION                       = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      NO_CLIENTINDEPENDENT_AUTH            = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      NO_DATABASE_FUNCTION                 = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      NO_EDITOR_FUNCTION                   = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      NO_SHOW_AUTH                         = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      NO_TVDIR_ENTRY                       = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      NO_UPD_AUTH                          = 9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      ONLY_SHOW_ALLOWED                    = 10&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      SYSTEM_FAILURE                       = 11&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      UNKNOWN_FIELD_IN_DBA_SELLIST         = 12&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      VIEW_NOT_FOUND                       = 13&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      MAINTENANCE_PROHIBITED               = 14&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      OTHERS                               = 15&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Senthil kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 06:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062381#M1176320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T06:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062382#M1176321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Jayanthi, But the program uve given me just displays how do i edit a record and make changes to it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 15:38:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062382#M1176321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T15:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062383#M1176322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of SM30, u can use the fm VIEW_MAINTENANCE_CALL in order to call the maintenace program for a certain table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 15:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-program/m-p/5062383#M1176322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T15:47:56Z</dc:date>
    </item>
  </channel>
</rss>

