Hızlı Erişim

Arşiv

UNIX Server File System Browse - Command Promt Shell Komutları

REPORT ZUNIX_FILE_BROWSE_COMMAND_PROMPT

DATA UNIXCMD(50) TYPE C.
DATA: BEGIN OF ITAB occurs 0,
LINE(200),
end of ITAB.

PARAMETERS UNIXCOMM LIKE UNIXCMD
DEFAULT ‘ls -ls /usr/sap/’ LOWER CASE.

* Executing the system commands witin ABAP.

call ‘SYSTEM’ id ‘COMMAND’ field UNIXCOMM
id ‘TAB’ field ITAB-*SYS*.

EDITOR-CALL FOR ITAB

[..]Devamını Oku

Ubuntu for sap gui installation

sudo gedit /etc/apt/sources.list
apt-cache search jdk apt-get update
apt-get upgrade ubuntu permission
https://help.ubuntu.com/community/FilePermissions

http://basishowto.blogspot.com/2008/09/installation-and-configuration-of.html

http://forums.sdn.sap.com/thread.jspa?forumID=189&threadID=194324

http://www.linuxfellaz.net/doku.php?id=blog:howtos:ubuntu:sap-gui

http://ubuntuforums.org/archive/index.php/t-232847.html

ftp://ftp.sap.com/pub/sapgui/java/720/

http://forums.sdn.sap.com/thread.jspa?threadID=1605467&tstart=0

java -jar PlatinGUI-Linux-700.jar

http://packages.ubuntu.com/karmic/

http://www.sdn.sap.com/irj/sdn/sap-gui?rid=/library/uuid/409011e2-0ef8-2a10-3b96-cd490895cbdc

Sap System Fields

Name Type Content
sy-abcde c(26) Contains the Latin alphabet. Can be used to access individual letters directly by specifying the offset/length, regardless of the code page.
sy-batch c(1) Set to “X” in an ABAP program that runs in the background, otherwise initial.
sy-binpt c(1) Set to “X” during processing of batch input sessions, and in ABAP programs called using CALL TRANSACTION USING. Otherwise initial.
sy-calld c(1) Contains a blank character in the first program in a call sequence, otherwise contains the value “X”. Is set to “X” after calls using CALL TRANSACTION, CALL DIALOG, or SUBMIT … AND RETURN. Empty if the program was started using LEAVE TO TRANSACTION or a transaction from the screen. A call using SUBMIT (without AND RETURN) assumes the value of the calling program.
sy-callr c(8) When printing lists, contains a value that displays where printing was started – for example, NEW-PAGE for program-controlled printing, or RSDBRUNT for printing from the selection screen.
sy-colno i Current position during creation of a list in the list buffer. Counting begins at 1. In non- Unicode systems, this position also corresponds to the column in the displayed list. In Unicode systems, this is only guaranteed for the lower and upper output limits applicable to each output, as one character may take up more columns in the list than positions in the list buffer.
sy-cpage i Page number of the page displayed at the top of the list for which a list event was triggered. Counting begins at 1.
sy-cprog c(40) In procedures called externally, the name of the calling program, otherwise the name of the current program. If a procedure called externally calls another external procedure, sy-cprog contains the name of the framework program, and is not set to the name of the framework program of the subsequent calling program.
sy-cucol i Horizontal cursor position in the display on a dynpro. Counting begins at column 2.
sy-curow i Vertical cursor position on the screen display of a screen. Counting begins at line 1.
sy-datar c(1) At PAI, contains “X” if at least one input field of a screen has been changed by a user or by further data transfer, otherwise initial.
sy-datlo d Local date of the user – for example, “19990723″. Can be set using GET TIME.
sy-datum d System date (local date of the AS ABAP). Can be set using GET TIME.
sy-dayst c(1) “X” during summertime, otherwise initial.
sy-dbcnt i SQL statements set the content of sy-dbcnt to the number of processed table lines.

[..]Devamını Oku

Abap Excel to Internal Table

TYPES: BEGIN OF t_datatab,
ebeln LIKE ymtil_cons_po-ebeln,
ebelp LIKE ymtil_cons_po-ebelp,
END OF t_datatab.

DATA: it_datatab TYPE STANDARD TABLE OF

[..]Devamını Oku

Internal Table export (convert) to XML file

*———————————————————————-*
* Report ZPRUEBA_MML_13 *
* Export an internal table to XML document *
* NO BORRAR ESTE CODIGO *
*———————————————————————-*
REPORT ZPRUEBA_MML_13.
*———————————————————————-*
* PANTALLA SELECCION *
PARAMETERS: GK_RUTA TYPE RLGRAP-FILENAME.
* PANTALLA SELECCION *
*———————————————————————-*

