<?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 ABAP Issues! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-issues/m-p/2500202#M564897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys I ve some issues below i need ans for this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  1)  What is Condition Tables KONV KONH what data they store &amp;amp; how to link Konv konh to Vbrk &amp;amp; VBRP&lt;/P&gt;&lt;P&gt;Is it posible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Customer going for update from 4.0b to 4.7 in bdc what r the possiblities of errors? &lt;/P&gt;&lt;P&gt;3) How to update currency field in BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) I want some sample program on nested internal tables with explicit work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) data: screen_values type table of dynp_read, &lt;/P&gt;&lt;P&gt;            screen_value like line of screen_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   what is this statement  &amp;lt;b&amp;gt;screen_value like line of screen_values&amp;lt;/b&amp;gt; pls explain me its work area or onley table pls explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Looking for reply guys&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jul 2007 09:22:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-21T09:22:54Z</dc:date>
    <item>
      <title>ABAP Issues!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-issues/m-p/2500202#M564897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys I ve some issues below i need ans for this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  1)  What is Condition Tables KONV KONH what data they store &amp;amp; how to link Konv konh to Vbrk &amp;amp; VBRP&lt;/P&gt;&lt;P&gt;Is it posible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Customer going for update from 4.0b to 4.7 in bdc what r the possiblities of errors? &lt;/P&gt;&lt;P&gt;3) How to update currency field in BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) I want some sample program on nested internal tables with explicit work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) data: screen_values type table of dynp_read, &lt;/P&gt;&lt;P&gt;            screen_value like line of screen_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   what is this statement  &amp;lt;b&amp;gt;screen_value like line of screen_values&amp;lt;/b&amp;gt; pls explain me its work area or onley table pls explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Looking for reply guys&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jul 2007 09:22:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-issues/m-p/2500202#M564897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-21T09:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Issues!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-issues/m-p/2500203#M564898</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;5) data: screen_values type table of dynp_read, &lt;/P&gt;&lt;P&gt;screen_value like line of screen_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is this statement screen_value like line of screen_values pls explain me its work area or onley table pls explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For every internal table there needs be a strcutre, so this strucutre is what in ABAP is called as LINE TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you say LIKE LINE of you are saying that LIKE the STRCUTRE of  the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO when you say LIKE LINE OF the variable will be a workarea not a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jul 2007 09:25:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-issues/m-p/2500203#M564898</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-07-21T09:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Issues!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-issues/m-p/2500204#M564899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;KONV, KONH and KONP are the tables which stores the pricing related data of both SD and MM modules&lt;/P&gt;&lt;P&gt;all pricing related data is stored here&lt;/P&gt;&lt;P&gt;You can link the table KONV with VBRK with the KNUMV field&lt;/P&gt;&lt;P&gt;KONV-KNUMV = VBRK-KNUMV and&lt;/P&gt;&lt;P&gt;KONV-KPOSN = VBRP-POSNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When going for upgrade from 4.ob to 4.7 you have to see the following:&lt;/P&gt;&lt;P&gt;certain screen fields may change, and field length may change,&lt;/P&gt;&lt;P&gt;certain become mandatory  and certain will be removed from the screens &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Special care to be taken while uploading Qty and currency fields  in BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the following for screen fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For F4 Values on Screen:&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE_REQUEST &lt;/P&gt;&lt;P&gt;using module call starting with FIELD i.e FIELD field MODULE module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are number of function modules that can be used for the purpose, but these&lt;/P&gt;&lt;P&gt;can fullfill the task easily or combination of them. &lt;/P&gt;&lt;P&gt;DYNP_VALUE_READ&lt;/P&gt;&lt;P&gt;F4IF_FIELD_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;POPUP_WITH_TABLE_DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DYNP_VALUE_READ&lt;/P&gt;&lt;P&gt;This function module is used to read values in the screen fields. Use of this &lt;/P&gt;&lt;P&gt;FM causes forced transfer of data from screen fields to ABAP fields.&lt;/P&gt;&lt;P&gt;There are 3 exporting parameters &lt;/P&gt;&lt;P&gt;DYNAME = program name = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNUMB = Screen number = SY-DYNNR&lt;/P&gt;&lt;P&gt;TRANSLATE_TO_UPPER = 'X'&lt;/P&gt;&lt;P&gt;and one importing TABLE parameter &lt;/P&gt;&lt;P&gt;DYNPFIELDS = Table of TYPE DYNPREAD&lt;/P&gt;&lt;P&gt;The DYNPFIELDS parameter is used to pass internal table of type DYNPREAD&lt;/P&gt;&lt;P&gt;to this FM and the values read from the screen will be stored in this table.This&lt;/P&gt;&lt;P&gt;table consists of two fields:&lt;/P&gt;&lt;P&gt;FIELDNAME : Used to pass the name of screen field for which the value is to&lt;/P&gt;&lt;P&gt;be read.&lt;/P&gt;&lt;P&gt;FIELDVALUE : Used to read the value of the field in the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;DATA: SCREEN_VALUES TYPE TABLE OF DYNPREAD ,&lt;/P&gt;&lt;P&gt;SCREEN_VALUE LIKE LINE OF SCREEN_VALUES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCREEN_VALUE-FIELDNAME = 'KUNNR' . * Field to be read&lt;/P&gt;&lt;P&gt;APPEND SCREEN_VALUE TO SCREEN_VALUES. * Fill the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DYNAME = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNUMB = SY-DYNNR&lt;/P&gt;&lt;P&gt;TRANSLATE_TO_UPPER = 'X'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DYNPFIELDS = SCREEN_VALUES.&lt;/P&gt;&lt;P&gt;READ TABLE SCREEN_VALUES INDEX 1 INTO SCREEN_VALUE.Now the screen value for field KUNNR is in the SCREEN_VALUE-FIELDVALUE and can be used for further processing like using it to fill the internal table to be used as parameter in F4IF_INT_TABLE_VALUE_REQUEST ETC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4IF_FIELD_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;This FM is used to display value help or input from ABAP dictionary.We have to pass the name of the structure or table(TABNAME) along with the field name(FIELDNAME) . The selection can be returned to the specified screen field if three&lt;/P&gt;&lt;P&gt;parameters DYNPNR,DYNPPROG,DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TABNAME = table/structure&lt;/P&gt;&lt;P&gt;FIELDNAME = 'field name'&lt;/P&gt;&lt;P&gt;DYNPPROG = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNPNR = SY-DYNR&lt;/P&gt;&lt;P&gt;DYNPROFIELD = 'screen field'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;RETURN_TAB = table of type DYNPREAD&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;This FM is used to dsiplay values stored in an internal table as input&lt;/P&gt;&lt;P&gt;help.This FM is used to program our own custom help if no such input help&lt;/P&gt;&lt;P&gt;exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD&lt;/P&gt;&lt;P&gt;is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB. &lt;/P&gt;&lt;P&gt;If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;RETFIELD = field from int table whose value will be returned &lt;/P&gt;&lt;P&gt;DYNPPROG = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNPNR = SY-DYNNR&lt;/P&gt;&lt;P&gt;DYNPROFIELD = 'screen field'&lt;/P&gt;&lt;P&gt;VALUE_ORG = 'S'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;VALUE_TAB = internal table whose values will be shown.&lt;/P&gt;&lt;P&gt;RETURN_TAB = internal table of type DDSHRETVAL &lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;parameter_error = 1&lt;/P&gt;&lt;P&gt;no_values_found = 2&lt;/P&gt;&lt;P&gt;others = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_WITH_TABLE_DISPLAY&lt;/P&gt;&lt;P&gt;This FM is used to display the contents of an internal table in a popup window.The user can select a row and the index of that is returned in the CHOISE&lt;/P&gt;&lt;P&gt;parameter.The VALUETAB is used to pass the internal table.&lt;/P&gt;&lt;P&gt;A suitable title can be set using TITLETEXT parameter. The starting and end position of the popup can be specified by the parameters STARTPOS_COL / ROW and ENDPOS_ROW / COL .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ENDPOS_COL = &lt;/P&gt;&lt;P&gt;ENDPOS_ROW = &lt;/P&gt;&lt;P&gt;STARTPOS_COL = &lt;/P&gt;&lt;P&gt;STARTPOS_ROW = &lt;/P&gt;&lt;P&gt;TITLETEXT = 'title text'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;CHOISE = &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;VALUETAB = &lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;BREAK_OFF = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: w_choice TYPE SY-TABIX.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF i_values OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;values TYPE I,&lt;/P&gt;&lt;P&gt;END OF i_values.&lt;/P&gt;&lt;P&gt;PARAMETRS : id TYPE I. &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_values-values = '0001'.&lt;/P&gt;&lt;P&gt;APPEND i_values.&lt;/P&gt;&lt;P&gt;i_values-values = '0002'.&lt;/P&gt;&lt;P&gt;APPEND i_values.&lt;/P&gt;&lt;P&gt;i_values-values = '0003'.&lt;/P&gt;&lt;P&gt;APPEND i_values.&lt;/P&gt;&lt;P&gt;i_values-values = '0004'.&lt;/P&gt;&lt;P&gt;APPEND i_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;ENDPOS_COL = 40 &lt;/P&gt;&lt;P&gt;ENDPOS_ROW = 12 &lt;/P&gt;&lt;P&gt;STARTPOS_COL = 20 &lt;/P&gt;&lt;P&gt;STARTPOS_ROW = 5 &lt;/P&gt;&lt;P&gt;TITLETEXT = 'Select an ID' &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;CHOISE = w_choice &lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;VALUETAB = i_values &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;BREAK_OFF = 1 &lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;CHECK w_choice &amp;gt; 0.&lt;/P&gt;&lt;P&gt;READ TABLE i_values INDEX w_choice....now we can process the selection as it is contained&lt;/P&gt;&lt;P&gt;...in the structure i_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other FM that may be used to provide input help is HELP_START .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jul 2007 09:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-issues/m-p/2500204#M564899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-21T09:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Issues!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-issues/m-p/2500205#M564900</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;A &amp;lt;b&amp;gt;condition table&amp;lt;/b&amp;gt; defines the combination of fields (the key) that identifies an individual condition record. A condition record is how the system stores the specific condition data that you enter in the system as condition records. For example, when you enter the price for a product or a special discount for a good customer, you create individual condition records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KONH --&amp;gt;Conditions header&lt;/P&gt;&lt;P&gt;KONP--&amp;gt;Conditions items&lt;/P&gt;&lt;P&gt;KONV--&amp;gt;Procedure ( billing doc or sales order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these links for tables&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/tables_system.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/tables_system.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://goldenink.com/abap/files_in_sap.html" target="test_blank"&gt;http://goldenink.com/abap/files_in_sap.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/tables/tables.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/tables/tables.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-topjobs.com/SAPTABLEREF%5B1%5D.doc" target="test_blank"&gt;http://www.sap-topjobs.com/SAPTABLEREF%5B1%5D.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be KNUMH, VBELN, POSNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;Nested Internal Table&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: SUM TYPE I, CNT TYPE I.

