Skip to Content
0
May 09, 2016 at 09:59 AM

Add segment E1FISET to idoc FIDCCP02

599 Views

Hi experts,

I need to add a segment E1FISET to idoc FIDCCP02 whenever e1fiseg-buzid = 'T'.

I have modified user exit EXIT_SAPLF050_006 (include ZX050U06) like this:

LOOP AT idoc_data.

CLEAR w_idoc.

CLEAR gv_ind.

indice = sy-tabix.

gv_segnum = idoc_data-segnum.

CASE idoc_data-segnam.

WHEN 'E1FISEG'.

CLEAR xe1fiseg.

xe1fiseg = idoc_data-sdata.

IF xe1fiseg-buzid = 'T'.

xe1fiset-buzei = c_001.

xe1fiset-mwskz = xe1fiseg-mwskz.

xe1fiset-hkont = xe1fiseg-hkont.

xe1fiset-shkzg = xe1fiseg-shkzg.

xe1fiset-hwbas = xe1fiseg-hwbas.

xe1fiset-fwbas = xe1fiseg-fwbas.

xe1fiset-hwste = 750.

xe1fiset-fwste = 750.

xe1fiset-knumh = c_mws.

xe1fiset-KSCHL = c_MWAS.

xe1fiset-kbetr = 100.

xe1fiset-stbkz = c_2.

gv_ind = indice + 1.

idoc_data-segnum = gv_segnum + 1.

idoc_data-psgnum = gv_segnum.

idoc_data-segnam = 'E1FISET'.

idoc_data-hlevel = '02'.

idoc_data-sdata = xe1fiset.

INSERT idoc_data INDEX gv_ind.

* append idoc_data .

ENDIF.

ENDCASE.

ENDLOOP.


After this, in table idoc_data I have my new segment but when I check it in tx. WE02 there's no such segment. Is there anything I'm missing ?


Thanks in advance,


María