09-08-2008 10:46 AM
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.
09-08-2008 11:45 AM
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.
09-08-2008 10:48 AM
09-08-2008 11:27 AM
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.
09-08-2008 11:45 AM
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.