NODES: SPFLI, SFLIGHT, SBOOK.

DATA: BEGIN OF WA_SBOOK,
        BOOKID     TYPE SBOOK-BOOKID,
        SMOKER     TYPE SBOOK-SMOKER,
        CLASS      TYPE SBOOK-CLASS,
        LUGGWEIGHT TYPE SBOOK-LUGGWEIGHT,
        WUNIT      TYPE SBOOK-WUNIT,
      END OF WA_SBOOK.

DATA: BEGIN OF WA_SFLIGHT,
        FLDATE TYPE SFLIGHT-FLDATE,
        SBOOK  LIKE TABLE OF WA_SBOOK , 
      END OF WA_SFLIGHT.

DATA: BEGIN OF WA_SPFLI,
        CARRID   TYPE SPFLI-CARRID,
        CONNID   TYPE SPFLI-CONNID,
        CITYFROM TYPE SPFLI-CITYFROM,
        CITYTO   TYPE SPFLI-CITYTO,
        SFLIGHT  LIKE TABLE OF WA_SFLIGHT , 
      END OF WA_SPFLI.

DATA TAB_SPFLI LIKE TABLE OF WA_SPFLI .

START-OF-SELECTION.

GET SPFLI.
  REFRESH WA_SPFLI-SFLIGHT.

