We can help. Together we learn....

SLD configuration

by vinaysingh | Monday, August 24, 2009 in | comments (1)

SLD configurations

Step 1 :

(a) Go to \usr\sap\\JC\j2ee\admin and run go. bat [in AS JAVA]

and :\usr\sap\\DV*\j2ee\admin and run go.bat [In ABAP+JAVA]

(b) Go to Instance-->Server-->Services-->SLD Data Supplier-->HTTP Settings

(c) Enter the details of Local SLD as per the screen shot given below



(d) Trigger the Data Supply by click on the blue color arrow at the top



Step 2:

(a) Go to \usr\sap\\JC\j2ee\admin and run go. bat
(b)Go to Instance--> Server-->Services-->SLD Data Supplier-->CIM Client Generation Settings tab
(c) Enter the details of SLDMain as per the screen shot given below




(e) Save the Settings and Trigger the Data Supply as done before


Step 3:

Go to the URL http://:50$$0/sld this is our Local SLD



(a) Go to the administration tabDataSuppliers






(b) Add a new SLD that is SLDMAIN in it with the data supplier userid/password



(c) This will trigger the data supply from Local SLD to SLDMain

(d) Go to the SLDMain URL : http://:50$$0/sld and check whether or not the data it receives from local SLD is true
(e) This SLD data flow is unidirectional


How to revert back the Changes?

To revert back the changes you just have to remove the above configurations you have made. In the Instance--> Server-->Services-->SLD Data Supplier-->HTTP Settings and Instance. Server-->Services-->SLD Data Supplier-->CIM Client Generation Settings tab of Visual Administrator mention Local SLD or SLDMain based on the team’s requirement. Also we have to
remove the SLDmain from the data supplier functionality given in administration tab of Local sld.

Generation of csmconf

Login to Solman with a user having basis authorization.

Run RZ21



Save in required location

Copy the csmconf file to:



Registration

















Create JCo RFC connections in Visual admin






Check for the system to be ONLINE (RZ21):-





Checking the SLD connection:-

Adjusting ABAP Dictionary Objects and Repository Objects

by vinaysingh | Thursday, August 20, 2009 in | comments (1)

An adjustment of ABAP Dictionary objects is carried out with transaction SPDD,

It must be performed as soon as you are prompted to carry out a modification

adjustment for ABAP Dictionary objects.

objects to adjusted are

a) Domains
b)Data elements
c) Tables (structures, transparent tables, pooled and
cluster tables including their technical settings, indexes of transparent tables).


Changes to other ABAP Dictionary objects such as type groups, table types,
views, search helps, match code objects, match code indexes and lock objects
cannot result in the loss of data. They are not done by transaction SPDD,
but by transaction SPAU (post upgrade activity).

In the adjustment procedure, ABAP Dictionary objects before the upgrade
(old version) are compared with objects after the upgrade (new version).

one must perform one of the following actions for all objects presented for adjustment:

a)Retain modification

Confirm that you want to adopt the modification or maintain the changes with the appropriate maintenance transaction.

Click the yellow traffic light in transaction SPDD to execute the data transfer reports.

b)Cancel modification

Choose Reset to original









when doing the modification and enhancements ,we have three options to choose from :-

a)With Modification Assistant 

Objects modified With the Modification Assistant are adjusted automatically or in the individual

ABAP Workbench tools using either corresponding dialog boxes or the split screen editor(SPAU Activity) .

we generally do not do direct maintenance of adjustment objects.

B)Without Modification Assistant

To adjust objects without the Modification Assistant we use version management .

When modifying objects where version management cannot be used, one need to document any changes that he/she make.

c)Deleted Objects

This node contains objects which are deleted in the newer version of SAP

and this node is to be left as it is.

pic(below):- select object



pic(below):- version management




pic(below):-current version already exist as previous version


pic(below):- reset to original








SPAU

The adjustment of Repository objects is carried out with transaction SPAU.

Only those objects that have been modified by you and are being redelivered by SAP

in an upgrade are presented for adjustment.

The system automatically recognizes during upgrade if modification adjustment is necessary.You are then prompted to perform the modification adjustmentYou must decide whether the objects contained in the adjustment list should retain your modifications or if they should be reset to original.

when Running SPAU :-

a) use any oter user than DDIc.

b)When an object is modified for the first time, a change request is created

where modifications should be recorded.

c)If several developers are involved in the modification adjustment process,

one can create a changeable transport request with several tasks before modification adjustment begins.

d)If each developer creates his or her own transport request during modification adjustment,

these requests must be consolidated into a single request. This single request which contains

all modification adjustment objects can be selected for transport to subsequent systems.




Logs and Traces - transactions

by vinaysingh | Wednesday, August 19, 2009 in | comments (0)

The major transactions for Trace Options in SAP are :-


1) System Log (SM21).
2)Dump Analysis(ST22).
3)System Trace(ST01).
4)Performance Trace(ST05).
5)Developer Trace(ST11).


SYSTEM LOG(SM21):-

a) Can be used to detect and correct errors in our SAP system and its Environment.
b)SAP application servers record events and problem in system logs.
c)Every SAP application Server has a local log that contains the messages output by this server.

Local System Log :- /usr/sap//D*/log/SLOG

Central System Log:- /usr/sap//SYS/global/SLOGJ

central system log feature - Available in Unix ,not possible in Windows and Iseries.

profile parameter (RZ10) :-

rslg/local/file :- local log file
rslg/central/file:-Central file

