Thursday, December 29, 2005

Free Memory for resetting the selection screen parameters and select options.

Use Free memory in end-of-selection event to reset the selection screen.

 

Regards,

Ankur Bhandari

Tuesday, December 20, 2005

Fields of an internal table

Function module  GET_COMPONENT_LIST can be used to find all the fields of the internal table.

POPUP_TO_DECIDE_LIST


POPUP_TO_DECIDE_LIST can be used to give multiple options in a popup.

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Friday, December 02, 2005

Function modules for calculating dates in future or past

Use function Module  DATE_IN_FUTURE to calculate the date in future or back

Input ANZAHL_TAGE = -180 ( days)

        IMPORT_DATUM = 01/01/2005

Output = 07/05/2005

It calculated 180 days in past

 

Use function Module MONTH_PLUS_DETERMINE to calculate months in future or back

Input MONTHS = -18

        OLDDATE = 01/01/2005

Output  07/01/2003

 It calculated 18 months in past

 

Regards,

Ankur Bhandari

 

Wednesday, November 30, 2005

Nice one

Try this…. Its cool

http://www.crushcalculator.com/content/love/865625526

Regards,

Ankur Bhandari

SAP Consultant

Infosys Technologies Ltd , Pune

Tel 020 39828237

Cell 09326045208

ankur_bhandari@infosys.com

ankur.bhandari@gmail.com

Tuesday, November 29, 2005

Whose Time is right ?

WHOSE TIME IS RIGHT?

There was a man who works as a foreman at a factory.

Every morning on his way to work, he would pass a particular shop selling watches. He will stop in front of the shop and adjust the time on his wrist watch, and will then proceed to work. He will do this everyday.

The watch shop owner became very curious and one day stopped the man and asked him what he was doing. The man said that he was the foreman of the factory and everyday it was his duty to ring the bell to sound the alarm at 5.00pm to indicate that it was time to stop work for the day. He wanted to be accurate with the time and therefore everyday he would look at the big clock in the shop to adjust the time on his wrist watch. The shop owner started laughing! He said, “Everyday at 5.00pm when the factory bell sounds the alarm, I would quickly adjust the time on my clock”.

It is important for us to realize that to be successful we have to follow and copycat the right leaders. We should role model leaders with good characters, values and beliefs, otherwise we may find that we may reach the “top of our ladder”, but only to realize that we are on “top of the wrong ladder”.

Hope that you will find a role model who can assist and inspire you to greatness.

Have a great day ahead !!!

Regards,

Ankur Bhandari

SAP Consultant

Infosys Technologies Ltd , Pune

Tel 020 39828237

Cell 09326045208

ankur_bhandari@infosys.com

ankur.bhandari@gmail.com

Install new fonts in SAP

Use transaction SE73

Regards,

Ankur Bhandari

Locating Badi's

Go to transaction SE80 in a client where you can experiment with the transaction that you are interested in.Go to class CL_EXITHANDLER. [Select Class / Interface from the drop-down, and put CL_EXITHANDLER for the class.]

Go to method get_instance. [Press RETURN to ensure that the contents of the Object Name frame are for CL_EXITHANDLER. Expand the Methods node. Double-click on GET_INSTANCE.]Insert a breakpoint just after = the call to the method cl_exithandler get_class_name_by_interface. Use the transaction in which you are BAdI-hunting.

Examine the contents of the field exit_name whenever the processing stops at the breakpoint.

I have found a case where exit_name was an unknown field. Then class_name gave a good clue to the name of the BAdI.

Regards,

Ankur Bhandari

Short dumps in variant selection

If you get short dumps while variant selections GO to tcode SE38 à GoTo/Variants/àVariants/Adjust

Regards,

Ankur Bhandari

Percentages in ALV

http://www.sapfans.com/forums/viewtopic.php?t=88401

Wednesday, November 16, 2005

Logical Filename Funda

A logical file name can be created either as clientspecific

(using transaction SF01) or as crossclient

(using transaction FILE). Remember that a

client-specific file name always overrides a crossclient

file name, so make sure you delete any

unnecessary or obsolete client-specific definitions

in all clients affected.

Also note that if there are two identical file names

that were created in both transaction FILE and

transaction SF01, the physical destination

associated with them may still be different. As the

client-specific definition always has priority over

the cross-client definition, a read program will try

