‎2009 Sep 05 12:27 PM
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
‎2009 Sep 05 12:31 PM
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
‎2009 Oct 15 7:59 AM
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.
‎2009 Sep 05 12:35 PM
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
‎2009 Sep 05 12:35 PM
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