Thanks for the questions. By "session", I mean a run. Each time you run a script, it will connect to SAP and execute all of the rows/documents, and then disconnect. If you are doing this interactively, it's when you open up the SAP GUI and tcode. It will remember what you selected in the pop-up after the first time. And for some tcodes, it will remember where you left off, like BP and XD02 did in ECC. But for this pop-up skip if it doesn't occur, the first row will have the pop-up and all subsequent rows in a script run will not have it. Unless you select the option to renew session for each row. :)
*Precisely Software Inc.
Original Message:
Sent: 06-25-2025 07:52
From: Ed Meiners
Subject: Tip of the Week – Skip screen if not present
hi Sigrid, in Material Classification example you use the words "...because it will only happen for the first material in your session". I so now and then struggle to understand what is meant with "a session" and so where does it start and where does it (a session)? Will try to elaborate on that (in general, not just for classification).
Is each row in a spreadsheet for Studio automation, a session? Does each row starts the transaction? Does the session begin with the first row and ends after the last row?
In BP (which we all love) it is extreme. SAP remembers it not per row but more from your last start of a transaction. It also has personal settings. Although I try to use BAPI's with BP as much as possible, it remains a hassle. That made me start using tcode BP0 which seems to be a bit more starting "always the same".
I never got a clear understanding how the technique works in that sense. Some tcodes you might want to start each row as if it is the first but they don't. Like VD52 Cust Info Rec.
Perhaps you can elaborate a bit on how multiple rows are "given" to SAP?
------------------------------
Ed Meiners
Lead Consultant MDIM
Wessanen Nederland Holding BV
Amsterdam
Original Message:
Sent: 06-23-2025 11:02
From: Sigrid Kok
Subject: Tip of the Week – Skip screen if not present
SAP will sometimes have pop-up screens in Transactions.
They often occur the first time you enter a transaction in any given session, such as a company code pop-up in posting/parking Journal entries, or for the material master classification type pop-up. In the case of journal entries, it can vary based on user settings, as well.
Sometimes pop-up occur when you are in a transaction. One of the most complex includes Sales Orders, as you may have many pop-ups, such as which shipping address do you want to use. You may also get an availability to promise pop-up, and that pop-up can vary based on whether you can ship part of the order or none of it until a later data. As you modify sales orders, some changes can trigger the pop-ups again.
Pop-ups can make it difficult to automate a transaction using any type of automation tool. In Studio, you have the ability to capture those pop-ups and then skip them if they don't occur. As a best practice, developers of Studio automations (aka scripts) should capture as many of the pop-ups that are common and then skip them if they don't occur.
Here are a few examples:
1. Journal Entry company code pop-up – below you see rows 4-7 include the pop-up asking for a company code. Please note you can only see the pop-up screens when you are in Expert view in the mapper, and the screen name often includes Dialog Box in the description, like below:

Click on line 4 with the screen name and in the properties check the option to skip if not present

You can also click on line 4 to the left of the screen name you will see a partial circle with a dot – click it and it will check the skip screen if not present.

As a script developer if you are not seeing the pop-up, go into the transaction and click on Editing options and check the no company proposal

2. Material Classification view class type pop-up, which asks you what type of class you want to add (or update) in your material master. You can either skip it or you can use If First Transaction, because it will only happen for the first material in your session – it will remember it for the second material and beyond.
Here is the skip example

Here is the If First Transaction

3. For sales orders, I highly recommend you use Direct, because there are BAPIs to create and update Sales orders that don't have to deal with varying number of pop-ups. But if you will want to use Transaction with VA01/2, you can skip pop-ups.
This example skips the availability pop-up, and it is using an IF statement. Based on the type of Availability pop-up, we are checking the confirmed quantity and using a different OK code to check the right option in the pop-up. So, this is a skip if not found, but if it's found, find the right action (i.e. ok code) to perform, as it's different. These pop-ups can occur with a lot of actions/field settings in a sales order, so you may need this logic in many places in your script.

( I'll bet that BAPI is looking pretty good right now :) )
For more information on this feature, please check out the documentation here: Skip screen if not present documentation
I'm sure there are many other examples. Where have you had to use skip screen if not present?
Happy scripting!
Sigrid
------------------------------
Sigrid Kok
*Precisely Software Inc.
------------------------------