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: 

Regarding search help in table control

Former Member
0 Kudos

Hi,

I have developed one screen prog in which i have added table control in which i have columns such as batch no, material no, quantity etc.

I have created one search help for in which user enter batch no and all materials to which batches are assigned comes in help.When user clicks on perticular row in help then batch number in that row gets inputed in batch no column in table control.

My requirement is that the material no corresponding to same row should come in next column of materia no in table control.

Can anybody help me regarding this?

Thankx in adv.

Regards,

Deepak.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

use stepl

use this sample code.

DATA : SCR_FIELDS LIKE DYNPREAD OCCURS 0 ,

SCR_FIELDS-FIELDNAME = 'FIELDNAME'.

SCR_FIELDS-FIELDVALUE = VALUE.

SCR_FIELDS-STEPL = LINE NO.

APPEND SCR_FIELDS.

CALL FUNCTION 'DYNP_VALUES_UPDATE'

EXPORTING

DYNAME = PROGRAM NAME

DYNUMB = SY-DYNNR

TABLES

DYNPFIELDS = SCR_FIELDS

EXCEPTIONS

INVALID_ABAPWORKAREA = 1

INVALID_DYNPROFIELD = 2

INVALID_DYNPRONAME = 3

INVALID_DYNPRONUMMER = 4

INVALID_REQUEST = 5

NO_FIELDDESCRIPTION = 6

UNDEFIND_ERROR = 7

OTHERS = 8.

3 REPLIES 3

Former Member
0 Kudos

hi,

assign according to it.....

thanks

nagendra

0 Kudos

Hi,

Thakx for ur reply.

Plz explain me it in details.

I have created help for one column but i want to display the info in help in two columns in table control.

That is for perticular batch number in help i want to display batch number in one column and its corresponding material number in another column in table control.

Regards,

Deepak.

Former Member
0 Kudos

use stepl

use this sample code.

DATA : SCR_FIELDS LIKE DYNPREAD OCCURS 0 ,

SCR_FIELDS-FIELDNAME = 'FIELDNAME'.

SCR_FIELDS-FIELDVALUE = VALUE.

SCR_FIELDS-STEPL = LINE NO.

APPEND SCR_FIELDS.

CALL FUNCTION 'DYNP_VALUES_UPDATE'

EXPORTING

DYNAME = PROGRAM NAME

DYNUMB = SY-DYNNR

TABLES

DYNPFIELDS = SCR_FIELDS

EXCEPTIONS

INVALID_ABAPWORKAREA = 1

INVALID_DYNPROFIELD = 2

INVALID_DYNPRONAME = 3

INVALID_DYNPRONUMMER = 4

INVALID_REQUEST = 5

NO_FIELDDESCRIPTION = 6

UNDEFIND_ERROR = 7

OTHERS = 8.