2007 Mar 06 6:54 AM
HI all,
Condition 1
SELECT SINGLE *
FROM srgbtbrel
INTO wa
WHERE instid_a = g_instance.
IF sy-subrc = 0.
g_attachment = 'Contains Attach.'.
IF p_att EQ 'X'.
if itab-bktxt is not initial.
Condition 2
ELSEIF p_nat EQ 'X'.
format color 2 on.
uline.
if itab-bktxt is initial.
<b>Condition 3</b>
elseif p_nwt EQ 'X'.
g_attachment = 'No Attachment'.
if g_instance eq space.
if itab-bktxt(1) = '@'.
in this programm conditon 3 is not displaying result. where can i made changes plz help me.
regards
JK
HI all,
Condition 1
SELECT SINGLE *
FROM srgbtbrel
INTO wa
WHERE instid_a = g_instance.
IF sy-subrc = 0.
g_attachment = 'Contains Attach.'.
IF p_att EQ 'X'.
if itab-bktxt is not initial.
Condition 2
ELSEIF p_nat EQ 'X'.
format color 2 on.
uline.
if itab-bktxt is initial.
<b>Condition 3</b>
elseif p_nwt EQ 'X'.
g_attachment = 'No Attachment'.
if g_instance eq space.
if itab-bktxt(1) = '@'.
in this programm conditon 3 is not displaying result. where can i made changes plz help me.
regards
JK
2007 Mar 06 7:02 AM
Condition 1
SELECT SINGLE *
FROM srgbtbrel
INTO wa
WHERE instid_a = g_instance.
IF sy-subrc = 0.
g_attachment = 'Contains Attach.'.
IF p_att EQ 'X'.
if itab-bktxt is not initial.
*Condition 2
ELSEIF p_nat EQ 'X'.
format color 2 on.
uline.
if itab-bktxt is initial.
*Condition 3
elseif p_nwt EQ 'X'.
g_attachment = 'No Attachment'.<b>if g_instance eq space.</b>
check whether it is taking space correctly, else pass some zeros or ' '.
This u have to see in debugging.
Also pass a text starting with @ and see whether it si picking the first value as @.
<b>if itab-bktxt+0(1) = '@'.</b>
Reward if this helps. Kindly close the earlier thread opened by you.