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: 

Search Help or Help View????? URGENT

Former Member
0 Kudos

hi,

I have created a Z Search help (<b>Z_SCKOSTL</b>) for the table <b>ZTPCM004</b> . This table has fields such has <b>EKGRP</b> (Purchasing group) , <b>SCKOSTL</b> (Cost center)....& many other...

My search help now has only EKGRP (only Key field of ZTPCM004 table) & SCKOSTL. fields...

I need to fetch the text (<b>CSKT-LTEXT</b>) for the field SCKOSTL from the table CSKT using the field comparing <b>CSKT-KOSTL = ZTPCM004-SCKOSTL</b>...

<u><b>Note :</b></u>

Feld SCKOSTL from table ZTPCM004 & Field KOSTL from table CSKT are of same data length & data type....

<b>how do i get this done ?

when F4 Help is pressed for the parameter P_SCKOSTL how do i get the values of SCKOSTL & its respective LTEXT ????</b>

PARAMETERS : P_SCKOSTL TYPE ZTPCM004-SCKOSTL MATCHCODE OBJECT Z_SCKOSTL.

Note : Z_SCKOSTL is the search help,

is searc help possible for two tables, if not then should I use a help view ???

please suggest a solution,

Points will be rewarded immddiately,

Thanks,

Ginni

5 REPLIES 5

Former Member
0 Kudos

You can do one thing Firstly creat one internal table consisiting of the fields for which you need F4 help then do select the data into the internal table then under event AT SELECTION-SCRREN ON VALUE REQUEST

use function moule POP_WITH_TABLE_DISPLAY and pass the corrsponding selected table so with this you will get the F4 help.

0 Kudos

in case the internal table has huge no. of records, then it will take huge time to process the data & popup the internal table at selection screen....

can u provide any other solution without popping up the internal table through a function module ???

preferabliy through a search help or an help view !!!!!!!!

Thanks,

Ginni

rahul2000
Contributor
0 Kudos

I didnt get exzctly what u wanted...

but have u checked the import and export boxes?

for eg in a search help:-

there are 2 parameters A and B

now if u want after pressing F4 , A along with the Desciption in B

then for A import & export,both boxes have to be checked and for B only export box has to be checked.also give LPOS and SPOS.

I dont think this is what u want...but just try if this is helpful

Former Member
0 Kudos

Hi Ginni,

Creata a view in SE11 by inner joining table ZTPCM004 & table CSKT based on the CSKT-KOSTL = ZTPCM004-SCKOSTL. Then use this view in the search help instead of table. Give both SCKOSTL and KOSTL(import checkbox unchecked and export checkbox checked) field in the search help.

Hope it will resolve your problem.

Reward if Useful..

Thanks,

Muthu.

Former Member
0 Kudos

Hi

Attaching a search help to a field

A search help can influence the behavior of a field when the input help is called. The search help must be assigned to the field in order to do this. You have the following options for this assignment:

Attach search help to a data element / table or structure field / screen field / check table.

Conventionally search helps are attached to table fields or data elements. We shall see the same.

Attaching a search help to a screen element

A search help can be directly assigned to a screen field in two ways.

The name of the search help must be entered in the Screen Painter in the Attributes for the field in the field Search help.

The name of the search help can be defined for selection screens in ABAP reports in the PARAMETERS or SELECT-OPTIONS statement directly following the supplement MATCHCODE OBJECT.

However, input help is only available for this particular screen.

In this case, the search help is only available for this screen.

OR by useing FM

refer this code

TYPES : BEGIN OF ST_OBJID_SH,

OTYPE TYPE HRP1000-OTYPE,

OBJID TYPE HRP1000-OBJID,

END OF ST_OBJID_SH.

DATA : IT_OBJID_SH TYPE STANDARD TABLE OF ST_OBJID_SH.

DATA : WA_OBJID_SH TYPE ST_OBJID_SH.

***********SELECTION SCREEN DESIGN***********************

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

*SELECT-OPTIONS : S_OTYPE FOR HRP1001-OTYPE NO INTERVALS .

SELECT-OPTIONS : S_OBJID FOR HRP1001-OBJID NO INTERVALS .

SELECT-OPTIONS : DATE FOR SY-DATUM NO-EXTENSION OBLIGATORY.

SELECTION-SCREEN END OF BLOCK B1.

**********END OF SELECTION SCREEN DESIGN*****************

*********VALIDATION FOR SCREEN FIELDS********************

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.

  • IF S_OBJID IS NOT INITIAL.

SELECT OTYPE OBJID FROM HRP1000

INTO TABLE IT_OBJID_SH

WHERE OTYPE = 'D'.

IF SY-SUBRC EQ 0.

  • SEARCH HELP FOR QUALIFICATION.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

RETFIELD = 'OBJID'

  • PVALKEY = ' '

DYNPPROG = SY-REPID

DYNPNR = SY-DYNNR

DYNPROFIELD = 'S_OBJID'

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

VALUE_ORG = 'S'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

TABLES

VALUE_TAB = IT_OBJID_SH

  • FIELD_TAB =

  • RETURN_TAB = RETURN_TAB

  • DYNPFLD_MAPPING =

  • EXCEPTIONS

  • PARAMETER_ERROR = 1

  • NO_VALUES_FOUND = 2

  • OTHERS = 3

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

ENDIF.

.

Reward if uswefull