Skip to Content
0
Former Member
Jan 14, 2008 at 10:08 AM

Correct the source code please!

19 Views

Hi,

I have a internal tables t and t1 which is the same structure as t.

I used t1 to store the unused data which zuonr is space.

DATA: BEGIN OF t OCCURS 0,

bukrs LIKE knb1-bukrs, "company code

zuonr Like bsid-zuonr, "sort key "CR01

belnr LIKE bsid-belnr, "FI document number

kunnr LIKE kna1-kunnr, " customer code

bldat LIKE bsid-bldat,

budat LIKE bsid-budat,

netdt LIKE bsega-netdt,

waers LIKE bsid-waers,

wrbtr LIKE bsid-wrbtr,

shkzg LIKE bsid-shkzg,

xblnr LIKE bsid-xblnr, "WD041005a

sgtxt LIKE bsid-sgtxt,

dmbtr LIKE bsid-dmbtr,

END OF t.

Question:

At once bsid-zuonr = space, I need to move all the customer code into t1.

How to write the source code to move the the customer code and the data belong to the customer code from t to t1 when bsid-zuonr = space.?

Please help.

Thank you.