Saturday, 18 October 2025

P2P Cycle

What is the P2P Process in SAP ?

The P2P cycle is the process of acquiring goods or services from external vendors, receiving them, verifying them and processing vendor payments. It integrates MM and FI modules.

- P2P is the process of procuring goods/services and making payments to vendors. It starts with a purchase requisition and ends with payment settlement. It includes steps like PR, PO, GR, IR and Payment.

The P2P cycle in SAP MM means the complete process from purchasing goods or services to paying the vendor. It connects departments like Purchase, Store, Accounts, and Vendor Management.

Steps:-


1️⃣ Purchase Requisition (PR)
This is the very first step — an internal request raised by a user department to buy material or service.


👉 T-code: ME51N (Create), ME52N (Change), ME53N (Display)
The PR tells what material is needed, in what quantity, and when.


2️⃣ Request for Quotation (RFQ)
After PR approval, the purchasing team sends an RFQ to different vendors to get their prices and terms.


👉T-code: ME41 (Create RFQ), ME47 (Maintain Quotation), ME49 (Compare Price).This step helps select the most suitable vendor.


3️⃣ Purchase Order (PO)
Once the vendor is finalized, a Purchase Order is created and sent to the vendor as a legal contract.


👉T-code: ME21N (Create), ME22N (Change), ME23N (Display)
It defines price, quantity, delivery date, and payment terms.


4️⃣ Goods Receipt (GR)
When the vendor delivers the material, the store or warehouse team records a Goods Receipt.


👉 T-code: MIGO
This updates the stock in the system and creates a material document for reference.


5️⃣ Invoice Verification (MIRO)
After goods are received, the vendor sends an invoice. The invoice is verified in SAP to ensure quantity and price match the PO and GR.


👉T-code: MIRO. Once verified, the invoice becomes ready for payment.


6️⃣ Vendor Payment (FI Integration)
Finally, the finance department makes the payment to the vendor.


👉T-code: F-53 (Manual Payment) or F110 (Automatic Payment Run)
This completes the P2P process.

What are Key Steps  in P2P cycle ?

Purchase requisition (Optional) - ME51N

Purchase order Creation - ME21N (Manage Purchase Orders)

Goods Receipt - MIGO (Post Goods Receipt)

Invoice Receipt - MIRO(Create Supplier Invoice)

Payment to Vendor - F110 (App. Manage Automatic Payment)

What is the accounting entry at the time of goods receipt in SAP S/4HANA ?

Dr Inventory A/C

Cr GR/IR Clearing A/C

Note - No Vendor accounting entry is posted at this stage. 

What are the common T-codes used in P2P ?

ME21N - Create Purchase Order

MIGO - Goods Receipt 

MIRO - Invoice Receipt

F110 - Automatic Payment Run 

F-53 - Manual Payment

How is GST handled in the P2P cycle in india ?

GST is configured using tax procedures (TAXINN). During  Invoice posting (MIRO), input GST is automatically calculated based on tax codes. 

How is invoice verification nandled in sap ?

Invoice verification is done using MIRO. The s system matcheds the PO, GR, and invoice to ensure accuracy (3-way match). This step posts accounting entries and updates vendor balances.

What master data is involved in P2P ?

-- Vendor Master (FI & MM views)

--- Material Master 

--- Purchasing info records

-- Tax codes

-- G/L accounts (Inventory, GR/IR, Vendor Record)

How do you configure the Automatic Payment Program (APP) ?

Use T-code F110, stpes include:

- Configuration in FBZP

- Assign company code, payment method, bank details

- Maintain parameters, proposal run and execute payment.

What are the integration points between FI and MM in P2P ?

- GR/IR account (BS)

- Inventory postings

- Tax accounting

- Vendor reconciliation account

How does S/4HANA simplify the P2P process ?

S/4HANA removes redundant tables (e.g.BSEG, BKPF simplified) provides Fiori apps for real time analytics and embeds machine learning for invoice matching and fraud detection.

What are blocking reasons during invoice verification ?

- Quantity variance'

- Price variance

- Missing GR

- Duplicate invoice

- Mismatch in PO/GR/IR

What is the use of fiori in the P2P process ?

Fiori apps like "Manage Purchase Orders", "Post goods receipt" and "Manage Supplier Invoices" allow users to perform tasks easily with better UI and analytics.

Explain the role of payment terms in vendor master ?