to find the archive files under the path specified in

transaction SF01.

 

 

Regards,

Ankur Bhandari

 

Report to show relationships

RASHLO00 report can show relationship of a document with other documents.

 

Regards,

Ankur Bhandari

 

Thursday, November 10, 2005

Transaction to change user authorization

 

Transaction to change user authorization is PFCG…

Regards,

Ankur Bhandari

 

Monday, November 07, 2005

Transaction to upload a file on Application server

Transaction CG3Z can be used to upload files from Presentation Server to Application Server.

Transaction CG3Y for vice versa

           

 

Regards,

Ankur Bhandari

 

Tuesday, August 16, 2005

Line Printer

For Line printer to work without any control characters the printer has to be defined as Remote Printer at Unix Level.
The user exit for passing some print controls is at the level device type and Format in SPAD.
 

OS commands From SAP

LIST_DB2DUMP can be used to find out the list details.
RSLOGCOM is the program for executing this. ( SM49)
 

Tuesday, August 09, 2005

FTP check RSFTP002

You can use program RSFTP002 to see if a ftp destination is working as expected.
 

Dynamic tables

 

Regards

Ankur Bhandari

Sap Production Support (Tech Lead)

 

DHL

Scottsdale, AZ, 85260

USA

 

Phone  +1 480 375-7188

Mobile  +1 480 226-0584

eFax    +1 315 292-9570

 

Ankur.bhandari@dhl.com

www.dhl.com

 

Modifying fields not available in User exit

 
*Step 1: Assign the program/field name of calling program variable to field symbol 1
assign '(zcall_program_name)fname_from_call_program' to <fs1>.


*Step 2: Assign field Symbol contents to field symbol  2
assign (<fs1>) to <fs2>.          


*Step 3: Assign Field Symbol 2 to avariable in the current function module/Program
vbap-vbeln = <fs2>.

Creating field exits

RSMODPRF program can be used.
 

Thursday, August 04, 2005

Function module to set and get parameter id's

These function modules can be used to set any parameter id at runtime and retrieve the same as well.
RHP0_SET_USER_PARAMETER
                    Usage = parameter id = zabb
                                Value ="x"
                                 
RHP0_GET_USER_PARAMETER
                        parameter id = zabb.
 
 
 

Tuesday, June 14, 2005

Logging table entries manually.

To keep a log of table entries : One of the practice is
1.) Add three fields at the end of the table
    a.) Name - sy-uname
    b.) Date  - sy-datum
    c.) Time - sy-uzeit
2.) Create the table maintenance generator program.
3.) Get the name of the table maintenance program SAPLZ(table name).
4.) GO to SE51 with this program name and add two performs in PBO and PAI module respectively.
5.) In PBO section add the perform for restriction of table entries , just before the endloop.

MODULE restrict_zzz OUTPUT.

LOOP AT SCREEN.

CHECK SCREEN-GROUP1 = 'ZZZ'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDLOOP.

ENDMODULE. " restrict_zzz OUTPUT

6.) In PAI section add the perform for capturing the relevant data( name/date/time).

MODULE add_details INPUT.

zabb-uname = sy-uname.

zabb-datum = sy-datum.

ZABB-UZEIT = SY-UZEIT.

ENDMODULE. " add_details INPUT

7.) GO to SE51 --> Element List ---> Mod/Group functions--->IN group 1 field for our additional fields add "ZZZ".

 
p.s : This tip contributed by Satinder pal Singh.

Friday, June 03, 2005

Easy way to search for SAP SCRIPT forms

Use program RSTXFCAT for finding all the Z*/Y* forms in your landscape.Alternatively this can also be achieved by using CTRL+F in SE71 and then using  Find characteristics.
 
Ankur
 

Monday, May 02, 2005

SAP online pdf's library

You will find a lot of SAP documentation
http://www.easymarketplace.de/online-pdfs-a-c.php

Search Recursively in Programs.


You can use the program
RPR_ABAP_SOURCE_SCAN    in SE38 .This Program searches ABAP code for a string. Has many more options for selecting the ABAPs to search than RSRSCAN1 program.


Site for Excel formulas

 
 

SAP cheque printing

SAP cheque printing works even in proposal run. Can check in SP01.

Ankur

SAP spell_amount function module

Spell_amount Func Module fails for larger numbers , can be corrected using OBA9.
Ankur