on 09-08-2007 12:01 AM
Hi,
I have created a search help for a custom field (created in confirmation at item level) using search help exit. In the search help exit, I need to read the partner number for plant from the partner overview screen of confirmation, and pass that partner number to the search help exit of custom field created on item basic data sreen in CONFIRMATION transaction. The reason being, in the hit list, I would like to show only the custom field values related to the plant that exists on that document. It would be great if I can get some help on this.
Thanks,
Krupa
Hi
This is quite easy..
Simply using the Function module - <b>DYNP_VALUES_READ</b>, you can easily complete your requirment.
Please read the relevant documenttation of this FM using SE37 Transaction, to get more details and sample code, how to use this.
Do let me know.
Regards
- Atul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It does not seem to be quite that easy, I also have a webdyn pro with a custom field. Now I need that field value in another search help exit. I tried what you said and I used this:
DATA: dyname LIKE d020s-prog VALUE 'ZHR_LSO_XLSO_LEARNER_PROFILE',
dynumb LIKE d020s-dnum VALUE '200'.
DATA: BEGIN OF dynpfields OCCURS 3.
INCLUDE STRUCTURE dynpread.
DATA: END OF dynpfields.
MOVE 'TABNAME' TO dynpfields-fieldname.
APPEND dynpfields.
MOVE 'FIELDNAME' TO dynpfields-fieldname.
APPEND dynpfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = dyname
dynumb = dynumb
translate_to_upper = 'X'
TABLES
dynpfields = dynpfields
EXCEPTIONS
invalid_abapworkarea = 01
invalid_dynprofield = 02
invalid_dynproname = 03
invalid_dynpronummer = 04
invalid_request = 05
no_fielddescription = 06
undefind_error = 07.
But I get the exception invalid dynproname, but I verified it via SE51, this code is called in my search help exit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.