Problem solve Get help with specific problems with your technologies, process and projects.

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

A SearchSAP.com reader is new to SAP ABAP and SAP BW, and wants to know how to write a correct piece of code in trying to write a clear work statement.

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?

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 last published in March 2010

Dig Deeper on SAP ABAP

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.