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 Eelco » Wed Aug 24, 2005 1:05 am

LCORFF1K line 51

Code: Select all
    IF    NOT L_ACTIVE IS INITIAL.
* Customer-Exit ist aktiv
* Möglichkeit kundenspezifischer Ergänzungen
* ATTENTION: Here it is forbidden to send a dialog (No message,
*            NO call screen..)
*            otherwise it will bite you in the bum
Only sheep and Tuly IdiotsImageneed a leader
Eelco
 
Posts: 1434
Joined: Tue Mar 25, 2003 5:56 am
Location: Melbourne

Postby Eelco » Fri Aug 26, 2005 1:50 am

LCYPP02F2K
Code: Select all
*.. due to faulty fucking delivered customizing, have to get structures
*.. from tcy39_s and put them into tcy38_d. Should not happen, but...
    SORT TCY39_S_LOCAL BY TABNAME.
    DELETE ADJACENT DUPLICATES  FROM TCY39_S_LOCAL COMPARING TABNAME.
    LOOP AT TCY39_S_LOCAL ASSIGNING       <TCY39_S_WA>.
      CLEAR TCY38_D_WA.
      TCY38_D_WA-MANDT               = <TCY39_S_WA>-MANDT.
Only sheep and Tuly IdiotsImageneed a leader
Eelco
 
Posts: 1434
Joined: Tue Mar 25, 2003 5:56 am
Location: Melbourne

Postby Angry God » Wed Nov 23, 2005 5:15 am

Sticky this thread?

CL_ISE_SERVICE================CM00G
Code: Select all
    IF sy-subrc <> 0.
*     EMERGENCY !!!!!!!!!!!!!!! Big trouble !!!


LLATPF0D
Code: Select all
      IF sy-subrc = 2.
*       Now we are in trouble, should not happen
Angry God
 

Postby ilya » Wed Nov 23, 2005 6:35 am

Damns! I've just checked the OSS Note 60233 (see one of replies on the first page of this topic).

They have cleaned it! In both EN and DE ! :evil:

Should we ask moderators to block SAP addresses from sapfans?
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

Postby ilya » Wed Nov 23, 2005 6:38 am

ilya wrote:Damns! I've just checked the OSS Note 60233 (see one of replies on the first page of this topic).

They have cleaned it! In both EN and DE ! :evil:

Should we ask moderators to block SAP addresses from sapfans?


Hah! But I can still select an old version in OSS! :twisted:
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

Postby Snowy » Wed Nov 23, 2005 8:35 am

ilya wrote:
ilya wrote:Damns! I've just checked the OSS Note 60233 (see one of replies on the first page of this topic).

They have cleaned it! In both EN and DE ! :evil:

Should we ask moderators to block SAP addresses from sapfans?


Hah! But I can still select an old version in OSS! :twisted:


yup, version 32 and below.
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

Postby ultravioletu » Thu Dec 22, 2005 9:50 am

ilya wrote:Damns! I've just checked the OSS Note 60233 (see one of replies on the first page of this topic).
They have cleaned it! In both EN and DE ! :evil:
Should we ask moderators to block SAP addresses from sapfans?

I don't think this thread is responsible. The note has been "cleaned" in sept. 2004.
ultravioletu
 
Posts: 122
Joined: Wed Jan 14, 2004 9:19 am
Location: Heidelberg

Postby ilya » Fri Dec 23, 2005 2:53 am

ultravioletu wrote:
ilya wrote:Damns! I've just checked the OSS Note 60233 (see one of replies on the first page of this topic).
They have cleaned it! In both EN and DE ! :evil:
Should we ask moderators to block SAP addresses from sapfans?

I don't think this thread is responsible. The note has been "cleaned" in sept. 2004.

Indeed, I think it very likely is. Look at the posting dates first. Then, I wouldn't see that so easily in OSS if I had to switch to older versions.
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

Postby ilya » Tue Jan 10, 2006 6:34 am

Code: Select all
FUNCTION /SAPAPO/CIF_ORDER_SEND.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     REFERENCE(IS_DOC) TYPE  /SAPAPO/CIFBDOC_IP
*"  TABLES
*"      IT_KEYDEST STRUCTURE  /SAPAPO/CIFKEYDEST
*"----------------------------------------------------------------------
* CG 28.12.99: Syntaxerror !! alles auskommentiert!!
*


