Skip to Content
0
Former Member
Aug 24, 2009 at 12:29 PM

data not populating in my idoc

44 Views

Hi guru,

i am writting these below code .

please look my code.here date i am moving from : move W_datum1 to int_edidd-sdata.

so in debugging mode i am getting date value in int_edidd-sdata.

but why the value is not populating in my segment of idoc.can u tell me where is the probleam in my code???

If XVBDKR-VKORG = 'EDM1'

*CONTROL_RECORD_OUT-STDMES = 'INVOIC'

AND DOBJECT-KSCHL = 'ZEDI'.

if INT_EDIDD-SEGNAM = 'E1EDK02'.

LOOP AT INT_EDIDD WHERE SEGNAM = 'E1EDK02'.

E1EDK02 = INT_EDIDD-SDATA.

IF E1EDK02-QUALF = '009'.

W_datum2 = E1EDK02-datum.

ELSEIF E1EDK02-QUALF = '012'.

W_datum1 = E1EDK02-datum.

ENDIF.

ENDLOOP.

endif.

IF W_datum1 GT W_datum2.

W_datum1 = W_datum2.

move W_datum1 to int_edidd-sdata.

MODIFY int_edidd INDEX hilfe_tabix.

EXIT.

ENDIF.

ENDIF.