Max Titov IV @ TechSplice

The most beautiful music of all is the music of what happens.
  • Home
  • About

Archive for the ‘SAP/ABAP’ Category

You are currently browsing the archives for the SAP/ABAP category.

4 May 2010

ABAP: check if a function module exists programmatically

If you need to check if a function module within your program try running the following function: RH_FUNCTION_EXIST.

4 May, 2010 at 0:27 by Max

Tags: abap, function, tips
Posted in SAP/ABAP | No Comments »

23 Apr 2010

SAP: WE20 partner set up “Please enter a permitted partner number”

A new inbound IDOC failed to process with a “EDI: Partner profile not available” error.

I’ve attempted to set up a new partner but failed to do so due to the “Please enter a permitted partner number” error when using WE20 transaction and setting up a new LS partner.

A quick debugging session revealed that the program was checking a TBDLS table [Logical Systems].

After this I’ve simply used SPRO transaction to update the:

Spro – IMG – Basis Components – Application Link Enabling (ALE) -  Sending and Receiving Systems – Logical Systems – Define Logical System

Add the new logical system and you will be able to set up the new partner now.

23 April, 2010 at 12:41 by Max

Tags: configuration, partner, sap, spro
Posted in SAP/ABAP | No Comments »

23 Dec 2009

SAP: STMS transport stuck

When coming across a situation where thetransprts are stalling/hanging in the STMS queue there are a few things that you can do:

The fist and most obvious course of action is to contact your Basis support team.

Given that you are reading this article you probably wanted or were forced to figure this one out on your own so here are a few helpful actions that you can take to narrow down the problem:

TP processes:
Go to the SM51 and check if any of the TP processes are still running, you might be required to kill these before proceeding haulted imports.

Check the TP System Log:
You can do this by STMS – Overview – Imports – Select Queue System – Goto – tp system log – F5
This will show you a step by step log of what has occured in the system, you would be able to see which transports are being processed and what has completed.

Check the Import Monitor:
You can do this by STMS – Overview – Imports – Select Queue System – Goto – Import Monitor
This will show you the queue of active transports [if any], if you see that there is a collection of unprocessed imports then you need to flush the queue.

Check TMS background job:
You can also check if the background job RDDIMPDP is running.

From tim to time it happens that the import queue becomes inconsistent and the system stalls, as a result you can be stranded without any of your transports moving ot he next system.

Tables:
TMSTLOCKR: will unlock a given transport from the transport queue [the transport truck will dissapear after deleting of the entry int he table]
TRBAT: will contain values correspondign to active imports, if you have a stuck transport that is haulting a collection of other transports a simple delete from this table will re-initialize the queue and push the backed up imports forward.
TRJOB: should also be cleared in order to continue the regular flow of backe up transports

For any additonal information please refer to the following notes:
818065, 302859, 556941, 556946, 71353, 49242, 323726, 56311, 24800, 486991, 506771, 138200

23 December, 2009 at 8:51 by Max

Tags: configuration, SAP/ABAP, stms, transports
Posted in SAP/ABAP | No Comments »

25 Nov 2009

SAP: deleted users [when/who]?

Actions that are done to a user profile, be that creation, modification or deletion are tracked in a table USH04.

The field PROFS will reflect each of the actions referencing the following characters:

A: add

M: modify

D: delete

Simply enter the user you are interested in and see what has occured over the year.

25 November, 2009 at 13:08 by Max

Tags: administration, configuration, sap, security, user
Posted in SAP/ABAP | No Comments »

19 Nov 2009

SAP GUI: enable/disable input field history on text fields

This is sort of a usless but still somewhat interesting fact: I ran in to a problem where a user wasn’t able to see his history when he entered data in to his sap gui.  It didn’t matter which field it was every time he would re-login he would not see the data he entered just minutes ago.

I did some reasearch and seen a lot of posts about SAPHistory*.mdb file in the SapWorkDir directory. The user’s history was was being generated so the problem was being caused by something else.

Then I came across a post talking about Low Speed Connection [Reduced Network Traffic] setting which can be found by going through your login pad, clicking on the system and displaying the properties window – followed by going to the Network tab.  From what I’ve read it seems that having the setting set to Low Speed Connection could cause the problem of missing input field history.  Even though this seemed promissing after getting the user to try a different machine with the High Speed enabled he was still showing the problem.

The final peace of information that I’ve aquired from the web was a little neat SAP feature: if you get to an input field and hold down your Ctrl button you can right click on your  mouse and get a pop-up window that would allow you to Disable/Enable History functionality.  Typically the field is set to Defaut Settings, so the only thing left to do was to figure out if the user’s default settings were set to Disable History for his SAP system.

to be continued…

PS: another interesting fact that I picked up somewhere: if you scroll up/down using your keyboard in the history field you can delete entries by pushing the delete key.  I know, it’s neat.

19 November, 2009 at 13:43 by Max

Tags: change, configuration, controls, field, gui, sap, setting, setup, text
Posted in SAP/ABAP | No Comments »

29 Oct 2009

SAP: Check the Passwords of Standard Users in All Clients

