SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Search help по имени с возвратом нескольких значений



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Search Help, Match Code
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1640

PostPosted: Fri Apr 11, 2008 10:11 pm    Post subject: Search help по имени с возвратом нескольких значений Reply with quote

Code:
*&---------------------------------------------------------------------*
*& Report  Z_F4IF_START_VALUE_REQUEST                                  *
*&                                                                     *
*&---------------------------------------------------------------------*
*&                                                                     *
*&   Search help по имени с возвратом нескольких значений
*&---------------------------------------------------------------------*

report  z_f4if_start_value_request                                  .
TYPE-POOLS: shlp.  "F?r CALLBACK_FORM zu F4IF_INT_TABLE_VALUE_REQUEST
CONSTANTS: c_shlp_menu LIKE ddshdescr-shlpname VALUE 'H_SPFLI'.
CONSTANTS c_true TYPE c VALUE 'X'.

DATA: l_shlp TYPE shlp_descr_t.
DATA: l_retcode LIKE sy-subrc.
DATA: l_retval LIKE ddshretval OCCURS 0 WITH HEADER LINE.
DATA: l_shlp_interface LIKE ddshiface.



CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
  EXPORTING
    shlpname = c_shlp_menu
    shlptype = 'SH'
  IMPORTING
    shlp     = l_shlp.


* specify return fields
READ TABLE l_shlp-interface INTO l_shlp_interface
     WITH KEY shlpfield = 'CARRID'.
IF sy-subrc = 0.
  l_shlp_interface-valfield = c_true.
*    l_shlp_interface-value = tree_id.
  MODIFY l_shlp-interface FROM l_shlp_interface INDEX sy-tabix.
ELSE.
  MESSAGE e017(bmen) RAISING internal_error.
ENDIF.
READ TABLE l_shlp-interface INTO l_shlp_interface
   WITH KEY shlpfield = 'CONNID'.
IF sy-subrc = 0.
  l_shlp_interface-valfield = c_true.
*    l_shlp_interface-value = tree_id.
  MODIFY l_shlp-interface FROM l_shlp_interface INDEX sy-tabix.
ELSE.
  MESSAGE e017(bmen) RAISING internal_error.
ENDIF.


CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
  EXPORTING
    shlp          = l_shlp
  IMPORTING
    rc            = l_retcode
  TABLES
    return_values = l_retval.


*Messages
*----------------------------------------------------------
*
* Message class: BMEN
*017   Ошибка в средстве поиска.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Search Help, Match Code All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.