Getting started with writing sales order code for SAP ABAP, BW

Getting started with writing sales order code for SAP ABAP, BW

I am quite new to SAP BW and SAP ABAP programming, and am trying to write the following piece of code:

Read table it_salesord assigning <fs_salesord>
With table key doc_number eq comm_structure-doc_number. 

Is this correct? How can I go on to writing a clear statement?

    Requires Free Membership to View

    When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSAP.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSAP.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Nearly correct:

Read table it_salesord assigning <fs_salesord> 
with table key doc_number = comm_structure-doc_number.

Then to clear one of the fields:

CLEAR <fs_salesord>-fieldname

With field-symbols, I don't use <fs_...> as naming. The angle brackets are unique to field symbols, so it really is unnecessary.

The best way to learn SAP ABAP is to go on a SAP training course. Some companies are reluctant to do this for SAP BW analysts. However, a good programmer can really make a difference in performance and maintainability of the ABAP required for many BW models. If you can't do a training course, then visit SAP Press -- they've many useful books. You could also try Amazon.com or similar online book sellers! Also, don't forget to read the ABAP help, by pressing F1 when your cursor is in a keyword -- that will tell you how to use each command.

This was first published in March 2010