Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

condition urgent

Former Member
0 Likes
312

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

1 REPLY 1
Read only

Former Member
0 Likes
287
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.