GET SFLIGHT.
  REFRESH WA_SFLIGHT-SBOOK.

GET SBOOK.
  MOVE-CORRESPONDING SBOOK TO WA_SBOOK.
  APPEND WA_SBOOK TO WA_SFLIGHT-SBOOK.

GET SFLIGHT LATE.
  MOVE-CORRESPONDING SFLIGHT TO WA_SFLIGHT.
  APPEND WA_SFLIGHT TO WA_SPFLI-SFLIGHT.

GET SPFLI LATE.
  MOVE-CORRESPONDING SPFLI TO WA_SPFLI.
  APPEND WA_SPFLI TO TAB_SPFLI.

END-OF-SELECTION.

  SORT TAB_SPFLI BY CITYFROM CITYTO CONNID.

  LOOP AT TAB_SPFLI INTO WA_SPFLI.

    SKIP.
    WRITE: / WA_SPFLI-CARRID,
             WA_SPFLI-CONNID,
             'from', (15) WA_SPFLI-CITYFROM,
             'to',   (15) WA_SPFLI-CITYTO.
    ULINE.

    SORT WA_SPFLI-SFLIGHT BY FLDATE.

    LOOP AT WA_SPFLI-SFLIGHT INTO WA_SFLIGHT.

      SKIP.
      WRITE: / 'Date:', WA_SFLIGHT-FLDATE.
      WRITE: 20 'Book-ID', 40 'Smoker', 50 'Class'.
      ULINE.

      SORT WA_SFLIGHT-SBOOK BY CLASS SMOKER BOOKID.

      SUM = 0.
      CNT = 0.

      LOOP AT WA_SFLIGHT-SBOOK INTO WA_SBOOK.

        WRITE: / WA_SBOOK-BOOKID UNDER 'Book-ID',
                 WA_SBOOK-SMOKER UNDER 'Smoker',
                 WA_SBOOK-CLASS  UNDER 'Class'.

        SUM = SUM + WA_SBOOK-LUGGWEIGHT.
        CNT = CNT + 1.

      ENDLOOP.

      ULINE.
      WRITE: 'Number of bookings:  ', (3) CNT,
           / 'Total luggage weight:',
          (3) SUM, WA_SBOOK-WUNIT.

    ENDLOOP.

  ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE_REQUEST &lt;/P&gt;&lt;P&gt;using module call starting with FIELD i.e FIELD field MODULE module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are number of function modules that can be used for the purpose, but these&lt;/P&gt;&lt;P&gt;can fullfill the task easily or combination of them. &lt;/P&gt;&lt;P&gt;DYNP_VALUE_READ&lt;/P&gt;&lt;P&gt;F4IF_FIELD_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;POPUP_WITH_TABLE_DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DYNP_VALUE_READ&lt;/P&gt;&lt;P&gt;This function module is used to read values in the screen fields. Use of this &lt;/P&gt;&lt;P&gt;FM causes forced transfer of data from screen fields to ABAP fields.&lt;/P&gt;&lt;P&gt;There are 3 exporting parameters &lt;/P&gt;&lt;P&gt;DYNAME = program name = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNUMB = Screen number = SY-DYNNR&lt;/P&gt;&lt;P&gt;TRANSLATE_TO_UPPER = 'X'&lt;/P&gt;&lt;P&gt;and one importing TABLE parameter &lt;/P&gt;&lt;P&gt;DYNPFIELDS = Table of TYPE DYNPREAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&amp;lt;b&amp;gt; DYNPFIELDS&amp;lt;/b&amp;gt; parameter is used to pass internal table of type DYNPREAD&lt;/P&gt;&lt;P&gt;to this FM and the values read from the screen will be stored in this table.This&lt;/P&gt;&lt;P&gt;table consists of two fields:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;FIELDNAME :&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt; Used to pass the name of screen field for which the value is to&lt;/P&gt;&lt;P&gt;be read.&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;FIELDVALUE :&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt; Used to read the value of the field in the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: SCREEN_VALUES TYPE TABLE OF DYNPREAD ,
