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

фм 'F4IF_FIELD_VALUE_REQUEST'



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
sergei64_89
Участник
Участник



Joined: 21 Jun 2011
Posts: 19

PostPosted: Wed Jul 06, 2011 10:32 am    Post subject: фм 'F4IF_FIELD_VALUE_REQUEST' Reply with quote

Code:

types: begin of test,
  zachet type znumber,
  end of test.

DATA:
return_tab type table of test.
AT SELECTION-SCREEN on value-request for zachetka.
   CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
       EXPORTING
            tabname     = 'zstudent'
            fieldname   = 'zachet'

tables
  return_tab                = return_tab.


выводит ошибку что неверная длинна поля.



1.JPG
 Description:
 Filesize:  83 KB
 Viewed:  11080 Time(s)

1.JPG


Back to top
View user's profile Send private message
Удав
Гуру
Гуру


Age: 48
Joined: 25 Jan 2008
Posts: 580
Location: Москва

PostPosted: Wed Jul 06, 2011 10:48 am    Post subject: Reply with quote

Так в ФМ 'F4IF_FIELD_VALUE_REQUEST' можно указывать имя средства поиска, а не таблицы.
Code:
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
           EXPORTING
                tabname           = ''
                fieldname         = ''
                searchhelp        = 'H_T006'
           TABLES
                return_tab        = l_return_tab
           EXCEPTIONS
                field_not_found   = 1
                no_help_for_field = 2
                inconsistent_help = 3
                no_values_found   = 4
                OTHERS            = 5.

_________________
С уважением,
Удав.
Back to top
View user's profile Send private message
sergei64_89
Участник
Участник



Joined: 21 Jun 2011
Posts: 19

PostPosted: Wed Jul 06, 2011 10:59 am    Post subject: Reply with quote

ничего не изменилось


1.JPG
 Description:
 Filesize:  99.62 KB
 Viewed:  11070 Time(s)

1.JPG


Back to top
View user's profile Send private message
Удав
Гуру
Гуру


Age: 48
Joined: 25 Jan 2008
Posts: 580
Location: Москва

PostPosted: Wed Jul 06, 2011 11:19 am    Post subject: Reply with quote

Правильно.
Посмотрите, как объявлена таблица RETURN_TAB в ФМ
Code:
*"  TABLES
*"      RETURN_TAB STRUCTURE  DDSHRETVAL

_________________
С уважением,
Удав.
Back to top
View user's profile Send private message
sergei64_89
Участник
Участник



Joined: 21 Jun 2011
Posts: 19

PostPosted: Wed Jul 06, 2011 11:25 am    Post subject: Reply with quote

заработало!!!!! Smile
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 -> ABAP 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.