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

hi urgent plz(string processing)

Former Member
0 Likes
473

LOOP AT int_objnr.

CALL FUNCTION 'STATUS_TEXT_EDIT'

EXPORTING

client = sy-mandt

flg_user_stat = 'X'

objnr = int_objnr-objnr

only_active = 'X'

spras = sy-langu

  • BYPASS_BUFFER = ' '

IMPORTING

  • ANW_STAT_EXISTING =

  • E_STSMA =

line = fs_line

user_line = fs_user

  • STONR =

  • EXCEPTIONS

  • OBJECT_NOT_FOUND = 1

  • OTHERS = 2

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

IF fs_line CA 'REL'.

IF fs_user NA 'FBLK'.

MOVE int_objnr-objnr TO output-objnr.

APPEND output.

ENDIF.

ENDIF.

ENDLOOP.

actuall my internal table consists of lot of records.i want take the numbers i.e, my <b>fs_line</b> field should contain REL AND fs_user should not contain FBLK .

THIS IS MY SCENARIO.

the above coding does not check the above logic.

plz suggest me a solution

regards]

karthik

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
443

Hi,

IF fs_line CA 'REL'.

IF fs_user NA 'FBLK'

replace with

<b>IF fs_line CS 'REL'.

IF fs_user NS 'FBLK'</b>

Regards,

Atish

3 REPLIES 3
Read only

Former Member
0 Likes
443

IF fs_line CS 'REL'.

IF fs_user NS 'FBLK'.

regards

shiba dutta

Read only

Former Member
0 Likes
444

Hi,

IF fs_line CA 'REL'.

IF fs_user NA 'FBLK'

replace with

<b>IF fs_line CS 'REL'.

IF fs_user NS 'FBLK'</b>

Regards,

Atish

Read only

Former Member
0 Likes
443

Hi,

Change ur code as mentioned following .

IF fs_line CS 'REL'..

IF fs_user NS 'FBLK'.

*********

*********

endif.

endif.

Regards

Srimanta