This website is not affiliated with, sponsored by, or approved by SAP AG.

The benefits of open source. (Serious fun for April 1st).

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Postby ilya » Wed Dec 19, 2007 2:44 am

Found while debugging in SAPMSSYD:

Code: Select all
*///////////////////////////////////////////////////////////////////////
* C A U T I O N:                                                       
*///////////////////////////////////////////////////////////////////////
* If you want to add a specific handler within a main step handler,     
* make sure to follow the following                                     
* G O L D E N  R U L E                                                 
* If you do not know, what a dynpro is:    HANDS OFF                   
* If you do not know, what a main step is: HANDS OFF                   
* To avoid syntax errors in SAPMSSYD, do not call directly:             
* - methods                                                             
* - class methods                                                       
* - function modules                                                   
* - NO(!!!) ABAP OBJECTS in SAPMSSYD !!!!                               

...

* N E V E R  prototype here. You may damage the system seriously.       
* The worst case will lead to a system, where nobody can login.         
* It will be your job, to spend the following night in your office     
* to repair the system.                                                 
*///////////////////////////////////////////////////////////////////////
ilya

More input data: http://abaplog.wordpress.com
Sapfans ABAP FAQ: http://www.sapfans.com/forums/viewtopic.php?t=94198
Rich's ABAP Knowledge Corner: http://www.richard-harper.me.uk/Kb/default.html
Function modules documentation: http://www.se37.com
ilya
 
Posts: 2327
Joined: Thu Oct 31, 2002 4:49 am

MATERIAL_MAINTAIN_DARK

Postby daniel.kuratomi » Thu Jan 24, 2008 2:40 pm

I was told about this one, sometime ago....
FM MATERIAL_MAINTAIN_DARK
IF 1 = 2.
MESSAGE E102(MK) WITH RMMG1-MATNR H1.
MESSAGE E103(MK) WITH RMMG1-MATNR H1.
ENDIF.

:P
ABAP / SAP PP
daniel.kuratomi
 
Posts: 1
Joined: Thu Jan 24, 2008 2:35 pm

Postby aussie fatboy » Thu Jan 24, 2008 8:53 pm

Short description of table T246
'Table documentation'

The table is actually Days in Week.
aussie fatboy
 
Posts: 827
Joined: Sun Oct 20, 2002 11:34 pm
Location: Melbourne, Australia

Re: The benefits of open source. (Serious fun for April 1st).

Postby abap_doctor » Thu Aug 07, 2008 3:50 am

Friday PM SAP ABAPer wrote:This datamodel is not only ugly, it's indiscussable.


indiscussable... :shock: :lol:
The Doc
Tuly Idiot Magna Grand Docot Image
abap_doctor
 
Posts: 6955
Joined: Thu Mar 25, 2004 11:29 am
Location: Airstrip One

Re: The benefits of open source. (Serious fun for April 1st).

Postby Rich » Thu Aug 07, 2008 12:52 pm

abap_doctor wrote:
Friday PM SAP ABAPer wrote:This datamodel is not only ugly, it's indiscussable.


indiscussable... :shock: :lol:


in·dis·cuss·i·ble Audio Help /ˌɪndɪˈskʌsəbəl/ Pronunciation Key - Show Spelled Pronunciation[in-di-skuhs-uh-buhl] Pronunciation Key - Show IPA Pronunciation
–adjective unsuitable for or not subject or open to discussion; not negotiable.

Also, in·dis·cuss·a·ble.


--------------------------------------------------------------------------------

[Origin: 1890–95; in-3 + discussible]
Dictionary.com Unabridged (v 1.1)
Based on the Random House Unabridged Dictionary, © Random House, Inc. 2006.


Must be an Americanism....... :?
Regards

Rich

Image
Abap KC:http://www.richard-harper.me.uk/Kb
SFMDR:http://www.se37.com
Rich
 
Posts: 7112
Joined: Thu Oct 31, 2002 4:47 pm
Location: Liverpool

Re: The benefits of open source. (Serious fun for April 1st).

Postby thx4allthefish » Thu Aug 07, 2008 1:35 pm

i would guess that was an inventive german. there is such a word as 'indiskutabel' in german, maybe a literal translation?
curiousorange wrote:I give up. Humanity isn't worth saving. Why is there never a Vogon Constructor Fleet around when you really need one?
thx4allthefish
 
Posts: 5694
Joined: Sat Oct 26, 2002 6:18 pm
Location: barolo barrel

Re: The benefits of open source. (Serious fun for April 1st).

Postby q4u » Mon Aug 25, 2008 9:46 am

Devine intervention?

LME_TECH_MONU01

CONCATENATE sy-host sy-uname sy-sysid 'JesusChrist..' INTO ls_message-message SEPARATED BY ' '. ls_message-type = 'E'.
q4u
 
Posts: 439
Joined: Wed Mar 08, 2006 7:02 am

Re: The benefits of open source. (Serious fun for April 1st).

Postby sapmanie » Tue Sep 09, 2008 10:40 am

Fm SMSS_MODIFY_CONN

I'll leave it up to your imagination...

RANDY = CL_ABAP_RANDOM=>CREATE( SEED ).
sapmanie
 
Posts: 483
Joined: Fri Jan 23, 2004 10:39 am

