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.

20 Dec 2011

SAP: IDES ECC6 [EHP5] – disable devaccess check

The proper solution is to register for a Developer access key from SAP, but in cases when you can’t do that there’s always a work-around.

I’ve set up a personal IDES system on my home computer and ran in to this problem.  Debugging the code I’ve identified that the function that performs the checks is DEVELOPER_KEY_CHECK.

The FM is very small, looks like this:

  CALL ’CHECK_DEVELOPER_KEY’ ID ’KEY’    FIELD DEVELOPKEY.
CASE SY-SUBRC.
WHEN 1.
RAISE PARAMETERS_WRONG.
WHEN 2.
RAISE WRONG_KEY.
ENDCASE.

The hack/crack is to change the code to overwrite the OS command that returns 1 or 2.

Modification of the source SAP code is also tricky, you need to log in using user SAP, go to the FM DEVELOPER_KEY_CHECK – click change, using the debugger make sure the change can be allowed [update the sy-subrc to 0 when applicable] and add something like COMMIT WORK statement after the OS call which will overwrite the SY-SUBRC value to 0.

20 December, 2011 at 11:56 by maxtmax

Posted in SAP/ABAP | Comments Off

8 Sep 2011

SAP: ALV grid Field Catalog [ref_table] SAPLSKBH & [source code of program " "] error

I’ve came across a strange error that occurred while building an SAP ALV grid.  After calling the create_dynamic_table method of the CL_ALV_TABLE_CREATE object the program throws a hard error complaining about a blank program call in SAPLSKBH .

After spending some time debugging I’ve identified that based on custom reference table parameters the  source 4.6C SAP code attempts to generate a dynamic program using a GENERATE REPORT prog call.  When the attempt fails instead of returning a corresponding error message the algorithm throws an error about a blank program pointer that failed to be created.

Here’s the problematic code – while debugging examining the l_message parameter will identify the true cause of the failure.

  catch system-exceptions generate_subpool_dir_full = 9.
    generate subroutine pool lt_source name l_name
             message l_message line l_line word l_word.
  endcatch.
  case sy-subrc.
    when 0.
    when 9.
      raise generate_subpool_dir_full.
    when others.
      message x000(0k) with l_message l_line l_word.
  endcase.
8 September, 2011 at 9:08 by maxtmax

Posted in SAP/ABAP | Comments Off

30 Aug 2011

SAP: EDI: Conversion of External Tax Rate

T076M is a standard SAP table available within R/3 SAP systems depending on your version and release level. Below is the standard documentation available for this table and a few details of the fields which make up this table.

Transaction: OBCD can be used to maintain the contents.

30 August, 2011 at 9:57 by maxtmax

Posted in SAP/ABAP | Comments Off

13 Jul 2011

SAP: Configuring a Trust Relationship for SAP Assertion Tickets

Some useful reading material about configuring trust relationships between different SAP instances.

http://help.sap.com/saphelp_nwpi71/helpdata/en/45/341a2176b74002e10000000a155369/content.htm

13 July, 2011 at 8:35 by maxtmax

Tags: configuration, sap
Posted in SAP/ABAP | Comments Off

6 Jul 2011

SAP: Payment Run: err – “overlap with payment run” – DB fix

I faced a problem while automating a payment run process, the log from the run spit out the following error message:

”

Log for payment run for payment on [Date], identification [PR#]
Overlap with payment run [Date] [PR#A]
... the execution of the payment program is terminated

”

Some online digging has resulted in an identification of two different tables:

T042X: Company Codes Blocked by the Payment Program – this table contained an entry for the company code with which I was working.

REGUV: Control records for the payment program – this table contained records for each of the payment runs and specifically tracks the status of each in the field XECHT.  The failed records that I’ve encountered has a value S where a blank would identify that a production run has not been carried out yet.

Fixing these two tables will set the runs in to the original state.

6 July, 2011 at 11:27 by maxtmax

Tags: payment run, SAP/ABAP
Posted in SAP/ABAP | Comments Off

27 Jan 2011

SAP: prompt user for a job-name when scheduling program in the background using SE38

When you want to execute a standard program and run it in the background typically SAP will name the job with the same identification as the program name.

To compensate for this behaviour you can implement a badi [JOB_NAME_SELF] .  Import parameters will include program name and export parameters will contain jobname.

To make the process more flexible you can enhance the functionality by prompting the user to populate the actual program name, here’s how you can accomplish that:

call function ‘POPUP_TO_GET_VALUE’
exporting
fieldname           = ‘JOBNAME’
tabname             = ‘RSJOBINFO’
titel               = ‘Enter the job name’
valuein             = program
importing
valueout            = jobname
exceptions
fieldname_not_found = 1
others              = 2.
27 January, 2011 at 12:04 by maxtmax

Tags: SAP/ABAP
Posted in SAP/ABAP | No Comments »

23 Jan 2011

SAP: substitution rule exclude fields

Changing a value in a substitution rule might be perhibited based on the configurations in the GB01 table.

23 January, 2011 at 21:43 by maxtmax

Tags: SAP/ABAP
Posted in SAP/ABAP | No Comments »

21 Jan 2011

SAP: ABAP: Subroutine does not exist – bug

Scenario: you’re editing your code and when you try to double click on a previously defined subroutine you get a popup stating that it doesn’t exist. You check and confirm that the subroutine is included, the report compiles and runs properly.

Resolution: to fix the problem do the following steps:

  1. Click Utilities
  2. Click Update Navigation Index

The report will be regenerated and your problem should be solved.

21 January, 2011 at 15:18 by maxtmax

Tags: abap, bugs, programming, sap
Posted in SAP/ABAP | No Comments »

28 Dec 2010

SAP: the basics of smart forms

TR: SMARTFORMS – sap form builder – create and edit a smart form object

TR: SE63 – translate objects – can be used to translate smart form data to a different language

28 December, 2010 at 18:00 by maxtmax

Posted in SAP/ABAP | No Comments »

27 Dec 2010

SAP: transport SO10 text data

To transport text data follow these steps:

  1. Execute program RSTXTRAN
  2. Provide Text key and language
  3. Select desired text elements
  4. Click continue button [green checkbox]
  5. Click “Trsfr texts to corr.” button
  6. Create a new transport object and continue
27 December, 2010 at 22:59 by maxtmax

Posted in SAP/ABAP | No Comments »

« Older Entries
  • Subscribe using FeedBurner
  • Cloud Data

    abap adobe animation basic beautiful builder camera code configuration contribution design development digital engineering fix flash Flex function images interesting lesson new paypal Photography php problem problems program programmer programming 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).