Hızlı Erişim

Arşiv

Şarkı Dinle

Here is the Music Player. You need to installl flash player to show this cool thing!

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

Abap sayaç - Abap counter

Öernek sayaç yapmak için 3 yöntem kullanılabilir

DATA: COUNTER TYPE I VALUE 0 .
COMPUTE COUNTER = COUNTER + 1.
COUNTER = COUNTER + 1. ” klasik yontem
ADD 1 TO COUNTER. ” Abap add assembly function

WRITE COUNTER .

Ekran çıktısı : 3

[..]Devamını Oku