05-07-2010 1:23 PM
Hi All,
I need to create a ZSET and add range of HKONT in my program code. Please suggest some code.
Jmello
05-07-2010 1:30 PM
05-07-2010 1:30 PM
05-07-2010 1:33 PM
@ Mishra, Thanks for your reply. Please suggest me with some sample code as relevant to my requirement.
05-07-2010 1:42 PM
Chcek this sample code:
DATA: v_setid LIKE sethier-setid.
DATA BEGIN OF i_setvalues OCCURS 0.
INCLUDE STRUCTURE setvalues.
DATA END OF i_setvalues.
SELECT SINGLE * FROM setheader WHERE setname = '<<ZSETNAME>>'.
IF sy-subrc = 0.
CONCATENATE setheader-setclass
setheader-subclass
setheader-setname
INTO v_setid.
CALL FUNCTION 'G_SET_TREE_IMPORT'
EXPORTING
client = sy-mandt
fieldname = 'HKONT'
setid = v_setid
tabname = 'BSIS'
TABLES
set_values = i_setvalues.
LOOP AT i_setvalues.
MOVE 'I' TO range_hkont-sign.
MOVE 'BT' TO range_hkont-option.
MOVE i_setvalues-from TO range_hkont-low.
MOVE i_setvalues-to TO range_hkont-high.
APPEND range_hkont.
ENDLOOP
05-07-2010 1:52 PM