Payment terms define due date calculation and cash discounts. It controls the aging and payments behavior of vendor invoice.

How is withholding Tax(TDS) handled in P2P ?

TDS is configured in vendor master. At MIRO or F-43/F-02, SAP automatically calculates and posts TDS to the correct to the G/L account. 


ME51N - Create Purchase Requisition

ME54N - Approve Purchase Requisition

ME21N - Create Purchase Order

ME28 - Approve Purchase Order

MIGO - Post Goods Receipt

MIRO - Post Invoice

FBL1N - Display Vendor Line Item

F-44 - Clear Vendor Account 

F-53 - Manual Payment Processing

F110 - Automatic Payment Run

Saturday, 13 September 2025

Tosca with Jenkins Integration.

Integrating Jenkins with Tricentis Tosca is a practical step for teams looking to bring more automation testing and consistency into their CI/CD pipelines. This setup allows you to execute Tosca test cases automatically from Jenkins, helping ensure smoother, more reliable test cycles with less manual intervention. below are the steps for setting up the Tosca Jenkins Integration using the Tricentis CI Plugin and ToscaCIClient.

Prerequisites for integration:

To connect Jenkins with Tricentis Tosca successfully, organizations need to have certain tools and conditions ready. First, you must have the Jenkins plugin for Tricentis Tosca. This plugin helps link the automation features of both systems. Make sure the plugin works well with your version of Jenkins because updates might change how it performs.

Next, it is important to have a set up Tricentis test automation environment. This is necessary for running functional and regression tests correctly within the pipeline. Check that the Tosca Execution Client is installed and matches your CI requirements. For the best results, your Tosca Server should also be current and operational.

Finally, prepare your GitHub repository for configuration. This allows Jenkins to access the code, run test cases, and share results smoothly. With these steps completed, organizations can build effective workflows that improve testing results and development efforts.

Step-by-step guide to configuring Tosca in Jenkins

Achieving the integration requires systematic configuration of Tosca within Jenkins. Below is a simple guide:

Step 1: Install Jenkins Plugin – Tricentis Continuous Integration

1. Go to Jenkins Dashboard → Manage Jenkins → Manage Plugins.

2. Search for Tricentis Continuous Integration in the Available tab.

Tosca Jenkins Integration Install Jenkins Plugin

3. Install the plugin and restart Jenkins if prompted.

Step 2: Configure Jenkins Job with Tricentis Continuous Integration

Once you’ve installed the plugin, follow these steps to add it to your Jenkins job:

  • Go to your Jenkins job or create a new Freestyle project.
  • Click on Configure.
  • Scroll to Build Steps section.
  • Click Add build step → Select Tricentis Continuous Integration from the dropdown.

Configure Jenkins Job with Tricentis Continuous Integration

Configure the Plugin Parameters

Once the plugin is installed, configure the Build Step in your Jenkins job using the following fields:

S. NoField NamePipeline PropertyRequiredDescription
1Tricentis client pathtricentisClientPathYesPath to ToscaCIClient.exe or ToscaCIJavaClient.jar.
If using .jar, make sure JRE 1.7+ is installed and JAVA_HOME is set on Jenkins agent.
2EndpointendpointYesWebservice URL that triggers execution.
Remote: http://servername:8732/TOSCARemoteExecutionService/
DEX: http://servername:8732/DistributionServerService/ManagerService.svc
3TestEventstestEventsOptionalOnly for Distributed Execution. Enter TestEvents (names or system IDs) separated by semicolons.
Leave the Configuration File empty if using this.
4Configuration fileconfigurationFilePathOptionalPath to a .xml test configuration file (for detailed execution setup).
Leave TestEvents empty if using this.

Step 3: Create a Tosca Agent (Tosca Server)

Create an Agent (from Tosca Server)

You can open the DEX Monitor in one of the following ways:

  • In your browser, by entering the address http://:/Monitor/.
    Directly from Tosca Commander.
  • To do so, right-click a TestEvent and select one of the following context menu entries:
    Open Event View takes you to the TestEvents overview page.
    Open Agent View takes you to the Agents overview page.

Navigate the DEX Monitor

The menu bar on the left side of the screen allows you to switch between views:

  • The Agent View, where you can monitor, recover, configure, and restart your Agents.
  • The Event View, where you can monitor and cancel the execution of your TestEvents.

