Application Development 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: 

hi urgent plz(string processing)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

IF fs_line CS 'REL'.

IF fs_user NS 'FBLK'.

regards

shiba dutta

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Change ur code as mentioned following .

IF fs_line CS 'REL'..

IF fs_user NS 'FBLK'.

*********

*********

endif.

endif.

Regards

Srimanta