Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

pls help in this code

Hi All,

please let me know, if this code is right ??

I want to select data and move to ind fields,

data : w_post_code1 like adrc-post_code1,

w_post_code2 like adrc-post_code2.

SELECT single POST_CODE1 POST_CODE2 INTO

( w_post_code1 w_post_code2 ) from adrc

WHERE ADDRNUMBER eq s_adrnr .

endselect.

thank you.

madhu

Tags:
Former Member
replied

Hi,

Please try this.

DATA: W_POST_CODE1 LIKE ADRC-POST_CODE1,
      W_POST_CODE2 LIKE ADRC-POST_CODE2.
                                                                        
SELECT SINGLE POST_CODE1 POST_CODE2 INTO
(W_POST_CODE1, W_POST_CODE2) FROM ADRC
WHERE ADDRNUMBER EQ S_ADRNR .
                                                                                WRITE:  W_POST_CODE1,  W_POST_CODE2.

Regards,

Ferry Lianto

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question