Thursday, February 02, 2006

Setting Default values in Material Master

Hi,

 

You have following options for setting defaults, evaluate these and implement whichever suits (or in combination):

Option 1: On create material (MM01) screen from Menu path click on à Defaults à Settings

 

à Industry Sector

 

à Organizational Levels

\Here you defaults values for following fields.

Company Code                         

Plant                                

Storage Location                      

Valuation Type                       

Sales Org.             

Distr. Channel    

Warehouse No.                        

Storage Type       

 

Option 2: On a particular field (which you want to default) you can find out the parameter ID associated by clicking F1 (Help) and F9 (Note: F9 works if help is in model dialog box otherwise see Technical Info when you have help in performance assistance).

You can maintain default value for each parameter id in Systems à User Profiles à Own data. Transaction SU3 will be launched.

Click on Parameters tab and maintain the Parameter ID and value. (Be sure to enter Parameter ID all in caps).

This is available for selected fields only.

 

Option3: Use HOLD data SET Data method from System à User Profile à Hold data/Set data when user is running MM01 transaction and wants to save local and temporary defaults. Note that this is a temporary provision and specific to that logon session. It is useful when user needs to populate repeated data while creating material master one after another manually.

 

Option4: Use SHD0 transaction to make a screen variant/ Standard variant / transaction variant. This is very powerful solution, and it can default all in one go.

You can create multiple versions for specific variants so that specific defaults can be stored respective to ROH/ HALB/FERT etc. and use authorization to restrict use of the variant by identified users. (See more info on online help for transaction and screen variants)

 

Should you need more info, Contact.

 

Thanks & regards,

Manish

 

          

 


From: Anant Vasudeo Lokapur
Sent: Wednesday, January 18, 2006 4:29 PM
To: SAP Practice
Subject: Setting Default values in Material Master

 

Hello All

 

There is a client request for populating default values in select Material Master fields (in MM01, list attached)…

 

It would be very helpful if inputs on these, if any, could be mailed…

 

Best Regards

Anant

 

DC APAC – Logistics

China Rollout (MB Passenger CBU)

+91-9845730855

Friday, January 20, 2006

Transaction code authority check

Transaction code authority check

 

 
The following code demonstrates how to check that a user has the correct authority for a particular 
transaction code. Useful to check if a user has the correct authority before executing a transaction via 
BDC input.

 

 

 
authority-check object 'S_TCODE'
                id     'TCD' 
                field  'SM35'.
 
if sy-subrc ne 0.
*   User does not have authority for transaction SM35!!!
endif.

 

 

Regards,

Ankur Bhandari

Authorisation trace analysis 1. Open two sessions

Authorisation trace analysis

1. Open two sessions
2. Execute transaction ST01 in one of the sessions
3. Select the authorisation checkbox, note the other traces 
   you can perform (SQL, RFC, Table Buffer etc)  
4. Click the 'Trace On' button
5. Within your other session execte the transaction/report 
   you want to trace or get the user in question to do it
6. Return to the session where you turned the trace on and 
   click on 'Trace Off' otherwise it will continue to record 
   all athorisation checks
7. Click on the 'Analysis' button
8. Enter appropriate data into selection screen such as 
   Username, type of trace records (i.e. Authorization check)
9. Click on the Execute button. 
10. Report displaying trace results will now be displayed  
 

 

 

Regards,

Ankur Bhandari

Modify thru SE16

Debug SE16 to allow record changes

 

 
If you are not authorised to change table entries or the table has been create without table maintenance 
allowed (all SAP tables), you can still change entries via data browser (SE16) by means of debugging. The 
process is as follows:

 

 

 
1. Display record entries for desired table via SE16 or SE11.
2. Select record which requires updating by highlighting it and pressing the display icon (glasses, F7).
3. Type /h in command box and press enter. 
4. Now press enter again and you should enter debugging mode
5. Change the value of code from ‘SHOW’ to ‘EDIT’, remember to press the ‘change field contents’ 
    icon (pencil) in-order to store new value.
6. Press F8 (execute) to leave debug.
7. You should now have change access to the selected record. 
8. Hit ‘SAVE’ to save any changes. 
9. Remember there is a reason why you can’t do this without debugging it, one reason being that it could 
    introduce inconsistencies in the table data.

 

 

Regards,

Ankur Bhandari

Thursday, January 12, 2006

Tables for transport proposal

CTWFACTLOG                     Transport Proposal: Action Log          

CTWFNUMBER                     Transport Proposal: Number Assignment   

CTWFPROPOS                     Transport Proposal: Header              

CTWFREQUST                     Transport Proposal: Requests for Import 

CTWFTARGET                     Transport Proposal: Target Systems/Target

 

Regards,

Ankur Bhandari

Saturday, January 07, 2006

Transaction SU21 for finding any authorization objects.

Transaction SU21 for finding any authorization objects.

 

Regards,

Ankur Bhandari

 

Wednesday, January 04, 2006

List of commonly used function modules

Drop down List function module

VRM_SET_VALUES can be used for drop down lists.

 

Regards,

Ankur Bhandari

SAP Consultant

Alv variants copy

Try using LVC_VARIANT_SELECT and LVC_VARIANT_SAVE fms.

First call LVC_VARIANT_SELECT to read variant from the first program and then call LVC_VARIANT_SAVE to save it for the second program.

Take a look at report BCALV_GRID_11 for reference

 

Refer to the follwoing SAP Tables and see if you have some luck.
==========================================================

LTDX --> Generic storage of display variants
LTDXD --> Default display variants
LTDXS --> SAP Default Display Variants
LTDXT --> Display variant texts

==========================================================

The idea is to try and manipulate the table entries for various users.

 

S_ALV_LAYO is the authorization which needs to be used.

 

Regards,

Ankur Bhandari

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