Invoked by tools-->Administration-->Monitor -->System Log or Call transaction SM21.


2)Dump Analysis(ST22)

a)If unpredictable errors occurs during runtime when you call an ABAP program , a runtime error that generates a short dump can occurs.
b)By default ,short dump are stored in the system for 14 days.
c)You can delete short dumps in accordance with a time specification using the reorganize function ,which you call by choosing Goto -->Reogranize .

d) one can save a short dump without a time limit using the KEEP function ,which one can choose from detail view under short Dump -->KEEP/RELEASE.

Characteristics of Dump Analysis:-

1) If a runtime error occurs ,a short dump is generated.You can use tranaction ST22 to analyzer this short dump.
2)Dump data is stored in the database.
3)Dump data can be reorganized.
4)Individual short dump can be flagged for retantion.

System Trace (ST01)

to record the internal SAP activities ,such as authorization checks,database access ,kernel functions and RFC calls.

The system trace is used for analyzing:
a)Authorization checks
b)Kernel functions
c)Kernel modules
d)DB accesses (SQL Trace)
e)Accesses to table buffers
f)Lock operations (client-side).

PERFORMANCE TRACE(ST05)

The Performance trace is used for analyzing:

a)Database calls
b)Lockmanagement calls
c)Accesses to table buffers
d)Remote calls of reports and transactions
e)Individual trace records
f)SQL statements.

DEVELOPER TRACE(ST11)

Developer traces are recordings that contain technical information and that
are used if errors occur.

a)Can be read by using Transaction AL11.
b)Browse to directory usr/sap//d*/work.
c)Developer trace can be viwed at dev_* files.
d)Can be accessed in Transaction: SM50.
Process → Trace → Display File.






Changing field descriptions

by Voice | Monday, July 13, 2009 in | comments (0)

If you want to change the label/field description for any SAP table field, then you can use the following method.

  1. Goto CMOD.
  2. Goto-Text Enhancement-key words-change
  3. Enter the field name
  4. Change the description.
  5. Save.
  6. Goto SE11, check field description.

Info - For all select

by Voice | Tuesday, May 05, 2009 in | comments (0)

1. Before doing a for all select, just make sure the internal table you are using for all select is not empty (INITIAL). If it is empty then for all select will fetch all the records in the database and thay may be a problem. So be careful.


2. Mechanism of for all select: SAP first fetches all the record and then it sort the records found and then it does a delete duplicates comparing all the fields. So, if you want to retrieve all the records, you MUST select all the key fields or else you will lose some records.

Try it for youself:
Check the number of records present in the database table and the number of records present in internal table.


REPORT  Z000_TEST_FOR_ALL_SELECT.

types: begin of ty_dd02l,
         tabname type tabname,
       end of ty_dd02l,

       begin of ty_dd03l,
         tabname type tabname,
         KEYFLAG type KEYFLAG,
       end of ty_dd03l.

data: i_dd02l type standard table of ty_dd02l initial size 0,
      i_dd03l type standard table of ty_dd03l initial size 0.

data: v_tabname type dd02l-tabname.
select-options s_table for v_tabname.

select TABNAME
   from dd02l
  into table i_dd02l
  where tabname in s_table.

IF sy-subrc = 0.
  select TABNAME
         KEYFLAG
    from dd03l
    into table i_dd03l
    for all entries in i_dd02l
    where tabname = i_dd02l-tabname.

  IF sy-subrc = 0.

  ENDIF.
ENDIF.


Field symbol - Info

by Voice | Monday, April 27, 2009 in | comments (0)

SAP recommends that you should only use field symbol when you can not achieve the same functionality by other means. 

Performance wise it is better to use field symbols but if not used properly, it can give a short dump. With conventional work area method, syntax checker is able to detect most of such errors incorporated in the code. But with field symbol it is unable to do so and hence unless and until you are very sure about the use, field symbols may back fire on you.

Below is one sample code which can help you in understanding the use of field symbols. Like a work are or table, field symbols can be declared by using a structure or it can be left unassigned and in this case it take the structure of the variable with which it is referred for the first time.

Field-symbols become indespensible when in your program there is a need to create a work area name or field name or internal table name dynamically. 

In this example, field symbols are used to call an internal table dynamically. You can extrapolate the same concept to work area and variables.

----------------------------------------------------------------------------------------------
PARAMETERS: p_1 TYPE tdobject.

DATA: i_stxh TYPE STANDARD TABLE OF stxh,
      w_stxh TYPE stxh.

SELECT * FROM stxh
INTO TABLE i_stxh
WHERE tdobject = p_1.

FIELD-SYMBOLS <i_t> TYPE ANY table.
FIELD-SYMBOLS <w_t> TYPE ANY.
data: name(10TYPE c.
data: name1(10TYPE c.

name = 'I_STXH'.
name1 = 'W_STXH'.
ASSIGN (name) TO <i_t>.
ASSIGN (name1) TO <w_t>.

IF sy-subrc = 0.

ENDIF.

LOOP AT <i_t> INTO <w_t>.

ENDLOOP.
 



--------------------------------------------------------------------------------------------------------------------------------------------------------
If you wish to assign content on one field symbol to other field symbol you can use,
assign <fs1> to <fs2>.

We are moving to a better and faster site SAPYard.com  (http://www.sapyard.com/).

This content has been moved to the below link. Please visit it at your convenience. Thank you for your patience and cooperation.

http://www.sapyard.com/using-idoc-output-type-special-processing-options/

Categories