2006 Jun 13 12:41 PM
I am using the Function Module F4IF_INT_TABLE_VALUE_REQUEST to get Search Help on any field on screen.I am using Dynamic Field mapping (parameter DYNPFLD_MAPPING )to fill multiple fields on the screen. For the first time the Search Help shows the required values for selection.But from next time all the values in the Search Help are displayed as the last field value.
For example,if my Search help window has two fields like Item No. and Comp Code.For the first time it shows the Item no. and Comp code.But from next time it shows only the Comp code in both the columns.
2006 Jun 13 12:44 PM
<b>CLEAR VALUE USING SET PARAMETER</b>
To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.
To fill one, use:
SET PARAMETER ID <pid> FIELD <f>.
This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
To read an SPA/GPA parameter, use:
GET PARAMETER ID <pid> FIELD <f>.
This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.
regards
vinod
2006 Jun 13 2:42 PM
Please refresh the table & clear the header of the table before calling the function module.
This will solve your problem.
Regards,
Amiya()