Update a jurisdiction code for open purchase orders

This tool updates open purchase orders to the correct tax jurisdiction code so you can continue to process the purchase order after you are fully integrated with Global Tax Determination.

This tool will be able to determine the correct jurisdiction code from GTD to determine taxes for the order. The program will simulate the creation of the purchase order that needs to be updated with the exact same data and get the correct jurisdiction code value from GTD.

This tool can only be used after the integration with GTD is fully complete, including updating the Jurisdiction Codes of all addresses and having the SAP System switched to External Tax Determination.

Identifying the right jurisdiction code values

Method 1: Online processing

  1. Identify which open purchase orders need to have the jurisdiction code updated to the correct GTD value. This can be done through standard transactions in SAP, for example, transaction ME2N. Make sure that you are selecting purchase orders related to the right company code

  2. Go to the Cockpit and execute Check Jurisdiction Code for Open Purchase Orders.
      1. Once in the tool, enter the following information:

        Screen_Shot_2021-09-14_at_1.38.15_PM.png

        1. Check purchase orders. Select this option to identify the correct jurisdiction code value of the purchase orders you want to update.
        2. Purchasing Document. Enter the number of purchase orders that you want to check the jurisdiction code for. You can enter one document number, a range, or multiple specific document numbers. 
        3. Company Code (optional). You can use this to filter the purchase orders that are linked only to a specific company code by entering one company code, a range of codes, or multiple specific codes.
        4. Created On (optional). Enter the date the purchase orders were created on in the. You can enter one date, a range or multiple specific dates.
        5. Max. number of PO to check field. You can enter a maximum number of purchase orders that will be checked. The reason for this option is that running a lot of documents can result in a long processing time. You can leave this field blank to be able to check as many documents as needed and execute it in the background. Once all the information is entered, go to Program > Execute in Background.



        6. Display only inconsistent purchase orders. There might be cases in which the purchase orders already have the right jurisdiction code. If you want to check only the ones that need to have the jurisdiction code updated, keep this option selected.
  3. Once all the data has been filled in, execute the program.

    Screen_Shot_2021-09-14_at_1.47.14_PM.png

  4. When the program has run, you will be able to see the current tax jurisdiction and the new correct value of the checked document.

    Screen_Shot_2021-09-14_at_1.47.56_PM.png

  5. Go to List > Export > Spreadsheet to export this information to an Excel spreadsheet. 

Method 2: Background processing

  1. Follow the first 2 steps of Method 1.
  2. Choose LOCL for the Output Device and X: Immediately for the Print Time.

    Screen_Shot_2021-09-14_at_2.10.05_PM.png

  3. Click the Screen_Shot_2021-09-10_at_11.18.12_AM.png icon to continue.
  4. Click Immediate, then Save.

    Screen_Shot_2021-09-14_at_2.12.05_PM.png

  5. Make sure that the execution of the program has finished by checking transaction SM37, you can access the Check Jurisdiction Code for Open Purchase Orders program again through the Cockpit. To check the results of the Execution in Background, now select the Display checked purchase orders option, enter the information in the selection-screen and execute. If you only want to see inconsistent documents that need to be updated, choose the Display only inconsistent purchase orders option.

    Screen_Shot_2021-09-14_at_2.15.39_PM.png

  6. When the program has run, you'll be able to see the current tax jurisdiction and the new correct value of the checked document.

    Screen_Shot_2021-09-14_at_1.47.56_PM.png

  7. Go to List > Export > Spreadsheet to export this information to an Excel spreadsheet. 

 

Updating purchase orders

  1. Open the Excel spreadsheet you created when you identified the right jurisdiction code values.

    Screen_Shot_2021-09-14_at_2.20.20_PM.png

  2. To update the jurisdiction code to the right value, you only need the columns PO number, PO Item and New Tax Jur. Delete the other columns then click Save.

    Screen_Shot_2021-09-14_at_2.20.30_PM.png

  3. Go to the standard transaction MASS in SAP. 
  4. Click on the Object Type field and press F4
  5. In the Match Code dropdown, double-click on the Object Type BUS2012.

    Screen_Shot_2021-09-14_at_2.23.17_PM.png

  6. Click Execute.

    Screen_Shot_2021-09-14_at_2.24.44_PM.png

  7. On the pop-up below, click Continue.
  8. Click the Tables tab, then select Purchase Order Item.

    Screen_Shot_2021-09-14_at_2.27.27_PM.png

  9. Click the Fields tab, then select Tax Jur MASSEKPO-TXJCD.

    Screen_Shot_2021-09-14_at_2.28.05_PM.png

  10. Click Import Data from File, then upload the Excel Spreadsheet that was edited in Step 2.

    Screen_Shot_2021-09-14_at_2.28.37_PM.png

  11. In the pop-up, select With Header Line, then click Execute.

    Screen_Shot_2021-09-14_at_2.30.12_PM.png

  12. Click the diamond icon in the A column.

    Screen_Shot_2021-09-14_at_2.30.05_PM.png

  13. Double-click EBELN - Purchasing Document.

    Screen_Shot_2021-09-14_at_2.31.11_PM.png

  14. Click the diamond icon in the B column. 
  15. Double-click EBELP - Item.
  16. Click the diamond icon in the C column.
  17. Double-click on TXJCD - Tax Jurisdiction.
  18. Click Execute.

    Screen_Shot_2021-09-14_at_2.59.44_PM.png

  19. Click Save.

    Screen_Shot_2021-09-14_at_2.59.50_PM.png

  20. Click the Screen_Shot_2021-09-10_at_11.18.12_AM.png icon to continue.
  21. Check the log to make sure the update was completed.  

    Screen_Shot_2021-09-14_at_3.01.58_PM.png

If an error happens, it may be caused by a problem with the Excel spreadsheet or directly with the purchase order. If it is a problem with the spreadsheet, review step 2. If the problem is with updating the purchase order, consult the SAP knowledge base. 

 

Checking if purchase orders are updated

Method 1: Transaction ME23N

  1. Go to transaction ME23N
  2. Open the document that was updated in the previous step. 
  3. Go to the Item section, and click the Invoice tab. 
  4. You'll see the value of the new jurisdiction code. In this example, before the update the jurisdiction code was 000006019 and now it's 000006055.

    Screen_Shot_2021-09-14_at_3.03.20_PM.png

Method 2: Check the jurisdiction code for open purchase orders

  1. Go to the Cockpit and execute Check Jurisdiction Code for Open Purchase Orders.
  2. To check if the purchase orders are now consistent, follow steps 1-5 from Identifying the right jurisdiction code values, Method 1: Online processing

The Display checked purchase orders option does not make any updates, it just shows you the values of the data from the last time you executed the program with the Check purchase orders option. If you execute the program using the Display checked purchase orders option after the update of the jurisdiction codes, it will still show the old values that needed to be updated. By executing with the Display checked purchase orders option, you will check the current jurisdiction codes that were updated in the previous step.

If all the purchase orders were correctly updated, you will see them showing up with the status as Consistent.

Screen_Shot_2021-09-14_at_3.07.19_PM.png

If you run the program with the Display only inconsistent purchase orders option and no purchase order is displayed, it means all of them were updated to the correct jurisdiction code.