Application Development 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: 

Return multiple values from a search help

Former Member
0 Kudos

Dear All,

I have a table control on screen with fields:

doc.no

doc.type

doc.ver

doc.part

I've coded a search help for doc. no. which returns a single value i.e. doc. no from the search help.

But my reqmt. is that when the user selects a particular doc.no from search help, it should also return doc. type/ver/part

and the corresponding table control field should be populated.

I mean i require multiple values to be returned and populated in my screen.

Thanks in anticipation

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

Hi ,

Please check this thread where i had done some coding and the OP himself has found the solution

... if its a table control you have get the selected line by using fm DYNP_GET_STEPL. Then update the values to the respective fields using DYNP_VALUES_UPDATE.

2 REPLIES 2

Former Member
0 Kudos

I think you can make use of chain and endchain for this,

use chain then field f1 field f2 .... module val_help for value-help endchain

check out this threat

[http://wiki.sdn.sap.com/wiki/display/sandbox/DYNAMICF4HELPFORAFIELDINTABLECONTROL]

kesavadas_thekkillath
Active Contributor
0 Kudos

Hi ,

Please check this thread where i had done some coding and the OP himself has found the solution

... if its a table control you have get the selected line by using fm DYNP_GET_STEPL. Then update the values to the respective fields using DYNP_VALUES_UPDATE.