Creation of New Objects

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Displaying Tax Values in Purchase Order Pricing Conditions

Creation of New Objects

This document describes the new objects that you must create to allow your system to display tax
values in the pricing conditions of a purchase order. The function is delivered with SAP Note
1551566.

Note: If you have already installed a Support Package that is higher than the Support Packages for
which SAP Note 1551566 is valid, you do not have to make the following changes. Your system is
already up-to-date.

After you have finished the creation of new objects described here, you can proceed with the
configuration of the system. You can find the documentation about the configuration attached to
SAP Note 1551566.

Database Table
1. Go to transaction SE11.
2. Select the Database Table radio button and enter “J_1B_PO_TAX_MAP”.
3. Choose the Create pushbutton
4. Enter “Mapping from pricing condition to tax condition” as the short description.
5. On the Delivery and Maintenance tab page, select the following values:

6. On the Fields tab page, enter the following fields and field types:
7. Select the KSCHL_PO row and choose the Foreign Keys pushbutton ( )
8. Generate a new proposal for the T685 check table.
9. Enter the following values:

10. Choose the Copy pushbutton to save the foreign key.

11. Back on the previous screen, select the KSCHL_TAX field and choose the Foreign Keys

pushbutton ( ).
12. Generate a new proposal for the T685 check table.
13. Enter the following values:
14. Choose the Copy pushbutton to save the foreign key.
15. Choose the Technical Settings pushbutton and insert the following values:

16. Save your changes. Enter “J1BA” for the package and “SAP” as the person responsible.
17. Activate the database table.

Function Group
1. Go to transaction SE80.
2. In the dropdown box, select Function Group.
3. Enter “J_1B_PO_TAX_MAP” and press ENTER.
4. Confirm the creation of a new object.
5. Insert “Transfer of tax conditions to PO pricing” as the short text and confirm.
6. Activate the function group.
Function Modules
Note: This step is only needed for releases based on SAP_BASIS 4.6C, SAP NetWeaver 2004 up to
Basis Support Package 12, SAP Web AS 6.20 up to Support Package 54.

1. Call transaction SE37.


2. Enter “J_1B_READ_FROM_MEMORY_TO_PO”as the name of the function module.
3. Choose the Create pushbutton and confirm your entry.
4. Enter “J_1B_PO_TAX_MAP” as the function group.
5. Enter “Reads tax conditions from global memory in pricing schema” as the short text.
6. On Import tab page, enter the following values:

On tab page Export enter the following values:

7. Save and activate the function module.


8. Back on the main screen, enter “J_1B_WRITE_TAX_TO_MEMORY” as the function module.
9. Choose the Create pushbutton and confirm your entry.
10. Enter “J_1B_PO_TAX_MAP” as the function group.
11. Enter “Writes tax conditions to global memory in tax schema” as the short text.
12. On Import tab page, enter the following values:

13. Save and activate the function module.

Note: The code of the function module is filled when the automatic correction instruction is applied.
Includes
Note: This step is only needed for releases based on SAP_BASIS 4.6C, SAP NetWeaver 2004 up to
Basis Support Package 12, SAP Web AS 6.20 up to Support Package 54.

1. Go to transaction SE38.
2. Enter “J_1B_FORM_READ_FROM_MEMORY”as the name of the program and press ENTER.
3. In the next dialog box, enter “Formula for transferring Tax Values to Purchase Pricing” as the
title.
4. In the Attributes box, select “INCLUDE program” as Type and leave the other fields empty:

5. Save your entries and activate the new include.


6. Go to transaction SE38 again.
7. Enter “J_1B_FORM_WRITE_TO_MEMORY”as the name of the program and press ENTER.
8. In the next dialog box, enter “Formula for transferring Tax Values to Memory” as the title.
9. In the Attributes box, select “INCLUDE program” as Type and leave the other fields empty.
10. Save your entries and activate the new include.

Note: The code of the includes is filled when the automatic correction instruction is applied.

Maintenance View
1. Go to transaction SE11.
2. Select the View radio button and enter “J_1B_PO_TAX_MAPV”.
3. Choose the Create pushbutton.
4. Select Maintenance view as the view type.
5. Choose Copy.
6. Enter “Mapping of MM Pricing conditions to SD Tax conditions” as the short description.
7. Go to the Table/Join Conditions tab page.
8. In the free field in the Tables column, enter “J_1B_PO_TAX_MAP”.
9. Mark the “J_1B_PO_TAX_MAP” entry and choose the Relationships pushbutton.
10. There are two entries for the T685 table. Select the one for the fields of pattern *_PO
(double-click the entry to see the details).
11. Choose Copy.
12. In the Tables column, mark the “T685” entry and choose the Relationships pushbutton.
13. Scroll down and select the “T685T” entry.
14. Choose Copy.
In the Join conditions group box, the following entries are displayed:
15. Go to the View Flds tab page.
16. Choose the Table fields pushbutton.
17. Double-click the J_1B_PO_TAX_MAP line and select all fields in the next dialog box.
18. Choose Copy.
19. Mark the “KVEWE_TAX” row and choose the Insert Row push button.
20. In the new line, insert the following values:
 View field: “VTEXT_PO”
 Table: “T685T”
 Field: “VTEXT”
21. Press ENTER.
22. At the end of the table, insert a new line with the following values:
 View field: “VTEXT_TAX”
 Table: “T685T”
 Field: “VTEXT”
23. Press ENTER.
The table looks like this:

24. Go to the Maintenance Status tab page.


25. Enter the following values:
26. Save your changes. Enter “J1BA” as the package and “SAP” as the person responsible.
27. Activate the maintenance view.

Table Maintenance Dialog


1. Go to transaction SE54.
2. In the Table/View field, enter “J_1B_PO_TAX_MAPV”.
3. Select the Generated Objects radio button.
4. Choose the Create/Change push button and confirm the creation of modules by choosing Yes
in the next dialog box.
5. On the next screen, enter the following values:

6. To trigger the creation of the new dialog, choose Create in the top left corner.
7. Enter “J1BA” as the package and “SAP” as the person responsible.
8. Confirm to save the different objects.
9. After you have successfully created the dialog, go to transaction SE80.
10. In the dropdown box, select Function Group.
11. Enter “J_1B_PO_TAX_MAPV” as the name of the function group and press ENTER.
12. In the tree structure, choose Screens → 0100.
13. Choose the Display <-> Change push button.
14. Choose the Layout push button to open the Screen Painter.
15. Double-click on each of the six columns shown in the figure below and select Output Only for
each column.
Note: You must click direct in the column, not the header.

16. Double-click the two remaining columns and select Input Field for each column:
17. Save your entries and exit the Screen Painter by choosing the Back push button.
18. Open the Flow logic tab page for screen 0100.
19. To insert the two new modules, INIT_COLUMNS and READ_TEXT_COND, add lines 6 and 7 to
the coding as shown in the following figure :

20. Double-click on the INIT_COLUMNS module and confirm its creation.


21. Create a new Include, “LJ_1B_PO_TAX_MAPVO01”, for the module.
22. Press ENTER.
23. Confirm the insertion of the INCLUDE statement.
24. Save the new Include.
25. For module READ_TEXT_COND, create a new Include “LJ_1B_PO_TAX_MAPVO02” in the
same way.
Note: The code for the two includes is automatically filled when applying the automatic
correction instruction in SAP Note 1551566.

26. Switch to the display mode by choosing the Display <-> Change push button.
27. Activate the function module to finish the creation of the new objects.

You might also like