‎2009 Nov 12 8:32 AM
Hello all,
I'm creating a F4 help with a user exit. It is group data from 6 table fields into 3 fields. All of this is working fine, however I wish to populate 3 fields on the screen with the data selected from the F4 help screen, but the only field that gets populated is the one with the F4 help (or matchcode object) attached to it. In other places I know it does works, but I cannot se the difference between my F4 help and the other.
code for the screen in simply:
parameters: p_ins type pa9010-A matchcode object Z_HR_9010
p_kont type pa9010-B,
p_descr type pa9010-C.
where A,B and C are valid fields in table pa9010.
The F4 help is:
Parameter IMP EXP LstP UPos Uvis Data element Modifed Std Value
A X 1 1 ZA1
B X 2 2 ZB1
C X 3 3 ZC1
ZA1, ZB1 and ZC1 are valida data elements which corresponds to the fields of table pa9010
‎2009 Nov 12 8:57 AM
Hi,
Can you plz be more specific on what exactly your problem is...
Thanks.
Regards,
Anil.
‎2009 Nov 12 9:07 AM
The problem is that only field p_ins are getting populated with the returning data from the F4 help.
In the RECORD_TAB in the search help exit there is a string (of 1000 characters) containing the selected row from the help screen, in that string all the data that I request is stored after selecting from the help screen.
The first value is an object id of 10 characters, the second is a subtyp of 5 characters, and last a description field on 40 character.
The fields on my custom screen (p_ins, p_kont and p_descr) only p_ins (which has the F4 help attached) is populated, I want the remaining 2 values to populate the other 2 fields (p_kont and p_descr).
‎2009 Nov 12 9:51 AM
What you can do is, once one of your field is populated from the search help, use a READ statement to get the remaining values from the search help internal table and populate the other two fields,.
‎2009 Nov 12 9:57 AM
Hi,
thank you for responding to this issue, however I have now resolved by putting the table itself instead.
I know that is the prefered approach but circumstances made the option not work.
Anyway now I have worked around it and my problem is solved.
Thank you.