2014 Apr 08 6:53 PM
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
2014 Apr 08 7:10 PM
Hi Mani,
Is there any conversion routine in the domain?
Regards
Purnand
2014 Apr 08 7:06 PM
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.
2014 Apr 08 7:07 PM
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.
2014 Apr 08 7:10 PM
Hi Mani,
Is there any conversion routine in the domain?
Regards
Purnand
2014 Apr 08 7:13 PM