Sunday, March 01, 2009

Avoid Log out and Log in after changes ...

Whenever any changes were made to the user authorizations, normally it is required to log-out
and log-in again to make these changes effective. Here is an alternative:

Execute the report RSUSR405 in SE38. This would refresh all user-related buffers and changes
to the authorizations are made effective immediately.

--
Ankur Bhandari.

iDoc special reports

1) RBDMANIN - Start Error Handling for Non-Posted IDocs

Description: This report attempts to post the inbound IDocs with status '51' (Application document not posted)

2) RBDAGAIN - Process Outbound IDocs with Errors Again

Description: This report reprocesses outbound IDocs which contain errors. IDocs containing errors have one of the following statuses:

  • 02: Error transmitting data to port
  • 04: Error in EDI subsystem control information
  • 05: Error in conversion
  • 25: Continue processing despite syntax error (outbound)
  • 29: Error in ALE service

3) RBDAGAIE - Reprocessing of Edited IDocs

Description: This report reprocesses an edited IDoc in inbound or outbound processing. The edited IDoc has one of the following statuses:

  • 32: IDoc edited (outbound)
  • 69: IDoc edited (inbound)

4) RBDAGAI2 - Re-processing of IDocs after ALE Input Error

Description: You use this report to reprocess inbound IDocs containing errors. IDocs containing errors have one of the following statuses:

  • 56: IDoc containing errors added
  • 61: Continue processing despite syntax error (inbox)
  • 63: Error passing IDoc to the application
  • 65: Error in ALE service

5) RBDAPP01 - Inbound Processing of IDocs Ready for Transfer

Description: Report for processing inbound IDocs not passed to the application immediately. This report forwards all IDocs with:

  • Status 64 "ready to be passed to application"
  • Status 66 "IDoc is waiting for predecessor IDoc (serialization)



Saturday, February 28, 2009

Workflow: Change defaults


Sometimes the Workflow steps are not available for drag and download. This can be achieved by changing the default setting from
SWDD --> Extras -->Options --> Check Normal Drag & Drop Procedure.
Regards,
Ankur Bhandari

Thursday, February 26, 2009

Security Tip: RSCSAUTH

Authorization Group

Authorization group to which the program is assigned.

The assignment of a program to an authorization group plays a role when the system checks whether the user is authorized to:

  • Execute a program
    --> Authorization object S_PROGRAM
  • Edit a program (-Include) in the ABAP Workbench
    --> Authorization object S_DEVELOP

Programs that are not assigned to an authorization group are not protected against display and execution.
Security-related programs should, therefore, always be assigned to an authorization group.

Report RSCSAUTH can also be used to assign programs to authorization groups. This report is documented in detail.

 
Regards,
 

Tuesday, February 24, 2009

Debug programs in background

Debug programs in background
 
Steps
1. Create variant called BACKGROUND for program to be debugged.
2. Execute ZDEBUGBG (pgm code below) in background for immediate processing.
3. Execute transaction SM50.
4. Select process that runs ZDEBUGBG.
5. Goto 'Program/Session' 'Program' 'Debugging'.
A se80 debug session will open.
6. Change variable W_EXIT to 'E'.
7. Step thru (F6) until ZWBTEST comes up.

Wala



*&---------------------------------------------------------------------*
*& Report ZDEBUGBG *
*& *
*&---------------------------------------------------------------------*
*& *
*& *
*&---------------------------------------------------------------------*

REPORT zdebugbg.

DATA:
w_exit TYPE c.

FIELD-SYMBOLS <fs> TYPE ANY.

SELECTION-SCREEN BEGIN OF BLOCK one.
PARAMETERS: p_repid LIKE trdir-name DEFAULT 'ZWBTEST'.
SELECTION-SCREEN END OF BLOCK one.

START-OF-SELECTION.
PERFORM loop_time.
PERFORM submit_time.

END-OF-SELECTION.

*---------------------------------------------------------------------*
* FORM loop_time *
*---------------------------------------------------------------------*
* ........ *
*---------------------------------------------------------------------*
FORM loop_time.
DO.
IF w_exit = 'E'.
EXIT.
ENDIF.
ENDDO.
ENDFORM.