SCREEN_VALUE LIKE LINE OF SCREEN_VALUES. 

SCREEN_VALUE-FIELDNAME = 'KUNNR' . * Field to be read
APPEND SCREEN_VALUE TO SCREEN_VALUES. * Fill the table

CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = SY-CPROG
DYNUMB = SY-DYNNR
TRANSLATE_TO_UPPER = 'X'
TABLES
DYNPFIELDS = SCREEN_VALUES.
READ TABLE SCREEN_VALUES INDEX 1 INTO SCREEN_VALUE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the screen value for field KUNNR is in the SCREEN_VALUE-FIELDVALUE and can be used for further processing like using it to fill the internal table to be used as parameter in F4IF_INT_TABLE_VALUE_REQUEST ETC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;F4IF_FIELD_VALUE_REQUEST&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;This FM is used to display value help or input from ABAP dictionary.We have to pass the name of the structure or table(TABNAME) along with the field name(FIELDNAME) . The selection can be returned to the specified screen field if three&lt;/P&gt;&lt;P&gt;parameters DYNPNR,DYNPPROG,DYNPROFIELD are also specified or to a table if &amp;lt;b&amp;gt;RETRN_TAB&amp;lt;/b&amp;gt; is specified.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
TABNAME = table/structure
FIELDNAME = 'field name'
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNR
DYNPROFIELD = 'screen field'
IMPORTING
RETURN_TAB = table of type DYNPREAD&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;F4IF_INT_TABLE_VALUE_REQUEST&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;This FM is used to dsiplay values stored in an internal table as input&lt;/P&gt;&lt;P&gt;help.This FM is used to program our own custom help if no such input help&lt;/P&gt;&lt;P&gt;exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD&lt;/P&gt;&lt;P&gt;is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB. &lt;/P&gt;&lt;P&gt;If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = field from int table whose value will be returned 
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = 'screen field'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = internal table whose values will be shown.
RETURN_TAB = internal table of type DDSHRETVAL 
EXCEPTIONS
parameter_error = 1
no_values_found = 2
others = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;POPUP_WITH_TABLE_DISPLAY&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;This FM is used to display the contents of an internal table in a popup window.The user can select a row and the index of that is returned in the CHOISE&lt;/P&gt;&lt;P&gt;parameter.The VALUETAB is used to pass the internal table.&lt;/P&gt;&lt;P&gt;A suitable title can be set using TITLETEXT parameter. The starting and end position of the popup can be specified by the parameters STARTPOS_COL / ROW and ENDPOS_ROW / COL .&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
ENDPOS_COL = 
ENDPOS_ROW = 
STARTPOS_COL = 
STARTPOS_ROW = 
TITLETEXT = 'title text'
IMPORTING
CHOISE = 
TABLES
VALUETAB = 
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;b&amp;gt;e.g.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: w_choice TYPE SY-TABIX.
DATA: BEGIN OF i_values OCCURS 0 WITH HEADER LINE,
values TYPE I,
END OF i_values.
PARAMETRS : id TYPE I. 
AT SELECTION-SCREEN ON VALUE-REQUEST FOR id

