2011 Apr 08 2:09 PM
Hi,
I have defined one search help "ZSH1" with 2 search help parameters VBELN (data element VBELN_VA) and POSNR (data element POSNR_VA). Both are Import and Export parameters.
Then I have assigned this search help to data element "ZDE1" (Search help = ZSH1 and Parameters = VBELN),
Finally I have created a Report and for my selecction screen I have written:
PARAMETERS : NUM_ORD TYPE ZDE1.
So it shows the search help (a table with 2 columns: one for VBELN and other for POSNR), I choose the option I want and it works fine. The problem is that I also would like to store the value of POSNR but i don't know how.
How should I proceed?
I hope you understand my requirements.
Thanks in advance.
Luis Álvarez.
2011 Apr 09 6:28 AM
HI,
If I get correct - When you Press F4 on sel. Screen You got the table with VBELN & POSNR - Right?
And You want the 'Selected' values for Both the Fields
Then --> Use FM 'F4IF_INT_TABLE_VALUE_REQUEST'
* If ALV then in Event AT SELECTION-SCREEN ON VALUE-REQUEST FOR num_ord.
* If Screen then in PAI of Scren - PROCESS ON VALUE-REQUEST. FIELD num_ord MODULE f4_desp.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
.
.
.
TABLES
value_tab = gi_valtab
* FIELD_TAB =
return_tab = t_return
* DYNPFLD_MAPPING =
...
Here table t_return is you "selected values" of VBELN & POSNR -
Reply if you have any query.
Edited by: Ashlesha R. Bhagat on Apr 9, 2011 7:29 AM
2011 Apr 08 2:13 PM
search the forum...for a single element, you need only specify for vbak-vbeln, or like vbak-vbeln to "inherit" the SAP search helps. For this, here's a hint:...the function module might be F4IF_INT_TABLE_VALUE_REQUEST and it's mentioned in various posts in this forum. A search of the forum should turn up posts with how to use this to populate more than one field/value from a single use of this FM.
2011 Apr 09 6:28 AM
HI,
If I get correct - When you Press F4 on sel. Screen You got the table with VBELN & POSNR - Right?
And You want the 'Selected' values for Both the Fields
Then --> Use FM 'F4IF_INT_TABLE_VALUE_REQUEST'
* If ALV then in Event AT SELECTION-SCREEN ON VALUE-REQUEST FOR num_ord.
* If Screen then in PAI of Scren - PROCESS ON VALUE-REQUEST. FIELD num_ord MODULE f4_desp.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
.
.
.
TABLES
value_tab = gi_valtab
* FIELD_TAB =
return_tab = t_return
* DYNPFLD_MAPPING =
...
Here table t_return is you "selected values" of VBELN & POSNR -
Reply if you have any query.
Edited by: Ashlesha R. Bhagat on Apr 9, 2011 7:29 AM