07-31-2007 2:00 PM
Hi
Look at the below code :
IF int_edidd-segnam = c_e1edka1.
MOVE int_edidd-sdata TO l_e1edka1.
IF l_e1edka1-parvw = 'BK'.
IF l_e1edka1-name3 is INITIAL.
concatenate 'VAT Registration No: ' l_paval into l_paval.
l_e1edka1-name3 = l_paval.
MOVE l_e1edka1 TO int_edidd-sdata.
<b> MODIFY int_edidd TRANSPORTING sdata WHERE segnam = 'e1edka1' and</b> sdata = 'BK%'.
ENDIF.
ENDIF.
ENDIF.
The statement marked Bold is not working properly(i.e Not modifying the internal table contents)
Please suggest something (Or some other code to modify "int_edidd")
Note : Modify using Sy-tabix is not working as sy-tabix is always 1.
Points will be surely rewarded..
Regards
Tulip
Message was edited by:
Tulip Shah
07-31-2007 5:49 PM
Hi
You can't use where condition along with modify statement
instead of
MODIFY int_edidd TRANSPORTING sdata WHERE segnam = 'e1edka1' and sdata = 'BK%'.
use
<b>MODIFY int_edidd TRANSPORTING sdata .</b>
and see the result.
if you wants to move into sdata field at a particular position use the offset value
int_edidd-sdata+40(50) = l_e1edka1 .
<b>Reward points for useful Answers</b>
Regards
Anji