i_values-values = '0001'.
APPEND i_values.
i_values-values = '0002'.
APPEND i_values.
i_values-values = '0003'.
APPEND i_values.
i_values-values = '0004'.
APPEND i_values.

CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY' 
EXPORTING 
ENDPOS_COL = 40 
ENDPOS_ROW = 12 
STARTPOS_COL = 20 
STARTPOS_ROW = 5 
TITLETEXT = 'Select an ID' 
IMPORTING 
CHOISE = w_choice 
TABLES 
VALUETAB = i_values 
EXCEPTIONS 
BREAK_OFF = 1 
OTHERS = 2.
CHECK w_choice &amp;gt; 0.
READ TABLE i_values INDEX w_choice....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;now we can process the selection as it is contained&lt;/P&gt;&lt;P&gt;...in the structure i_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other FM that may be used to provide input help is HELP_START .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;for CREATING SEARCH HELP&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)An elementary search help defines the standard flow of an input help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;CREATION:&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;Go to SE11 Tcode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select search help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give the 'z' search help name and create&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select the selection method ur table name eg : 'mara'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dialog module 'display value immediately'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.&lt;/P&gt;&lt;P&gt;where left position when displaying and spos = search position&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then save and activate ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;See the links:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=3173469&amp;amp;messageID=2176485" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=3173469&amp;amp;messageID=2176485&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=3173469&amp;amp;messageID=3601619" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=3173469&amp;amp;messageID=3601619&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;pls go through this for search help creation&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Search Help Exits:&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2291334"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2956586"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jul 2007 09:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-issues/m-p/2500205#M564900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-21T09:49:25Z</dc:date>
    </item>
  </channel>
</rss>

