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

select-options

Former Member
0 Likes
457

Hi Experts,

how can we delete rows from select-option table.

my code is under below...

LOOP AT s_sorg.

  • IF FLAG = 'X'.

READ TABLE it_vkorg WITH KEY vkorg = s_sorg-low." = ''.

IF sy-subrc NE 0.

CONCATENATE s_sorg-low it_message

INTO it_message SEPARATED BY space.

delete s_sorg from s_sorg-low.

ENDIF.

I am getting DUMP for this code....

can you suggest me the right path...

thanks

babbal

4 REPLIES 4
Read only

Former Member
0 Likes
433

Hi,

I suppose you are trying to delete the current line of the select-option table when the condition is met try like below:



LOOP AT s_sorg.

* IF FLAG = 'X'.

READ TABLE it_vkorg WITH KEY vkorg = s_sorg-low." = ''.
IF sy-subrc NE 0.

CONCATENATE s_sorg-low it_message
INTO it_message SEPARATED BY space.
delete s_sorg.
ENDIF.
endloop.

This should delete the row from select option where for low value you ahve entry in the it_vkorg table.

Regards,

Himanshu

Read only

0 Likes
433

Hi.

I need a help. I have a select-options.(in this select-options i write number of Idoc).My program need to copy Idoc from remote system to my system/ I know the password. I dont know how pass select-options into RFC FM/ Please help me.

Read only

Former Member
0 Likes
433

Hi,

Check this,


LOOP AT s_sorg.
READ TABLE it_vkorg WITH KEY vkorg = s_sorg-low.
IF sy-subrc NE 0.
CONCATENATE s_sorg-low it_message
INTO it_message SEPARATED BY space.
delete s_sorg index sy-tabix.
ENDIF.
ENDLOOP.

Regards,

Vikranth

Read only

Former Member
0 Likes
433

Hi,

Check this,


LOOP AT s_sorg.
READ TABLE it_vkorg WITH KEY vkorg = s_sorg-low.
IF sy-subrc NE 0.
CONCATENATE s_sorg-low it_message
INTO it_message SEPARATED BY space.
delete s_sorg index sy-tabix.
ENDIF.
ENDLOOP.

Regards,

Vikranth