cancel
Showing results for 
Search instead for 
Did you mean: 

How to Search on User defined text type ?

0 Kudos
591

Hello Experts,

I have business requirement where user want to search on user defined text such as RM (Remarks) in CG02 in specification. Not sure if this is possible via CG02 search ? I could see you can search DMS (Document Attached) but not RM or other user defined.

Any help would be appreciated.

Gargi

Accepted Solutions (0)

Answers (1)

Answers (1)

satya11719
Active Contributor
0 Kudos

Hey Gargi,

There are Two User Define Text,

User-Defined Texts

You can use the editor to enter texts of any length.

Characteristic-Dependent User-Defined Texts

You can assign user-defined texts to a characteristic of a value assignment type. You assign a phrase to the characteristic in question, for example, see user-defined text, and, using the User-defined text function, create a text in the relevant characteristic-dependent user-defined text type.

I think your requirement will not achieve by standard, Cause there is no such option to search user define text.

Can you brief about why that want that requirement.

Check the below threads.

https://www.consolut.com/en/s/sap-ides-access/d/s/doc/YP-RELNEHS_SAF_27A_VFG

https://saplistspdf.com/sap-tables/e/estd/estdf.html

Thanks

Satya

0 Kudos

Hello Satya,

Thank You, Our user add some time comments or some useful information to properties and would to come back or search similar attributes in future. Not sure if any one has come across similar requirement ?

Gargi

Mark-Pfister
Active Contributor
0 Kudos

Hello Gargi,


I once implemented such a search for User Defined Text.

Kind Regards

Mark

0 Kudos

Hello Mark,

Thank You, that is comforting. would you please share the approach ?

Gargi

christoph_bergemann
Active Contributor
0 Kudos

Dear Gargi

short story. just implement a new user exit of type "search" and you will the solution. You are totally free here to use either standard ABAP feature or to sue e.g. TREX search maschine to look for the texts. I can remember similar demand plaed here. But i did not find it. Quite standard topic to implement new exit.

C.B.

Mark-Pfister
Active Contributor
0 Kudos

Hello Gari,

you need to create a new EHS user exit (Z_SCRIPT) with the category SUB_QUERY for Specification Category "SUBSTANCE".

Have a look at the  function modules in Function Group C1H0 where all the standard search exits are implemented. You always need 3 function modules :

Z_SUB_FIND_BY_SCRIPT

Z_SUB_FIND_BY_SCRIPT_CMD

Z_SUB_FIND_BY_SCRIPT_PARA
Copy them from existing once to have the required interface.


To know how to search for the sap script text have a look / debug the identifier search. The identifier search searches for SAP Script text (this is where the Identifier Longtext is stored) as well.

Hope this helps


Mark

christoph_bergemann
Active Contributor
0 Kudos

Dear Gargi

just check this example:

C.B.

0 Kudos

Hello Mark & CB,

Thank you so much for your help.

Gargi