Enter:

  • Agent Name (e.g., Agent2)
  • Assign a Machine Name

This agent will be responsible for running your test event.

Tosca Jenkins Integration

Step 4: Create and Configure a TestEvent (Tosca Commander)

  • Open Tosca Commander
  • Navigate to: Project > Execution > TestEvents
  • Click Create TestEvent
  • Provide a name like Sample
  • Step 4.1: Assign Required ExecutionList
    • Select the ExecutionList (this is where you define which test cases will run)
    • Select an Execution Configuration
    • Assign the Agent created in Step 3
  • Step 4.2: Save and Copy Node Path
    • Save the TestEvent

      Tosca Jenkins Integration

    • TestEvent → Copy Node Path

      TestEvent → Copy Node Path

    • Paste this into the TestEvents field in Jenkins build step

      Paste this into the TestEvents field in Jenkins build step

Step 5: How the Integration Works

Execution Flow:

  • Jenkins triggers test execution using ToscaCIClient.
  • The request reaches the Tosca Distribution Server (ManagerService).
  • Tosca Server coordinates with AOS to retrieve test data from the Common Repository.
  • The execution task is distributed to a DEX Agent.
  • DEX Agent runs the test cases and sends the results back.
  • Jenkins build is updated with the execution status (Success/Failure).

Tosca Jenkins Integration

Step 6: Triggering Execution via Jenkins

Once you’ve entered all required fields:

  • Save the Jenkins job
  • Click Build Now in Jenkins

What Happens Next:

  • The configured DEX Agent will be triggered.
  • You’ll see a progress bar and test status directly in the DEX Monitor.

    Triggering Execution via Jenkins

  • Upon completion, the Jenkins build status (Pass or failure) reflects the outcome of the test execution.

    Tosca Jenkins Integration

Step 7: View Test Reports in Jenkins

To visualize test results:

  • Go to Manage Jenkins > Manage Plugins > Available
  • Search and install Test Results Analyzer
  • Once installed, configure Jenkins to collect results (e.g., via JUnit or custom publisher if using Tosca XML outputs)
Notes: 

Why should I integrate Tosca with Jenkins?

Integrating Tosca with Jenkins enables continuous testing, reduces manual effort, and ensures faster, more reliable software delivery.


Can I use Tosca Distributed Execution (DEX) with Jenkins?


Yes, Jenkins supports both Remote Execution and Distributed Execution (DEX) using the ToscaCIClient.


Do I need to install a plugin for Tosca Jenkins Integration?


Yes, you need to install the Tricentis Continuous Integration plugin from the Jenkins Plugin Manager to enable integration.


What types of test cases can be executed via Jenkins?


You can execute any automated Tosca test cases, including UI, API, and end-to-end tests, configured in Tosca Commander.


Is Tosca Jenkins Integration suitable for Agile and DevOps teams?


Absolutely. This integration supports Agile and DevOps practices by enabling faster feedback and automated testing in every build cycle.


How do I view Tosca test results in Jenkins?


Install the Test Results Analyzer plugin or configure Jenkins to read Tosca’s test output via JUnit or a custom result publisher.

Saturday, 6 September 2025

What is an AI Co-Pilot?

An AI Co-Pilot is an artificial intelligence assistant designed to help users perform tasks more efficiently by providing contextual suggestions, automating repetitive actions, and enhancing productivity within existing workflows. It typically works alongside users, offering real-time support without taking independent action.

However, more recently, AI Agents or Agentic AI have arrived as the new kid on the block who seems to be drawing all the limelight (and for good reason!).

What is Agentic AI?  

Agentic AI refers to autonomous AI systems capable of not only assisting users but also acting independently to complete multi-step goals without constant human intervention. These systems leverage advanced automation, conversational interfaces, and decision-making capabilities to deliver end-to-end task execution.

Tosca is evolving with AI!

Tricentis has introduced Agentic AI into Tosca, taking automation to the next level.

While Tosca Copilot acts as an assistive AI—helping with queries, test summaries, and troubleshooting—Agentic AI goes further by autonomously creating, adapting, and executing tests from natural language.

Key Highlights:

Copilot = Assistive AI → boosts usability & guidance

Agentic AI = Autonomous AI → drives end-to-end test automation

Reported 85% faster test creation & 60% productivity gains

This marks a big shift in how QA teams can leverage AI to accelerate testing and improve software delivery.