*---------------------------------------------------------------------*
* FORM submit_time *
*---------------------------------------------------------------------*
* ........ *
*---------------------------------------------------------------------*
FORM submit_time.
ASSIGN p_repid TO <fs>.
SUBMIT (<fs>)
USING SELECTION-SET 'BACKGROUND'.
ENDFORM.
 
 

Thursday, September 07, 2006

Find print programs...

Another way to find.

1.) GO to Se71 --> Enter the sapscript name.

2.) Press Display/ F7

3.) Click on Menu FORM --> CHECK --> TEXTS ---> Enter

4.) Wow it gives you all the associated print programs with this Sapscript.

 

Regards,

Ankur Bhandari.

 

 

Purchase Order texts in table

T166K: Header Texts in Purchasing Document Printouts

 

Regards,

Wednesday, August 16, 2006

Add your own texts to the logon screen

You can add your own texts to the logon screen in different ways. For more information, see SAP Note 205487

 

 

 

Logo on screen...

You can attach an image such as your company logo to the right side of the screen. This image can be assigned throughout the system and is valid for all clients. Given that you have authorization to do so, you can find a detailed description of the settings that are required to do this by choosing Extras --> Administration information. Please note that the graphic is stored in the system and transported to the front-end every time SAP Easy Access is called. Although it is transported in compressed form, the graphic should not exceed 20 KB. You can also prevent the graphic from being called by choosing the setting Low Speed Connection in the SAP Logon program (see SAP Note 161053), or by choosing Extras --> Settings in the SAP Easy Access screen. See also "User Settings".

 

 

Wednesday, May 31, 2006

Useful exits

CUST1        MENUS000+C01            Customer option in the Office menu
CUST2        MENUS000+C02            Customer option in the Logistics menu
CUST3        MENUS000+C03            Customer option in the Accounting menu
CUST4        MENUS000+C04            Customer option in the Human Resources menu
CUST5        MENUS000+C05            Customer option in the Information Systems menu
CUST6        MENUS000+C06            Customer option in the Tools menu
CUST7        MENUS000+C07            Customer option in the System menu

ZXUSRU01    Exit_saplsusf_001   At login time
SAPMF02D    Exit_sapmf02d_001   When saving customer master data
SAPMF02K    Exit_sapmf02k_001   When saving vendor master data
M61X0001    Exit_saplm61c_001   When processing MRP planning
M61X0001    Exit_sapmm61x_001   When processing MRP planning
FYTX0001    Exit_saplv61a_001   Modifications in pricing procedures
MBCF0002    Exit_sapmm07m_001   Checks for materials documents
SDVFX002    Exit_saplv60b_002   Link between SD and FI documents
M06B0003    Exit_sapmm06b_001   When saving MM documents

Regards,
Ankur Bhandari
SAP Consultant.
+1 847 636 0883(c)
+1 847 578 2568(w)








 
 Cardinal Health -- Working together. For life. (sm) _________________________________________________  This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.  Dansk - Deutsch - Espanol - Francais - Italiano - Japanese - Nederlands - Norsk - Portuguese - Svenska: www.cardinalhealth.com/legal/email 

Exit at logon time ...

EXIT_SAPLSUSF_001

Regards,
Ankur Bhandari
SAP Consultant.
+1 847 636 0883(c)
+1 847 578 2568(w)








 
 Cardinal Health -- Working together. For life. (sm) _________________________________________________  This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.  Dansk - Deutsch - Espanol - Francais - Italiano - Japanese - Nederlands - Norsk - Portuguese - Svenska: www.cardinalhealth.com/legal/email 

Tuesday, May 30, 2006

Useful tables to find a transaction

Useful tables to find a transaction
 SMENSAPT and SMENSAP.

Regards,
Ankur Bhandari

 
 Cardinal Health -- Working together. For life. (sm) _________________________________________________  This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.  Dansk - Deutsch - Espanol - Francais - Italiano - Japanese - Nederlands - Norsk - Portuguese - Svenska: www.cardinalhealth.com/legal/email 

Friday, May 19, 2006

To popup a message on a user in SAP

RSPOPUP is the program name which can be used,
Also TH_POPUP function module does the same thing

Regards,
Ankur Bhandari








 
 Cardinal Health -- Working together. For life. (sm) _________________________________________________  This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.  Dansk - Deutsch - Espanol - Francais - Italiano - Japanese - Nederlands - Norsk - Portuguese - Svenska: www.cardinalhealth.com/legal/email 

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