*———————————————————————-*
* TYPE TURNOS *
TYPES: BEGIN OF TURNOS,
LU LIKE T552A-TPR01,
MA LIKE T552A-TPR01,
MI LIKE T552A-TPR01,
JU LIKE T552A-TPR01,
VI LIKE T552A-TPR01,
SA LIKE T552A-TPR01,
DO LIKE T552A-TPR01,
END OF TURNOS.
* TYPE TURNOS

[..]Devamını Oku

Abap Logo ALV - OAER

For those who wish to upload and use a picture in your ALV abap reports.

Steps for uploading Logo :-:
1. Goto the transaction OAER
2. Enter the class name as ‘PICTURES’
3. Enter the class type as ‘OT’
4. Enter the object key as the name of the logo you wish to give
5. Execute
6. Then in the new screen select Standard doc. types in bottom window
Click on the Screen icon
Now, it will ask for the file path where you have to upload the logo
7. Now you can use this logo in

[..]Devamını Oku

SAP System Administration Transactions - Temel Basis Transaction Komutları

Useful SAP System Administration Transactions

AL01 SAP Alert Monitor
AL02 Database alert monitor
AL03 Operating system alert monitor
AL04 Monitor call distribution
AL05 Monitor current workload
AL06 Performance: Upload/Download
AL07 EarlyWatch Report
AL08 Users Logged On
AL09 Data for database expertise
AL10 Download to Early Watch
AL11 Display SAP Directories
AL12 Display table buffer (Exp. session)
AL13 Display Shared Memory (Expert mode)
AL15 Customize SAPOSCOL destination
AL16 Local Alert Monitor for Operat.Syst.
AL17 Remote Alert Monitor for Operat. Syst.
AL18 Local File System Monitor
AL19 Remote File System Monitor
AL20 EarlyWatch Data Collector List
AL21 ABAP Program analysis
AL22 Dependent objects display
CREF Cross-reference
BD64
BSVW Linkage Status Update-Workflow Event
CMOD

[..]Devamını Oku

Abap Loop - Döngüler

Loop – Dögü

DO [ TIMES] [...].

* … statements …

ENDDO.

WHILE .

* … statements …

ENDWHILE.

LOOP AT …

* … statements …

ENDLOOP.

SELECT …

* … statements

[..]Devamını Oku

Date Structure Örneği

DATA:
diffdays TYPE i,
datestring LIKE sy-datum,
BEGIN OF daterec,
year(4) TYPE c,
month(2) TYPE c,
day(2) TYPE c,
END OF daterec.

daterec = sy-datum.
daterec-day = ‘01′. ” first day of month
datestring =

[..]Devamını Oku

Abap Listbox and itab or table

TYPE-POOLS : vrm.
TABLES:vbak,vbap.
DATA : v(80) TYPE c.

DATA: wa_vbak TYPE vbak,
it_vbak TYPE vbak OCCURS 0 WITH HEADER LINE,
wa_vbap TYPE vbap,
it_vbap TYPE vbap OCCURS 0 WITH HEADER LINE.
DATA: l_name TYPE vrm_id,
li_list TYPE vrm_values ,
v_count TYPE i,
l_value LIKE LINE OF li_list.

PARAMETERS: p_test(20) AS LISTBOX VISIBLE LENGTH 60 MODIF ID DAT.

INITIALIZATION.

AT SELECTION-SCREEN OUTPUT.

PERFORM get_data.

LOOP AT it_vbak.
l_value-key = it_vbak-vbeln .
l_value-text = it_vbak-vbeln .
APPEND l_value TO li_list.
ENDLOOP.

CALL FUNCTION ‘VRM_SET_VALUES’
EXPORTING
id = ‘P_TEST’
values = li_list
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.

AT SELECTION-SCREEN ON P_TEST.
clear : li_list , li_list[].
SELECT vbeln
matnr
meins

FROM vbap

INTO CORRESPONDING FIELDS OF TABLE it_vbap
WHERE vbeln = p_test.

START-OF-SELECTION.
SELECT vbeln
matnr
meins
FROM vbap

INTO CORRESPONDING FIELDS OF TABLE it_vbap

WHERE vbeln = p_test.

LOOP AT it_vbap.

WRITE :/ it_vbap-vbeln, it_vbap-matnr,it_vbap-meins.

ENDLOOP.
*&———————————————————————*
*& Form get_Data
*&———————————————————————*

FORM get_data .
SELECT  vbeln UP TO 100 ROWS
FROM vbak
INTO CORRESPONDING FIELDS OF TABLE it_vbak.
ENDFORM. “ get_Data