Skip to content

Posts from the ‘3. LE’ Category

22
Feb
SAP Tricks

Execute a Function Module without using SE37

A number of companies restrict the execution of function modules in quality, pre-prod and prod environments, for good reason. Therefore you may find you do not have access to the transaction code SE37.  Generally experienced developers may however have access to SE38.

So how do you execute or test a function module in a system/client but wish to get around the authorization issue? Simply use SE38 with program RSFUNCTIONBUILDER.

TIP – You can sometimes use the same technique by using SE93 with the problem transaction and using the program name however do not expect to be able to bypass all authorizations.

28
Jun
SAP Tricks

Creating deliveries by Background Job

Here are a few tips on creating outbound delivery documents via a background job:

1)       The Easy Access menu path:

  1. SAP menuàLogisticsàLogistics ExecutionàOutbound ProcessàGoods Issue for Outbound DeliveryàOutbound DeliveryàCreateàCollective Processing of Documents Due for Deliveryà
  2. VL10 – User-Specific Delivery Scenario
  3. VL10A – Sales Orders
  4. VL10C – Sales Order Items
  5. VL10E – Sales Order Schedule Lines
  6. VL10B – Purchase Orders
  7. VL10D – Purchase Order Items
  8. VL10F – Purchase Order Item Schedule Line
  9. VL10G – Sales Orders and Purchase Orders
  10. VL10H – Sales Orders and Purchase Orders (Items)
  11. VL10I – Sales Orders and Purchase Orders (Schedule Lines)
  12. VL10U – Cross-System Deliveries
  13. VL10BATCH – Plan Background Processing

2)       One can simply execute a transaction code as above and then fill the values of the selection screen and tabs, after which one may SAVE the variant.

3)       Transaction VL10BATCH is useful to show all variants. One can also use this transaction to select a variant and execute the job immediately or schedule the job.

4)       Alternatively one may use the batch Job Wizard (I am not going to share on how to use the job wizard as this is pretty basic via transaction code SM36.) to create a background job and schedule it. Use your created variant with program RVV50R10C.

 

Some Tips:

A)      It makes sense to create an express shipping point for which you can schedule a delivery creation background job in a much faster schedule to the normal delivery creation schedule.

B)      Be careful to schedule your jobs with care. For example you want your delivery creation job to be completed before you process any picking jobs and shipment related jobs. (Likewise you want your billing jobs to run after your shipment related jobs are completed.)

C)      It is not uncommon for the delivery creation jobs to hold sales docs and or materials in a shared or exclusive lock. This is not a problem. It just means you have to wait for the locks to be released, which in most instances should be split seconds. But knowing this happens your target should be to have more delivery due list jobs running with smaller run times than a single huge list which could lock itself at times.

D)      In the “User Role” Tab is a setting for Delivery Profile which has a field called “Repeat Blocked” This will set how many times the system will try access a document which is blocked.

E)      You can also enter a default delivery scenario and a default list profile for each user, that is called up from the menu or via transaction VL10. Set the user parameters LE_VL10_SZENARIO and LE_VL10_PROFIL. (You can see the values for the scenario on the “User Role” Tab.)

 

27
Jun
SAP Tricks

Functional Domain Tables

Here are a list of tables which you may find useful related to their domain.

Read more »

26
Apr
SAP Tricks

SM12 – Lock Entries Tips

If you check SM12 you may find some lock entries – this is not a problem. Locked entries are required in standard SAP processing. In most instances the entry will remain in SM12 for a few seconds milliseconds, however they could remain in SM12 for a lot longer depending on the logical unit of work.

Factors which can impact the entry in SM12:

  • Sizing and performance of the enqueue server.
  • Sizing and performance of the application server/number of available processing sessions. (indirectly related)
  • Program logic being executed on the application server.

What you may not know is that there is a hidden menu path for SM12 analysis. To activate this menu path you can do the following:

Run SM12, then enter OK code “test”. You will now see the top menu path has included a new Menu Option labelled “Error Handling”.

This menu option has many parameters and test functions which you can use to analyse the enqueue and dequeue processes.

If you require advice on how to use this new functionality you can refer to OSS note 5424 which is the SM12 FAQ! Success!

14
Apr
SAPTricks

Work Faster in the IMG – Restrict Selections

It is possible you may be in a configuration screen which either has too many entries from which you wish to select to analyse, or you may need to select specific entries based upon values  which are not part of the key of the table/configuration screen.

You could navigate to the table and do checks in SE16N or SQVI etc. Or…… the next time you are in a configuration node of the IMG, try the following tip:………

Select the following from the Top Menu Navigation Bar: Selection–>By Contents

Then select the Fields you require to filter the configuration entries.

 

23
Dec
SAP Tricks

Command Line “OK-Codes”

Direct call of transactions, session handling:
/nxxxx

  • This terminates the current transaction, and call transaction “xxxx”, for example, “sa38″ for reporting.

/n

  • This terminates the transaction. This generally corresponds to going back with F15.

/nend

  • This terminates all separate sessions and logs off (corresponds to “System -> Log off”).

/nex

  • This terminates all separate sessions and logs off immediately (without any warning).

/oxxxx

  • This opens a new session and starts transaction xxxx in this session.

/o

  • This lists existing sessions and allows deletion or opening of a new session.

/i

  • This terminates the current session (corresponds to “System -> End session”).

/i1  ,  /i2  ,…

  • This terminates the session with the specified number.

.xyzw

  • “Fast path”: “xyzw” refers to the underlined letters in the menus. This type of navigation is uncommon and is provided more for emergencies (such as a defective mouse).

Background input:

The following commands can be entered in correction mode (“Process in foreground” or “Display errors only”) when processing a background input session: Read more »

3
May
SAP Tricks

User exits in Sales Document Processing

User Exits In Sales Document Processing Read more »

5
Apr
SAP Tricks

User Exits in Delivery Processing

Here are the user exits in Delivery Processing: Read more »

15
Dec
SAP Tricks

Change warning message to error in Shipping

Tip – Did you know that you can change a warning or information message for example shipping, to error or visa versa in transaction OVM1.