• No se han encontrado resultados

Exercise Objectives

After completing this exercise, you will be able to:

• Identify examples of possible changes that could be made to the SAP standard • Illustrate how forms are assigned a print programming in Customizing

Business Example

In most cases, standard forms are altered to reflect the needs of individual customers. In some cases, the print program must also be altered to reflect these needs.

Task:

1. Find in Customizing configuration area that assigns forms and print programs for SD Order output documents.

Select Tools → Business Engineer → Customizing → Execute project → SAP Reference IMG

Follow the path within the IMG, as shown: 5 Sales and Distribution 5 Basic Functions

5 Output Control

5 Output Determination

5 Output Determination Using the Condition Technique 5 Maintain Output Determination for Sales Documents 0 Σ Maintain Output Types

What are the names of the program and the form for the BA00 Order Confirmation?

Display the sales confirmation for an order on your screen. Note the PO number. Select Logistics → Sales and Distribution → Sales Order → Display.

Enter the order number. Your instructor will provide a sales order number for you.

Print the screen output using Sales document → Issue output to → Screen. Select output type BA00 and choose Execute.

When the Issue Output screen is displayed, select Execute again.

What is the PO Number? The PO number is also known as the reference number. What is the screen field name for the PO number?

On the Display Sales Order screen, choose Enter; use the same sales order as in 2. Find the PO number on the overview screen.

Position your cursor on the field. Press F1 and then select Technical information. What is the screen field name?

Display the form for the sales confirmation. Find the program symbol that is used to display the PO number. To do this, switch to the Form Painter. Which window on the FIRST page corresponds to the area on the print out that contains the PO number?

What is the field name?

Note: Note that the table name is different from the screen name in

exercise 3; but the field name is the same. This is common but not a rule. Display the print program for the sales confirmation. Review the structure. To do this, switch to the ABAP Editor.

In the code, start at FORM PROCESSING and observe the following structure of the program:

Get the data for the form. Open the form.

Print header information Print item information

Observe the following structure of ITEM_PRINT: Print Item header information

Loop record-wise through an internal table (tvbdpa) Create print condition of various items for the form. Endloop

Observe that the transparent tables for the Sales Order are not available to the print program.

Some of the sales order tables are VBAK (header), VBAP (item), and VBKD (business data). Are these tables available in the program?

Is the transparent table that contains the PO number in 3 available to the program? Can you find the structure table that the form uses to display the PO number? The business unit would like the sales confirmation to include the telephone number of the person who placed the order. The telephone number should be placed in the same window as the PO number. Develop a strategy to accomplish this.

This field can be found on the order. On the Display Sales Order Overview screen, select Goto → Header → Purchase order data.

What is the field name on the screen?

What would the symbol name be in the form?

What other things would you have to consider when adding this field to the window?

Solution 4: Customizing Using the Print

Program

Task:

1. Find in Customizing configuration area that assigns forms and print programs for SD Order output documents.

Select Tools → Business Engineer → Customizing → Execute project → SAP Reference IMG

Follow the path within the IMG, as shown: 5 Sales and Distribution 5 Basic Functions

5 Output Control

5 Output Determination

5 Output Determination Using the Condition Technique 5 Maintain Output Determination for Sales Documents 0 Σ Maintain Output Types

Then, select Output type BA00 and a processing routine.

What are the names of the program and the form for the BA00 Order Confirmation?

Display the sales confirmation for an order on your screen. Note the PO number. Select Logistics → Sales and Distribution → Sales Order → Display.

Enter the order number. Your instructor will provide a sales order number for you.

Print the screen output using Sales document → Issue output to → Screen. Select output type BA00 and choose Execute.

What is the PO Number? The PO number is also known as the reference number. What is the screen field name for the PO number?

On the Display Sales Order screen, choose Enter; use the same sales order as in 2. Find the PO number on the overview screen.

Position your cursor on the field. Press F1 and then select Technical information. What is the screen field name?

Display the form for the sales confirmation. Find the program symbol that is used to display the PO number. To do this, switch to the Form Painter. Which window on the FIRST page corresponds to the area on the print out that contains the PO number?

What is the field name?

Note: Note that the table name is different from the screen name in

exercise 3; but the field name is the same. This is common but not a rule. Display the print program for the sales confirmation. Review the structure. To do this, switch to the ABAP Editor.

In the code, start at FORM PROCESSING and observe the following structure of the program:

Get the data for the form. Open the form.

Print header information Print item information Print ending information Close the form.

Observe the following structure of ITEM_PRINT: Print Item header information

Loop record-wise through an internal table (tvbdpa) Create print condition of various items for the form. Endloop

Observe that the transparent tables for the Sales Order are not available to the print program.

Some of the sales order tables are VBAK (header), VBAP (item), and VBKD (business data). Are these tables available in the program?

Is the transparent table that contains the PO number in 3 available to the program? Can you find the structure table that the form uses to display the PO number? The business unit would like the sales confirmation to include the telephone number of the person who placed the order. The telephone number should be placed in the same window as the PO number. Develop a strategy to accomplish this.

This field can be found on the order. On the Display Sales Order Overview screen, select Goto → Header → Purchase order data.

What is the field name on the screen?

What other things would you have to consider when adding this field to the window?

a) The names of the program and the form for the order confirmation are:

Program: RVADOR01 Form: RVORDER01

The PO number depends on the sales order. The screen field name for the order number is:

VBKD-BSTKD

The window of page FIRST that contains the PO number is:

INFO (see print preview)

The field name in window INFO is:

VBDKA-BSTKD

The sales document tables are NOT available in the program. The transparent table VBKD is NOT available in the program. Table VBDKA is available in the program.

The field name on the screen for the phone number of the customer who placed the order is:

VBAK-TELF1

In the form, the symbol is called:

VBDKA-TELF1

Make sure that there is enough space in the window to insert an additional line. If sufficient space is not available, you must increase the size of the window. If you want to insert only one line, you do not need to change the sizes of other windows.

Lesson Summary

You should now be able to:

Documento similar