Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

F4IF_INT_TABLE_VALUE_REQUEST

Former Member
0 Likes
650

Hi Experts,

The requirement is to display all billing documents of a particular sales order when the user presses f4 in the billing document input field.

DATA: BEGIN OF it_vbelv OCCURS 0,

       vbelv LIKE vbfa-vbelv,

       END OF it_vbelv.

DATA: BEGIN OF it_vbeln OCCURS 0,

       vbeln LIKE vbfa-vbeln,

       END OF it_vbeln.


AT SELECTION-SCREEN on VALUE-REQUEST FOR p_so_v.

   select vbelv FROM vbfa into table it_vbelv.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

   EXPORTING

     retfield               = 'P_SO_V'

    VALUE_ORG              = 'S'

   tables

     value_tab              = it_vbelv

    RETURN_TAB             = it_return1

  EXCEPTIONS

    PARAMETER_ERROR        = 1

    NO_VALUES_FOUND        = 2

    OTHERS                 = 3

           .

p_SO_V = it_return1-fieldval.

   SELECT vbeln from vbfa into table it_vbeln where vbelv = p_so_v.  """""""""""""""not getting any values in it_vbeln

     AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bd_v.

       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

         EXPORTING

           retfield               = 'P_BD_V'

          VALUE_ORG              = 'S'

         tables

           value_tab              = it_vbeln

          RETURN_TAB             = it_return2

        EXCEPTIONS

          PARAMETER_ERROR        = 1

          NO_VALUES_FOUND        = 2

          OTHERS                 = 3

                 .


I have been trying this for almost an hour. Can somebody please tell me where I am lacking?



Regards

Mani

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
604

Hi Mani,

Is there any conversion routine in the domain?

Regards

Purnand

4 REPLIES 4
Read only

former_member228804
Participant
0 Likes
604

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

   EXPORTING

     retfield               = 'P_SO_V'

    VALUE_ORG              = 'S'

   tables

     value_tab              = it_vbelv

    RETURN_TAB             = it_return1

  EXCEPTIONS

    PARAMETER_ERROR        = 1

    NO_VALUES_FOUND        = 2

    OTHERS                 = 3

           .

p_SO_V = it_return1-fieldval.


Above statement is invalid, you need to READ the table it_return1 since this is an internal table and not a work area.

Find some key for reading the internal table. IT_RETURN will give you the entry selected by the user.

Please check and revert back.


Regards,

Dnyanesh.

Read only

Former Member
0 Likes
604

Hi Mani,

The reason you are not getting any values in IT_VBELN is because P_SO_V is still blank.

Either you have to press ENTER button after you select the value for the first search help or else you have to use some standard functin module like DYNP_VALUES_READ to get the value of P_SO_V.

Regards,

Santanu.

Read only

Former Member
0 Likes
605

Hi Mani,

Is there any conversion routine in the domain?

Regards

Purnand

Read only

0 Likes
604

bingo

Thank you