Re: The benefits of open source. (Serious fun for April 1st).

Postby grinman » Thu Nov 27, 2008 4:16 pm

RFITEM_INC

Code: Select all
  case sy-repid.
    when c_repid_ar.
      get parameter id 'FIT_X_AR' field charh.
      get parameter id 'FIT_ALV_AR' field pa_vari.
      ld_parid = 'FIT_ALV_AR'.
    when c_repid_ap.
      get parameter id 'FIT_X_AP' field charh.
      get parameter id 'FIT_ALV_AP' field pa_vari.
      ld_parid = 'FIT_ALV_AP'.
    when c_repid_gl.
      get parameter id 'FIT_X_GL' field charh.
      get parameter id 'FIT_ALV_GL' field pa_vari.
      ld_parid = 'FIT_ALV_GL'.
    when others.
*     horror case!
      exit.
  endcase.
grinman
 
Posts: 36
Joined: Tue Aug 05, 2008 10:01 pm

Re: The benefits of open source. (Serious fun for April 1st).

Postby Snowy » Fri Jul 31, 2009 7:58 am

Note 565285 - Incorrect date calculation for deadline regulation LEAS020

Other terms

Deadline regulation LEAS020, date set, payment form BVB, German Soccer Champion BVB09
SapFans Moderator

Search: http://www.sapfans.com/forums/search.php
Notes: http://service.sap.com/notes
Help: http://help.sap.com
Rules: http://www.sapfans.com/forums/viewtopic.php?t=344127
Snowy
 
Posts: 28768
Joined: Mon Oct 21, 2002 2:33 pm
Location: 3.1415926535

Re: The benefits of open source. (Serious fun for April 1st).

Postby Snowy » Fri Jul 31, 2009 8:00 am

also, SAP note 593810, correction instruction:
SWE_EVENT_SET_STATUS

*---- Oh shit, something is wrong !!
SapFans Moderator

Search: http://www.sapfans.com/forums/search.php
Notes: http://service.sap.com/notes
Help: http://help.sap.com
Rules: http://www.sapfans.com/forums/viewtopic.php?t=344127
Snowy
 
Posts: 28768
Joined: Mon Oct 21, 2002 2:33 pm
Location: 3.1415926535

Re: The benefits of open source. (Serious fun for April 1st).

Postby Snowy » Fri Jul 31, 2009 8:03 am

SAP note 617869
correction instruction LSWEQF01

*---- shit happens :=)
SapFans Moderator

Search: http://www.sapfans.com/forums/search.php
Notes: http://service.sap.com/notes
Help: http://help.sap.com
Rules: http://www.sapfans.com/forums/viewtopic.php?t=344127
Snowy
 
Posts: 28768
Joined: Mon Oct 21, 2002 2:33 pm
Location: 3.1415926535

Re: The benefits of open source. (Serious fun for April 1st).

Postby Baz » Wed Aug 12, 2009 1:58 pm

Code: Select all
Summary

Symptom
*
Other terms
*
Reason and Prerequisites

*
Solution

Dear Customer,
We regret to inform you that the function you require is not included in the SAP standard system.


https://service.sap.com/sap/support/notes/11
Note 11 - Requested function not contained in standard system

and the funny thing! it is at version 14 of the note!!! :shock:
Baz

AsPiRiNg tUlY iDiOt Image

http://www.catb.org/~esr/faqs/smart-questions.html

Image

check out my Podcasts http://dj-baz.podomatic.com
Baz
 
Posts: 4736
Joined: Fri Nov 08, 2002 5:54 am
Location: He's out there! somewhere!!!!

Re: The benefits of open source. (Serious fun for April 1st).

Postby PJA » Tue Aug 18, 2009 6:46 am

Clever developers should be aware of some "nasty stuff" in function module HR_READ_INFOTYPE:

Code: Select all
*     Note that this is not equivalent to APPEND LINES.
*     This has an intended side effect on infty_tab.
*     This is questionable but compatible. Clever
*     developers will call HR_READ_SUBTYPE in order
*     to avoid this kind of nasty stuff.

  LOOP AT <work_tab> INTO infty_tab.
    APPEND infty_tab TO infty_tab[].
  ENDLOOP.
PJA
 
Posts: 11383
Joined: Sun Jul 20, 2003 3:11 pm
Location: Deepest darkest Aberdeenshire

Re: The benefits of open source. (Serious fun for April 1st).

Postby sapmanie » Fri Sep 11, 2009 4:54 am

It processed successfully....so raise an error!

CRMPHA_BUPA_FRG10_CREATE

Code: Select all
  CALL METHOD lv_current_memory->load_instance
              EXPORTING is_instance_key = ls_instance_key
              EXCEPTIONS instance_does_not_exist = 1.

* successful, raise an error.
  IF sy-subrc IS INITIAL.
Last edited by thx4allthefish on Fri Sep 11, 2009 6:07 am, edited 1 time in total.
Reason: BBCode on for the 'Code-Tags'
sapmanie
 
Posts: 483
Joined: Fri Jan 23, 2004 10:39 am

PreviousNext

Return to ABAP

Who is online

Users browsing this forum: No registered users and 6 guests





This website is not affiliated with, sponsored by, or approved by SAP AG.