Posts

Showing posts from September, 2012

Carry out repairs in non-origina system only if they are urgent

Image
Scenario: When a existing program is going to change in non-development system Solution: This message occurs when developer changing program in non-development system or where the program is not developed originally in that sytem or the system is copy of another system. Since the original program is not developed in the current system you will see this message. This can be removing by changing the original development system of the program. 1. Go totransaction code "SE03" 2.Click on "Change Object Directory Entries" 3. Give the object name choose check box the type of object and the execute  4. choose your program name and double click on that.                                        5. Change the Orginial system name to the current system name  

Converting ABAP Spool to PDF and sending email to Distribution list

Scenario: There is standard report generated by Report painter tool. Now that output of report need to send as PDF format as attachement to multiple users. Solution and Code: Run the standard report as Job, then create ABAP prgoram to capture spool of Job, then convert spool into PDF, then send this PDF attachment thru email to Distribution list. (Note: In SAP business workplace you need to create distibution list by assigning all user Email IDs ) PARAMETERS  p_jobnam  LIKE  tbtcp - jobname . data  send_request   type  ref  to  cl_bcs . data  document       type  ref  to  cl_document_bcs . data  recipient      type  ref  to  if_recipient_bcs . data  bcs_exception  type  ref  to  cx_bcs . data  sent_to_all    type  os_boolean . data  pdf_size       type  so_obj_len . data  pdf_content    type  solix_tab . data  pdf_xstring    type  xstring . data  lm_dist        type  so_obj_nam . data  rqident        type  tsp01 - rqident . DATA  v_spoolid      TYPE  tsp01 - rqide