A quick way to check the status of all the standard users in your SAP system is to run a program RSUSR003.

29 October, 2009 at 12:22 by Max

Tags: basis, program, SAP/ABAP, security, users
Posted in SAP/ABAP | No Comments »

21 Aug 2009

SAP: debugging in pop-up windows

Debugging in SAP is something that I do almost on a daily basis, most of the time I get by just by typing the /h command in the transaction window and executing the program but this is not always possible.

The scenario that I speak of occurs when you are debugging a pop-up window. When you are working with a pop-up window there is no convenient transaction window where you can turn on the debugger. So what do you do?

Simple.

Create a new file; lets call it debugger.txt and populate the contents of the file with the following lines:

[Function]

Title=Debugger Session

Command=/h

Type=SystemCommand

Save the file and leave it on your desktop.

Now when ever you get to a pop-up window that you want to debug simply drag the debugger.txt file in to the window and you will activate the debugging session.

Happy hunting!

21 August, 2009 at 18:38 by Max

Tags: code, debugging, programmer, sap
Posted in SAP/ABAP | No Comments »

4 Aug 2009

SAP – ABAP – gui – hiding selection components

If you want to make your reports more functional you can start controling the properties of different components based on selections that are performed by the user.

For instance in this post I’ll show you a quick example of how to hide a on-screen component based on user selection.

PARAMETER:  cb_a AS CHECKBOX DEFAULT 'X'
            USER-COMMAND batch MODIF ID ida,
            cb_bAS CHECKBOX DEFAULT 'X'
            USER-COMMAND batch MODIF ID idb.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-group1 = 'IDA' AND cb_b NE 'X'.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.

    IF screen-group1 = 'IDB' AND cb_a NE 'X'.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

This example will hide each of the check boxes depending on the selection of the other check-box. If both are selected then both are visible, if one is un-checked then the other is hidden.

The active attribute controls the visibility of a particular screen component. Explicitly: 0 = hidden, 1 = visible.

4 August, 2009 at 13:52 by Max

Tags: abap, code, create, design, development, display, hide, programmer, sap, show, ui
Posted in SAP/ABAP | No Comments »

4 Aug 2009

SAP: transporting program variants

If you have a variant that you want to transport across the system try running program ‘RSTRANSP’.

4 August, 2009 at 8:59 by Max

Tags: program, sap, transports, variant
Posted in SAP/ABAP | No Comments »

4 Aug 2009

SAP: List of tables pertaining to Transport Requests

TABNAME Description
E070 Change & Transport System: Header of Requests/Tasks
E070A Change & Transport System: Attributes of a Request
E070C CTS: Source/Target Client of Requests/Tasks
E070CREATE Change & Transport System: Creation Date of Request
E070CTV Generated Table for View E070CTV
E070DEP Change & Transport System: Dependencies of Requests
E070L CTS: Index for Assigning Numbers to Requests/Tasks
E070M CTS: Target Package/Layer for Requests
E070TC Help Table for E070 for Client-Specific Imports
E070USE Use of Current Requests by Users
E070V Generated Table for View E070V
E071 Change & Transport System: Object Entries of Requests/Tasks
E071C Change & Transport System: Client-Specific Lock Flag
E071E Lang. Transport: Positive List for Generic Object Selection
E071K Change & Transport System: Key Entries of Requests/Tasks
E071KC Change & Transport System: Key Entries of Requests/Tasks
E071KF Change & Transport System: Nametab Info. on (CHAR)Key Fields
E071KFINI Change & Transport System: Nametab Info. on (CHAR)Key Fields
E071K_30 Change & Transport System: Key Entries of Requests/Tasks
E071K_KEY E071K Key Fields
E071S System-Specific Import Status of Objects
E071V Generated Table for View E071V
E07T Change & Transport System: Short Texts for Requests/Tasks
E07T_OLD E07T Before TRKORR Extension

Useful transport tables [listed above].

4 August, 2009 at 8:56 by Max

Tags: configuration, sap, setup, system, tables, transports
Posted in SAP/ABAP | No Comments »

« Older Entries
  • Subscribe using FeedBurner
  • Cloud

    abap adobe animation basic beautiful builder camera code configuration contribution design development digital engineering fix flash Flex friends function images interesting lesson new paypal Photography php problem problems program programmer review sap SAP/ABAP sdk setup soap software solution story system tables transaction transports user video

    WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.

  • My Links

    • Cooking
    • Gallery
    • Resume
  • Online Tools

    • Airline Ticket Search
    • Estimate Shipping Cost [from US]
    • Link your Blog
  • Software Engineering Blogs

    • Adam Goucher
    • Joel on Software
    • The Third Bit
    • Wide Awake Developers
  • Categories

    • Everyday stuff
    • Flex
    • Photography
    • SAP/ABAP
    • Short Stories
    • Software Engineering
    • Web Development
  • Gallery

    Roy Tanck's Flickr Widget requires Flash Player 9 or better.

Max Titov IV @ TechSplice is proudly powered by WordPress
Design & code by Jonk
Entries (RSS) and Comments (RSS).
Podcast Powered by podPress (v8.8)