The comment says: "Syntax error! All commented out!"

The rest of the function module code is commented out. I do like this way of fixing syntax errors! :D
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

Postby Guest » Tue Jan 10, 2006 6:41 am

[quote="ilya
The comment says: "Syntax error! All commented out!"

The rest of the function module code is commented out. I do like this way of fixing syntax errors! :D[/quote]

It's not restricted to syntax errors.
SAP developers became masters in using this fixing strategy for all kinds of errors.
(One of the SAP standard programs dumps when reading a source code with line length > 72?
Just comment out the functionality - problem solved.)
Guest
 

Postby Tarryn » Tue Jan 10, 2006 7:05 am

Anonymous wrote:(One of the SAP standard programs dumps when reading a source code with line length > 72?


Are you refering to this?

Code: Select all
*     original source
DATA: BEGIN OF T OCCURS 1000,
        LINE(72),
      END OF T.
Try Search
Else SAPNet
Otherwise It was designed not to work.
____________________
Tarryn
 
Posts: 421
Joined: Sat Mar 26, 2005 2:14 pm

Postby Guest » Tue Jan 10, 2006 11:15 am

Tarryn wrote:
Anonymous wrote:(One of the SAP standard programs dumps when reading a source code with line length > 72?


Are you refering to this?

Code: Select all
*     original source
DATA: BEGIN OF T OCCURS 1000,
        LINE(72),
      END OF T.

No, to this
Code: Select all
DATA: SRC(72)                OCCURS 0 WITH HEADER LINE,

this
Code: Select all
DATA: BEGIN OF src OCCURS 0.
        INCLUDE STRUCTURE abapsource.
DATA: END OF src.

and several programs which have been deleted (without being replaced by a similar tool) - another great way to remove bugs.
Guest
 

Postby Guest » Wed Jan 11, 2006 3:43 am

Anonymous wrote:(without being replaced by a similar tool) - another great way to remove bugs.


What release are you on? From 6.20 onwards (I think it started there), there is tcode SCI (SAp code inspector) which can be usefull. You can also get it from sapnet for lower releases. But some programs cannot be analyzed with it (I sometimes wonder why...).

I guess one could massage it a bit using your "comment".

Tarr
Guest
 

Postby q4u » Wed Feb 22, 2006 4:22 am

SU53 > Environment > Display User Puffer
q4u
 

Postby trinity » Wed Feb 22, 2006 9:38 pm

Main Program: /DSD/SL_FSR
Source code of /DSD/SL_FSRSEL_PROCESS
(isnt' this a relatively new module? whilst i was debugging this i found the source code below, am on ECC5, notice the comments after checking sy-subrc)


* final stuff
************************************************************************
************************************************************************
* 1. Check Status of settlement document.
CALL FUNCTION '/DSD/SL_SLD_GENERAL_STATUS_UPD'
EXPORTING
i_fsr_procno = g_procno
it_sld_head = lt_sld_head_lock
EXCEPTIONS
entry_not_found = 1
OTHERS = 99.
IF sy-subrc NE 0.
* PANIC !!!
* If there are *NO* data at this stage, some bullshit
* happened before. Therefore:
* MESSAGE x015 WITH space space space space.
* DSD Endabstimmungslauf: Schwerer Anwendungsfehler.
ROLLBACK WORK.
CALL FUNCTION '/DSD/SL_FSR_BAL_SPL_ENTRY_ADD'
EXPORTING
ip_f_fsr_procno = g_procno
i_msgid = /dsd/sl_cl_const=>message_id_fsr
i_msgty = /dsd/sl_cl_const=>msg_error
i_msgno = '015'
i_msgv1 = 'INCLUDE /DSD/SL_FSRSEL_PROCESS'
i_msgv2 = space
i_msgv3 = space
i_msgv4 = space
i_alsort = space
i_detlevel = /dsd/sl_cl_const=>msg_level2.
*Daten konnten nicht gesichert werden!
PERFORM save_appllog CHANGING lt_appl_log.
COMMIT WORK.
MESSAGE s012.
* DSD Endabstimmung: Es wurden Nachrichten erzeugt.
EXIT.
ENDIF.
trinity
 
Posts: 341
Joined: Sun Dec 01, 2002 7:06 am
Location: sydney, australia

PreviousNext

Return to ABAP

Who is online

Users browsing this forum: No registered users and 5 guests



cron


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