cancel
Showing results for 
Search instead for 
Did you mean: 

request->get_form_field

Former Member
0 Kudos

Hi Friends,

I tried for 'search'for results from ITAB, with the following code.

when 'search'

str3 = request->get_form_field( 'REQID' ).

SELECT * FROM STD INTO CORRESPONDING FIELDS OF TABLE itab where REQID LIKE STR2.

ENDIF.

But this is not working .Please mail me , as I really struck here.

Regards

CSM REDDY

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

If you are not getting any value into str3 attribute, try using this:

CALL METHOD request->get_form_field
      EXPORTING
        name  = 'REQID'
      RECEIVING
        value = str3.

Hope this helps you.

Regards,

Ravikiran.

Former Member
0 Kudos

Perfect Catch Ravi, before this,I tried many ways through debugging.But I was not getting any value.Now it is working.Once again Great help.

Regards

CSM Reddy

athavanraja
Active Contributor
0 Kudos

if you still want to use this pattern

str3 = request->get_form_field( 'REQID' ).

you have to do like below.

str3 = request->get_form_field( name = 'REQID' ).

Regards

Raja

Former Member
0 Kudos

Thanks for your suggestion Raja, It is also working in this way.

Regards

CSM Reddy

Answers (0)