Skip to Content
0
Former Member
Jan 14, 2008 at 05:45 AM

Need Help to delet sort key! Please help!

20 Views

Hi,

I have a problem in the following program.

Source Code:

-


t-belnr = bsid-zuonr.

SPLIT t-belnr at '#' into wk_belnr wk_x_belnr.

CLEAR t-belnr.

t-belnr = wk_belnr.

t-xblnr = bsid-belnr.

IF t-belnr NE space.

s-belnr = t-belnr.

ELSE.

t-belnr = t-xblnr.

s-belnr = t-xblnr.

ENDIF.

IF t-xblnr NE space. "WD041005a

s-xblnr = t-xblnr. "WD041005a

ELSE. "WD041005a

s-xblnr = t-belnr. "WD041005a

ENDIF. "WD041005a

WHILE s-xblnr(1) EQ '0'. "INS MG130606

SHIFT s-xblnr LEFT. "INS MG130606

ENDWHILE. "INS MG130606

-


In the final ALV.

If first colum (t-zuonr) (sort key for the document )is blank, the document need to be deleted.

Question:

How can I write the code to deleted the t-zuonr when it is space?

Please help!!!

Thank you!!