Sa dernière mise à jour date de début 2007. (dernière? dernière...) [Petites mises-à-jour en cours, plutôt sur la forme/update 2008]
Je l'ai d'abord conçu pour me servir de fourre-tout. Il recense donc les meilleurs trucs dont j'ai connaissance sur SAP/ABAP, et mes meilleures créations (paragraphe: programmes qui déchirent), plus quelques trucs portés à ma connaissance par le destin...
Venant du monde Oracle, j'ai longuement cherché un "équivalent" à TOAD sous SAP. Sans succès...
Je me suis résigné à accepter un programme qui permettrait de visualiser le résultat d'une reqûete "compliquée" (pour un développeur SAP <=> avec plus d'une table [no comment]).
Au départ je voulais simplement faire marcher le programme suivant... Sans succès... SQL Tool for ABAP Yes4SQL -- Both Native & Open SQL Le programme utilise probablement des instructions propres à SAP 4.7..., mais même en les remplaçant, ça marchait toujours pô à cause d'un problème de DYNPRO. De plus il gère les cas "Open SQL" et "Native SQL" ce qui embrouille le code)
Je remercie quand même l'auteur: Jayanta Narayan Choudhuri http://www.geocities.com/ojnc
J'en ai donc reprise les bonnes idées, assaisonnées à la sauce 4.6C:
select vbak~ernam vbak~vbeln from vbak inner join vbap on vbak~vbeln = vbap~vbeln where vbak~ernam = 'SOP.FERRY' group by vbak~ernam vbak~vbeln having count( * ) > 5
Ce développement permet l'insertion de données au format CSV dans une table SAP.
Le truc sympa est que le développement n'utilise pas un octet de trop, grâce à l'instruction "create data".
Et puis les "create data" ça rappelle les bons souvenirs de (m)alloc en C.
Télécharger le programme: csv_2_bdd.abap (update SAP table from csv)
En résumé:
taper se16n dans le champ pour les commandes
C'était un dommage collatéral de la formation performance...
Version allemande (source in-re-trouvable):Es ist möglich auch ohne, dass das entsprechende Tabellen-Pflege-Flag gesetzt ist, Datensätze in der SE16 bzw. SE16N zu manipulieren.In der SE16N bitte folgendermaßen vorgehen:
- SE16N -> Tabellenname eingeben und mit Enter bestätigen
- Im Kommandofeld -> &sap_edit
- Jetzt die Selektion eingeben, die angezeigten Datensätze lassen sich im Grid ändern und speichern
Hier die Anleitung für die alte SE16:
Für beide Aktionen benötigt man ein Debug-Berechtigung.
- se16, Tabelle auswählen, F8
- Datensätze entsprechend einschränken, F8
- Datensatz seletkieren (ankreuzen)
- auf die Lupe klicken
- /h -> Debugger anschalten
- 2 mal Enter
- in den Felder unten das Feld CODE von SHOW ind EDIT ändern
- F8
Falls Die Transaktion SE16N gesperrt ist, kann auch der Report RK_SE16N in der SE38 gestartet werden.
Im Fall der SE16N werden die Änderungen in den Tabellen SE16N_CD_DATA und SE16N_CD_KEY weggeschrieben.
Achtung !!! Sehr gefährlich, wenn man die falchen Daten aus Versehen ändert.
Je pense qu'elle est OK pour les INSERT, UPDATE, DELETE mais pas les SELECT.
ATTENTION: il y a un COMMIT automatique!!!
ATTENTION la gestion du mandant doit être explicite !!!
call 'C_DB_EXECUTE' id 'STATLEN' field ln id 'STATTXT' field stmt id 'SQLERR' field sql_code id 'ERRTXT' field sql_msg id 'ROWNUM' field row_num.
Encore plus fort que le debug en se16, et la se16n avec &sap_edit!!!
C'est totalement pas testé par moi, et totalement sans garantie.
Trop fort
If you have an SAP system installed at your home and want to test out ABAP programs, this tip will help. It will show you how to modify a program without ABAP access key.
Follow the guide below on how to bypass the access key request dialog, then enjoy the freedom of create, modify any program (including standard program).
Et tant qu'à faire (avec une excuse hyper bidon) [update 2008]: How to Modify the code in Quality or Production Systems?
Imagine, you are doing a unit test for a object in QA, suddenly a test case fails and oh! come one you have to change this one line again in development and move it to Quality to test. That will take definetly at least 5 minutes to 30 minutes, depending on how your system is configured. How about changing the code directly in quality and continuing the testing. One little suggestion before we proceed with the tutorial, always use this trick only in quality and not in production or it may create chaos. I work on 4.6c and have not used this trick in all the other sap versions. Please try it and let me know your comments.Évidemment, il vaut mieux chercher un boulot en dehors du monde SAP après ce genre d'exploit...
Cette transaction modifie le menu inférieur, avec toutes les transaction sympathiques pour le développement.
Un peu comme wedi pour les IDOCS.
Trop de la balle, dans peu de temps, on verra les générateurs de code pour ZV22, ZM12 etc...
All the SAP Online Help in PDFs - Very Easy to Find - A Really Good Tutorial ...
SAP Online Help (which is not in PDF files) can be printed only relatively complex and be found even sometimes as well. Therefore these PDFs are very helpful and they are a very good tutorial for users.
These PDFs cover nearly all topics of the 4.6C SAP Online Help, ordered in chapters and sorted alphabetical. They make the entrance to new topics you are not familiar with a lot easier.
Have fun with the following links as tutorial ...
"/////////////////////////////////////////////////////////////////////////// "/////////////////////////////////////////////////////////////////////////// "// _____ _____ _____ _ // "// / ____| /\ | __ \ / ____|| | // "// | (___ / \ | |__) | | | | |__ ___ ___ ___ // "// \___ \ / /\ \ | ___/ | | | '_ \ / _ \/ __|/ __| // "// ____) |/ ____ \ | | | |____ | | | || __/\__ \\__ \ // "// |_____//_/ \_\|_| \_____||_| |_| \___||___/|___/ // "// // ...